/* ------------------------------------------------------
   CSS RESET & BASIC NORMALIZATION (Vintage Retro Edition)
--------------------------------------------------------- */
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background-color: #F6F6F6;
  color: #25211b;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
img {
  display: block;
  max-width: 100%;
}

/* ------------------------------------------------------
    FONT FACES (Retro/Vintage inspired, fallbacks included)
-------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Roboto:wght@400;500&family=Pacifico&family=EB+Garamond:wght@600&display=swap');

:root {
  --primary: #22577A;
  --primary-dark: #183A53;
  --secondary: #7AE582;
  --accent: #F6F6F6;
  --vintage-orange: #FFBA49;
  --vintage-red: #CA7361;
  --vintage-brown: #6E4C1B;
  --vintage-bg: #F3E8E0;
  --vintage-green: #A7C957;
  --vintage-cream: #FCF6E5;
  --shadow-color: rgba(34,39,44,0.10);
  --radius: 16px;
  --header-font: 'Montserrat', 'EB Garamond', 'Pacifico', serif;
  --body-font: 'Roboto', Arial, sans-serif;
  --display-font: 'Pacifico', 'Montserrat', cursive;
  --transition: 0.3s cubic-bezier(.55,.06,.68,.19);
  --text-dark: #25211b;
  --text-light: #fff;
  --section-padding: 40px 20px;
  --section-margin: 60px;
  --gap: 24px;
  --card-margin: 20px;
  --container-width: 1200px;
}

body {
  font-family: var(--body-font);
  background: var(--vintage-cream);
  color: var(--text-dark);
}

/* ------------------------------------------
   TYPOGRAPHY HIERARCHY (vintage/retro style)
----------------------------------------------*/
h1,
h2,
h3,
h4 {
  font-family: var(--header-font);
  color: var(--primary);
  letter-spacing: 1.5px;
  line-height: 1.1;
}
h1 {
  font-size: 2.7rem;
  font-family: var(--display-font);
  color: var(--vintage-brown);
  margin-bottom: 18px;
  text-shadow: 2px 2px 0 #FFF6D7, 0 2px 6px var(--shadow-color);
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--primary);
  font-family: var(--header-font);
  text-shadow: 1px 1px 0 #FFBA49, 0 2px 2px var(--shadow-color);
}
h3 {
  font-size: 1.5rem;
  color: var(--vintage-orange);
  margin-bottom: 12px;
  font-family: var(--header-font);
}
h4 {
  font-size: 1.25rem;
  color: var(--vintage-green);
}
p, ul, ol, li, dt, dd {
  font-size: 1.08rem;
  color: var(--vintage-brown);
  line-height: 1.7;
}
.subheadline {
  font-size: 1.22rem;
  color: var(--primary);
  margin-bottom: 26px;
  letter-spacing: 0.5px;
  font-style: italic;
  font-family: var(--header-font);
}
strong {
  font-weight: 700;
  color: var(--primary-dark);
}
a {
  transition: color var(--transition);
}
a:hover, a:focus {
  color: var(--vintage-red);
}

/* ------------------------------------------------------
  LAYOUT: Containers, Section, Flex Patterns, Spacing
--------------------------------------------------------- */
.container {
  max-width: var(--container-width);
  padding: 0 16px;
  margin: 0 auto;
  width: 100%;
}
.section {
  margin-bottom: var(--section-margin);
  padding: var(--section-padding);
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px var(--shadow-color);
  position: relative;
}
/* For retro patterned bg */
.section:not(:first-of-type) {
  background: repeating-linear-gradient(135deg,var(--vintage-cream) 0 24px, #f3e3c3 24px 48px);
  border: 2px solid #EDD9C0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 22px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  border-radius: var(--radius);
  background: var(--vintage-bg);
  box-shadow: 0 2px 8px var(--shadow-color);
  padding: 28px;
  position: relative;
  border: 2px solid var(--vintage-green);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 8px 24px rgba(81,51,24,0.15);
  transform: translateY(-3px) scale(1.012);
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px;
  border-radius: var(--radius);
  box-shadow: 0 3px 14px var(--shadow-color);
  margin-bottom: 20px;
  background: #F8F2E9;
  border-left: 7px solid var(--primary);
  position: relative;
  min-width: 230px;
}
.testimonial-card p {
  color: #352b11;
  font-weight: 500;
  font-size: 1.05rem;
  font-family: var(--header-font);
  margin-bottom: 7px;
}
.testimonial-card span {
  color: var(--vintage-brown);
  font-size: 0.98rem;
  font-style: italic;
  font-family: var(--body-font);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ---------------
   MAIN NAVIGATION
------------------ */
header {
  background: var(--primary);
  box-shadow: 0 3px 16px var(--shadow-color);
  border-bottom: 3px solid var(--vintage-orange);
  position: sticky;
  top: 0;
  z-index: 80;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  max-width: var(--container-width);
  margin: 0 auto;
  position: relative;
}
.main-nav > a img {
  height: 54px;
  width: auto;
  margin-right: 8px;
  filter: drop-shadow(1px 1px #FFD29E);
  transition: filter .25s;
}
.main-nav ul {
  display: flex;
  gap: 26px;
  align-items: center;
  margin: 0 18px;
}
.main-nav li {
  list-style: none;
}
.main-nav a {
  color: var(--accent);
  font-family: var(--header-font);
  font-size: 1.13rem;
  letter-spacing: 1.1px;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--vintage-orange);
  background: rgba(255,255,255,0.14);
}
.cta-button {
  background: var(--vintage-orange);
  color: #593e12!important;
  border-radius: 26px;
  padding: 12px 32px;
  font-size: 1.15rem;
  font-family: var(--header-font);
  font-weight: bold;
  box-shadow: 0 2px 10px var(--shadow-color);
  border: 2px solid var(--primary-dark);
  margin-left: 22px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  position: relative;
}
.cta-button:hover, .cta-button:focus {
  background: var(--primary);
  color: #fff!important;
  border-color: var(--vintage-orange);
  box-shadow: 0 4px 16px rgba(34, 87, 122, 0.16);
}

/* -----
  MOBILE NAVIGATION
---------- */
.mobile-menu-toggle {
  display: none;
  background: var(--vintage-orange);
  color: var(--primary-dark);
  border: none;
  font-size: 2.2rem;
  padding: 10px 16px;
  border-radius: 12px;
  margin: 0 10px 0 0;
  position: absolute;
  top: 17px;
  right: 17px;
  cursor: pointer;
  z-index: 102;
  box-shadow: 0 2px 8px var(--shadow-color);
  transition: background var(--transition);
}
.mobile-menu-toggle:focus {
  outline: 2px dashed var(--primary-dark);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff6e4;
  box-shadow: -2px 0 24px rgba(51,39,0,.28);
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(.73,.01,.51,1.1);
  z-index: 120;
  padding: 0 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--primary-dark);
  margin: 18px 0 6px 20px;
  cursor: pointer;
  align-self: flex-start;
  transition: color var(--transition);
}
.mobile-menu-close:hover {
  color: var(--vintage-red);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 12px;
  padding: 30px 28px;
  justify-content: flex-start;
}
.mobile-nav a {
  font-family: var(--header-font);
  font-size: 1.23rem;
  color: var(--primary-dark);
  padding: 14px 18px;
  border-radius: 12px;
  background: none;
  text-align: left;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--vintage-orange);
  color: #fff;
}

/* Responsive hiding of main-nav and display of mobile toggle */
@media (max-width: 900px) {
  .main-nav ul,
  .main-nav .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 900px) {
  .main-nav {
    justify-content: flex-start;
  }
}
/* Hide mobile-menu-toggle if menu is open */
.mobile-menu.open ~ .mobile-menu-toggle {
  display: none;
}

/* ---------------------------------------------------------
   HERO STYLES (Header section)
---------------------------------------------------------- */
main > section:first-of-type .container {
  padding-top: 34px;
}
main > section:first-of-type {
  background: repeating-linear-gradient(120deg, #F6F6F6 0 36px, #F3E8E0 36px 60px);
  box-shadow: 0 8px 24px var(--shadow-color);
}
main > section:first-of-type h1 {
  font-size: 2.8rem;
  margin-bottom: 12px;
  color: var(--vintage-red);
  font-family: var(--display-font);
}
.main-nav > a img:hover {
  filter: drop-shadow(0px 0px 6px var(--vintage-orange));
}

/* ----------------------------------
   ICON-LIST for Features/Services
------------------------------------- */
.content-wrapper ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.content-wrapper ul li {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1.09rem;
  font-family: var(--body-font);
  padding: 8px 0 8px 0;
  border-radius: 7px;
  background: linear-gradient(90deg,rgba(250,249,244,1) 0,rgba(255,255,255,.4) 100%);
  box-shadow: none;
  border-left: 3px dotted var(--vintage-green);
  transition: background 0.22s;
}
.content-wrapper ul li img {
  width: 29px;
  height: 29px;
  filter: sepia(0.4) hue-rotate(28deg) brightness(0.96) contrast(1.1);
}
.content-wrapper ul li:hover {
  background: var(--vintage-cream);
}

/* -----------------------------------
   TABLE
-------------------------------------- */
table {
  width: 100%;
  background: #FFF9ED;
  margin: 0 0 22px 0;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px var(--shadow-color);
  font-size: 1.05rem;
  font-family: var(--body-font);
}
table th, table td {
  text-align: left;
  padding: 15px 13px;
  border-bottom: 1px solid #F2DEB6;
}
table th {
  background: var(--vintage-orange);
  color: #633e1d;
  font-family: var(--header-font);
  font-size: 1.07rem;
}
table tr:last-child td, table tr:last-child th {
  border-bottom: none;
}

/* -----------------------------------------
     FOOTER
--------------------------------------------*/
footer {
  background: var(--vintage-orange);
  color: #513920;
  position: relative;
  margin-top: var(--section-margin);
  box-shadow: 0 -4px 30px var(--shadow-color);
  border-top: 3px solid var(--primary);
}
footer .container {
  padding: 40px 20px 20px 20px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
}
footer img {
  width: 95px;
  margin-bottom: 20px;
}
footer nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
footer nav a {
  color: #593e12;
  font-size: 1.07rem;
  font-family: var(--header-font);
  transition: color .2s;
  border-radius: 6px;
  padding: 6px 8px;
  letter-spacing: 0.5px;
}
footer nav a:hover,
footer nav a:focus {
  color: var(--primary);
  text-decoration: underline;
}
footer .text-section {
  font-size: 0.98rem;
  line-height: 1.5;
  color: #765736;
  font-family: var(--body-font);
  margin-top: 8px;
}
footer .text-section a {
  color: #88664C;
  font-weight: bold;
  transition: color var(--transition);
}
footer .text-section a:hover {
  color: var(--primary-dark);
}

/* ----------------------------
   COOKIE CONSENT BANNER
----------------------------- */
#cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #FCF6E5;
  color: #4B3023;
  box-shadow: 0 -2px 18px var(--shadow-color);
  z-index: 160;
  padding: 30px 20px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-size: 1.07rem;
  border-top: 3px solid var(--vintage-orange);
  animation: banner-in 0.75s cubic-bezier(.6,1.54,.48,1.01);
}
@keyframes banner-in {
  from { opacity: 0; transform: translateY(85px); }
  to   { opacity: 1; transform: translateY(0); }
}
#cookie-banner > p {
  text-align: center;
  font-size: 1.12rem;
}
#cookie-banner .cookie-btns {
  display: flex;
  gap: 18px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.cookie-btn {
  font-family: var(--header-font);
  border: none;
  outline: none;
  border-radius: 24px;
  font-size: 1.07rem;
  padding: 11px 26px;
  margin: 0 3px;
  background: var(--vintage-orange);
  color: #613d0d;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.2s;
  box-shadow: 0 2px 7px var(--shadow-color);
}
.cookie-btn:hover { background: var(--primary); color: #fff; }
.cookie-btn.settings {
  background: var(--primary);
  color: #fff;
}
.cookie-btn.settings:hover {
  background: var(--vintage-orange);
  color: #613d0d;
}
.cookie-btn.reject {
  background: var(--vintage-red);
  color: #fff;
}
.cookie-btn.reject:hover {
  background: var(--vintage-brown);
  color: #fff;
}
/* Cookie modal popup */
#cookie-modal {
  display: none;
  position: fixed;
  z-index: 170;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(45,34,17, 0.18);
  align-items: center;
  justify-content: center;
  animation: modal-in 0.35s cubic-bezier(.7,2.24,.38,.81);
}
#cookie-modal.show {
  display: flex;
}
@keyframes modal-in {
  from { opacity:0; }
  to   { opacity:1; }
}
#cookie-modal .modal-content {
  background: #fff9e9;
  border-radius: 18px;
  padding: 40px 22px 30px 22px;
  box-shadow: 0 6px 34px rgba(205,157,39, 0.19);
  max-width: 370px;
  min-width: 284px;
  width: 95%;
  position: relative;
  color: #412C14;
}
#cookie-modal h3 {
  font-family: var(--header-font);
  color: var(--vintage-orange);
  margin-bottom: 12px;
  font-size: 1.37rem;
  text-align: left;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 21px 0 18px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.08rem;
  font-family: var(--body-font);
}
.cookie-category label {
  cursor: pointer;
  font-weight: 500;
}
.cookie-category input[type="checkbox"]:disabled + label {
  color: #AAA;
  font-style: italic;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--vintage-orange);
}
.cookie-modal-btns {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
}
.cookie-modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--primary-dark);
  position: absolute;
  right: 18px;
  top: 18px;
  cursor: pointer;
}
.cookie-modal-close:hover {
  color: var(--vintage-red);
}

/* -------------------
   FORMS (if present)
---------------------- */
input, textarea, select {
  font-family: var(--body-font);
  border-radius: 8px;
  border: 1.5px solid #E2B986;
  padding: 10px 12px;
  background: #fff8ea;
  color: #503D25;
  font-size: 1rem;
  margin-bottom: 18px;
  width: 100%;
  transition: border-color .18s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  outline: none;
}
label {
  font-family: var(--header-font);
  color: #6E4C1B;
  font-size: 1.07rem;
  margin-bottom: 6px;
  display: block;
}

/* --------------
    DL STYLES
----------------- */
dl {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
dt {
  font-family: var(--header-font);
  font-size: 1.13rem;
  color: var(--primary);
  margin-top: 13px;
}
dd {
  font-size: 1.03rem;
  margin-left: 10px;
}

/* ------------------------------
   STARS/REVIEWS
--------------------------------- */
main .content-wrapper > div {
  font-size: 1.28rem;
  color: var(--vintage-orange);
  font-family: 'Pacifico', cursive;
  margin: 24px 0 0 0;
  letter-spacing: 3px;
}

/* ----------------------------------------
    UTILITY CLASSES FOR SPACING & FLEX
----------------------------------------- */
.mt-20 { margin-top: 20px!important; }
.mb-30 { margin-bottom: 30px!important; }
.mt-40 { margin-top: 40px!important; }
.mb-40 { margin-bottom: 40px!important; }

/* -----------------------------
   RESPONSIVENESS (mobile first)
------------------------------- */
@media (max-width: 1200px) {
  .container { max-width: 1000px; }
}
@media (max-width: 900px) {
  .container { max-width: 760px; }
  .footer .content-wrapper { gap: 18px; }
}
@media (max-width: 768px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.45rem; }
  h3 { font-size: 1.13rem; }
  .main-nav {
    flex-direction: row;
    padding: 14px 0;
  }
  .section {
    padding: 29px 6px;
    margin-bottom: 36px;
  }
  .content-wrapper, .text-image-section, .card-container, .content-grid, .feature-item {
    flex-direction: column!important;
    gap: 14px!important;
    padding: 0;
  }
  .testimonial-card {
    padding: 17px 14px;
  }
  footer .container {
    padding-left: 9px;
    padding-right: 9px;
    padding-top: 30px;
  }
  .footer .content-wrapper {
    flex-direction: column!important;
    gap: 10px!important;
  }
}

@media (max-width: 540px) {
  h1 { font-size: 1.33rem; }
  h2 { font-size: 1.07rem; }
  .section { margin-bottom: 22px; }
  .main-nav > a img { height: 34px; }
  .cta-button { font-size: 0.98rem; padding: 10px 19px; }
  #cookie-banner { font-size: 1.01rem; padding: 18px 6px 15px 6px; }
  .testimonial-card { padding: 10px 6px; }
  .card { padding: 10px; }
  table th, table td { font-size: 0.97rem; padding: 8px; }
}

/* -------------
   MICRO-INTERACTIONS
--------------------- */
.cta-button, .cookie-btn, .mobile-menu-toggle {
  transition: background 0.18s, color 0.18s, box-shadow 0.2s, transform 0.18s;
}
.cta-button:active, .cookie-btn:active, .mobile-menu-toggle:active {
  transform: scale(0.98) translateY(2px);
}

/* -------------
   SELECTION
--------------------- */
::selection {
  background: var(--vintage-orange);
  color: #fff;
}

/*
  Decorative (optional): vintage corner curl/pattern for sections (after pseudo)
*/
.section::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0; 
  width: 64px;
  height: 44px;
  background: url('data:image/svg+xml;utf8,<svg fill="%23EDD9C0" fill-opacity="0.5" width="65" height="44" xmlns="http://www.w3.org/2000/svg"><ellipse cx="50" cy="44" rx="20" ry="14"/></svg>') no-repeat right bottom;
  opacity: 0.76;
  pointer-events: none;
  z-index: 0;
}
/* Hide decorative in first section */
main > section:first-of-type.section::after {
  display: none;
}

/** Ensures minimum spacing for all cards/sections in page structure **/
.section, .card, .testimonial-card { margin-bottom: 20px; }
.section { margin-bottom: 60px; }
.card-container, .content-grid, .feature-item, .text-image-section, .testimonial-card { gap: 20px; }

/* ----------------------
 FOR ACCESSIBILITY
------------------------ */
:focus {
  outline: 2px solid var(--primary-dark);
  outline-offset: 2px;
}

/* HIDE visually-hidden content if needed */
.visually-hidden {
  position: absolute!important;
  overflow: hidden!important;
  clip: rect(1px,1px,1px,1px);
  height: 1px; width: 1px; padding:0; margin: -1px;
  border:0; white-space:nowrap;
}

/* ----------------------
   PRINT OPTIMIZATION
------------------------ */
@media print {
  header, footer, #cookie-banner, #cookie-modal { display: none!important; }
  body { background: #fff!important; color: #222!important; }
  .section, .card, .testimonial-card { box-shadow: none!important; background: #fff!important; }
}

/* -------------------
   END
--------------------- */