/* ================================
   CSS RESET (Normalize + Vintage Tweaks)
   ================================ */
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,
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-family: 'Roboto', Arial, sans-serif;
  scroll-behavior: smooth;
  background: #f5f2ee;
}
body {
  line-height: 1.5;
  background: var(--accent, #F9F8F7);
  color: #254F6D;
  font-weight: 400;
  font-size: 16px;
  min-height: 100vh;
}
*, *:before, *:after {
  box-sizing: inherit;
}

/* ================================
   CUSTOM PROPERTIES & VINTAGE COLORS
   ================================ */
:root {
  --primary: #254F6D;
  --secondary: #A39D8B;
  --accent: #F9F8F7;
  --heading: #2F2521;
  --vintage-rose: #C97B63;
  --vintage-mustard: #E8BE5E;
  --vintage-green: #4B7156;
  --vintage-blue: #5679A6;
  --vintage-border: #DED8CB;
  --white: #fff;
  --black: #231F20;
  --shadow: 0 3px 18px rgba(37, 79, 109, 0.10);
  --radius: 18px;
}

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;900&family=Roboto:wght@300;400;700&display=swap');

/* ================================
   TYPOGRAPHY - VINTAGE RETRO
   ================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  color: var(--heading);
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.15;
  margin-bottom: 18px;
  text-shadow: 0 2px 0 rgba(168,136,117,0.10);
}
h1 {
  font-size: 2.6rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.15rem;
}

p, li, ul, ol, a {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: var(--primary);
  line-height: 1.65;
}
p {
  margin-bottom: 16px;
}
ul, ol {
  margin-left: 1.4em;
  margin-bottom: 18px;
  list-style-position: outside;
  padding-left: 0;
}
ul li, ol li {
  margin-bottom: 8px;
}
a {
  color: var(--vintage-rose);
  text-decoration: underline dotted;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: var(--vintage-blue);
}
blockquote {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-style: italic;
  color: var(--vintage-mustard);
  border-left: 6px solid var(--vintage-rose);
  background: #f7f3e9;
  margin: 18px 0;
  padding: 10px 22px;
  border-radius: 14px;
}
strong {
  font-weight: 700;
  color: var(--primary);
}

/* Vintage Section Separators - Subtle Dashes */
section:not(:last-child) {
  border-bottom: 2px dashed var(--vintage-border);
}

/* ================================
   LAYOUT HELPERS
   ================================ */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container, .service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card, .service-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  padding: 28px 22px;
  position: relative;
  border: 3px solid var(--vintage-border);
  flex: 1 1 320px;
  max-width: 380px;
  min-width: 250px;
  transition: transform 0.18s, box-shadow 0.18s;
}
.card:hover, .service-card:hover {
  transform: translateY(-4px) scale(1.025) rotate(-1deg);
  box-shadow: 0 6px 32px rgba(76, 109, 128, 0.10);
}
.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;
  background: var(--vintage-mustard);
  border-radius: var(--radius);
  margin-bottom: 18px;
  box-shadow: var(--shadow);
  border: 2px solid var(--vintage-border);
  flex-direction: row;
}
.testimonial-card blockquote {
  color: var(--black);
  background: transparent;
  border: none;
  margin: 0;
  padding: 0 8px 0 0;
}
.testimonial-card p {
  margin: 0;
  color: var(--black);
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-size: 1rem;
  font-weight: 500;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.text-section {
  margin-bottom: 20px;
}

/* Service Grid - Cards */
.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 22px;
}
.service-card {
  background: var(--white);
  border: 3px solid var(--vintage-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  flex: 1 1 320px;
  max-width: 320px;
  transition: box-shadow 0.22s, transform 0.2s;
}
.service-card h3 {
  color: var(--vintage-green);
  margin-bottom: 10px;
}
.service-card a {
  color: var(--vintage-rose);
  font-weight: 600;
  margin-top: 8px;
  display: inline-block;
  text-decoration: underline dotted;
}
.service-card a:hover {
  color: var(--primary);
}

/* ================================
   NAVIGATION - VINTAGE RETRO
   ================================ */
header {
  background: var(--primary);
  box-shadow: 0 2px 16px rgba(70,60,40,0.07);
  position: relative;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  justify-content: flex-start;
}
.main-nav a {
  color: var(--accent);
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 9px;
  transition: background 0.18s, color 0.18s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--vintage-mustard);
  color: var(--primary);
}
.main-nav .btn-primary {
  background: var(--vintage-rose);
  color: var(--white);
  padding: 6px 20px;
  font-weight: 700;
  border-radius: 18px;
  margin-left: 12px;
  box-shadow: 0 3px 12px rgba(201, 123, 99, 0.10);
  text-shadow: 0 1px 0 #b66d54;
  border: none;
  transition: background 0.19s, color 0.19s, box-shadow 0.18s, transform 0.13s;
}
.main-nav .btn-primary:hover,
.main-nav .btn-primary:focus {
  background: var(--vintage-mustard);
  color: var(--primary);
  box-shadow: 0 8px 26px rgba(232,190,94,0.10);
}

/* Logo Sizing */
.main-nav img {
  height: 38px;
  width: auto;
  margin-right: 18px;
  display: block;
}

/* ================================
   MOBILE NAVIGATION
   ================================ */
.mobile-menu-toggle {
  display: none;
  background: var(--vintage-rose);
  color: var(--white);
  font-size: 2.1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 6px 18px;
  position: absolute;
  right: 18px;
  top: 19px;
  z-index: 103;
  box-shadow: 0 2px 10px rgba(201, 123, 99, 0.10);
  transition: background 0.16s, color 0.15s;
}
.mobile-menu-toggle:focus {
  outline: 3px solid var(--vintage-mustard);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--accent);
  box-shadow: 0 5px 50px rgba(201, 123, 99, 0.12);
  z-index: 1200;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.87,.03,.2,1.13);
  padding: 34px 0 0 0;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--vintage-rose);
  color: var(--white);
  font-size: 2.1rem;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  margin: 12px 20px 0 0;
  padding: 5px 17px;
  transition: background 0.16s;
  z-index: 1201;
}
.mobile-menu-close:focus {
  outline: 2px solid var(--vintage-mustard);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  padding: 24px 28px;
}
.mobile-nav a {
  color: var(--primary);
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 0;
  border-radius: 8px;
  transition: background 0.19s, color 0.15s;
  width: 100%;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--vintage-mustard);
  color: var(--primary);
}

/* Responsive Nav */
@media (max-width: 1060px) {
  .main-nav { gap: 8px; }
  .main-nav a { font-size: 0.98rem; padding: 5px 8px; }
}
@media (max-width: 900px) {
  .main-nav a { font-size: 0.95rem; }
  .main-nav .btn-primary { font-size: 1rem; }
}
@media (max-width: 820px) {
  .main-nav { gap: 4px; flex-wrap: wrap; justify-content: flex-start; }
  .main-nav img { margin-bottom: 8px; }
}
@media (max-width: 800px) {
  /* Hide main nav, show mobile menu */
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

@media (max-width: 440px) {
  .mobile-menu {
    padding-top: 20px;
  }
  .mobile-menu-close {
    padding: 3px 9px;
    font-size: 1.4rem;
  }
  .mobile-nav {
    padding: 12px 11px;
    gap: 10px;
  }
  .mobile-nav a {
    font-size: 1.1rem;
  }
}

/* ================================
   BUTTONS
   ================================ */
.btn-primary,
button.btn-primary,
input[type="submit"].btn-primary {
  background: var(--vintage-rose);
  color: var(--white);
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 10px 30px;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  margin-top: 12px;
  margin-bottom: 12px;
  box-shadow: 0 3px 10px rgba(201,123,99,0.12);
  text-shadow: 0 1px 0 #af5d3d99;
  transition: background 0.18s, color 0.12s, box-shadow 0.18s, transform 0.12s;
  display: inline-block;
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--vintage-mustard);
  color: var(--primary);
  box-shadow: 0 8px 20px rgba(232,190,94,0.11);
  transform: translateY(-3px) scale(1.045) rotate(-1.5deg);
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  font-family: inherit;
}

/* ================================
   FOOTER
   ================================ */
footer {
  background: var(--secondary);
  color: var(--white);
  padding: 0 0 16px 0;
  border-top: 7px solid var(--vintage-rose);
  font-size: 1rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 18px 0 10px 0;
  justify-content: flex-start;
  align-items: center;
}
.footer-nav a {
  color: var(--primary);
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  padding: 5px 10px;
  transition: background 0.14s, color 0.14s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  background: var(--accent);
  color: var(--vintage-rose);
}
footer .text-section p {
  color: var(--primary);
  font-size: 0.96rem;
  margin-bottom: 8px;
}
footer .social-links {
  display: flex;
  gap: 12px;
  margin: 12px 0;
}
footer .social-links img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--vintage-mustard);
  padding: 3px;
  transition: background 0.18s, filter 0.18s;
  box-shadow: 0 2px 6px rgba(76,109,128,0.10);
}
footer .social-links img:hover {
  background: var(--vintage-mustard);
  filter: brightness(1.1) saturate(1.12);
}
footer p {
  color: var(--primary);
  font-size: 0.96rem;
  margin: 4px 0 0 0;
  font-family: 'Roboto', Arial, sans-serif;
}

/* ================================
   COOKIE CONSENT BANNER & MODAL
   ================================ */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: var(--vintage-mustard);
  color: var(--black);
  box-shadow: 0 -3px 30px rgba(76,109,128,0.22);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 24px 20px 24px 20px;
  border-top: 3px solid var(--vintage-border);
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.1rem;
  opacity: 1;
  transition: transform 0.27s cubic-bezier(.84,.09,.2,.95), opacity 0.22s;
}
.cookie-consent-banner.hidden {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.cookie-consent-banner .cookie-buttons {
  display: flex;
  gap: 13px;
}
.cookie-consent-banner button {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 700;
  padding: 5px 20px;
  border: none;
  cursor: pointer;
  margin-bottom: 4px;
  transition: background 0.16s, color 0.11s, box-shadow 0.10s;
}
.cookie-consent-banner .cookie-accept {
  background: var(--vintage-rose);
  color: var(--white);
  box-shadow: 0 2px 7px rgba(201,123,99,0.08);
}
.cookie-consent-banner .cookie-accept:hover {
  background: var(--primary);
  color: var(--vintage-mustard);
}
.cookie-consent-banner .cookie-reject {
  background: #e9e5d0;
  color: var(--primary);
  border: 1.5px solid var(--vintage-rose);
}
.cookie-consent-banner .cookie-reject:hover {
  background: var(--vintage-rose);
  color: var(--white);
}
.cookie-consent-banner .cookie-settings {
  background: var(--vintage-green);
  color: var(--white);
}
.cookie-consent-banner .cookie-settings:hover {
  background: var(--primary);
  color: var(--vintage-mustard);
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 2100;
  left: 0; right: 0; top: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(37,79,109,0.25);
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.active {
  display: flex;
}
.cookie-modal {
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 6px 36px rgba(76,109,128,0.12);
  padding: 32px 22px 24px 22px;
  min-width: 320px;
  max-width: 98vw;
  max-height: 90vh;
  overflow-y: auto;
  border: 3px solid var(--vintage-mustard);
  animation: modal-in 0.33s cubic-bezier(.93,-0.14,.07,1.24);
  font-size: 1.02rem;
}
@keyframes modal-in {
  from { transform: scale(0.92) translateY(70px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  margin-bottom: 16px;
  color: var(--primary);
  font-size: 1.3rem;
}
.cookie-modal .cookie-category {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.cookie-modal label {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.02rem;
  color: var(--primary);
  font-weight: 600;
}
.cookie-modal input[type="checkbox"] {
  margin-right: 9px;
  accent-color: var(--vintage-rose);
  width: 16px;
  height: 16px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 13px;
  margin-top: 17px;
  justify-content: flex-end;
}
.cookie-modal .cookie-modal-close {
  background: var(--vintage-rose);
  color: var(--white);
  border-radius: 17px;
  border: none;
  padding: 5px 18px;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.19s, color 0.13s;
}
.cookie-modal .cookie-modal-close:hover,
.cookie-modal .cookie-modal-close:focus {
  background: var(--primary);
  color: var(--vintage-mustard);
}

/* ================================
   RESPONSIVE DESIGN - MOBILE-FIRST
   ================================ */
@media (max-width: 1020px) {
  .container {
    max-width: 96vw;
    padding: 0 8px;
  }
  .service-card, .card {
    min-width: 200px;
    max-width: 90vw;
  }
}
@media (max-width: 880px) {
  .service-grid { justify-content: center; gap: 16px; }
}
@media (max-width: 768px) {
  .section { padding: 24px 10px; margin-bottom: 32px; }
  .main-nav, .footer-nav { gap: 8px; }
  .service-grid {
    gap: 14px;
    flex-direction: column;
    align-items: stretch;
  }
  .card-container, .content-grid {
    gap: 12px;
    flex-direction: column;
    align-items: stretch;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 11px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.1rem; }
  .container {
    padding: 0 4vw;
  }
  .footer-nav {
    flex-direction: column;
    gap: 5px;
    padding: 12px 0 0 0;
  }
  .service-card, .card {
    padding: 18px 9px;
    min-width: 0;
    width: 100%;
  }
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    padding: 13px 10px 14px 10px;
    font-size: 0.98rem;
  }
  .cookie-consent-banner .cookie-buttons { gap: 8px; }
  .cookie-modal {
    padding: 15px 8px 11px 10px;
  }
}
@media (max-width: 400px) {
  .footer-nav, .main-nav, .mobile-nav {
    font-size: 0.92rem;
  }
}

/* ================================
   VINTAGE RETRO ELEMENTS
   ================================ */
/* Retro pattern bar before headings */
h1::before,
h2::before {
  content: '';
  display: inline-block;
  width: 36px;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--vintage-rose), var(--vintage-mustard) 50%, var(--vintage-rose) 100%);
  border-radius: 4px;
  margin-right: 13px;
  vertical-align: middle;
}
h3::before {
  content: '\2731';
  color: var(--vintage-rose);
  margin-right: 8px;
  font-size: 1.1em;
  opacity: 0.6;
}

/* Section background textures for retro feel */
section:nth-of-type(even) {
  background: repeating-linear-gradient(-45deg, #f7e7c6 0 2px, transparent 2px 20px), var(--accent);
  background-blend-mode: lighten;
}
section:nth-of-type(odd) {
  background: var(--accent);
}

/* ================================
   FORMS (enhance for vintage)
   ================================ */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  border: 2.5px solid var(--vintage-mustard);
  border-radius: 14px;
  padding: 9px 15px;
  font-size: 1rem;
  background: #f8f6ef;
  color: var(--primary);
  box-shadow: 0 2px 12px rgba(76,109,128,0.06);
  margin-bottom: 14px;
  transition: border 0.17s, box-shadow 0.15s;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--vintage-rose);
  outline: none;
}

/* ================================
   TABLES
   ================================ */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}
th, td {
  border: 1px solid var(--vintage-border);
  padding: 12px 8px;
  font-size: 1rem;
}
th {
  background: var(--vintage-mustard);
  font-family: 'Montserrat', 'Roboto', sans-serif;
  color: var(--primary);
}
td {
  background: #f8f6ef;
}

/* ================================
   MICRO-INTERACTIONS & ANIMATIONS
   ================================ */
.card, .service-card, .btn-primary, .testimonial-card {
  transition: box-shadow 0.18s, transform 0.17s, background 0.14s, color 0.13s;
}
.card:hover, .service-card:hover, .testimonial-card:hover {
  box-shadow: 0 8px 38px rgba(201,123,99,0.08);
  transform: translateY(-3px) scale(1.02);
}

a, button, .btn-primary, .main-nav a, .footer-nav a {
  transition: background 0.16s, color 0.13s, box-shadow 0.13s, transform 0.1s;
}

/* ================================
   UTILITY CLASSES
   ================================ */
.d-none { display: none !important; }
.mt-16 { margin-top: 16px !important; }
.mt-24 { margin-top: 24px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-24 { margin-bottom: 24px !important; }
.pb-0 { padding-bottom: 0 !important; }

/* ================================
   ACCESSIBILITY
   ================================ */
:focus-visible {
  outline: 3px dashed var(--vintage-mustard);
  outline-offset: 3px;
}

/* ================================
   PRINT STYLES (optional)
   ================================ */
@media print {
  header, footer, .mobile-menu, .cookie-consent-banner, .cookie-modal-overlay { display: none !important; }
}
