/* ========================
   CSS RESET & BASE STYLES
=========================== */

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 {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: 'Source Sans Pro', Arial, Helvetica, sans-serif;
  background: #F7F4EF;
  color: #384150;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: #384150;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #a88938;
  text-decoration: underline;
}
ul, ol {
  padding-left: 20px;
  margin-bottom: 16px;
}
strong { font-weight: 700; }

/* ========================
   VARIABLES (with fallbacks)
=========================== */
:root {
  --primary-color: #384150;
  --secondary-color: #A8BAB0;
  --accent-color: #F7F4EF;
  --gold: #bfa046;
  --gold-dark: #91752d;
  --text-dark: #23272E;
  --text-light: #fff;
  --card-bg: #fff;
  --footer-bg: #23272E;
  --shadow: 0 2px 12px rgba(50,50,50,0.07), 0 1.5px 7px rgba(50,40,10,0.10);
  --radius-lg: 24px;
  --radius-md: 14px;
  --transition: 0.24s cubic-bezier(.65,.05,.43,.98);
  --max-width: 1200px;
  --brand-font: 'Montserrat', Arial, Helvetica, sans-serif;
  --body-font: 'Source Sans Pro', Arial, Helvetica, sans-serif;
}

/* ========================
   TYPOGRAPHY
=========================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--brand-font);
  color: var(--primary-color);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}
h1 { font-size: 2.5rem; line-height: 1.18; margin-bottom: 24px; }
h2 { font-size: 2rem; line-height: 1.22; margin-bottom: 20px; }
h3 { font-size: 1.25rem; line-height: 1.24; margin-bottom: 12px; }
h4 { font-size: 1rem; font-weight: 600; margin-bottom: 10px; }
h5, h6 { font-size: 0.95rem; }
p, li { font-family: var(--body-font); font-size: 1rem; margin-bottom: 12px; color: var(--primary-color); }

@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.3rem; }
  h3 { font-size: 1.35rem; }
}

/* ========================
   SPACING LAYOUT
=========================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 900px) {
  .content-wrapper {
    gap: 32px;
  }
}

/* ========================
   FLEXBOX PATTERNS & CARDS
=========================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 24px;
  min-width: 260px;
  flex: 1 1 300px;
  transition: box-shadow var(--transition), transform var(--transition);
  border: 1.5px solid #ece6cc;
}
.card:hover, .card:focus {
  box-shadow: 0 4px 24px 0 rgba(191, 160, 70, 0.18);
  transform: translateY(-4px) scale(1.012);
  border-color: var(--gold);
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.service-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  border: 1.5px solid #ece6cc;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px;
  flex: 1 1 270px;
  min-width: 260px;
  max-width: 320px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow var(--transition), border var(--transition);
}
.service-card:hover {
  box-shadow: 0 6px 32px 0 rgba(191, 160, 70, .14);
  border-color: var(--gold-dark);
}
.service-card img {
  width: 46px; height: 46px; margin-bottom: 6px;
}
.service-card h3 { font-size: 1.18rem; margin-bottom: 6px; }
.service-card span {
  font-family: var(--brand-font);
  color: var(--gold);
  font-size: 1.04rem;
  font-weight: 600;
  margin-top: 6px;
}

/* ===============================
   VISUAL LAYOUT (Sections, Grids)
================================== */
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

ul, ol {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff6e8;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(191, 160, 70, .08);
  max-width: 600px;
  width: 100%;
  border-left: 6px solid var(--gold);
  transition: box-shadow .18s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 40px 0 rgba(191,160,70,0.13), var(--shadow);
}
.testimonial-card p {
  color: var(--text-dark);
  font-size: 1.06rem;
  font-family: var(--body-font);
  font-weight: 500;
  text-align: left;
}
.testimonial-meta {
  font-family: var(--brand-font);
  color: var(--primary-color);
  font-size: 1rem;
  font-style: italic;
}
.testimonial-card img {
  width: 25px; display: inline-block; margin: 0 1px 0 0;
}

/* Project descriptions on gallery */
.project-descriptions h3 {
  color: var(--gold-dark);
  margin-top: 18px;
}

.highlighted-articles {
  background: var(--secondary-color);
  padding: 18px 22px;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
}

.article-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 18px;
}
.article-preview {
  background: #fff;
  padding: 22px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  flex: 1 1 240px;
  min-width: 200px;
  color: var(--primary-color);
}

.categories-filter span {
  background: #ece6cc;
  color: var(--primary-color);
  border-radius: 15px;
  padding: 3px 14px;
  font-size: 0.98rem;
  margin-right: 6px;
  font-family: var(--brand-font);
}
.categories-filter { margin-bottom: 8px; }

.text-section { margin-bottom: 20px; }
.address-map { margin-bottom: 20px; }

/* ===============================
   HERO & CTA BUTTONS
================================== */
.hero {
  background: #fff;
  padding: 54px 0 44px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  box-shadow: 0 3px 28px rgba(56,65,80,0.03);
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}
.hero p {
  font-size: 1.18rem;
  margin-bottom: 28px;
  color: var(--primary-color);
}
.hero .cta-btn { font-size: 1.18rem; }

.cta {
  background: var(--accent-color);
  border-top: 2.5px solid var(--gold);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -2px 16px rgba(191,160,70,0.09);
  padding: 46px 0 36px 0;
  margin-top: 48px;
}
.cta h2 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.cta-btn {
  display: inline-block;
  background: linear-gradient(90deg, #bfa046 80%, #c6b072 130%);
  color: #fff;
  font-family: var(--brand-font);
  font-weight: 700;
  font-size: 1.15rem;
  padding: 14px 34px;
  border-radius: 26px;
  box-shadow: 0 5px 24px rgba(191, 160, 70,.09);
  border: none;
  cursor: pointer;
  transition: background 0.19s, color 0.13s, box-shadow 0.18s, transform 0.17s;
  margin: 12px 0;
  letter-spacing: 0.03em;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(88deg, #91752d 60%, #a88938 120%);
  color: #fffbe6;
  box-shadow: 0 8px 42px rgba(191, 160, 70, 0.16);
  transform: translateY(-2px) scale(1.025);
}

button, .cta-btn {
  outline: none;
}
button:focus-visible, .cta-btn:focus-visible {
  box-shadow: 0 0 0 3px #bfa04677;
}

/* ===============================
   HEADER & NAVIGATION
================================== */
header {
  background: #fff;
  box-shadow: 0 3px 18px rgba(56,65,80,0.07);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 20;
}
header > a img {
  height: 42px;
  margin: 12px 0 12px 14px;
}
nav {
  display: none;
}
header .cta-btn {
  display: none;
}
.mobile-menu-toggle {
  display: flex;
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  height: 48px;
  width: 48px;
  margin-left: auto;
  margin-right: 14px;
  transition: background .16s;
  border-radius: 48px;
  cursor: pointer;
  z-index: 27;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #ece6cc;
}

/* --- Desktop Nav --- */
@media (min-width: 1000px) {
  header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: 84px;
  }
  nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    margin-left: 36px;
  }
  nav a {
    color: var(--primary-color);
    font-family: var(--brand-font);
    font-size: 1.07rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 8px 18px;
    border-radius: 8px;
    transition: color 0.12s, background 0.13s;
  }
  nav a:hover, nav a:focus {
    color: var(--gold-dark);
    background: #f3efdc;
  }
  header .cta-btn {
    display: inline-block;
    margin-left: 38px;
  }
  .mobile-menu-toggle {
    display: none;
  }
}

/* ===============================
   MOBILE MENU STYLES
================================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(56, 65, 80, 0.97);
  transform: translateX(-110vw);
  transition: transform 0.39s cubic-bezier(.55,.06,.39,.97);
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 2.3rem;
  margin: 28px 24px 14px 18px;
  align-self: flex-end;
  cursor: pointer;
  transition: color 0.12s, background 0.15s;
  border-radius: 50%;
  padding: 2px 8px;
  z-index: 84;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #fffde6;
  background: var(--gold-dark);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 30px 0 0 38px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--brand-font);
  font-size: 1.28rem;
  font-weight: 600;
  padding: 10px 0 10px 2px;
  border-radius: 11px;
  transition: background 0.13s;
  margin-bottom: 6px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(255,220,130,0.09);
  color: var(--gold);
  padding-left:14px;
}
@media (min-width: 1000px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ===============================
   FOOTER STYLES
================================== */
footer {
  background: var(--footer-bg);
  color: #fff;
  margin-top: 60px;
  font-size: 1rem;
}
.footer-primary {
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 24px 12px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 110px;
  border-bottom: 1.5px solid #3f4c57;
}
.footer-primary > a img {
  height: 48px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  color: #fff9e1;
  font-size: 1.02rem;
  font-family: var(--brand-font);
  padding: 4px 8px;
  transition: color 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--gold);
}
.footer-contact {
  color: #e5e6e8;
  font-size: 0.99rem;
  font-family: var(--body-font);
}
.footer-contact img {
  height: 17px;
  vertical-align: middle;
  margin-top: -2px;
  margin-right: 4px;
}
.footer-secondary {
  padding: 18px 0 14px 0;
  text-align: center;
  background: #23272e;
  font-size: 0.98rem;
  color: #a89e87;
}

@media (max-width: 800px) {
  .footer-primary {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 10px 6px 10px;
  }
}

/* ===============================
   COOKIE CONSENT BANNER
================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #23272e;
  color: #fff;
  box-shadow: 0 -3px 30px rgba(56,65,80,0.13);
  padding: 24px 15px 18px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  z-index: 9999;
  width: 100vw;
  font-size: 1rem;
  animation: cookie-banner-in 0.44s cubic-bezier(.67,.07,.38,.98);
}
@keyframes cookie-banner-in {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner__buttons {
  display: flex;
  flex-direction: row;
  gap: 20px;
}
.cookie-banner button, .cookie-banner .cta-btn {
  min-width: 124px;
  padding: 10px 26px;
  font-family: var(--brand-font);
  font-size: 1rem;
  border-radius: 21px;
  border: none;
  margin-right: 4px;
  transition: background var(--transition), color var(--transition);
  font-weight: 600;
  cursor: pointer;
}
.cookie-banner .accept {
  background: var(--gold);
  color: var(--text-light);
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: var(--gold-dark);
}
.cookie-banner .reject {
  background: #b86f39;
  color: #fffbe6;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #773a19;
}
.cookie-banner .settings {
  background: #fff;
  color: var(--primary-color);
  border: 1.2px solid #999;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #ece3cf;
  color: var(--gold-dark);
}

/* --- COOKIE MODAL --- */
.cookie-modal {
  position: fixed;
  z-index: 10000;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(56, 65, 80, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookie-modal-in 0.40s;
}
@keyframes cookie-modal-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal__dialog {
  background: #fff;
  color: var(--primary-color);
  border-radius: var(--radius-lg);
  padding: 38px 30px 30px 30px;
  box-shadow: 0 10px 50px rgba(191, 160, 70, 0.16), 0 2px 15px rgba(40,31,5,0.07);
  max-width: 420px;
  width: 94vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: modal-dialog-in 0.30s cubic-bezier(.94,.25,.2,.99);
}
@keyframes modal-dialog-in {
  from {transform: scale(0.92); opacity:0;}
  to {transform: scale(1); opacity:1;}
}
.cookie-modal__dialog h2 {
  margin-bottom: 8px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 14px; right: 19px;
  background: none;
  color: var(--gold);
  border: none;
  font-size: 1.55rem;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 50%;
  transition: background 0.13s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  background: #fffbe7;
}
.cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 14px 0 10px 0;
}
.cookie-modal__category {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 1rem;
  font-family: var(--body-font);
}
.cookie-modal__category label {
  flex: 1 1 auto;
}
.cookie-modal__category input[type=checkbox] {
  accent-color: var(--gold);
  width: 18px; height: 18px;
}
.cookie-modal__category .always {
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 0.99rem;
  margin-left: 6px;
}
.cookie-modal__actions {
  display: flex;
  gap: 16px;
  margin-top: 18px;
  align-items: flex-end;
  justify-content: flex-end;
}
.cookie-modal__actions .cta-btn {
  margin: 0;
  padding: 11px 28px;
  font-size: 1.01rem;
}

/* ========================
   RESPONSIVE DESIGN
=========================== */
@media (max-width: 900px) {
  .service-list { flex-direction: column; }
  .card-container, .content-grid { flex-direction: column; }
  .about-snippet ul, .section ul, .section ol { gap: 10px; }
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 40px;
    padding: 26px 7px 26px 12px;
  }
  .hero {
    padding: 27px 0 20px 0;
    min-height: 320px;
    border-radius: 0;
  }
  .cta {
    padding: 34px 0 24px 0;
    border-radius: 23px 23px 0 0;
  }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.45rem; }
  .footer-primary { padding: 19px 6px 7px 8px; gap: 18px; }
  .testimonial-card { max-width: 100%; border-radius: 18px; }
  .text-image-section { flex-direction: column; gap: 16px; align-items: flex-start; }
  .article-list { flex-direction: column; }
  .cookie-modal__dialog { padding: 20px 7px 18px 10px; max-width: 98vw; }
}
@media (max-width: 480px) {
  .footer-secondary { font-size: 0.91rem; }
  .footer-primary { gap: 12px; }
  .cookie-modal__dialog { padding: 13px 2px 14px 5px; }
}

/* ========================
   UTILITIES & ACCESSIBILITY
=========================== */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  border: 0;
}
[tabindex="0"]:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ===========
   MICRO EFFECTS
============== */
*:focus-visible {
  outline: 2px solid var(--gold);
}

/* Subtle hover shadow for any card */
.card, .service-card, .testimonial-card, .article-preview {
  transition: box-shadow 0.15s, transform 0.16s;
}
.card:active, .service-card:active, .article-preview:active {
  transform: scale(0.97);
}

/* ===========
   DETAILS
============== */
hr {
  margin: 24px 0;
  border: none;
  border-top: 1.5px solid #ece6cc;
}

/* ===========
   Print style minimal
============== */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  body { background: #fff; }
}
