/* ================================
   RESET & BASE STRUCTURE
   ================================ */
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 {
  font-family: 'Roboto', Arial, sans-serif;
  color: #22252A;
  background: #FAF3E7; /* vintage off-white */
  line-height: 1.65;
  font-size: 16px;
  background-image: repeating-linear-gradient(135deg,#FFFAFB 0 8px,transparent 8px 16px),repeating-linear-gradient(45deg,#fff9f1 0 20px,transparent 20px 40px);
  background-size: 60px 60px, 100px 100px;
  background-repeat: repeat;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

:root {
  --primary: #22577A;
  --secondary: #38A3A5;
  --accent: #FFFAFB;
  --retro-yellow: #FFD66A;
  --retro-brown: #AD8350;
  --retro-green: #41B883;
  --retro-pink: #FFC6C7;
  --retro-navy: #2C365E;
  --shadow: rgba(50, 55, 75, 0.075);
  --border-radius: 16px;
  --transition: 0.25s cubic-bezier(.19,1,.22,1);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

body, input, button, textarea, select {
  font-family: var(--font-body);
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.5px;
}
h1   {font-size: 2.6rem; margin-bottom: 20px;}
h2   {font-size: 2rem; margin-bottom: 20px;}
h3   {font-size: 1.3rem; margin-bottom: 12px; color: var(--retro-brown);}
h4   {font-size: 1.08rem; margin-bottom: 8px;}

strong {
  font-weight: 700;
}

p, li {
  font-size: 1rem;
  color: #33313f;
  margin-bottom: 8px;
}

ul, ol {
  margin-left: 1.5em;
  margin-bottom: 16px;
}
ul {
  list-style-type: circle;
}
li
{
  margin-bottom: 5px;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover, a:focus {
  color: var(--retro-brown);
}

.container {
  max-width: 1200px;
  padding-left: 20px;
  padding-right: 20px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.text-section {
  padding: 32px 20px 24px 20px;
  background: #FFF6E6;
  border-radius: 12px;
  box-shadow: 0 2px 16px var(--shadow);
  border: 1.5px solid #f8e5cf;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #FAEFD5;
  border-radius: var(--border-radius);
  box-shadow: 0 3px 16px var(--shadow);
  padding: 32px 24px;
  border: 1.5px solid #dfc49f;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: linear-gradient(100deg, #FFFAFB 80%, #FFE6c7 100%);
  box-shadow: 0 4px 20px var(--shadow);
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  border-left: 8px solid var(--retro-yellow);
  border-top: 2.5px dashed var(--retro-pink);
}
.testimonial-card p {
  color: #3C2A21; /* Dark text for contrast */
  font-size: 1.08rem;
  flex: 2;
  font-style: italic;
}
.testimonial-card div span {
  color: var(--retro-yellow);
  font-size: 1rem;
  letter-spacing: 0.1em;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Hero Section */
section:first-of-type {
  background: linear-gradient(90deg,#FFE6C7,#FAE2FF 60%,#FFFAFB 100%);
  border-bottom: 2.5px dashed #FFD66A;
  min-height: 350px;
  padding-top: 40px;
  padding-bottom: 40px;
}

/* ================================
   HEADER & NAVIGATION
   ================================ */
header {
  background: #fffbe4;
  padding: 0 0 0 0;
  box-shadow: 0 0 10px 0 var(--shadow);
  border-bottom: 2.5px solid #FFD66A;
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 84px;
}
header nav {
  display: flex;
  gap: 28px;
}
header nav a {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
  letter-spacing: .03em;
  transition: color var(--transition), text-shadow var(--transition);
  padding: 2px 6px;
  border-radius: 7px;
}
header nav a:hover, header nav a:focus {
  color: var(--secondary);
  background: #fff6e6;
  text-shadow: 0 1px 2px #e6c796;
}
.primary-btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  border-radius: 24px;
  padding: 14px 38px;
  background: var(--retro-yellow);
  color: #3C2A21;
  font-size: 1.1rem;
  border: 2px solid var(--retro-brown);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  box-shadow: 0 3.5px 12px 0 var(--shadow);
  transition: box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  cursor: pointer;
}
.primary-btn:hover, .primary-btn:focus {
  background: var(--retro-pink);
  border-color: var(--retro-brown);
  color: var(--retro-navy);
  box-shadow: 0 7px 20px rgba(183,130,88,.11);
  text-decoration: none;
}

/* Hide desktop nav on mobile */
@media (max-width: 900px) {
  header nav, .header-content .primary-btn {
    display: none;
  }
}

/* ================================
   MOBILE MENU
   ================================ */
.mobile-menu-toggle {
  position: fixed;
  top: 22px;
  right: 18px;
  z-index: 1900;
  width: 48px;
  height: 48px;
  background: var(--retro-brown);
  color: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 10px var(--shadow);
  font-size: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition);
}
.mobile-menu-toggle:focus {
  outline: 3px solid var(--retro-yellow);
}

.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(248, 232, 200, 0.96);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.18,.85,.38,1.15);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 22px 0 0 20px;
  background: var(--retro-navy);
  color: #FFD66A;
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 2rem;
  box-shadow: 0 5px 24px rgba(120,86,34,0.22);
  z-index: 2100;
  cursor: pointer;
  align-self: flex-end;
  margin-right: 30px;
  transition: background var(--transition), color var(--transition);
}
.mobile-menu-close:focus {
  outline: 3px solid #FFC6C7;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin-top: 38px;
}
.mobile-nav a {
  display: block;
  width: 75vw;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  padding: 18px 0;
  color: var(--retro-navy);
  background: #FFE6C7;
  border-radius: 18px;
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(34,87,122,0.06);
  margin-bottom: 8px;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border var(--transition);
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #fff6e6;
  color: var(--retro-brown);
  border: 2px solid var(--retro-pink);
}

@media (min-width: 901px) {
  .mobile-menu-toggle, .mobile-menu {
    display: none !important;
  }
}

/* =========================
   SERVICE LIST & CARDS
   ========================= */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
  margin-bottom: 20px;
}
.service-item {
  background: linear-gradient(108deg, #FFFAFB 85%, #FFE5BC 103%);
  border-radius: var(--border-radius);
  box-shadow: 0 2.5px 14px var(--shadow);
  border: 2px solid #dfc49f;
  min-width: 250px;
  max-width: 370px;
  flex: 1 1 250px;
  padding: 30px 26px 24px 26px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-item:hover, .service-item:focus-within {
  transform: translateY(-6px) scale(1.025);
  box-shadow: 0 20px 38px rgba(180,127,70,0.14);
}
.service-item h3 {
  font-size: 1.25rem;
  color: var(--retro-brown);
  margin-bottom: 8px;
  padding-right: 70px;
}
.price-tag {
  background: #FFD66A;
  color: #2C365E;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  border-radius: 12px;
  padding: 2px 14px;
  margin-left: 10px;
  vertical-align: middle;
  box-shadow: 0 1px 6px var(--shadow);
}
.service-item a {
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--font-display);
  padding: 6px 18px;
  border-radius: 16px;
  background: var(--retro-green);
  color: #fff;
  font-weight: 700;
  border: 0;
  text-transform: uppercase;
  letter-spacing: .05em;
  box-shadow: 0 1.5px 6px var(--shadow);
  font-size: 0.95rem;
  transition: background var(--transition), color var(--transition);
}
.service-item a:hover, .service-item a:focus {
  background: var(--retro-navy);
  color: #FFD66A;
}

/* ========================
   BLOG
   ======================== */
.blog-search {
  width: 100%;
  margin-bottom: 20px;
}
.blog-search input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 1rem;
  background: #FFF6E6;
  border: 2px solid #FFC6C7;
  color: #2C365E;
}
.blog-teasers {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
.blog-teaser {
  background: #FFFAFB;
  border: 1.5px dashed #FFD66A;
  border-radius: 16px;
  box-shadow: 0 2px 12px var(--shadow);
  flex: 1 1 240px;
  min-width: 210px;
  max-width: 350px;
  padding: 28px 22px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.blog-teaser:hover {
  box-shadow: 0 8px 28px rgba(125, 87, 12, 0.13);
  transform: translateY(-7px) scale(1.018);
}
.blog-categories {
  margin-top: 8px;
  font-size: 1rem;
  color: var(--primary);
}
.blog-categories a {
  color: var(--retro-brown);
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 11px;
  background: #FFE5BC;
  margin: 0 2px;
  transition: background var(--transition), color var(--transition);
}
.blog-categories a:hover { background: #FFC6C7; color: var(--primary); }

/* ========================
   FOOTER
   ======================== */
footer {
  background: #193446;
  color: #FFFAFB;
  padding: 0;
  margin-top: 40px;
  border-top: 4px double var(--retro-yellow);
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 48px 0 36px 0;
}
.footer-logo {
  flex: 1 1 120px;
}
.footer-links {
  flex: 2 1 340px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.footer-links nav, .footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-links nav a, .footer-links ul a {
  color: #fffbe4;
  font-size: 1rem;
  padding: 2px 0;
}
.footer-links nav a:hover, .footer-links ul a:hover { color: #FFD66A; }
.footer-contact p, .footer-contact a {
  color: #fffbe4;
  font-size: 1rem;
}
.footer-contact p {margin-bottom: 6px;}
.footer-social {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 10px;
  flex: 1 1 120px;
}
.footer-social a {
  background: #FFD66A;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.footer-social a:hover { background: var(--retro-brown); }
.footer-social img {
  width: 24px; height: 24px;
}

@media (max-width: 900px) {
  .footer-main { flex-direction: column; gap: 22px; align-items: flex-start; }
  .footer-social {margin-top: 20px;}
}

/* =========================
   CTA Section
   ========================= */
.section:last-of-type, .content-wrapper:last-of-type {
  background: #FFD66A;
  color: #2C365E;
  border-radius: 16px;
  box-shadow: 0 5px 22px rgba(34,87,122,0.04);
  text-align: center;
}
.section:last-of-type .primary-btn {
  margin-top: 14px;
}

/* =========================
   RESPONSIVE DESIGN
   ========================= */
@media (max-width: 1100px) {
  .container {max-width: 960px;}
}
@media (max-width: 900px) {
  .container {max-width: 97vw;}
  .content-wrapper, .text-image-section {
    gap: 18px;
    padding-left: 0; padding-right: 0;
  }
  .section {padding: 28px 10px;}
}
@media (max-width: 768px) {
  /* FLEX COLUMN ON MOBILE */
  .content-grid, .card-container, .service-list, .blog-teasers, .footer-main {
    flex-direction: column;
    gap: 20px;
  }
  .section {margin-bottom: 32px; padding: 20px 3vw;}
  .testimonial-card { flex-direction: column; align-items: flex-start; }
  .text-image-section { flex-direction: column; align-items: center; gap: 12px; }
}
@media (max-width: 600px) {
  h1 {font-size: 1.6rem;}
  h2 {font-size: 1.28rem;}
  h3 {font-size: 1.07rem;}
  .header-content { flex-direction: row; gap: 8px; }
  .container { padding: 0 4vw; }
  .text-section, .card, .service-item, .blog-teaser {
    padding-left: 10px; padding-right: 10px;
  }
  .primary-btn {padding: 12px 10vw; font-size: 1rem;}
}

/* =========================
   ELEMENTS & MICROINTERACTIONS
   ========================= */
input, textarea, select { font-family: var(--font-body); }
button { cursor: pointer; font-family: inherit; }

input:focus, textarea:focus, select:focus {
  border-color: #22577A;
  outline: 3px solid #FFD66A;
}

::-webkit-input-placeholder { color: #8b6f3f; }
:-ms-input-placeholder { color: #8b6f3f; }
::placeholder { color: #8b6f3f; }

section ul li img {
  width: 22px;
  height: 22px;
  margin-right: 11px;
  vertical-align: middle;
  display: inline-block;
  filter: sepia(1) hue-rotate(-17deg) brightness(1.05) contrast(1.1);
}
section ul li { display: flex; align-items: center; margin-bottom: 13px; }

/* ============= COOKIE CONSENT ============= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 5000;
  background: #FFF6E6;
  color: #3C2A21;
  border-top: 4px solid #FFD66A;
  box-shadow: 0 -3.5px 24px rgba(81,44,13,0.11);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 26px 8vw 22px 8vw;
  gap: 16px;
  font-size: 1rem;
  animation: bannerAppear 0.66s ease;
}
@keyframes bannerAppear {
  from { transform: translateY(110%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 6px;
  justify-content: center;
}
.cookie-btn {
  font-family: var(--font-display);
  padding: 10px 28px;
  border-radius: 20px;
  margin: 0 3px;
  font-weight: 700;
  border: 2px solid #ffd66a;
  background: #FFE5BC;
  color: #2C365E;
  font-size: 1rem;
  box-shadow: 0 1.5px 6px var(--shadow);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #FFD66A;
  color: #2C365E;
  border-color: #b99157;
}
.cookie-btn.settings {
  background: #ffc6c7;
  color: #2C365E;
  border-color: #ad4c5e;
}
.cookie-btn.settings:hover {
  background: #fffae0;
  color: #ad4c5e;
}

/* Cookie Modal */
.cookie-modal-backdrop {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(40,18,6,0.12);
  z-index: 5300;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal {
  background: #fffbe4;
  color: #3C2A21;
  border-radius: 20px;
  box-shadow: 0 10px 44px rgba(81,44,13,0.14);
  max-width: 400px;
  width: 93vw;
  padding: 36px 32px 20px 32px;
  border: 3.5px dashed #FFD66A;
  animation: modalAppear 0.41s ease;
  z-index: 5400;
  position: relative;
}
@keyframes modalAppear {
  from { transform: scale(0.93); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.cookie-categories {
  margin: 18px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  padding: 11px 8px;
  border-radius: 10px;
  background: #FFD66A11;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 1rem;
}
.cookie-category .toggle {
  margin-left: auto;
}
.toggle-switch {
  display: inline-flex;
  width: 42px;
  height: 22px;
  border-radius: 11px;
  background: #ccc;
  position: relative;
  cursor: pointer;
  transition: background var(--transition);
}
.toggle-switch input {display:none;}
.toggle-switch .slider {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FFD66A;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left 0.19s cubic-bezier(.4,.97,.56,1.07);
}
.toggle-switch input:checked + .slider {
  left: 22px;
  background: #38A3A5;
}
.toggle-switch input:disabled + .slider {
  background: #dfc49f;
}

.cookie-modal .close-btn {
  position: absolute;
  right: 22px; top: 14px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: #AD8350;
  cursor: pointer;
}
.cookie-modal .close-btn:focus {
  outline: 2.5px solid #FFD66A;
}

@media (max-width: 500px) {
  .cookie-modal { padding: 28px 10px 16px 10px; max-width: 97vw; }
}

/* =============== UTILITIES =============== */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mb-1 { margin-bottom: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mb-2 { margin-bottom: 16px !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.d-none { display: none !important; }

/* ============== ANIMATIONS ============== */
.primary-btn, .service-item, .testimonial-card, .blog-teaser, .card, .feature-item, .mobile-menu, .mobile-menu-toggle, .footer-social a, .cookie-btn, .blog-categories a {
  transition: box-shadow 0.2s cubic-bezier(.19,1,.22,1), background 0.23s, color 0.19s;
}

/* ================================
   HIGH CONTRAST & ACCESSIBILITY
   ================================ */
.testimonial-card, .testimonial-card p, .testimonial-card strong {
  color: #2C365E !important;
}
.testimonial-card { background: linear-gradient(90deg,#fffbe4 60%,#FFE6C7 100%); }

/* Fallback for custom properties */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  :root {
    --primary: #22577A;
    --secondary: #38A3A5;
    --accent: #FFFAFB;
    --retro-yellow: #FFD66A;
    --retro-brown: #AD8350;
    --retro-green: #41B883;
    --retro-pink: #FFC6C7;
    --retro-navy: #2C365E;
    --shadow: rgba(50, 55, 75, 0.075);
    --border-radius: 16px;
    --transition: 0.25s cubic-bezier(.19,1,.22,1);
    --font-display: 'Montserrat', Arial, sans-serif;
    --font-body: 'Roboto', Arial, sans-serif;
  }
}
