/* =====================================================
   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, 
main, 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F8F6F3;
  color: #1a1a1a;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  outline: none;
  background: none;
  border: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* =====================================================
   BRANDING VARIABLES (w/ fallbacks)
   ===================================================== */
:root {
  --color-primary: #365C2A;
  --color-secondary: #8CAFA0;
  --color-accent: #F2E8C6;
  --color-gold: #BFA455;
  --color-premium-dark: #22292F;
  --color-premium-light: #FAF8F4;
  --color-premium-background: #F8F6F3;
  --color-shadow: rgba(36, 32, 24, 0.08);
  --color-border: #E5DFD0;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
  --radius-md: 16px;
  --radius-sm: 8px;
  --radius-full: 999px;
}

/* =====================================================
   BASE TYPOGRAPHY, HEADINGS, FONT SCALES
   ===================================================== */
body {
  background: var(--color-premium-background);
  color: var(--color-premium-dark);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
}
h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 {
  font-size: 2.25rem;
  line-height: 1.15;
  margin-bottom: 16px;
}
h2 {
  font-size: 1.75rem;
  line-height: 1.2;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
  line-height: 1.25;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.125rem;
}
p, ul, ol, li {
  color: var(--color-premium-dark);
  font-size: 1rem;
  line-height: 1.7;
}
p {
  margin-bottom: 16px;
}
ul, ol {
  margin-bottom: 16px;
}
strong, b {
  font-weight: 700;
  color: var(--color-primary);
}

/* LISTS & CONTENT */
ul li, ol li {
  margin-bottom: 8px;
  padding-left: 0;
  font-size: 1rem;
}

/* =====================================================
   CONTAINERS, LAYOUTS, SPACING
   ===================================================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: var(--radius-md);
  box-shadow: none;
}
@media (min-width: 768px) {
  .section {
    padding: 60px 40px 60px 40px;
    margin-bottom: 80px;
  }
}

/* FLEXBOX LAYOUTS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  padding: 24px;
  box-shadow: 0 2px 8px var(--color-shadow);
  position: relative;
  transition: box-shadow 0.3s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 4px 22px rgba(36,32,24,0.15);
  transform: translateY(-4px) scale(1.015);
}
.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: stretch;
    gap: 20px;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px 0 rgba(36,32,24,0.10);
  border-left: 4px solid var(--color-gold);
  transition: box-shadow 0.25s;
}
.testimonial-card p {
  font-size: 1.125rem;
  color: #181818;
}
.testimonial-author {
  color: var(--color-secondary);
  font-weight: 700;
  font-size: 1rem;
  margin-left: auto;
}
@media (max-width: 600px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  min-width: 220px;
  flex: 1 0 220px;
  box-shadow: 0 2px 10px 0 rgba(36,32,24,0.07);
  margin-bottom: 20px;
  border-top: 3px solid var(--color-gold);
  transition: box-shadow 0.2s, border-top-color 0.3s;
}
.feature-item img {
  width: 40px;
  height: 40px;
}
.feature-item h3 {
  margin: 0 0 4px 0;
  font-size: 1.1rem;
  color: var(--color-primary);
}
.feature-item p {
  color: var(--color-premium-dark);
}
.feature-item:hover {
  box-shadow: 0 4px 18px rgba(191,164,85,.13);
  border-top-color: var(--color-primary);
}
@media (max-width: 1000px) {
  .feature-item {min-width: 170px;}
}
@media (max-width: 700px) {
  .feature-item {min-width: 100%; width: 100%;}
  .feature-grid {gap: 12px;}
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}

/* USP (About page) */
.usp-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.usp-item {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 2px 10px rgba(36,32,24,.05);
  flex: 1 1 220px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  border-bottom: 3px solid var(--color-gold);
}
.usp-item img {
  width: 38px;
  height: 38px;
}
.usp-item h3 {
  color: var(--color-primary);
}
@media (max-width: 700px) {
  .usp-list {flex-direction: column; gap: 16px;}
  .usp-item {min-width: 100%; width: 100%;}
}

/* PROJECTS & SECTIONS */
.project-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.text-section {
  flex: 1 1 300px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 6px rgba(36,32,24,0.07);
  padding: 24px 20px;
  margin-bottom: 20px;
}
@media (max-width:900px) {
  .project-list {flex-direction: column;}
  .text-section {width: 100%;}
}


/* =====================================================
   HEADER & NAVIGATION
   ===================================================== */
header {
  background: #fff;
  box-shadow: 0 2px 9px rgba(36,32,24,0.06);
  padding: 0; 
  position: relative;
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
}
.logo {
  display: flex;
  align-items: center;
  margin-right: 24px;
  height: 60px;
}
.logo img {
  width: auto;
  height: 48px;
  max-height: 50px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 26px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-premium-dark);
  font-size: 1rem;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-gold);
  border-bottom: 2px solid var(--color-gold);
}
.btn-primary {
  font-family: var(--font-display);
  font-size: 1.03rem;
  background: var(--color-primary);
  color: #fff;
  padding: 12px 34px;
  border-radius: var(--radius-full);
  border: none;
  font-weight: 700;
  letter-spacing: .03em;
  margin-left: 30px;
  box-shadow: 0 2px 14px rgba(36,32,24,0.10);
  transition: background 0.2s, color 0.2s, box-shadow .2s, transform .16s;
  cursor: pointer;
  outline: none;
  position: relative;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-gold);
  color: var(--color-premium-dark);
  box-shadow: 0 6px 24px 0 rgba(191,164,85, .15);
  transform: translateY(-2px) scale(1.038);
}
.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: 12px 34px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 700;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  margin-top: 10px;
  cursor: pointer;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-gold);
  color: var(--color-premium-dark);
  border-color: var(--color-gold);
}

/* Hamburger mobile menu button */
.mobile-menu-toggle {
  display: none;
  background: var(--color-gold);
  color: var(--color-premium-dark);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: 2rem;
  border: none;
  margin-left: 24px;
  cursor: pointer;
  transition: background 0.19s, box-shadow 0.15s;
  z-index: 50;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--color-gold);
}

/* Responsive header nav */
@media (max-width: 1000px) {
  header .container {
    flex-wrap: wrap;
    gap: 10px;
  }
  .main-nav {
    gap: 16px;
  }
  .btn-primary {
    margin-left: 10px;
  }
}
@media (max-width: 900px) {
  .main-nav, .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* =====================================================
   MOBILE MENU OVERLAY
 ===================================================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: rgba(34,41,47, 0.84);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.85,.15,.1,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: var(--color-gold);
  color: var(--color-premium-dark);
  border-radius: var(--radius-full);
  border: none;
  margin: 22px 25px 0 0;
  font-size: 2.1rem;
  font-weight: bold;
  padding: 6px 24px 6px 13px;
  cursor: pointer;
  transition: background 0.19s, color 0.19s;
  z-index: 200;
  align-self: flex-end;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-primary);
  color: #fff;
}
.mobile-nav {
  margin: 36px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  align-items: flex-end;
  padding-right: 48px;
}
.mobile-nav a {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  padding: 9px 24px;
  border-radius: var(--radius-full);
  background: transparent;
  transition: background 0.18s, color 0.17s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-gold);
  color: var(--color-premium-dark);
}
@media (max-width: 600px) {
  .mobile-menu-close {
    margin: 20px 14px 0 0;
    font-size: 1.6rem;
    padding: 5px 16px 5px 6px;
  }
  .mobile-nav {
    padding-right: 12px;
    gap: 16px;
  }
}

/* =====================================================
   HERO SECTION (homepage etc.)
   ===================================================== */
main > section:first-child {
  background: var(--color-premium-light);
  border-radius: var(--radius-md);
  box-shadow: 0 7px 28px 0 rgba(191,164,85,.05);
  padding: 60px 0 48px 0;
}
main > section:first-child h1 {
  font-size: 2.6rem;
  font-family: var(--font-display);
  color: var(--color-primary);
  margin-bottom: 20px;
  line-height: 1.13;
}
main > section:first-child p {
  color: var(--color-premium-dark);
  font-size: 1.18rem;
  margin-bottom: 28px;
}
@media (max-width: 700px) {
  main > section:first-child {
    padding: 34px 0 32px 0;
  }
  main > section:first-child h1 {
    font-size: 1.67rem;
  }
}

/* CTA Section */
main > section:last-child {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 7px 24px 0 rgba(36,32,24,0.08);
  padding: 50px 0 42px 0;
}
main > section:last-child h2, main > section:last-child p {
  color: #fff;
}
main > section:last-child a.btn-primary {
  background: #fff;
  color: var(--color-primary);
  margin-top: 20px;
  box-shadow: 0 2px 20px rgba(191,164,85, .08);
}
main > section:last-child a.btn-primary:hover, 
main > section:last-child a.btn-primary:focus {
  background: var(--color-gold);
  color: var(--color-premium-dark);
}

/* CONTACT DETAILS */
.contact-info, .address-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px 0 rgba(36,32,24,.06);
  font-size: 1rem;
}
.contact-detail img {
  width: 28px; height: 28px;
}
@media (max-width: 700px) {
  .contact-info, .address-details {
    gap: 10px;
  }
  .contact-detail {font-size: 0.97rem;}
}

/* SEARCH FORM (blog) */
.search-form {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  padding: 16px 19px;
  margin-top: 6px;
  border-radius: var(--radius-md);
  box-shadow: 0 1px 7px 0 rgba(36,32,24,0.05);
}
.search-form label {
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 1.07rem;
}
.search-form input[type="text"] {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 9px 15px;
  font-size: 1rem;
  background: #fafafa;
  min-width: 110px;
  transition: border 0.16s;
}
.search-form input[type="text"]:focus {
  outline: 2px solid var(--color-gold);
  border-color: var(--color-gold);
}
.search-form button[type="submit"] {
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: var(--radius-full);
  padding: 9px 24px;
  transition: background .19s, color .18s;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}
.search-form button[type="submit"]:hover, .search-form button[type="submit"]:focus {
  background: var(--color-gold);
  color: var(--color-premium-dark);
}

/* ADDRESS DETAIL ICON */
.address-details img {
  width: 24px; height: 24px;
  margin-right: 6px;
}
.map-info {
  background: var(--color-accent);
  border-radius: var(--radius-md);
  padding: 20px 20px;
  margin: 14px 0 6px 0;
  font-size: 1rem;
  color: var(--color-premium-dark);
  box-shadow: 0 1px 6px 0 rgba(197, 184, 128, 0.05);
}

/* ADDRESS */
.address-details p {
  display: flex;
  align-items: center;
  font-weight: 500;
  color: var(--color-primary);
}

/* =====================================================
   FOOTER
   ===================================================== */
footer {
  background: #22292F;
  padding: 40px 0 26px 0;
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
footer .container {
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  margin-bottom: 19px;
}
.footer-nav a {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.19s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-gold);
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin-bottom: 16px;
}
.footer-contact span {
  display: flex;
  align-items: center;
  color: #ded8c2;
  font-size: 0.97rem;
}
.footer-contact img {
  width: 20px; height: 20px;
  margin-right: 5px;
}
footer > .container > span {
  color: #aaa;
  font-size: 0.98rem;
  margin-top: 6px;
  letter-spacing: 0.017em;
}
@media (max-width: 900px) {
  .footer-nav, .footer-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* =====================================================
   COOKIE BANNER & CONSENT MODAL
   ===================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  z-index: 101;
  background: #fff;
  color: var(--color-premium-dark);
  box-shadow: 0 -2px 20px rgba(36,32,24,0.12);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 18px 10px 18px 10px;
  font-size: 1rem;
  transition: bottom 0.35s;
  border-top: 2px solid var(--color-gold);
}
.cookie-banner p {
  margin-bottom: 0;
  color: var(--color-premium-dark);
  font-family: var(--font-body);
  font-size: 1rem;
}
.cookie-btn {
  border-radius: var(--radius-full);
  padding: 10px 26px;
  background: var(--color-gold);
  color: var(--color-premium-dark);
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  margin-right: 8px;
  transition: background 0.19s, color 0.19s;
  cursor: pointer;
  margin-bottom: 0;
  font-size: 1rem;
}
.cookie-btn:focus, .cookie-btn:hover {
  background: var(--color-primary);
  color: #fff;
}
.cookie-btn.reject {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-btn.reject:focus, .cookie-btn.reject:hover {
  background: var(--color-gold);
  color: var(--color-premium-dark);
}
.cookie-btn.settings {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  margin-right: 0;
}
.cookie-btn.settings:focus, .cookie-btn.settings:hover {
  background: var(--color-primary);
  color: #fff;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.97rem;
    padding: 10px 8px 12px 8px;
  }
}

.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(36,32,24,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #fff;
  color: var(--color-premium-dark);
  border-radius: var(--radius-md);
  box-shadow: 0 6px 32px rgba(191,164,85,.11);
  padding: 42px 34px 34px 34px;
  min-width: 320px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
.cookie-modal-content h2 {
  font-size: 1.42rem;
  color: var(--color-primary);
  margin-bottom: 10px;
}
.cookie-modal-content .cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}
.cookie-modal-content label {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 1.08rem;
  font-weight: 500;
}
.cookie-modal-content input[type="checkbox"] {
  accent-color: var(--color-gold);
  width: 20px;
  height: 20px;
}
.cookie-modal-content .cookie-description {
  font-size: 0.98rem;
  color: #666;
  margin-left: 38px;
}
.cookie-modal-close {
  position: absolute;
  top: 18px; right: 16px;
  background: var(--color-gold);
  color: var(--color-premium-dark);
  border-radius: var(--radius-full);
  border: none;
  font-size: 1.5rem;
  font-weight: 700;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(36,32,24,.08);
  transition: background .16s, color .16s;
  z-index: 400;
}
.cookie-modal-close:focus, .cookie-modal-close:hover {
  background: var(--color-primary);
  color: #fff;
}
.cookie-modal-footer {
  display: flex;
  gap: 14px;
  margin-top: 16px;
  flex-wrap: wrap;
}
@media (max-width: 500px) {
  .cookie-modal-content {
    padding: 20px 8px 10px 8px;
    min-width: 0;
    max-width: 99vw;
  }
}

/* =====================================================
   MICRO-INTERACTIONS & ANIMATIONS
   ===================================================== */
a, button, .btn-primary, .btn-secondary, .feature-item, .card, .testimonial-card {
  transition: all 0.16s cubic-bezier(.77,.2,.05,1);
}
.btn-primary, .btn-secondary, .cookie-btn, .cookie-btn.settings {
  transition: background 0.14s, color 0.14s, border 0.14s, transform 0.14s;
}
.card:hover, .feature-item:hover, .testimonial-card:hover {
  transform: translateY(-4px) scale(1.012);
  box-shadow: 0 8px 32px rgba(191,164,85,0.13);
}

/* =====================================================
   GENERAL RESPONSIVENESS
   ===================================================== */
@media (max-width: 800px) {
  .container {
    padding: 0 8px;
  }
}
@media (max-width: 700px) {
  .section {
    padding: 28px 6px 32px 6px;
    margin-bottom: 42px;
  }
  .content-wrapper {
    gap: 16px;
  }
  h2 { font-size: 1.26rem; }
}

/* =====================================================
   UTILITIES & HELPERS
   ===================================================== */
.rounded-full {border-radius: var(--radius-full);}
.text-center {text-align: center;}
.mt-20 {margin-top: 20px;}
.mb-16 {margin-bottom: 16px;}
.flex {display: flex;}
.items-center {align-items: center;}
.gap-20 {gap: 20px;}

/* Hide visually but available for screenreaders */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

