/* =======================================================
   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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F5F5F2;
  color: #28343a;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 400;
  min-height: 100vh;
  letter-spacing: 0.01em;
}
a {
  color: #29405B;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #B5936B;
  outline: none;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border-radius: 12px;
}
ul, ol {
  padding-left: 20px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}
strong {
  font-weight: 600;
}

/* =======================================================
   TYPOGRAPHY
   ======================================================= */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600&display=swap');

h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  color: #29405B;
  line-height: 1.2;
  margin-bottom: 18px;
  font-weight: 700;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.35rem;
  color: #B5936B;
}
h4, h5 {
  font-size: 1rem;
  color: #29405B;
}
p {
  margin-bottom: 14px;
  font-size: 1.05rem;
  font-family: 'Open Sans', Arial, sans-serif;
}
.text-section p {
  line-height: 1.7;
  margin-bottom: 16px;
}

.section ul, .section ol, .text-section ul, .text-section ol {
  margin-bottom: 16px;
}

.text-section ul li, .text-section ol li {
  margin-bottom: 6px;
}

blockquote {
  font-style: italic;
  margin: 0 0 8px 0;
  color: #29405B;
  line-height: 1.55;
  quotes: "\201C" "\201D" "\2018" "\2019";
}
blockquote:before {
  color: #B5936B;
  content: open-quote;
  font-size: 1.8em;
  line-height: 0;
  vertical-align: -.35em;
  margin-right: 8px;
}

/* =======================================================
   LAYOUT CONTAINERS
   ======================================================= */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
.content-wrapper {
  margin-bottom: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 2px 12px 0 rgba(41,64,91,0.07);
}

/* =======================================================
   FLEXBOX PATTERNS
   ======================================================= */
.card-container, .feature-grid, .testimonials-preview, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 3px 18px 0 rgba(41,64,91,0.09);
  margin-bottom: 20px;
  position: relative;
  padding: 30px 24px;
  flex: 1 1 290px;
  min-width: 260px;
}
.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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: #FAF7F3;
  border-radius: 28px;
  box-shadow: 0 2px 8px rgba(41,64,91,0.06);
  margin-bottom: 20px;
  flex: 1 1 350px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F5F5F2;
  border-radius: 24px;
  box-shadow: 0 1.5px 10px 0 rgba(41,64,91,0.08);
  padding: 28px 18px 20px 18px;
  min-width: 220px;
  flex: 1 1 220px;
  margin-bottom: 20px;
}

.project-highlight {
  background: #F5F5F2;
  border-radius: 24px;
  box-shadow: 0 1px 5px 0 rgba(41,64,91,0.07);
  padding: 20px 18px;
  margin-bottom: 20px;
  flex: 1 1 270px;
}
.overall-rating, .stars {
  color: #B5936B;
  font-size: 1.45rem;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  margin-bottom: 8px;
}


/* =======================================================
   HEADER & MAIN NAVIGATION
   ======================================================= */
header {
  background: #fff1e9;
  box-shadow: 0 2px 8px 0 rgba(41,64,91,0.04);
  padding: 0;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
header nav a {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1.01rem;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 20px;
  color: #29405B;
  transition: background 0.14s, color 0.14s;
}
header nav a.button-primary {
  margin-left: 14px;
}
header nav a:hover, header nav a:focus {
  background: #FFE9CF;
  color: #B5936B;
}
header a img {
  max-height: 48px;
  border-radius: 0;
}
.mobile-menu-toggle {
  background: none;
  color: #29405B;
  border: none;
  font-size: 2.2rem;
  border-radius: 50%;
  padding: 0 12px;
  display: none;
  cursor: pointer;
  transition: background 0.17s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #fff6e7;
}

/* =======================================================
   BUTTONS
   ======================================================= */
.button-primary, .button-secondary {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  display: inline-block;
  border: none;
  outline: none;
  padding: 12px 30px;
  border-radius: 26px;
  font-size: 1.12rem;
  cursor: pointer;
  box-shadow: 0 2px 10px 0 rgba(41,64,91,0.10);
  margin-top: 14px;
  transition: background 0.17s, color 0.17s, transform 0.18s;
}
.button-primary {
  background: #B5936B;
  color: #fff;
  box-shadow: 0 3px 14px rgba(181,147,107,0.13);
}
.button-primary:hover, .button-primary:focus {
  background: #A38259;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
}
.button-secondary {
  background: #29405B;
  color: #fff;
}
.button-secondary:hover, .button-secondary:focus {
  background: #516a88;
  color: #fff4e3;
  transform: translateY(-2px) scale(1.04);
}

/* =======================================================
   MOBILE MENU OVERLAY
   ======================================================= */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #fff1e9;
  z-index: 1100;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.42,0,0.23,1);
  box-shadow: -4px 0 36px 0 rgba(41,64,91,0.12);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.0rem;
  color: #29405B;
  margin: 22px 0 10px 22px;
  align-self: flex-start;
  border-radius: 50%;
  padding: 7px 12px;
  cursor: pointer;
  transition: background 0.13s;
  z-index: 1120;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #FFE9CF;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding-left: 38px;
  gap: 14px;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1.16rem;
  padding: 11px 4px;
  color: #29405B;
  border-radius: 26px;
  margin-bottom: 2px;
  transition: background 0.17s, color 0.13s;
  font-weight: 600;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FFE9CF;
  color: #B5936B;
}

/* =======================================================
   MAIN CONTENT / SECTIONS
   ======================================================= */
main {
  min-height: 80vh;
}
.text-section {
  padding-bottom: 15px;
}

.history-timeline h3 {
  margin-top: 14px;
  color: #29405B;
}
.history-timeline p {
  margin-bottom: 0.8em;
}

/* =======================================================
   FOOTER
   ======================================================= */
footer {
  background: #29405B;
  color: #fff;
  margin-top: 55px;
  box-shadow: 0 -2px 12px 0 rgba(41,64,91,0.10);
  border-radius: 36px 36px 0 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: stretch;
  justify-content: center;
  padding-top: 32px;
  padding-bottom: 8px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
footer a {
  color: #fff;
  text-decoration: underline;
  transition: color 0.18s;
}
footer a:hover, footer a:focus {
  color: #B5936B;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-left: 16px;
  margin-bottom: 10px;
}
.footer-info {
  font-size: 0.98rem;
  line-height: 1.6;
  color: #ffe;
}
.footer-legal {
  width: 100%;
  padding-top: 11px;
  border-top: 1px solid #B5936B;
  text-align: center;
  font-size: 0.91rem;
  color: #e4ded8;
  letter-spacing: 0.01em;
  margin-top: 8px;
}
footer img {
  max-height: 44px;
  margin-right: 14px;
}
footer ul {
  padding-left: 18px;
}

/* =======================================================
   TESTIMONIALS & REVIEWS
   ======================================================= */
.testimonials-preview {
  gap: 24px;
  flex-wrap: wrap;
  flex-direction: row;
  margin-top: 10px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border-radius: 28px;
  background: #fffdfb;
  color: #29405B;
  box-shadow: 0 2px 10px rgba(41,64,91,0.13);
  margin-bottom: 22px;
  font-size: 1.04rem;
}
.testimonial-card blockquote {
  margin-bottom: 2px;
  color: #29405B;
  font-size: 1.08rem;
}
.testimonial-card span {
  font-size: 0.99rem;
  color: #B5936B;
  font-style: normal;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  margin-left: 3px;
}

/* Stars highlight for testimonial and ratings */
.stars {
  color: #B5936B;
  font-size: 1.47rem;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  letter-spacing: 1.2px;
  margin-right: 7px;
}

/* =======================================================
   FORMS AND INTERACTIVES (if needed)
   ======================================================= */
input, textarea, select {
  border-radius: 10px;
  padding: 11px 12px;
  border: 1.5px solid #E9D8BE;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.01rem;
  background: #fff;
  margin-bottom: 13px;
  transition: border 0.15s;
}
input:focus, textarea:focus, select:focus {
  border-color: #B5936B;
  outline: none;
}

/* =======================================================
   COOKIE CONSENT BANNER
   ======================================================= */
#cookie-consent-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff1e9;
  box-shadow: 0 -3px 18px rgba(41,64,91,0.13);
  z-index: 2000;
  padding: 18px 22px;
  font-size: 1.01rem;
  border-radius: 24px 24px 0 0;
  gap: 18px;
}
#cookie-consent-banner .cookie-text {
  color: #29405B;
  flex: 1;
  margin-right: 10px;
}
#cookie-consent-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  align-items: center;
}
#cookie-consent-banner button {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  border: none;
  border-radius: 22px;
  padding: 8px 23px;
  font-size: 1rem;
  font-weight: 600;
  margin-right: 6px;
  cursor: pointer;
  transition: background 0.13s, color 0.15s;
  box-shadow: 0 2px 8px rgba(41,64,91,.09);
}
#cookie-consent-banner .cookie-accept {
  color: #fff;
  background: #B5936B;
}
#cookie-consent-banner .cookie-accept:hover, #cookie-consent-banner .cookie-accept:focus {
  background: #A38259;
  color: #fff;
}
#cookie-consent-banner .cookie-reject {
  color: #29405B;
  background: #fff;
  border: 1.5px solid #B5936B;
}
#cookie-consent-banner .cookie-reject:hover, #cookie-consent-banner .cookie-reject:focus {
  background: #fffaee;
  color: #B5936B;
}
#cookie-consent-banner .cookie-settings {
  color: #B5936B;
  background: #FFF7EC;
}
#cookie-consent-banner .cookie-settings:hover, #cookie-consent-banner .cookie-settings:focus {
  background: #FFE9CF;
  color: #29405B;
}

/* COOKIE MODAL */
#cookie-modal-overlay {
  display: none;
  position: fixed; 
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 3000;
  background: rgba(50,42,38,0.23);
  align-items: center;
  justify-content: center;
  transition: opacity 0.27s;
}
#cookie-modal-overlay.open {
  display: flex;
  opacity: 1;
}
#cookie-modal {
  background: #fff;
  border-radius: 32px;
  padding: 36px 28px 26px 28px;
  min-width: 280px;
  box-shadow: 0 7px 32px 0 rgba(41,64,91,0.22);
  color: #29405B;
  max-width: 96vw;
}
#cookie-modal h2 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: #29405B;
}
#cookie-modal .cookie-categories {
  margin-bottom: 19px;
}
#cookie-modal label {
  font-size: 1.02rem;
  margin-bottom: 9px;
  display: block;
}
#cookie-modal .category-essential {
  color: #B5936B;
  font-weight: 600;
}
#cookie-modal input[type="checkbox"] {
  transform: scale(1.18);
  margin-right: 7px;
  accent-color: #B5936B;
}
#cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 13px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 22px;
}
#cookie-modal .cookie-modal-close {
  background: none;
  border: none;
  color: #B5936B;
  font-size: 1.15rem;
  padding: 8px 10px;
  border-radius: 16px;
  cursor: pointer;
}
#cookie-modal .cookie-modal-close:hover, #cookie-modal .cookie-modal-close:focus {
  background: #FFE9CF;
}

/* =======================================================
   RESPONSIVE DESIGN (Mobile First)
   ======================================================= */
@media (max-width: 1100px) {
  .container {
    max-width: 98vw;
    padding-left: 8px;
    padding-right: 8px;
  }
}

@media (max-width: 900px) {
  .content-wrapper, .section {
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 768px) {
  .container,
  header .container,
  footer .container {
    max-width: 98vw;
    padding-left: 5vw;
    padding-right: 5vw;
  }
  .section {
    margin-bottom: 36px;
    padding: 26px 7px;
    border-radius: 18px;
  }
  .card-container, .feature-grid, .testimonials-preview, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  main {
    min-height: 50vh;
  }
  h1 {
    font-size: 1.55rem;
  }
  h2 {
    font-size: 1.18rem;
  }
  h3 {
    font-size: 1rem;
  }
  .feature-item, .project-highlight, .testimonial-card {
    border-radius: 13px;
    padding: 18px 11px 14px 11px;
    min-width: unset;
    font-size: 0.97rem;
  }
  .footer-nav {
    flex-direction: column;
    gap: 2px;
    margin-left: 0;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 19px;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .content-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
  .footer-info ul {
    padding-left: 11px;
  }
  #cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 9px;
    gap: 10px;
  }
  #cookie-consent-banner .cookie-actions {
    gap: 7px;
  }
  #cookie-modal {
    min-width: 98vw;
    padding: 22px 7vw 18px 7vw;
    border-radius: 14px;
  }
}

@media (max-width: 400px) {
  .button-primary, .button-secondary, #cookie-consent-banner button {
    font-size: 0.98rem;
    padding: 8px 14px;
  }
  .testimonial-card {
    font-size: 0.97rem;
  }
}

/* === Utility Spacing === */
.mb-16 { margin-bottom: 16px !important; }
.mt-16 { margin-top: 16px !important; }
.gap-20 { gap: 20px !important; }

/* Visually hidden (for accessibility) */
.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px; width: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  position: absolute;
}

/* =======================================================
   ANIMATIONS & MICRO-INTERACTIONS
   ======================================================= */
.button-primary, .button-secondary, #cookie-consent-banner button {
  transition: background 0.17s, color 0.17s, transform 0.18s;
}
.section, .card, .feature-item, .testimonial-card, .project-highlight {
  transition: box-shadow 0.21s, transform 0.17s;
}
.section:hover, .card:hover, .feature-item:hover, .testimonial-card:hover, .project-highlight:hover {
  box-shadow: 0 6px 24px rgba(41,64,91,0.13);
  transform: translateY(-2px) scale(1.0125);
}

/* Focus States */
.button-primary:focus, .button-secondary:focus {
  outline: 2px solid #B5936B;
}
.mobile-menu-toggle:focus, .mobile-menu-close:focus {
  outline: 2px solid #29405B;
}

/* =======================================================
   END OF CSS
   ======================================================= */