/* ----------------- 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,
b, 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 {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  background: #F5F3EF;
  color: #254153;
  font-family: 'Lato', Arial, sans-serif;
  min-height: 100vh;
}

*, *:before, *:after {
  box-sizing: inherit;
}
a {
  background: none;
  text-decoration: none;
  color: inherit;
  transition: color 0.2s cubic-bezier(.4,0,.2,1);
}
ul, ol {
  padding-left: 24px;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
button {
  outline: none;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

/* ----------------- BRAND FONTS ------------------ */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Lato:400,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #254153;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  line-height: 1.17;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  line-height: 1.19;
}
h3 {
  font-size: 1.375rem;
  margin-bottom: 16px;
}
h4, h5, h6 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}
.subheadline {
  font-size: 1.25rem;
  font-family: 'Lato', Arial, sans-serif;
  color: #A7BCB9;
  margin-bottom: 18px;
}
p, li, span, a, ul, ol {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
}
strong {
  font-weight: 700;
}

/* ------- COLOR VARIABLES (with fallback) ------- */
:root {
  --color-primary: #254153;
  --color-secondary: #A7BCB9;
  --color-accent: #F5F3EF;
  --color-gold: #C7A16A;
  --color-gold-dark: #9D8353;
  --color-white: #fff;
  --color-grey-light: #EFF3F1;
  --color-black: #222;
}

/* ----------------- LAYOUT SYSTEMS ------------------- */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto 0 auto;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
@media (max-width: 900px) {
  .section {
    padding: 32px 8px;
    margin-bottom: 40px;
  }
}

/* FLEXBOX LAYOUT PATTERNS */
.card-container,
.card-grid,
.feature-grid,
.project-list,
.service-grid,
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.card {
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 4px 18px rgba(39,54,71,0.04);
  border-radius: 14px;
  background: #fff;
  transition: box-shadow 0.2s cubic-bezier(.4,0,.2,1);
}
.card:hover {
  box-shadow: 0 8px 36px rgba(199,161,106,0.15);
  z-index: 1;
}

.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;
    gap: 18px;
    align-items: flex-start;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff;
  border: 1.5px solid var(--color-gold, #C7A16A);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(39,54,71,0.04);
  font-size: 1.05rem;
  color: #222;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.testimonial-card:hover {
  border-color: var(--color-gold-dark, #9D8353);
  box-shadow: 0 8px 24px rgba(199,161,106,0.09);
}
.testimonial-meta {
  font-size: 0.985rem;
  color: var(--color-secondary);
  font-style: italic;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 15px;
  padding: 28px 20px;
  min-width: 220px;
  flex: 1 1 270px;
  box-shadow: 0 2px 10px rgba(39,54,71,0.06);
  border: 1px solid #EEE8DC;
  margin-bottom: 20px;
  position: relative;
}
.feature-item img {
  width: 42px;
  height: 42px;
}
.feature-item h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--color-primary);
}
.feature-item p {
  margin: 0;
  color: #3e4b52;
}

/* Cards & Project Items */
.project-item, .service-item {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(39,54,71,0.08);
  border: 1px solid #ECE1D0;
  padding: 28px 21px 26px 21px;
  min-width: 220px;
  flex: 1 1 300px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.2s;
}
.project-item:hover, .service-item:hover {
  box-shadow: 0 4px 22px 0 rgba(39,54,71,0.15);
}

/* Responsive Card-Grid */
@media (max-width: 900px) {
  .feature-grid, .service-grid, .project-list {
    gap: 16px;
  }
  .card-container, .footer-grid {
    gap: 16px;
  }
}
@media (max-width: 600px) {
  .feature-grid, .service-grid, .project-list, .footer-grid {
    flex-direction: column;
    gap: 8px;
  }
  .card-container {
    flex-direction: column;
    gap: 14px;
  }
}

/* -------------------------------------------------- */
/* ------------------- HEADER ----------------------- */
header {
  background: #fff;
  border-bottom: 1.5px solid #ECE1D0;
  padding: 0.5rem 0 0.5rem 0;
  box-shadow: 0 2px 12px rgba(199,161,106,0.06);
  position: sticky;
  top: 0;
  z-index: 70;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  position: relative;
}
@media (max-width: 640px) {
  header .container {
    min-height: 54px;
  }
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  color: #254153;
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 3px;
  position: relative;
  transition: color 0.15s, opacity 0.15s;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--color-gold, #C7A16A);
}
.cta-primary {
  background: var(--color-gold, #C7A16A);
  color: #fff;
  border: none;
  padding: 0.5em 1.5em;
  border-radius: 25px;
  margin-left: 18px;
  font-size: 1.07rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(199,161,106,0.08);
  transition: background 0.20s, box-shadow 0.2s, color 0.2s;
  outline: none;
  cursor: pointer;
  position: relative;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--color-gold-dark,#9D8353);
  color: #fff;
  box-shadow: 0 4px 18px 0 rgba(199,161,106,.20);
  text-decoration: none;
}

/* Hide mobile menu button on desktop */
.mobile-menu-toggle {
  display: none;
  background: var(--color-gold, #C7A16A);
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(199,161,106,0.14);
  border: none;
  transition: background 0.18s, color 0.15s, box-shadow 0.18s;
  z-index: 102;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-gold-dark, #9D8353);
}
@media (max-width: 900px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
    margin-left: 14px;
  }
}

/* ----------------- MOBILE MENU --------------------- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(37, 65, 83, 0.98);
  color: #fff;
  z-index: 110;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  padding-top: 28px;
  padding-bottom: 24px;
  width: 100%;
  max-width: 100vw;
  overflow-y: auto;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2rem;
  position: absolute;
  top: 28px;
  right: 26px;
  z-index: 112;
  cursor: pointer;
  border: none;
  padding: 6px;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--color-gold, #C7A16A);
}
.mobile-nav {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  padding-left: 32px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 10px 0;
  border-radius: 6px;
  transition: background 0.1s, color 0.15s, padding-left 0.15s;
  display: block;
  width: 100%;
}
.mobile-nav a:hover {
  background: rgba(199,161,106,0.16);
  color: var(--color-gold, #C7A16A);
  padding-left: 12px;
}
@media (min-width: 901px) {
  .mobile-menu {
    display: none;
  }
}

/* ------------------ FOOTER ------------------------ */
footer {
  background: #fff;
  border-top: 1.5px solid #ECE1D0;
  padding: 42px 0 28px 0;
  color: #254153;
  font-size: 1rem;
  box-shadow: 0 -2px 16px rgba(199,161,106,0.05);
  margin-top: 60px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 170px;
}
.footer-nav a {
  color: #254153;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 0;
  transition: color 0.15s;
}
.footer-nav a:hover {
  color: var(--color-gold, #C7A16A);
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #6b8195;
  font-size: 0.98rem;
}
footer img {
  max-width: 56px;
}
@media (max-width: 900px) {
  .footer-grid {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  footer {
    padding: 26px 0 20px 0;
  }
}

/* -------------- CONTENT & UTILITIES --------------- */
ul.service-list {
  list-style: disc inside none;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
ul, ol {
  margin-bottom: 16px;
}
.blog-post {
  background: #fff;
  border: 1px solid #ECE1D0;
  border-radius: 13px;
  margin-bottom: 20px;
  padding: 24px 16px;
  box-shadow: 0 2px 8px rgba(39,54,71,0.05);
}
.blog-post h2 {
  margin-bottom: 12px;
  color: var(--color-primary);
}
.author {
  color: var(--color-secondary);
  font-size: 0.97rem;
}

/* ----- LISTS, TABLES ETC. ------ */
li {
  margin-bottom: 5px;
  color: #254153;
}
ol {
  list-style: decimal inside;
}
table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 20px;
}
th, td {
  border: 1px solid #ECE1D0;
  padding: 10px 14px;
  text-align: left;
}
th {
  font-weight: 700;
  background: #faf6ef;
}

/* -------- CONTACT DETAILS BLOCKS ----------- */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-bottom: 18px;
}
.contact-details div {
  display: flex;
  align-items: center;
  font-size: 1.08rem;
  color: #586a80;
  gap: 8px;
}
.contact-details img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* ----------- BUTTONS ------------- */
button,
input[type=button],
input[type=submit] {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 10px 30px;
  border-radius: 24px;
  background: var(--color-gold, #C7A16A);
  color: #fff;
  border: none;
  cursor: pointer;
  margin-right: 10px;
  box-shadow: 0 2px 10px rgba(199,161,106,0.09);
  transition: background 0.17s, color 0.13s, box-shadow 0.16s;
}
button:hover, input[type=button]:hover, input[type=submit]:hover {
  background: var(--color-gold-dark,#9D8353);
  color: #fff;
  box-shadow: 0 4px 16px 0 rgba(199,161,106,.14);
}

/* ------------- SPECIAL UTILS & MICRO-INTERACTIONS --------------- */
.section > .container > .content-wrapper > a.cta-primary {
  margin-top: 20px;
  display: inline-block;
}
.cta-primary:after {
  display: inline-block;
  content: '\2192';
  font-size: 1.1em;
  margin-left: 10px;
  color: #fff;
  opacity: 0.65;
  transition: opacity 0.18s, transform 0.18s;
  vertical-align: middle;
}
.cta-primary:hover:after {
  opacity: 1;
  transform: translateX(4px);
}

/* Inherit accent backgrounds for noticable blocks */
.text-section {
  background: var(--color-accent, #F5F3EF);
  padding: 24px 20px;
  border-radius: 12px;
}

/* --------- GOLD ACCENT DETAILS --------- */
hr {
  border: 0;
  border-top: 2px solid var(--color-gold, #C7A16A);
  margin: 24px 0;
}
h2, h3, .cta-primary, .card, .feature-item, .testimonial-card, .service-item, .project-item {
  box-shadow: 0 2px 9px rgba(199,161,106,0.04);
}

/* -------- Responsive Typography Scale --------- */
@media (max-width: 900px) {
  h1 {
    font-size: 2rem;
    margin-bottom: 18px;
  }
  h2 {
    font-size: 1.5rem;
    margin-bottom: 14px;
  }
  h3 {
    font-size: 1.15rem;
  }
}

/* -------------- COOKIE CONSENT BANNER --------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 999;
  width: 100vw;
  background: #fff;
  color: #254153;
  box-shadow: 0 -4px 32px rgba(39,54,71,0.17);
  display: flex;
  align-items: center;
  padding: 18px 8vw 18px 8vw;
  font-size: 1rem;
  gap: 28px;
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  border-top: 2.5px solid var(--color-gold,#C7A16A);
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner-message {
  flex: 2 1 auto;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 13px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.98rem;
  padding: 8px 19px;
  border-radius: 20px;
  border: none;
  margin-right: 0;
  background: var(--color-gold, #C7A16A);
  color: #fff;
  transition: background 0.15s, color 0.12s;
  min-width: 96px;
}
.cookie-banner button.cookie-reject {
  background: #fff;
  color: #254153;
  border: 1.5px solid var(--color-gold, #C7A16A);
}
.cookie-banner button.cookie-reject:hover, .cookie-banner button.cookie-reject:focus {
  background: #F5F3EF;
  color: var(--color-primary);
}
.cookie-banner button.cookie-settings {
  background: var(--color-secondary, #A7BCB9);
  color: #254153;
}
.cookie-banner button.cookie-settings:hover, .cookie-banner button.cookie-settings:focus {
  background: var(--color-gold, #C7A16A);
  color: #fff;
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    gap: 16px;
    padding: 14px 10px 14px 10px;
    align-items: stretch;
  }
  .cookie-banner-message {
    flex: 1 1 100%;
  }
  .cookie-banner .cookie-buttons {
    width: 100%;
    justify-content: flex-end;
    gap: 6px;
  }
}

/* -------- COOKIE MODAL -------- */
.cookie-modal-overlay {
  position: fixed;
  z-index: 1200;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(30,37,51,0.68);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(.4,0,.2,1);
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  max-width: 420px;
  width: 94vw;
  box-shadow: 0 10px 36px rgba(199,161,106,0.29);
  padding: 40px 28px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  color: #254153;
}
.cookie-modal h2 {
  color: var(--color-primary);
  font-size: 1.24rem;
  margin-bottom: 18px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.cookie-modal-category label {
  flex: 1;
  font-size: 1rem;
}
.cookie-modal-toggle {
  width: 40px;
  height: 22px;
  border-radius: 13px;
  background: var(--color-secondary, #A7BCB9);
  position: relative;
  transition: background 0.18s;
  cursor: pointer;
  flex-shrink: 0;
}
.cookie-modal-toggle input {
  display: none;
}
.cookie-modal-toggle span {
  position: absolute;
  top: 2px; left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.17s cubic-bezier(.4,0,.2,1), background 0.17s;
}
.cookie-modal-toggle input:checked + span {
  left: 19px;
  background: var(--color-gold, #C7A16A);
}
.cookie-modal .essential {
  color: #888;
  font-size: 0.92rem;
  font-style: italic;
}
.cookie-modal-close {
  position: absolute;
  top: 12px; right: 14px;
  background: none;
  color: #254153;
  font-size: 2rem;
  border: none;
  cursor: pointer;
  opacity: 0.7;
  transition: color 0.15s, opacity 0.13s;
}
.cookie-modal-close:hover,.cookie-modal-close:focus {
  color: var(--color-gold, #C7A16A);
  opacity: 1;
}
.cookie-modal-actions {
  margin-top: 10px;
  display: flex;
  gap: 11px;
}
.cookie-modal-actions button {
  min-width: 90px;
}
.cookie-modal-actions .cookie-reject {
  background: #fff;
  color: #254153;
  border: 1.5px solid var(--color-gold, #C7A16A);
}
.cookie-modal-actions .cookie-reject:hover {
  background: #F5F3EF;
  color: var(--color-primary);
}

/* ----------- MEDIA QUERIES: MAIN TYPOGRAPHY AND SPACING ------------ */
@media (max-width: 768px) {
  h1 { font-size: 1.45rem; margin-bottom: 16px; }
  h2 { font-size: 1.16rem; margin-bottom: 12px; }
  h3 { font-size: 1.07rem; }
  .section { padding: 24px 7px; margin-bottom: 30px; }
  .card, .feature-item, .testimonial-card, .service-item, .project-item {
    padding: 17px 11px;
    min-width: unset;
    width: 100%;
  }
  .footer-contact {
    font-size: 0.92rem;
    gap: 3px;
  }
}
/* ---------- FORM ELEMENTS & INPUTS (for contact/subscribe) ---------- */
input, textarea, select {
  font-size: 1rem;
  font-family: 'Lato', Arial, sans-serif;
  border: 1px solid #CBD6D5;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 14px;
  background: #fcfaf7;
  width: 100%;
  transition: border 0.1s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--color-gold, #C7A16A);
  outline: none;
}
/* ------ ADDITIONAL MICRO-INTERACTIONS & TRANSITIONS ------ */
.card, .feature-item, .testimonial-card, .service-item, .project-item {
  transition: box-shadow .22s, border-color .15s;
}
a, button, .cta-primary, .main-nav a, .footer-nav a, .mobile-nav a {
  transition: color 0.16s, background 0.16s, box-shadow 0.15s, border 0.15s;
}

/* ---------- MISCELLANEOUS DETAILS ---------- */
::-webkit-scrollbar { width: 10px; background: #f5f3ef; }
::-webkit-scrollbar-thumb {
  background: var(--color-gold, #C7A16A);
  border-radius: 6px;
}
::-webkit-input-placeholder { color: #A7BCB9; opacity: 1; }
::-moz-placeholder { color: #A7BCB9; opacity: 1; }
:-ms-input-placeholder { color: #A7BCB9; opacity: 1; }
::placeholder { color: #A7BCB9; opacity: 1; }

/* --------- HIGHLIGHT GOLD LINES ---------- */
[data-gold-line] {
  display: block;
  height: 3px;
  background: var(--color-gold, #C7A16A);
  width: 56px;
  border-radius: 2px;
  margin-bottom: 12px;
}

/* ------------- ENSURE NO OVERLAP -------------- */
.section, .card, .feature-item, .testimonial-card, .service-item, .project-item, .blog-post {
  margin-bottom: 20px;
}

/* --------- Z-INDEX LAYERS --------- */
header { z-index: 70; }
.mobile-menu { z-index: 110; }
.cookie-banner { z-index: 999; }
.cookie-modal-overlay { z-index: 1200; }

/* ------------ END OF MAIN CSS ----------------- */
