/* ====== CSS RESET & NORMALIZE ====== */
* { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, img, nav, footer, header, section, main, article, aside, button, input, textarea {
  margin: 0; padding: 0; border: 0; font: inherit; background: transparent; box-sizing: border-box;
}
body { min-height: 100vh; background: #F9F6F1; color: #22313F; line-height: 1.5; font-family: 'Roboto', Arial, Helvetica, sans-serif; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; cursor: pointer; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; background: none; border: none; }
:focus { outline: none; }

/* ====== Vintage Retro Brand Colors & Accent Palette ====== */
:root {
  --color-primary: #22436C;
  --color-secondary: #21B69C;
  --color-accent: #F9F9F9;
  --color-bg-main: #F9F6F1;
  --color-bg-section: #FFF8EB;
  --color-cream: #FEDC97;
  --color-orange: #D87A35;
  --color-brown: #8C674E;
  --color-dark: #22313F;
  --color-shadow: rgba(34, 67, 108, 0.10);
  --color-link: #22436C;
}

/* ====== Fonts: Vintage/Retro Style ====== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap');

body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: var(--color-bg-main);
  color: var(--color-dark);
  font-size: 1rem;
  letter-spacing: 0.03em;
  /* subtle vintage paper look */
  background-image: repeating-linear-gradient(
    135deg,
    rgba(254,220,151,0.10) 0px, rgba(254,220,151,0.10) 10px,
    transparent 10px, transparent 20px
  );
}
h1, .hero h1 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-primary);
  text-shadow: 0 2px 0 #FEDC97, 1px 4px 12px var(--color-shadow);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
h2 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-secondary);
  text-shadow: 0 1px 0 #F9F9F9;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}
h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
p, li, span, label, .text-section {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: var(--color-dark);
}

/* ================== Container ================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ================= HEADER / NAVIGATION ================= */
header {
  width: 100%;
  background: var(--color-primary);
  box-shadow: 0 2px 6px var(--color-shadow);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.logo {
  display: flex; align-items: center; height: 52px;
}
.logo img {
  height: 48px;
  filter: drop-shadow(1px 1px 0 #FEDC97);
}
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #FFF;
  font-size: 1rem;
  padding: 8px 0 8px 0;
  letter-spacing: 0.04em;
  transition: color .18s;
  border-bottom: 2px solid transparent;
  position: relative;
}
.main-nav a:not(.cta-button):hover,
.main-nav a:not(.cta-button):focus {
  color: var(--color-cream);
  border-bottom: 2px solid var(--color-brown);
}
.cta-button {
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-weight: 900;
  letter-spacing: 0.08em;
  background: var(--color-orange);
  color: #fff !important;
  border-radius: 24px;
  padding: 10px 32px;
  margin-left: 14px;
  font-size: 1rem;
  box-shadow: 2px 4px 18px var(--color-shadow);
  transition: background .22s, color .22s, transform .17s;
  position: relative;
  border-bottom: none !important;
}
.cta-button:hover, .cta-button:focus {
  background: var(--color-cream);
  color: var(--color-orange) !important;
  transform: translateY(-2px) scale(1.025);
}

/* ========== MOBILE NAVIGATION ========== */
.mobile-menu-toggle {
  display: none;
  background: var(--color-orange);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 1.5rem;
  margin-left: 16px;
  transition: background .18s;
  z-index: 1040;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(125deg, var(--color-cream) 0%, #fff 100%);
  box-shadow: 0 8px 40px 0 rgba(34,67,108,0.20);
  transform: translateX(-100%);
  transition: transform .33s cubic-bezier(.79,.14,.15,.86);
  z-index: 1300;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 32px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: #fff;
  color: var(--color-brown);
  font-size: 2rem;
  border: none;
  border-radius: 50%;
  width: 46px; height: 46px;
  margin: 0 0 20px 18px;
  align-self: flex-start;
  box-shadow: 0 0 8px #FEDC97;
  transition: background .15s;
  z-index: 11;
}
.mobile-menu-close:active, .mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--color-orange);
  color: #fff;
}
.mobile-nav {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--color-primary);
  padding: 14px 32px;
  border-radius: 6px;
  margin-right: 0;
  border-bottom: 2px solid transparent;
  background: none;
  transition: color .17s, background .15s;
}
.mobile-nav a.cta-button {
  background: var(--color-orange);
  color: #fff;
  align-self: flex-start;
  margin: 24px 0 0 32px;
  font-size: 1.1rem;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-cream);
  color: var(--color-orange);
}
@media (max-width: 1060px) {
  .main-nav { gap: 17px; }
  header .container { min-height: 66px; }
}
@media (max-width: 900px) {
  .main-nav { gap: 10px; font-size: .98rem; }
  .cta-button { padding: 10px 18px; font-size: .97rem; }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ================ HERO SECTIONS ================ */
.hero {
  background: repeating-linear-gradient(135deg, #FFDDBB 0 28px, #FEDC97 28px 44px);
  border-bottom: 8px double #D87A35;
  box-shadow: 0 10px 40px var(--color-shadow);
  position: relative;
  padding-top: 24px;
  padding-bottom: 32px;
}
.hero .container {
  display: flex; flex-direction: column; align-items: center;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-top: 24px;
}
.hero p {
  font-size: 1.25rem;
  color: var(--color-brown);
  margin-bottom: 18px;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  text-shadow: 0px 1px 0 #fff8eb80;
}
.hero .cta-button {
  margin-top: 12px;
}

/* ========= GENERAL SECTION LAYOUT ========= */
section {
  background: var(--color-bg-section);
  border-radius: 30px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: 0 2px 18px var(--color-shadow);
}
section:last-child { margin-bottom: 0; }
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}
@media (max-width: 600px) {
  section { border-radius: 16px; padding: 24px 8px; }
  .content-wrapper { gap: 18px; }
}

/* ========= SERVICES/Grid CARD CONTAINER LAYOUT ========= */
.services-grid, .card-container, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  width: 100%;
}
.services-grid > div, .card {
  flex: 1 1 270px;
  min-width: 230px;
  margin-bottom: 20px;
  background: #FFF;
  border-radius: 24px;
  box-shadow: 0 2px 14px var(--color-shadow);
  border: 2px solid #EED9C0;
  padding: 1.2em 1.7em 1.1em 1.1em;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: box-shadow .18s, transform .13s;
}
.services-grid > div:hover, .card:hover {
  box-shadow: 0 6px 26px #D87A35aa;
  transform: translateY(-3px) scale(1.012);
  border-color: var(--color-orange);
}
.services-grid h3, .card h3 {
  color: var(--color-brown);
}
.services-grid span, .card span {
  color: var(--color-secondary);
  font-weight: bold;
  font-size: 1.05rem;
  margin-top: 6px;
}

/* ========= FLEX/GRID UTILITIES ========= */
.card-container { gap: 24px; }
.card { margin-bottom: 20px; position: relative; display: flex; flex-direction: column; gap: 8px; }
.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;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 18px;
  border: 2px dashed #FEDC97;
  box-shadow: 0 2px 8px var(--color-shadow);
  max-width: 610px;
  transition: background .16s, box-shadow .16s;
}
.testimonial-card:hover {
  background: var(--color-cream);
  box-shadow: 0 4px 20px #EED9C066;
}
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

@media (max-width: 880px) {
  .services-grid > div, .card {
    min-width: 160px;
    flex: 1 1 47%;
  }
  .testimonial-card { max-width: 100%; }
}
@media (max-width: 640px) {
  .services-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .services-grid > div, .card { min-width: 0; width: 100%; }
}

/* ========== TESTIMONIALS & REVIEWS ========== */
.testimonial-card p {
  color: var(--color-dark);
  font-size: 1.08rem;
  font-style: italic;
}
.testimonial-card span {
  color: var(--color-brown);
  font-size: 1.02rem;
  font-weight: 700;
  margin-top: 2px;
}

/* ========== LIST STYLES ========== */
ul li, .text-section ul li {
  position: relative;
  margin-bottom: 10px; padding-left: 20px;
  line-height: 1.64;
  font-size: 1rem;
}
ul li:last-child { margin-bottom: 0; }
ul li::before {
  content: '\25A0';
  color: var(--color-orange);
  position: absolute;
  left: 0; top: 0.15em;
  font-size: 0.95em;
}
.feature-list li::before, .values-list li::before {
  content: '\2605';
  color: var(--color-secondary);
}
/* Icon lists in contact section */
.content-wrapper ul li img {
  display: inline-block; vertical-align: middle; margin-right: 6px; width: 20px; }

/* ========== TEXT BLOCKS & SECTIONS ========== */
.text-section {
  background: rgba(255,255,255,0.98);
  border: 1.5px solid #EED9C0;
  border-radius: 16px;
  padding: 18px 20px 10px 18px;
  box-shadow: 0 1px 10px #FFDDBB48;
  margin-bottom: 18px;
}
.text-section h2, .text-section h3 { margin-top: 0.5em; }
@media (max-width: 550px) {
  .text-section { padding: 13px 8px 7px 8px; }
}

/* ========== FOOTER ========== */
footer {
  background: #EFECE7;
  color: var(--color-brown);
  border-top: 6px double var(--color-orange);
  margin-top: 64px;
}
footer .container {
  display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 28px; padding-bottom: 20px;
}
.footer-links {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif; font-size: 1rem;
}
.footer-links a {
  color: var(--color-primary);
  transition: color .17s;
}
.footer-links a:hover, .footer-links a:focus { color: var(--color-orange); }
.footer-socials {
  display: flex;
  gap: 18px;
}
.footer-socials a img {
  filter: drop-shadow(0 2px 0 #FEDC97);
  width: 25px;
}
.footer-copyright {
  margin-top: 3px;
  font-size: 0.925rem;
  color: #BDB2A7;
}

/* ========== BUTTONS & INTERACTIONS ========== */
button, .cta-button {
  transition: background .22s, box-shadow .15s, color .14s, border-color .17s, transform .13s;
}
button:focus, .cta-button:focus {
  box-shadow: 0 0 0 2px var(--color-secondary), 0 6px 22px #FFDDBB33;
  outline: none;
}

/* ========== FORMS (if needed) ========== */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  border: 1.5px solid #EED9C0;
  border-radius: 9px;
  padding: 9px 14px;
  background: #fff;
  margin-bottom: 17px;
  transition: border-color .17s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-secondary);
}
label { font-family: 'Montserrat', sans-serif; font-size: .98rem; color: var(--color-primary); margin-bottom: 6px; display: block; }

/* ========== COOKIE CONSENT BANNER & MODAL ========== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff8eb;
  color: var(--color-primary);
  border-top: 3px solid var(--color-cream);
  box-shadow: 0 -2px 28px var(--color-shadow);
  z-index: 1200;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 17px;
  font-family: 'Roboto', Arial, sans-serif;
  transition: transform .27s cubic-bezier(.79,.14,.15,.86);
}
.cookie-banner.hide { transform: translateY(120%); }
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { color: var(--color-dark); font-size: 1rem; }
.cookie-buttons {
  display: flex; gap: 14px; justify-content: center;
}
.cookie-buttons button {
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: 20px;
  padding: 8px 25px;
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: 0.05em;
  background: var(--color-orange);
  color: #fff;
  box-shadow: 1px 2px 8px #FFDDBB60;
  transition: background .20s, color .11s, transform .14s;
}
.cookie-buttons button.cookie-settings { background: var(--color-secondary); }
.cookie-buttons button.cookie-reject { background: var(--color-brown); }
.cookie-buttons button:hover, .cookie-buttons button:focus { background: var(--color-cream); color: var(--color-orange); }

.cookie-modal {
  display: none;
  position: fixed; left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(34,67,108,0.21);
  z-index: 1500;
  justify-content: center;
  align-items: center;
}
.cookie-modal.open { display: flex; animation: fadeIn .33s; }
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal-content {
  background: #fffefb;
  border: 3px solid var(--color-cream);
  border-radius: 23px;
  box-shadow: 0 7px 38px #FFDDBB99;
  padding: 34px 26px 22px 26px;
  width: 95vw;
  max-width: 430px;
  display: flex;
  flex-direction: column;
  gap: 17px;
  position: relative;
  animation: popIn .24s cubic-bezier(.62,.05,.57,.87);
}
@keyframes popIn {
  from { transform: scale(0.98) translateY(50px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  right: 14px; top: 14px;
  background: var(--color-orange);
  color: #fff;
  border-radius: 50%;
  width: 38px; height: 38px;
  border: none;
  font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .13s, color .13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus { background: var(--color-secondary); color: var(--color-orange); }
.cookie-modal-content h2 { margin-bottom: 12px; color: var(--color-primary); font-size: 1.25rem; }
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}
.cookie-switch {
  min-width: 38px;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
  html { font-size: 15px; }
  .hero h1 { font-size: 1.65rem; }
  section { padding: 26px 8px; margin-bottom: 36px; }
  .container { padding: 0 7px; }
  .content-wrapper { gap: 17px; }
  .text-image-section, .content-grid, .card-container, .services-grid { flex-direction: column; align-items: stretch; gap: 18px; }
  .footer-links { gap: 7px; font-size: 0.96rem; }
  .footer-socials { gap: 11px; }
}
@media (max-width: 480px) {
  html { font-size: 14px; }
  .hero h1, h1 { font-size: 1.25rem; }
  .cta-button { font-size: 1rem; padding: 8px 12px; }
  section { border-radius: 8px; padding: 13px 4px; }
}

/* ========== RETRO PATTERNS, NOSTALGIC DETAILS ========== */
section {
  background-image: repeating-linear-gradient(-45deg, #FFF8EB 0 22px, #FFDDBB 22px 44px);
}
.card, .services-grid > div {
  background-image: repeating-linear-gradient(135deg, #FFF 0px, #FEDC97 40px, #FFF 80px);
  border-width: 2.2px;
}
footer, .cookie-banner { font-family: 'Montserrat', Arial, sans-serif; }

/* ===== VINTAGE SMALL DETAILS ===== */
h1, h2, .footer-links a, .cta-button, .main-nav a {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
h2, h3, .cta-button, .main-nav a, .footer-links a {
  font-family: 'Montserrat', Arial, sans-serif;
}
.card, .testimonial-card, .services-grid > div {
  box-shadow: 0 2px 10px #8C674E19, 0 0 0 4px #F9F6F1;
}

/* ===== SHADOWS & MICROINTERACTIONS ===== */
.cta-button, .main-nav a, .footer-links a, .cookie-buttons button {
  transition: box-shadow .19s, background .18s, color .15s, border .18s, transform .13s;
}
.cta-button:active, .main-nav a:active, .footer-links a:active { transform: scale(.97); box-shadow: none; }

/* ===== UTILS ===== */
.hidden { display: none !important; }
