/* RESET & BASE --------------------------------------------------- */
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;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  line-height: 1.6;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #F3EDDF;
  color: #2D2220;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; transition: color 0.2s;}
button { font-family: inherit; background: none; border: none; cursor: pointer; }
input, textarea { font-family: inherit; }

/* RETRO COLORS & BRAND PALETTE ------------------------------------- */
:root {
  --primary: #00527D;
  --secondary: #E9F1F7;
  --background-main: #F3EDDF;
  --accent: #227A54;
  --offwhite: #FFF8EC;
  --brown: #593A28;
  --gold: #E7B95A;
  --retro-red: #B85743;
  --retro-blue: #5A7FA3;
  --retro-green: #729878;
  --retro-yellow: #F2C066;
  --shadow: 0 4px 16px 0 rgba(89,58,40,0.08);
}

/* FONT FAMILIES --------------------------------------------------- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Arial Black', Arial, sans-serif;
  color: var(--primary);
  letter-spacing: 1px;
  font-weight: 900;
}
h1 { font-size: 2.2rem; line-height: 1.1; margin-bottom: 20px; }
h2 { font-size: 1.5rem; margin-bottom: 18px; font-weight: 800; color: var(--accent); }
h3 { font-size: 1.2rem; margin-bottom: 13px; font-weight: 800; color: var(--brown); }
body, p, ul, li { font-family: 'Open Sans', Arial, sans-serif; font-size: 16px; color: #2D2220; }

/* VINTAGE PATTERNS / NOSTALGIC DECOR ------------------------------ */
body {
  background: repeating-linear-gradient(135deg, var(--offwhite), var(--offwhite) 30px, #E9F1F7 40px, #E9F1F7 80px);
}

.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  background: var(--offwhite);
  border: 2px dashed var(--gold);
  border-radius: 18px;
  padding: 32px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px 0 rgba(89,58,40,0.07);
}

/* HEADER & NAVIGATION ---------------------------------------------- */
header {
  background: #FFF8EC;
  border-bottom: 3px solid var(--primary);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 30;
}
header > a img { height: 46px; margin-right: 30px; }
nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: .5px;
  padding: 6px 10px;
  border-radius: 10px;
  position: relative;
  transition: background 0.16s, color 0.16s;
}
nav a:hover, nav a:focus {
  background: var(--retro-yellow);
  color: var(--brown);
}
.cta-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--retro-red);
  color: #fff !important;
  border-radius: 30px;
  padding: 10px 33px;
  font-weight: 900;
  font-size: 1rem;
  border: 2.5px solid var(--brown);
  box-shadow: 0 3px 10px 0 rgba(186, 87, 67, 0.10);
  margin-left: 24px;
  transition: background 0.18s, color 0.15s, transform 0.18s;
  outline: none;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--primary);
  color: #FFF7EA !important;
  transform: translateY(-3px) scale(1.04) rotate(-1deg);
}
.cta-secondary {
  background: var(--retro-blue);
  color: #fff!important;
  border-radius: 30px;
  padding: 10px 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  border: 2px solid var(--retro-blue);
  box-shadow: 0 2px 7px 0 rgba(90,127,163,0.08);
  margin-top: 14px;
  transition: background 0.19s, color 0.13s, box-shadow 0.14s;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--retro-yellow);
  color: var(--brown)!important;
  border-color: var(--retro-yellow);
  box-shadow: 0 4px 10px 0 rgba(242,192,102,0.13);
}

/* MOBILE MENU ------------------------------------------------------ */
.mobile-menu-toggle {
  display: none;
  font-size: 2.2rem;
  padding: 6px 14px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--accent);
  margin-left: 18px;
  transition: background .17s, color .17s, transform .17s;
}
.mobile-menu-toggle:active {
  background: var(--retro-red);
  transform: scale(1.1) rotate(-5deg);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(243, 237, 223, .98);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(.77,0,.18,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 26px;
  box-shadow: 5px 0 40px 0 rgba(89,58,40,0.13);
}
.mobile-menu.open { transform: translateX(0%); }
.mobile-menu-close {
  font-size: 2.4rem;
  margin-left: auto;
  margin-right: 24px;
  color: var(--retro-red);
  background: none;
  border: 2px solid var(--retro-red);
  border-radius: 50%;
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  transition: background .17s, color .13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--retro-yellow);
  color: var(--brown);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 38px 0 0 36px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.5px;
  color: var(--brown);
  padding: 17px 0 6px 7px;
  border-bottom: 1.5px dotted var(--retro-blue);
  border-radius: 0;
  transition: background .17s,color .17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--retro-yellow);
  color: var(--primary);
}

/* HIDE DESKTOP NAVIGATION ON MOBILE */
@media (max-width: 980px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 981px) {
  .mobile-menu {
    display: none !important;
  }
}

/* HERO ------------------------------------------------------------- */
#hero {
  background: var(--retro-yellow);
  border-bottom: 6px solid var(--accent);
  padding-top: 38px;
  padding-bottom: 38px;
  border-radius: 0 0 44px 44px;
  box-shadow: 0 16px 36px -24px var(--accent);
  margin-bottom: 50px;
  min-height: 260px;
}
#hero .content-wrapper {
  align-items: flex-start;
  gap: 24px;
  max-width: 600px;
}
#hero h1 { color: var(--brown); font-size: 2.45rem; }
#hero p {
  font-size: 1.18rem;
  color: var(--primary);
  font-weight: 600;
}

/* FEATURE / LIST / CARD CONTAINERS --------------------------------- */
#features ul, #services ul, .contact-details, .text-section ul {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 8px;
  margin-bottom: 24px;
  padding-left: 0;
}
#features ul li, #services ul li, .text-section ul li, .contact-details li {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.08rem;
  color: var(--accent);
  background: var(--offwhite);
  border-radius: 12px;
  box-shadow: 0 3px 12px 0 rgba(101,53,40,0.06);
  padding: 13px 18px;
  border-left: 6px solid var(--gold);
  position: relative;
  margin-bottom: 8px;
}
#features ul li img, #services ul li img, .contact-details li img {
  width: 27px; min-width: 27px; height: 27px; margin-right: 9px;
}

/* GENERIC CARD & CONTAINER FLEX SPACING ---------------------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--offwhite);
  margin-bottom: 20px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 23px 22px;
  min-width: 250px;
}
.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;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 5px 18px 0 rgba(34, 122, 84, 0.07);
  margin-bottom: 28px;
  padding: 24px 22px;
  border-left: 8px solid var(--retro-green);
  transition: box-shadow 0.18s, transform 0.18s;
  position: relative;
}
.testimonial-card p {
  color: var(--primary);
  font-size: 1.09rem;
  font-weight: 600;
}
.testimonial-card strong {
  color: var(--accent);
  font-family: 'Montserrat';
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.testimonial-card:hover {
  box-shadow: 0 12px 28px 0 rgba(34,122,84,0.20);
  transform: scale(1.022) rotate(-0.8deg);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--offwhite);
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  padding: 17px 20px;
  border-left: 6px solid var(--retro-blue);
}

/* FOOTER ----------------------------------------------------------- */
footer {
  background: var(--primary);
  color: #fff;
  padding: 38px 0 22px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  margin-top: 60px;
  border-radius: 38px 38px 0 0;
}
.footer-menu {
  display: flex;
  gap: 18px;
  margin-bottom: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-menu a {
  color: var(--retro-yellow);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 7px;
  padding: 4px 9px;
  background: rgba(255,255,255,0.10);
  transition: background .17s, color .14s;
}
.footer-menu a:hover, .footer-menu a:focus {
  background: var(--gold);
  color: var(--brown);
}
.footer-info {
  color: #fff8ec;
  text-align: center;
  font-size: 0.96rem;
  letter-spacing: 0.4px;
  opacity: 0.88;
}

/* FORMS / CONTACT DETAILS ------------------------------------------ */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}
.contact-details li {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--retro-blue);
  background: var(--secondary);
  border-left: 5px solid var(--primary);
}
.contact-details li img {
  width: 22px; min-width: 22px; height: 22px;
}

/* MANDATORY SECTION FLEX SPACING ----------------------------------- */
.section, 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;
}

/* TYPOGRAPHY AT SCALE ---------------------------------------------- */
h1 { font-size: 2.2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
p, ul, li, strong { font-size: 1rem; }
@media (min-width: 530px) {
  h1 { font-size: 2.7rem; }
}
@media (min-width: 980px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.34rem; }
  .content-wrapper {gap: 36px;}
}

/* TABLET/DESKTOP SPACING ------------------------------------------- */
@media (min-width: 700px) {
  .container {
    padding: 0 40px;
  }
  .section, section {
    padding: 60px 0px;
  }
}

@media (min-width: 900px) {
  section .content-wrapper, section > .content-wrapper {
    flex-direction: row;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .content-grid,.text-image-section { flex-direction: column; gap: 22px; }
  .testimonial-card { flex-direction: column; gap: 13px; }
  header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 24px 10px;
  }
  .footer-menu { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.44rem!important; }
  h2 { font-size: 1.18rem; }
  section, .section { padding: 25px 4px; }
  .container { padding: 0 2px; }
}

/* VINTAGE CARD/SECTION EFFECTS ------------------------------------- */
.text-section {
  position: relative;
  overflow: hidden;
}
.text-section:before {
  content: "";
  position: absolute;
  top: -30px; left: -15px;
  width: 75px; height: 75px;
  background: url('data:image/svg+xml,%3Csvg width="60" height="60" fill="%23e7b95a" opacity=".19" xmlns="http://www.w3.org/2000/svg"%3E%3Ccircle cx="30" cy="30" r="20"/%3E%3C/svg%3E') center center/cover no-repeat;
  z-index: 0;
}
.text-section:after {
  content: "";
  position: absolute;
  bottom: -15px; right: -17px;
  width: 56px; height: 56px;
  background: url('data:image/svg+xml,%3Csvg width="56" height="56" fill="%23593728" opacity=".13" xmlns="http://www.w3.org/2000/svg"%3E%3Crect width="56" height="56" rx="24"/%3E%3C/svg%3E') center center/cover no-repeat;
  z-index: 0;
}
.text-section > * { position: relative; z-index: 1; }

/* BUTTON INTERACTIONS ---------------------------------------------- */
button:focus, .cta-primary:focus, .cta-secondary:focus {
  outline: 2.5px dashed var(--accent);
  outline-offset: 2.5px;
}
.cta-primary:active, .cta-secondary:active {
  transform: scale(0.96);
}

/* ANIMATIONS ------------------------------------------------------- */
a, button, .cta-primary, .cta-secondary, .testimonial-card {
  transition: all 0.18s cubic-bezier(.4,.01,.22,1);
}

/* VINTAGE BADGES, PATTERNS (OPTIONAL DECOR) ------------------------ */
/* -- Only if desired, can be extended for real badges/labels -- */

/* COOKIE CONSENT --------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--primary);
  color: #fff;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 30px 30px 0 0;
  box-shadow: 0 -1px 14px 1px rgba(90,127,163,0.13);
  padding: 28px 10px 16px 10px;
  gap: 14px;
  animation: cookieSlideIn .7s cubic-bezier(.68,-0.31,.13,1.31);
}
@keyframes cookieSlideIn {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0%); opacity: 1; }
}
.cookie-banner p {
  color: #fff8ec;
  font-size: 1rem;
  margin-bottom: 8px;
  text-align: center;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 13px;
  margin-top: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.cookie-banner button {
  border: none;
  border-radius: 19px;
  padding: 8px 20px;
  font-family: 'Montserrat';
  font-size: 1rem;
  margin-right: 0;
  margin-bottom: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.13s, color 0.10s, box-shadow .15s;
}
.cookie-banner .accept {
  background: var(--retro-green);
  color: #fff;
  margin-right: 0;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: var(--gold);
  color: var(--brown);
}
.cookie-banner .reject {
  background: var(--retro-red);
  color: #fff;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: var(--gold);
  color: var(--brown);
}
.cookie-banner .settings {
  background: var(--accent);
  color: #ebe7df;
}  
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: var(--retro-yellow);
  color: var(--brown);
}

/* COOKIE MODAL ----------------------------------------------------- */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(36,31,27,0.43);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1120;
  animation: cookieModalIn .3s cubic-bezier(.7,0,.08,1);
}
@keyframes cookieModalIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal .modal-content {
  background: var(--offwhite);
  border-radius: 18px;
  max-width: 410px;
  width: 94vw;
  box-shadow: 0 8px 22px 4px rgba(89,58,40,0.12);
  padding: 36px 26px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 19px;
  position: relative;
}
.cookie-modal .modal-content h2 {
  font-size: 1.35rem;
  color: var(--primary);
}
.cookie-modal .category {
  display: flex;
  align-items: center;
  gap: 9px;
  justify-content: space-between;
  margin-bottom: 7px;
}
.cookie-modal label {
  font-family: 'Open Sans';
  font-size: 1rem;
}
.cookie-modal .cookie-switch {
  width: 42px; height: 24px;
  background: var(--retro-yellow);
  border-radius: 16px;
  position: relative;
  transition: background .16s;
  margin-left: 7px;
  display: flex; align-items: center;
}
.cookie-modal .cookie-switch input {
  opacity: 0; width: 0; height: 0;
}
.cookie-modal .slider {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  border-radius: 16px;
  background: var(--retro-yellow);
  transition: background .17s;
}
.cookie-modal .cookie-switch input:checked + .slider {
  background: var(--retro-green);
}
.cookie-modal .knob {
  position: absolute;
  left: 3px; top: 4px;
  width: 18px; height: 16px;
  background: #fff;
  border-radius: 12px;
  transition: transform .16s;
}
.cookie-modal .cookie-switch input:checked + .slider .knob {
  transform: translateX(18px);
}
.cookie-modal .close {
  position: absolute;
  right: 17px; top: 13px;
  font-size: 1.7rem;
  background: none;
  border: none;
  color: var(--retro-red);
  cursor: pointer;
  line-height: 1;
}
.cookie-modal .save {
  background: var(--retro-green);
  color: #fff;
  border-radius: 20px;
  padding: 9px 19px;
  border: none;
  font-family: 'Montserrat';
  font-weight: bold;
  letter-spacing: .5px;
  margin-top: 15px;
}
.cookie-modal .save:hover, .cookie-modal .save:focus {
  background: var(--retro-yellow);
  color: var(--brown);
}

/* UTILITIES -------------------------------------------------------- */
hr {
  border: 0; height: 2px; background: var(--gold);
  margin: 34px 0;
  opacity: 0.38;
  width: 60%;
}
.mt-0 { margin-top: 0px!important; }
.mb-0 { margin-bottom: 0px!important; }
.mt-20 { margin-top: 20px!important; }
.mb-20 { margin-bottom: 20px!important; }

/* SCROLLBAR STYLING (RETRO VIBE) ----------------------------------- */
::-webkit-scrollbar {
  width: 11px;
  background: var(--offwhite);
}
::-webkit-scrollbar-thumb {
  background: var(--retro-blue);
  border-radius: 20px;
}

/* ENSURE MIN GAP BETWEEN CARDS/SECTIONS & NO OVERLAP --------------- */
section, .section, .card, .testimonial-card, .feature-item, .text-section {
  margin-bottom: 28px;
}

section:last-child, .section:last-child {
  margin-bottom: 0;
}

/* FOCUS STATE ACCESSIBILITY ---------------------------------------- */
a:focus, button:focus {
  outline: 2.2px dashed var(--retro-blue);
  outline-offset: 2px;
}

/* PRINT BRANDING (HIDE NAV, FOOTER ON PRINT) ----------------------- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  main { background: #fff!important; color: #000!important; }
}
