/* 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, 
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, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #FAF6ED;
  color: #322B23;
}
ol, ul {
  list-style: none;
}
a {
  background: transparent;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
  border: 0;
}
button {
  border: none;
  outline: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
}
:focus {
  outline: 2px dashed #FFD166;
  outline-offset: 2px;
}

/* VINTAGE RETRO PALETTE + BRAND */
:root {
  --color-primary: #173354;
  --color-secondary: #6C8DCB;
  --color-accent: #FFD166;
  --color-bg: #FAF6ED;
  --color-bg-alt: #FFF8E1;
  --color-brown: #B97C56;
  --color-red: #D65A31;
  --color-dark: #322B23;
  --color-light: #FFF9F3;
  --shadow-vintage: 0 6px 24px 0 rgba(50,43,35,0.13);
  --border-radius: 16px;
  --border-radius-sm: 8px;
  --font-display: 'Oswald', Impact, 'Arial Narrow Bold', sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* VINTAGE FONTS */
@import url('https://fonts.googleapis.com/css?family=Oswald:400,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

/* TYPOGRAPHY */
h1, .h1 { font-family: var(--font-display); color: var(--color-primary); font-size: 2.6rem; font-weight: 700; letter-spacing: 1px; margin-bottom: 24px; line-height: 1.08; text-transform: uppercase; }
h2, .h2 { font-family: var(--font-display); color: var(--color-primary); font-size: 2rem; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
h3, .h3 { font-family: var(--font-display); color: var(--color-brown); font-size: 1.3rem; font-weight: 600; margin: 16px 0 8px 0; text-transform: uppercase; }
h4 { font-family: var(--font-display); color: var(--color-brown); font-size: 1.1rem; font-weight: 600; margin: 12px 0 8px 0; text-transform: uppercase; }
p, ul, ol, li, blockquote { font-family: var(--font-body); color: var(--color-dark); font-size: 1.09rem; margin-bottom: 16px; line-height: 1.74; }
strong { font-weight: 700; }

blockquote {
  border-left: 6px solid var(--color-brown);
  background: var(--color-bg-alt);
  padding: 20px 28px 16px 18px;
  font-style: italic;
  box-shadow: var(--shadow-vintage);
  margin-bottom: 12px;
}

/* PATTERNS & RETRO TEXTURES */
body {
  background: repeating-linear-gradient(135deg, #FAF6ED, #FAF6ED 20px, #FFF8E1 22px, #FAF6ED 38px);
}
.header, header, .footer, footer {
  background: var(--color-bg-alt);
}

/* LAYOUT CONTAINERS */
.container {
  width: 94%;
  max-width: 1120px;
  margin: 0 auto;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container,
.feature-grid,
.service-grid,
.card-grid,
.team-grid,
.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-bg-alt);
  padding: 32px 24px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-vintage);
  border: 2px solid var(--color-accent);
  transition: transform 0.18s, box-shadow 0.18s;
}
.card:hover {
  transform: translateY(-4px) scale(1.012);
  box-shadow: 0 12px 32px 0 rgba(50,43,35,.20);
}
.content-grid,
.team-grid,
.feature-grid,
.service-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 28px;
  background: #FFFDF7;
  border-radius: var(--border-radius-sm);
  margin-bottom: 26px;
  box-shadow: 0 4px 16px 0 rgba(50,43,35,.11);
  border: 1px solid var(--color-accent);
}
.testimonial-card p {
  margin-bottom: 0;
}
.testimonial-card blockquote {
  margin-bottom: 0;
  background: transparent;
  box-shadow: none;
  border-left: 6px solid var(--color-secondary);
  color: var(--color-primary);
}

.cta-banner {
  background: repeating-linear-gradient(90deg, #FFD166, #FFD166 22px, #FAF6ED 24px, #FFD166 46px);
  border-radius: var(--border-radius);
  box-shadow: 0 3px 14px 0 rgba(50,43,35,.09);
  margin: 36px 0 62px 0;
  padding: 44px 20px;
}

.note {
  display: inline-block;
  padding: 10px 16px;
  background: var(--color-secondary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-style: italic;
  border-radius: var(--border-radius-sm);
  margin-bottom: 18px;
}

/* NAVIGATION & HEADER */
header {
  width: 100%;
  box-shadow: 0 1px 9px 0 rgba(50,43,35,0.08);
  z-index: 30;
  position: sticky;
  top: 0;
  left: 0;
  background: var(--color-bg-alt);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0 12px 0;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1.01rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  padding: 6px 8px;
  border-radius: 7px;
  position: relative;
  transition: background 0.12s, color 0.12s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-accent);
  color: var(--color-dark);
}

.btn-primary, .btn-secondary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.11rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 11px 30px 12px 30px;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 2px 7px 0 rgba(50,43,35,.09);
  border: none;
  cursor: pointer;
  display: inline-block;
  margin-top: 8px;
  transition: background 0.15s, color 0.15s, transform 0.13s;
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-primary);
  color: var(--color-accent);
  transform: translateY(-2px) scale(1.04);
}
.btn-secondary {
  background: var(--color-brown);
  color: #FFF9F3;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-secondary);
  color: var(--color-dark);
}

/* HERO SECTION */
.hero {
  background: var(--color-primary);
  color: var(--color-accent);
  box-shadow: 0 9px 30px 0 rgba(23,51,84,0.14);
  border-radius: 0 0 38px 38px;
  padding: 48px 0 44px 0;
  margin-bottom: 0;
}
.hero h1, .hero .h1,
.hero p {
  color: var(--color-accent);
}
.hero .btn-primary {
  background: #fff;
  color: var(--color-primary);
  margin-top: 14px;
}
.hero .btn-primary:hover, .hero .btn-primary:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* FOOTER */
footer {
  width: 100%;
  background: var(--color-bg-alt);
  padding: 36px 0 27px 0;
  margin-top: 48px;
  box-shadow: 0 -5px 14px 0 rgba(50,43,35,0.06);
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  justify-content: center;
}
.footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin: 12px 0 4px 0;
}
.footer-nav a {
  font-family: var(--font-display);
  font-size: 1.01rem;
  color: var(--color-primary);
  padding: 6px 8px;
  border-radius: 5px;
  transition: background .14s, color .14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--color-accent);
  color: var(--color-dark);
}
.footer-contact {
  font-family: var(--font-body);
  color: var(--color-dark);
  font-size: 0.98rem;
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
  text-align: center;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 6px;
}

/* FORMATS FOR TEXT-SECTIONS */
.text-section {
  width: 100%;
  max-width: 790px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 26px;
  background: var(--color-light);
  border-radius: var(--border-radius-sm);
  box-shadow: 0 3px 12px 0 rgba(50,43,35,.07);
  padding: 32px 21px;
}
.text-section ul, .faq-list {
  margin-left: 1.2em;
  margin-bottom: 20px;
  padding-left: 0;
}
.text-section ul li {
  position: relative;
  margin-bottom: 11px;
  padding-left: 1.2em;
  font-size: 1.05rem;
}
.text-section ul li:before {
  content: '\2605';
  color: var(--color-accent);
  position: absolute;
  left: 0;
  font-size: 1.1em;
  top: 1px;
}
.text-section ol {
  padding-left: 1.2em;
  margin-bottom: 18px;
}
.text-section ol li {
  margin-bottom: 11px;
  font-size: 1.06rem;
}

.faq-list > h2 {
  margin-bottom: 7px;
  font-family: var(--font-display);
  font-size: 1.11rem;
  color: var(--color-primary);
}
.faq-list p {
  margin-bottom: 20px;
}

/* TEAM GRID */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.team-grid > div {
  flex: 1 1 228px;
  min-width: 235px;
  background: var(--color-bg-alt);
  border-radius: var(--border-radius-sm);
  box-shadow: 0 2px 11px 0 rgba(50,43,35,0.06);
  padding: 22px 14px 18px 14px;
  margin-bottom: 20px;
  max-width: 310px;
  transition: box-shadow 0.14s;
  border: 1px solid var(--color-secondary);
}
.team-grid > div:hover {
  box-shadow: 0 6px 20px 0 rgba(50,43,35,0.13);
}

/* ICONS */
.feature-grid img, .service-grid img, .footer-contact img {
  filter: sepia(0.47) hue-rotate(-35deg) saturate(1.4) brightness(0.95);
}

/* BUTTONS, LINKS */
a, button, .btn-primary, .btn-secondary {
  transition: all 0.16s;
}
a:active { opacity: .88; }

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  background: var(--color-primary);
  color: var(--color-accent);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 13px;
  right: 16px;
  z-index: 99;
  border: 2px solid var(--color-accent);
  transition: background .17s, color .17s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 92vw;
  max-width: 390px;
  background: var(--color-bg-alt);
  z-index: 101;
  box-shadow: -2px 0 29px 0 rgba(23,51,84,0.15);
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.77,.2,.05,1.0);
  flex-direction: column;
  padding: 34px 30px 20px 30px;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.1rem;
  color: var(--color-primary);
  background: transparent;
  align-self: flex-end;
  margin-bottom: 18px;
  width: 36px; height: 36px;
  border-radius: 55%;
  transition: background 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-accent);
  color: var(--color-dark);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.18rem;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  padding: 12px 0 14px 0;
  border-bottom: 1px dashed var(--color-secondary);
  border-radius: 0;
  width: 100%;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:active, .mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-dark);
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 180;
  background: #FFEDD2;
  color: #322B23;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 18px 17px 26px;
  box-shadow: 0 -2px 19px 0 rgba(50,43,35,0.09);
  border-top: 4px solid var(--color-accent);
  font-size: 1rem;
  font-family: var(--font-body);
  gap: 24px;
  max-width: 100vw;
  transition: transform 0.28s;
}
.cookie-banner.hide {
  transform: translateY(105%);
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 13px;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-size: 1.08rem;
  padding: 7px 20px;
  margin: 0 0 0 4px;
  border-radius: 8px;
  box-shadow: 0 2px 5px 0 rgba(23,51,84,0.12);
  border: none;
  cursor: pointer;
  transition: background 0.13s, color 0.13s;
}
.cookie-banner .accept {
  background: var(--color-primary);
  color: var(--color-accent);
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-banner .reject {
  background: var(--color-brown);
  color: #fff;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: var(--color-red);
}
.cookie-banner .settings {
  background: var(--color-accent);
  color: var(--color-dark);
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: var(--color-secondary);
  color: #fff;
}

/* COOKIE MODAL POPUP */
.cookie-modal {
  display: none;
  position: fixed;
  z-index: 185;
  top: 50%;
  left: 50%;
  width: 94vw;
  max-width: 385px;
  transform: translate(-50%, -55%) scale(1);
  background: #fff9f3;
  box-shadow: 0 12px 70px 0 rgba(50,43,35,0.22);
  border-radius: 21px;
  padding: 36px 18px 24px 22px;
  animation: fadeInPop .26s cubic-bezier(.7,.2,.15,1.1);
  border: 3px solid var(--color-accent);
}
.cookie-modal.open {
  display: block;
}
@keyframes fadeInPop {
    from { opacity: 0; transform: translate(-50%, -60%) scale(.9); }
    to   { opacity: 1; transform: translate(-50%, -55%) scale(1); }
}
.cookie-modal h2 {
  font-family: var(--font-display);
  color: var(--color-primary);
  margin-bottom: 16px;
  font-size: 1.33rem;
  letter-spacing: 2px;
}
.cookie-modal .category {
  margin-bottom: 13px;
  padding: 8px 0 6px 0;
  border-bottom: 1px solid var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cookie-modal .category label {
  font-family: var(--font-body);
  font-size: 1.06rem;
}
.cookie-modal .category input[type="checkbox"] {
  accent-color: var(--color-primary);
  width: 17px; height: 17px;
  margin-right: 4px;
}
.cookie-modal .category input[disabled] {
  accent-color: var(--color-brown);
  opacity: 0.6;
}
.cookie-modal .category.essential label {
  font-weight: 700;
  color: var(--color-primary);
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 26px;
}
.cookie-modal .modal-actions button {
  font-family: var(--font-display);
  font-size: 1.03rem;
  border-radius: 8px;
  padding: 7px 17px;
  border: none;
  transition: background .11s, color .11s;
}
.cookie-modal .modal-actions .accept {
  background: var(--color-primary);
  color: var(--color-accent);
}
.cookie-modal .modal-actions .accept:hover, .cookie-modal .modal-actions .accept:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-modal .modal-actions .cancel {
  background: var(--color-brown);
  color: #fff;
}
.cookie-modal .modal-actions .cancel:hover, .cookie-modal .modal-actions .cancel:focus {
  background: var(--color-red);
}

/* MEDIA QUERIES */
@media (max-width: 1075px) {
  .container { max-width: 996px; }
}
@media (max-width: 900px) {
  .container { max-width: 748px; }
  .text-section,
  .card,
  .team-grid > div {
    max-width: 100%;
  }
  .main-nav { gap: 6px; }
}
@media (max-width: 768px) {
  html { font-size: 16px; }
  .section {
    padding: 32px 5px;
  }
  .content-wrapper {
    gap: 16px;
  }
  header .container {
    flex-direction: row;
    gap: 7px;
    padding: 8px 0 7px 0;
  }
  .main-nav {
    display: none;
  }
  .btn-primary {
    padding: 10px 22px 11px 22px;
    font-size: 1rem;
  }
  .btn-secondary {
    padding: 10px 21px 11px 21px;
    font-size: 1rem;
  }

  .mobile-menu-toggle {
    display: flex;
  }
  .team-grid, .feature-grid, .service-grid, .card-grid {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 17px 12px;
  }
  .footer-nav {
    gap: 13px;
    font-size: .99rem;
  }
  .cta-banner {
    padding: 32px 6px;
    margin: 18px 0 36px 0;
  }
  .text-image-section {
    flex-direction: column;
    gap: 17px;
    align-items: flex-start;
  }
  .text-section {
    padding: 20px 6px;
    margin: 0 auto 14px auto;
  }
}
@media (max-width: 540px) {
  h1, .h1 { font-size: 1.6rem; margin-bottom: 17px; }
  h2, .h2 { font-size: 1.17rem; margin-bottom: 10px; }
  .section { padding: 22px 0 6px 0; }
  .card { padding: 18px 8px; }
  .note { padding: 7px 10px; font-size: .99rem; }
  .hero { padding: 32px 0 23px 0; }
  .cookie-banner { font-size: .96rem; flex-direction: column; gap: 9px; padding: 10px 4px; }
}

/* SPACING, FLEX, AND ALIGNMENT: GLOBAL MANDATES */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

@media (max-width: 768px) {
  .section { padding: 24px 6px; margin-bottom: 32px; }
  .card-container,
  .content-grid,
  .feature-grid,
  .service-grid,
  .team-grid,
  .faq-list {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section { flex-direction: column; gap: 15px; }
}

/* MICRO-INTERACTIONS */
.card, .team-grid > div, .testimonial-card, .btn-primary, .btn-secondary, .cookie-banner button {
  transition: box-shadow 0.16s, background 0.14s, color 0.14s, transform 0.14s;
}
.card:hover, .team-grid > div:hover, .testimonial-card:hover {
  box-shadow: 0 13px 30px 0 rgba(50,43,35,0.16), var(--shadow-vintage);
  transform: scale(1.013);
}
.testimonial-card:active { transform: scale(.97); }

/* ACCESSIBILITY: CONTRAST FOR TESTIMONIALS & REVIEW SECTIONS */
.testimonial-card { background: #FFFDF7; color: #322B23; }
.testimonial-card blockquote { color: #173354; }

/* SELECTION / CUSTOM FOCUSES */
::selection { background: var(--color-accent); color: var(--color-primary); }

/* PRINT SUPPORT */
@media print {
  header, footer, .cookie-banner, .mobile-menu, .mobile-menu-toggle { display: none !important; }
}
