/* ---------------- CSS RESET & NORMALIZE ---------------- */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  height: 100%;
  font-size: 16px;
}
body {
  min-height: 100vh;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  line-height: 1.6;
  background: #111a22;
  color: #E8F0F6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #C99736;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #ffd984;
  text-decoration: underline;
}
ul, ol {
  padding-left: 1.33em;
  margin-bottom: 20px;
}


/* ---------------- FONT DEFINITIONS ---------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Source+Sans+Pro:wght@400;600&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #E8F0F6;
  font-weight: 800;
  margin-bottom: 20px;
}
h1 { font-size: 2.5rem; line-height: 1.1; }
h2 { font-size: 2rem; line-height: 1.15; }
h3 { font-size: 1.33rem; font-weight: 700; }
h4, h5, h6 { font-size: 1rem; font-weight: 700; }
p, li, blockquote, ul, ol { font-family: 'Source Sans Pro', Arial, sans-serif; font-size: 1.1rem; }
strong { font-weight: 700; color: #ffd984; }


/* ---------------- GENERAL LAYOUTS (CONTAINERS, SECTIONS) ---------------- */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 16px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-start;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #132032;
  border-radius: 18px;
  box-shadow: 0 4px 28px 0 rgba(23, 69, 96, 0.08);
  position: relative;
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 32px;
    padding: 24px 6px;
  }
}

/* ---------------- HEADER & NAVIGATION ---------------- */
header {
  background: #174560;
  box-shadow: 0 2px 12px 0 rgba(17,26,34,0.18);
  position: relative;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 90px;
}
header img {
  height: 41px;
  width: auto;
  margin-right: 24px;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
nav a {
  color: #E8F0F6;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .04em;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border 0.18s, color 0.14s;
}
nav a:hover, nav a:focus {
  border-bottom: 2px solid #C99736;
  color: #C99736;
}
.cta-button {
  background: linear-gradient(90deg, #174560 50%, #3679bd 100%);
  color: #fff;
  padding: 11px 32px;
  font-size: 1.18rem;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 32px;
  border: 1.8px solid #C99736;
  text-shadow: 0 1px 8px #13203288;
  box-shadow: 0 2px 14px 0 rgba(201,151,54,0.08);
  transition: background 0.19s, color 0.15s, box-shadow 0.21s;
  cursor: pointer;
  margin-left: 30px;
}
.cta-button:hover, .cta-button:focus {
  background: linear-gradient(90deg, #C99736 40%, #3679bd 100%);
  color: #132032;
  box-shadow: 0 4px 28px 0 rgba(201, 151, 54, 0.22);
  text-shadow: none;
}

/* Responsive header */
@media (max-width: 991px) {
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0 6px;
    gap: 8px;
  }
  nav {
    gap: 14px;
  }
}
@media (max-width: 768px) {
  header .container { flex-direction: row; justify-content: space-between; min-height: 62px; }
  header img { height: 34px; }
  nav, .cta-button { display: none; }
  .mobile-menu-toggle {
    display: block;
    position: relative;
    z-index: 200;
    background: none;
    border: none;
    font-size: 2.2rem;
    color: #C99736;
    padding: 8px 16px 8px 12px;
    cursor: pointer;
    outline: none;
  }
}
/* Only show on mobile */
.mobile-menu-toggle {
  display: none;
}

/* ---------------- MOBILE MENU ---------------- */
.mobile-menu {
  position: fixed;
  top: 0; right: 0; left: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #161f2b;
  box-shadow: 0 7px 48px 12px rgba(23, 69, 96, 0.17);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.87,-0.41,.19,1.52);
  pointer-events: none;
  opacity: 0;
  justify-content: flex-start;
  align-items: flex-end;
  padding: 44px 18px 18px 30px;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #C99736;
  font-size: 2.3rem;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 12px;
  align-self: flex-end;
  outline: none;
  z-index: 1000;
  transition: color 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #ffd984;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 14px;
  width: 100%;
  padding: 0 16px;
}
.mobile-nav a {
  color: #E8F0F6;
  font-size: 1.4rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 16px 0 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.20s, border 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #C99736;
  border-bottom: 2px solid #C99736;
}

@media (min-width: 769px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* ---------------- MAIN & SECTION SPACING ---------------- */
main {
  width: 100vw;
  margin: 0 auto;
  min-height: calc(100vh - 314px);
  background: linear-gradient(135deg, #111a22 0%, #174560 110%);
  padding-bottom: 28px;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 17px;
  align-items: flex-start;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .text-section {
    gap: 13px;
    margin-bottom: 13px;
  }
}

/* ---------------- FLEX PATTERNS ---------------- */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  margin-top: 10px;
  margin-bottom: 24px;
}
.features-grid > div {
  background: #19293b;
  border-radius: 18px;
  color: #E8F0F6;
  flex: 1 0 240px;
  min-width: 220px;
  padding: 30px 22px 26px 22px;
  box-shadow: 0 2px 24px 0 rgba(23, 69, 96, 0.13);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.19s, background 0.2s;
  position: relative;
}
.features-grid img {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 3px 7px #17456055);
  margin-bottom: 6px;
  transition: filter 0.22s;
}
.features-grid > div:hover {
  background: #1f3046;
  box-shadow: 0 4px 28px 0 #C9973660;
}
.features-grid > div:hover img {
  filter: drop-shadow(0 2px 15px #C99736) brightness(1.2);
}

@media (max-width: 991px) {
  .features-grid {
    gap: 20px;
  }
  .features-grid > div {
    min-width: 170px;
    padding: 24px 13px 20px 13px;
  }
}
@media (max-width: 768px) {
  .features-grid { flex-direction: column; gap: 18px; }
  .features-grid > div { width: 100%; min-width: unset; }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #172738;
  border-radius: 14px;
  box-shadow: 0 0 20px 0 #17456018;
  padding: 26px 22px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start;
    gap: 16px; }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #E8F0F6;
  color: #111a22;
  border-radius: 18px;
  margin-bottom: 28px;
  box-shadow: 0 5px 24px 0 #1745600d;
  font-size: 1.13rem;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  transition: box-shadow 0.19s, background 0.17s;
  position: relative;
}
.testimonial-card strong { color: #174560; }
.testimonial-card:hover {
  background: #fff;
  box-shadow: 0 8px 28px 0 #C9973622;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  background: #172738;
  padding: 22px 18px;
  border-radius: 13px;
  box-shadow: 0 0 18px 0 #17456022;
}

.timeline-snippet, .architect-interview, .project-spotlights, .fact-boxes, .theme-list, .type-overview, .team-values, .milestones-grid, .architectural-terms, .period-descriptions {
  margin-bottom: 28px;
}
.timeline-snippet ul, .project-spotlights ul, .fact-boxes ul, .theme-list ul, .type-overview ul, .team-values ul, .milestones-grid, .architectural-terms ul {
  margin-bottom: 0; 
}

.milestones-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.milestones-grid > div {
  background: #162536;
  color: #C99736;
  border-radius: 11px;
  padding: 18px 24px;
  font-weight: 700;
  font-family: 'Montserrat';
  min-width: 100px;
  box-shadow: 0 1.5px 10px #C9973628;
}
@media (max-width: 768px) {
  .milestones-grid { flex-direction: column; gap: 13px; }
}

blockquote {
  font-size: 1.18rem;
  font-style: italic;
  color: #C99736;
  border-left: 4px solid #C99736;
  padding: 9px 0 9px 20px;
  margin-bottom: 20px;
  background: #132032;
}
.quote-highlights blockquote {
  color: #174560;
  background: #E8F0F6;
  border-left: 4px solid #174560;
  margin-top: 12px;
}

/* .card-content example, for advanced content-cards */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

/* ---------------- GALLERY & PERIOD ELEMENTS ---------------- */
.theme-list ul, .type-overview ul, .period-descriptions ul, .architectural-terms ul {
  margin-bottom: 0;
}
.theme-list ul > li, .type-overview ul > li {
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .container { padding: 0 2vw; }
}

/* ---------------- BUTTONS & micro-interactions ---------------- */
button, .cta-button {
  cursor: pointer;
  outline: none;
  transition: background 0.16s, color 0.14s, box-shadow 0.19s;
}
button:active, .cta-button:active {
  transform: scale(0.97);
}

/* Secondary Buttons (for cookie banner, modals) */
.button-secondary {
  background: #174560;
  color: #C99736;
  border: 1.2px solid #C99736;
  border-radius: 28px;
  padding: 10px 20px;
  font-family: 'Montserrat';
  font-weight: 600;
  font-size: 1.1rem;
  margin-right: 12px;
  margin-bottom: 6px;
  transition: background 0.22s, color 0.17s;
}
.button-secondary:hover, .button-secondary:focus {
  background: #C99736;
  color: #132032;
  border-color: #FFD992;
}

.button-text {
  background: none;
  border: none;
  color: #C99736;
  padding: 0 0 0 2px;
  font: inherit;
  font-family: 'Montserrat';
  font-weight: 700;
  text-decoration: underline;
  transition: color 0.16s;
}
.button-text:hover, .button-text:focus { color: #ffd984; }

/* ---------------- FOOTER ---------------- */
footer {
  margin-top: 64px;
  background: #174560;
  color: #E8F0F6;
  padding: 36px 0 12px 0;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  width: 100%;
}
footer nav {
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
footer nav a {
  color: #E8F0F6;
  font-size: 1.04rem;
  margin-bottom: 7px;
  border-bottom: 1.2px solid transparent;
  transition: color 0.13s, border 0.13s;
}
footer nav a:hover, footer nav a:focus {
  color: #C99736;
  border-bottom: 1.2px solid #C99736;
}
.footer-contact {
  margin-right: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: flex-end;
}
.footer-contact img {
  width: 41px;
  height: auto;
  margin-bottom: 10px;
}
.footer-contact a {
  color: #C99736;
  font-weight: 700;
  font-size: 1rem;
}
@media (max-width: 950px) {
  footer .container {
    flex-direction: column;
    gap: 22px;
    align-items: center;
  }
  .footer-contact { align-items: flex-start; }
}

/* ---------------- COOKIE CONSENT BANNER ---------------- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  z-index: 1200;
  background: #0e1925;
  color: #E8F0F6;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  justify-content: space-between;
  box-shadow: 0 -2px 16px #17456080;
  padding: 22px 28px;
  font-size: 1rem;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.3s, transform 0.35s;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(36px);
}
.cookie-banner .actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
}
.cookie-banner .actions .button-secondary, .cookie-banner .actions .button-text {
  margin-bottom: 0;
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 8px;
    font-size: 0.99rem;
  }
  .cookie-banner .actions {
    gap: 9px;
  }
}

/* ---------------- COOKIE SETTINGS MODAL ---------------- */
.cookie-modal-overlay {
  position: fixed;
  z-index: 1600;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(17,34,45, 0.81);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.24s;
}
.cookie-modal-overlay.active {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal {
  background: #192940;
  color: #E8F0F6;
  min-width: 300px;
  max-width: 360px;
  width: 92vw;
  border-radius: 22px 22px 0 0;
  margin-bottom: 0;
  box-shadow: 0 6px 44px #1745606a;
  padding: 34px 26px 22px 26px;
  position: relative;
  transform: translateY(100%);
  transition: transform 0.29s cubic-bezier(.87,-0.41,.17,1.42);
}
.cookie-modal-overlay.active .cookie-modal {
  transform: translateY(0);
}
.cookie-modal h3 {
  margin-top: 0;
  font-size: 1.25rem;
  color: #C99736;
}
.cookie-modal .cookie-modal-close {
  background: none;
  border: none;
  color: #C99736;
  font-size: 1.9rem;
  font-weight: 700;
  cursor: pointer;
  position: absolute;
  top: 17px;
  right: 25px;
  z-index: 1601;
}
.cookie-modal .category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 15px 0;
}
.cookie-modal label {
  font-size: 1rem;
  font-family: 'Source Sans Pro';
  color: #E8F0F6;
  cursor: pointer;
}
.cookie-modal input[type=checkbox] {
  accent-color: #C99736;
  width: 18px;
  height: 18px;
}
.cookie-modal .category.essential label {
  color: #C99736;
  font-weight: 700;
  opacity: .97;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 20px;
  justify-content: flex-end;
}
@media (max-width: 768px) {
  .cookie-modal {
    padding: 26px 8px 18px 17px;
    max-width: 99vw;
  }
}

/* ---------------- Z-INDEX AND NO OVERLAP ---------------- */
.mobile-menu, .cookie-banner, .cookie-modal-overlay {
  z-index: 1200;
}
header, nav, footer {
  z-index: 10;
  position: relative;
}

/* ---------------- RESPONSIVE TYPOGRAPHY & SPACING ---------------- */
@media (max-width: 510px) {
  h1 { font-size: 1.44rem; }
  h2 { font-size: 1.13rem; }
  h3 { font-size: 1rem; }
  p, li { font-size: .96rem; }
}

/* ---------------- UTILITY CLASSES ---------------- */
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mb-20 { margin-bottom: 20px !important; }
.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }

/* ---------------- SCROLLBAR & SELECTION EFFECTS ---------------- */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-thumb {
  background: #174560cc;
  border-radius: 12px;
}
::selection {
  background: #C99736;
  color: #132032;
}

/* ---------------- FOCUS VISIBLE OUTLINES ---------------- */
:focus-visible {
  outline: 2.2px solid #C99736;
  outline-offset: 1.5px;
}

/* ---------------- SLIGHT NEON EFFECTS (NEON ACCENTS) ---------------- */
.cta-button, .features-grid > div:hover, .card, .fact-boxes ul li, .card-content, .timeline-snippet, .feature-item {
  box-shadow: 0 0 18px 2px #17456044;
}
.cta-button:hover, .cta-button:focus {
  box-shadow: 0 0 22px 4px #C9973644, 0 1px 32px #ffd98444;
}

/* ---------------- INTERACTIVE ELEMENT TRANSITIONS ---------------- */
.card, .features-grid > div, .testimonial-card, .feature-item {
  transition: box-shadow 0.18s, background 0.16s, color 0.15s;
}

/* Hide non-JS fallback elements for cookie/modal (optional) */
.noscript { display: none; }
