/* ===== CSS RESET & NORMALIZE ===== */
*, *::before, *::after {
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 0;
  background: #F8F5EF;
  min-height: 100vh;
  color: #2d2b2a;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
ul,
ol {
  margin: 0 0 1.5em 1.25em;
  padding: 0;
}
ul li,
ol li {
  margin-bottom: 0.5em;
}
a {
  color: #876445;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #a35c13;
  text-decoration: underline;
}
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}
:focus-visible {
  outline: 2px dashed #876445;
  outline-offset: 2px;
}

/* ===== CUSTOM PROPERTIES (WITH FALLBACKS) ===== */
:root {
  --retro-bg: #F4E2D8;
  --retro-primary: #264653;
  --retro-secondary: #C97D60;
  --retro-accent: #99C24D;
  --retro-yellow: #FFDB5C;
  --retro-brown: #674D3C;
  --retro-cream: #F7F2E3;
  --retro-shadow: rgba(80,57,37,0.12);
  --shadow-medium: 0 4px 12px var(--retro-shadow,rgba(80,57,37,0.12));
  --shadow-light: 0 1.5px 5px var(--retro-shadow,rgba(80,57,37,0.10));
  --font-title: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--retro-primary);
  letter-spacing: 0.5px;
}
h1 {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 1px 1px 0px #FFDB5C11;
}
h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 18px;
  text-shadow: 1px 1px 0px #FFDB5C11;
}
h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--retro-brown);
  text-shadow: 0.5px 0.5px 0px #FFDB5C10;
}
h4, h5, h6 {
  font-weight: 500;
  color: var(--retro-secondary);
}
p {
  margin-bottom: 18px;
  font-size: 1.125rem;
}

strong {
  color: var(--retro-secondary);
  font-weight: 600;
}

/* ===== LAYOUT: CONTAINERS AND FLEXBOX ===== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--retro-cream);
  border-radius: 24px;
  box-shadow: var(--shadow-light);
  position: relative;
}
@media (max-width: 768px) {
  .section {
    padding: 26px 10px;
    margin-bottom: 36px;
    border-radius: 12px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--retro-bg);
  border-radius: 18px;
  box-shadow: var(--shadow-light);
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.18s;
}
.card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-4px) scale(1.012);
}
@media (max-width: 600px) {
  .card {
    padding: 16px;
    margin-bottom: 14px;
    border-radius: 10px;
  }
}

.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;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 20px;
  background: #fff;
  border-radius: 16px;
  padding: 20px 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-medium);
  border-left: 6px solid var(--retro-yellow);
  font-size: 1.125rem;
  transition: box-shadow 0.18s, border-color 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 28px rgba(60,45,19,0.17);
  border-left-color: var(--retro-secondary);
}
.testimonial-meta {
  margin-left: auto;
  font-size: 0.98em;
  color: var(--retro-brown);
  font-family: var(--font-title);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.testimonial-meta span {
  color: var(--retro-yellow);
  font-size: 1.15em;
  margin-left: 4px;
}
@media (max-width: 650px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 14px;
    border-radius: 9px;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===== HERO SECTIONS ===== */
.hero {
  background:
    repeating-linear-gradient(135deg, #DAB49D 0 8px, transparent 8px 24px),
    repeating-linear-gradient(45deg, #F4E2D8 0 8px, transparent 8px 24px);
  background-color: var(--retro-yellow);
  padding: 60px 0 44px 0;
}
.hero .container {
  display: flex;
  justify-content: center;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 20px;
  max-width: 700px;
  text-align: left;
  background: rgba(255, 255, 255, 0.86);
  border-radius: 18px;
  padding: 24px 28px;
  box-shadow: var(--shadow-medium);
}
.hero h1 {
  font-family: var(--font-title);
  font-size: 2.3rem;
  color: var(--retro-primary);
  text-shadow: 2px 2px #fff9e2;
}
.hero p {
  color: #6c4939;
}
@media (max-width: 768px) {
  .hero {
    padding: 36px 0 22px 0;
  }
  .hero .content-wrapper {
    padding: 16px 10px;
    border-radius: 10px;
    text-align: left;
  }
  .hero h1 {
    font-size: 1.42rem;
  }
}

/* ===== MAIN NAV ===== */
header {
  background: var(--retro-primary);
  box-shadow: 0 2px 18px rgba(38,70,83,0.07);
  position: relative;
  z-index: 30;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 8px 0;
}
nav .logo {
  display: flex;
  align-items: center;
  height: 48px;
  margin-right: 16px;
}
nav .logo img {
  height: 44px;
}
nav ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
nav ul li a {
  color: #fff8f3;
  font-family: var(--font-title);
  font-size: 1.08em;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
nav ul li a:hover,
nav ul li a:focus {
  background: var(--retro-yellow);
  color: var(--retro-primary);
}
.cta-primary {
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--retro-secondary), var(--retro-yellow));
  color: #fff;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.08em;
  letter-spacing: 0.03em;
  padding: 13px 29px;
  box-shadow: var(--shadow-light);
  margin-left: 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.18s, transform 0.13s;
  text-shadow: 1px 1px 0px #ae773c27;
  display: inline-block;
}
.cta-primary:hover,
.cta-primary:focus {
  background: linear-gradient(90deg, #E1704E 10%, var(--retro-yellow) 90%);
  color: var(--retro-primary);
  box-shadow: 0 6px 18px rgba(211,161,97,0.21);
  transform: translateY(-2px) scale(1.03);
}
.cta-secondary {
  border: 2px solid var(--retro-secondary);
  background: #fff9ed;
  color: var(--retro-secondary);
  font-family: var(--font-title);
  font-size: 1.08em;
  border-radius: 9px;
  padding: 10px 22px;
  cursor: pointer;
  margin-top: 14px;
  margin-bottom: 4px;
  transition: background 0.16s, color 0.19s, border-color 0.16s;
}
.cta-secondary:hover,
.cta-secondary:focus {
  background: var(--retro-yellow);
  color: var(--retro-primary);
  border-color: var(--retro-primary);
}

@media (max-width: 1020px) {
  nav ul {
    gap: 9px;
  }
  nav .cta-primary {
    padding: 11px 17px;
    font-size: 1em;
  }
}
@media (max-width: 900px) {
  nav ul,
  nav .cta-primary {
    display: none;
  }
}

/* ===== MOBILE BURGER MENU ===== */
.mobile-menu-toggle {
  display: none;
  background: var(--retro-yellow);
  color: var(--retro-primary);
  font-size: 2.2em;
  border: none;
  border-radius: 8px;
  padding: 6px 16px;
  cursor: pointer;
  margin-left: auto;
  transition: background 0.18s, color 0.15s, box-shadow 0.17s;
  z-index: 120;
}
@media (max-width: 900px) {
  .mobile-menu-toggle {
    display: block;
    position: relative;
  }
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  min-width: 70vw;
  width: 100%;
  height: 100vh;
  background: linear-gradient(102deg, #fff6e6 70%, #FFDB5C16 100%);
  box-shadow: -7px 0 34px #DAB49D18;
  transform: translateX(105%);
  transition: transform 0.38s cubic-bezier(0.5,0.08,0.2,1.0);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 0;
  visibility: hidden;
}
.mobile-menu.open,
.mobile-menu[aria-expanded='true'] {
  transform: translateX(0%);
  transition: transform 0.32s cubic-bezier(0.5,0.08,0.2,1.03);
  visibility: visible;
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--retro-yellow);
  color: var(--retro-primary);
  border: none;
  border-radius: 9px;
  font-size: 2.1em;
  padding: 6px 14px 4px 14px;
  margin: 20px 20px 0 0;
  cursor: pointer;
  transition: background 0.15s, color 0.18s;
  z-index: 111;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--retro-primary);
  color: #fff9e2;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0px;
  margin: 0;
  padding: 0 0 0 36px;
  z-index: inherit;
}
.mobile-nav a {
  display: block;
  padding: 17px 0 17px 0;
  font-size: 1.23rem;
  font-family: var(--font-title);
  color: var(--retro-primary);
  border-bottom: 1.5px solid #ecdac4;
  transition: background 0.12s, color 0.13s;
  letter-spacing: 0.04em;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--retro-yellow);
  color: var(--retro-secondary);
}

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

/* ==== FLEXBOX FEATURE GRIDS ==== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 30px;
  margin-top: 12px;
  margin-bottom: 16px;
}
.feature-grid > div {
  background: #fff9e2;
  border-radius: 18px;
  box-shadow: var(--shadow-light);
  padding: 24px 18px;
  flex: 1 1 260px;
  min-width: 210px;
  transition: box-shadow 0.18s, transform 0.14s;
  position: relative;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}
.feature-grid > div:hover {
  box-shadow: 0 7px 24px #C97D6026, var(--shadow-medium);
  transform: translateY(-3px) scale(1.023);
}
.feature-grid img {
  width: 42px;
  height: 42px;
  margin-bottom: 2px;
}
.feature-grid h3 {
  margin: 7px 0 5px 0;
  font-size: 1.18em;
  color: var(--retro-secondary);
}
.feature-grid p {
  font-size: 1.04em;
  color: #6c4939;
}
@media (max-width: 830px) {
  .feature-grid {
    flex-direction: column;
    gap: 16px 0;
  }
  .feature-grid > div {
    min-width: unset;
    padding: 14px 7px;
    border-radius: 10px;
  }
}

/* ==== FAQ ACCORDION ==== */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 12px 0;
}
.faq-accordion > div {
  background: #fff;
  border-left: 5px solid var(--retro-secondary);
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: var(--shadow-light);
}
.faq-accordion h3 {
  font-size: 1.13em;
  margin-bottom: 6px;
}
.faq-accordion p {
  color: #67584D;
  font-size: 1em;
  margin-bottom: 0;
}

/* ==== CTA BANNER ==== */
.cta-banner {
  background: var(--retro-secondary);
  color: #fff;
  border-radius: 20px;
  margin: 0 0 54px 0;
  padding: 40px 0;
  box-shadow: 0 6px 32px #DAB49D18;
}
.cta-banner .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 20px;
}
.cta-banner h2,
.cta-banner p {
  color: #fff;
}
.cta-banner .cta-primary {
  background: #fff9e2;
  color: var(--retro-secondary);
  border-radius: 11px;
  box-shadow: none;
  text-shadow: none;
  margin: 15px 0 0 0;
}
.cta-banner .cta-primary:hover {
  color: #fff;
  background: var(--retro-brown);
}
@media (max-width: 740px) {
  .cta-banner {
    padding: 22px 0;
    border-radius: 11px;
  }
}

/* ==== FOOTER ==== */
footer {
  background: #ECD8C7;
  border-top: 6px solid #FFDB5C;
  margin-top: 40px;
  font-size: 0.98em;
}
footer .container {
  padding-top: 32px;
  padding-bottom: 24px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.logo-footer img {
  height: 42px;
  margin-bottom: 8px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-nav a {
  color: var(--retro-brown);
  opacity: 0.92;
  font-family: var(--font-title);
  font-size: 0.97em;
  transition: color 0.13s;
}
.footer-nav a:hover {
  color: var(--retro-secondary);
  text-decoration: underline;
}
.brand-info {
  max-width: 320px;
  color: #704322;
  font-family: var(--font-body);
}
.brand-info p {
  margin-bottom: 10px;
  color: var(--retro-primary);
  font-weight: 500;
}
.contact-info {
  margin-top: 2px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.98em;
}
.contact-info img {
  width: 17px;
  height: 17px;
  margin-right: 6px;
  margin-bottom: -3px;
}
@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
  .brand-info {
    max-width: 100%;
  }
}

/* ==== LISTS, LEGAL SECTIONS ==== */
ul, ol {
  font-size: 1.08em;
}
.legal {
  background: #fff9e2;
  border-radius: 19px;
  padding: 38px 18px;
  margin: 38px 0;
  box-shadow: var(--shadow-light);
}
.legal h1, .legal h2 {
  color: var(--retro-secondary);
  text-shadow: none;
}
.legal ul li {
  margin-bottom: 10px;
  color: #694e33;
}

/* ==== SECTIONS AND UNIQUE PAGES ==== */
.about-brief, .about, .why-us, .usp, .contact, .office-hours, .thank-you {
  background: #fff9e2;
  border-radius: 18px;
  box-shadow: var(--shadow-light);
  margin-bottom: 60px;
  padding: 34px 12px;
}
@media (max-width: 700px) {
  .about-brief, .about, .why-us, .usp, .contact, .office-hours, .thank-you {
    border-radius: 8px;
    padding: 16px 6px;
    margin-bottom: 30px;
  }
}

/* ==== MODERN RETRO DECORATIONS ==== */
.section:before {
  content: '';
  display: block;
  position: absolute;
  left: 20px;
  top: 16px;
  width: 35px;
  height: 12px;
  border-radius: 8px 8px 20px 20px;
  background: var(--retro-yellow);
  opacity: 0.21;
  z-index: 1;
}
.section:nth-child(even):before {
  left: unset;
  right: 22px;
  top: unset;
  bottom: 16px;
  transform: rotate(14deg);
}

/* ==== TABLES (if any used) ==== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}
th, td {
  border: 1px solid #dec9ad;
  padding: 10px 8px;
  text-align: left;
}
th {
  background: var(--retro-yellow);
  color: var(--retro-brown);
}

/* ==== BUTTONS GLOBAL ==== */
button {
  font-family: var(--font-title);
  background: var(--retro-secondary);
  color: #fff;
  border: none;
  padding: 11px 24px;
  border-radius: 9px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1em;
  margin-right: 10px;
  transition: background 0.15s, color 0.15s;
}
button:hover,
button:focus {
  background: var(--retro-brown);
  color: #fffabd;
}

/* ==== CARDS AND CASE STUDIES ==== */
.case-studies .feature-grid > div {
  background: #fae1bc;
  border-radius: 14px;
  border-left: 4px solid var(--retro-yellow);
  font-size: 1.1em;
  padding: 22px 16px;
}

/* ==== RESPONSIVE DESIGN ==== */
@media (max-width: 650px) {
  h1 { font-size: 1.33rem; }
  h2 { font-size: 1.1rem; }
  .container {
    padding-left: 4px;
    padding-right: 4px;
  }
  nav {
    padding: 3px 0;
  }
  .card-container, .content-grid, .feature-grid {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    padding: 10px 8px;
    font-size: 1em;
  }
}

/* ==== MICRO-INTERACTIONS ==== */
.cta-primary, .cta-secondary, .feature-grid > div, .card, .testimonial-card {
  transition: box-shadow 0.2s, background 0.17s, transform 0.17s;
}
.feature-grid > div:active,
.card:active {
  transform: scale(0.98);
}

/* ==== COOKIE CONSENT BANNER ==== */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5000;
  width: 100%;
  background: #fff9e2;
  color: #2d2b2a;
  box-shadow: 0 -2px 18px #DAB49D18;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 22px 12px 20px 12px;
  font-size: 1.05em;
  border-top: 4px solid var(--retro-yellow);
  transition: transform 0.32s cubic-bezier(.7,.2,.13,1.01), opacity 0.22s;
}
.cookie-consent-banner.hide {
  transform: translateY(102%);
  pointer-events: none;
  opacity: 0;
}
.cookie-consent-banner .cookie-actions {
  display: flex;
  gap: 10px;
  margin-left: 14px;
}
.cookie-btn {
  font-family: var(--font-title);
  font-size: 1em;
  padding: 10px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  margin-right: 7px;
  background: var(--retro-yellow);
  color: var(--retro-primary);
  transition: background 0.16s, color 0.12s;
}
.cookie-btn.settings {
  background: var(--retro-secondary);
  color: #fff;
}
.cookie-btn.accept {
  background: var(--retro-accent);
  color: var(--retro-primary);
}
.cookie-btn.reject {
  background: var(--retro-secondary);
  color: #fff;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--retro-primary);
  color: var(--retro-yellow);
}
@media (max-width: 620px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 4px 13px 9px;
    font-size: 0.95em;
  }
  .cookie-consent-banner .cookie-actions {
    margin-left: 0;
    margin-top: 7px;
    width: 100%;
    gap: 7px;
  }
}

/* ==== COOKIE PREFERENCES MODAL ==== */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(38,70,83,0.29);
  z-index: 5050;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(.7,.2,.13,1.01);
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #fffef8;
  border-radius: 19px;
  box-shadow: var(--shadow-medium);
  padding: 33px 26px 22px 26px;
  position: relative;
  min-width: 320px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-modal-content h2 {
  color: var(--retro-primary);
  margin-bottom: 6px;
}
.cookie-category {
  margin-bottom: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.09em;
}
.cookie-category label {
  font-weight: 500;
  color: var(--retro-secondary);
}
.cookie-category input[type='checkbox'] {
  accent-color: var(--retro-secondary);
  transform: scale(1.2);
  margin-right: 2px;
}
.cookie-modal-content .cookie-actions {
  margin-top: 14px;
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  right: 15px; top: 10px;
  font-size: 2em;
  background: var(--retro-yellow);
  color: var(--retro-primary);
  border: none;
  border-radius: 8px;
  padding: 0 10px 0 10px;
  cursor: pointer;
  transition: background 0.17s, color 0.14s;
}
.cookie-modal .cookie-modal-close:hover,
.cookie-modal .cookie-modal-close:focus {
  background: var(--retro-primary);
  color: #fff9e2;
}
@media (max-width: 480px) {
  .cookie-modal-content {
    min-width: unset;
    padding: 18px 5px 17px 10px;
    border-radius: 9px;
  }
}

/* ==== ACCESSIBILITY: FOCUS STATES ==== */
a:focus, button:focus, .cta-primary:focus, .cta-secondary:focus {
  outline: 2px dashed #a35c13;
  outline-offset: 1px;
}

/* ====== PRINT STYLES ====== */
@media print {
  header, footer, .mobile-menu, .cookie-consent-banner { display: none !important; }
  .section, .container, .feature-grid, .card, .testimonial-card { box-shadow: none !important; background: #fff !important; }
}
