/* =====================================================
   Audace Locations — style.css (Vintage Retro x Brand)
   Mobile-first, flexbox-only layouts, high-contrast UI
   ===================================================== */

/* 1) CSS Reset & Base ------------------------------------------------ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Verdana, Geneva, Tahoma, sans-serif; line-height: 1.6; color: #2B2B2B; background: #FFF7E6; }
img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 { font-family: "Trebuchet MS", Segoe UI, Arial, sans-serif; color: #0B3A5D; margin: 0 0 16px; line-height: 1.25; }
h1 { font-size: 32px; letter-spacing: 0.2px; }
h2 { font-size: 24px; letter-spacing: 0.2px; }
h3 { font-size: 18px; letter-spacing: 0.2px; }
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px 20px; }
strong { color: #0B3A5D; }

/* Links */
a { color: #0B3A5D; text-decoration: none; border-bottom: 1px dotted transparent; transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease; }
a:hover { color: #1E6A4F; border-color: currentColor; }
a:focus-visible { outline: 2px dashed #C49A3C; outline-offset: 2px; }

/* 2) Theme Variables (Brand + Vintage Retro extension) --------------- */
:root {
  --primary: #0B3A5D;     /* Brand primary (deep blue) */
  --secondary: #1E6A4F;   /* Brand secondary (green) */
  --accent: #F6F7F9;      /* Brand accent (light background) */

  --ink: #2B2B2B;         /* Body text */
  --paper: #FFF7E6;       /* Vintage paper */
  --cream: #FAF3E6;       /* Cream tint */
  --mustard: #C49A3C;     /* Retro mustard */
  --burnt: #B65C39;       /* Burnt orange */
  --brown: #5E4632;       /* Vintage brown */
  --sepia-line: #D9C7A3;  /* Sepia border */

  --radius-s: 6px; --radius-m: 10px; --radius-l: 14px;
  --shadow-s: 0 1px 0 rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.06);
  --shadow-m: 0 3px 0 rgba(0,0,0,0.08), 0 6px 16px rgba(0,0,0,0.10);
  --shadow-l: 0 5px 0 rgba(0,0,0,0.10), 0 12px 28px rgba(0,0,0,0.16);
}

/* 3) Layout Helpers (Flex-only) ------------------------------------- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; display: flex; flex-direction: column; }
.content-wrapper { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }

/* Mandatory spacing classes */
.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; }

/* Section spacing for semantic <section> */
section { margin-bottom: 60px; padding: 40px 0; }

/* 4) Header & Navigation -------------------------------------------- */
header { background: var(--cream); border-bottom: 3px double var(--brown); box-shadow: var(--shadow-s); position: relative; z-index: 1000; }
header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; }
.logo img { height: 36px; }

.main-nav { display: none; flex-wrap: wrap; align-items: center; gap: 12px; }
.main-nav a { color: var(--brown); font-weight: 600; font-size: 14px; padding: 6px 8px; border: 1px solid transparent; border-radius: var(--radius-s); text-transform: uppercase; letter-spacing: 0.6px; }
.main-nav a:hover { border-color: var(--sepia-line); background: #FFF; }

.header-ctas { display: none; align-items: center; gap: 10px; }

/* Mobile hamburger */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: #FFF; color: var(--primary); border: 2px solid var(--sepia-line); box-shadow: var(--shadow-s); cursor: pointer; }
.mobile-menu-toggle:hover { transform: translateY(-1px); box-shadow: var(--shadow-m); }
.mobile-menu-toggle:active { transform: translateY(0); }

/* Off-canvas mobile menu */
.mobile-menu { position: fixed; top: 0; right: 0; bottom: 0; width: 84%; max-width: 360px; background: #FFF; border-left: 4px solid var(--mustard); box-shadow: var(--shadow-l); transform: translateX(100%); transition: transform 0.35s ease; display: flex; flex-direction: column; padding: 16px; z-index: 9999; }
.mobile-menu .mobile-menu-close { align-self: flex-end; background: transparent; border: 0; font-size: 22px; color: var(--brown); cursor: pointer; padding: 6px; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.mobile-menu .mobile-menu-close:hover { background: var(--accent); }
.mobile-nav { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; }
.mobile-nav a { display: flex; align-items: center; padding: 12px 10px; border-radius: var(--radius-s); color: var(--primary); font-weight: 600; border: 1px solid #EEE; background: #FAFAFA; }
.mobile-nav a:hover { background: #FFF; border-color: var(--sepia-line); }

/* Allow JS to toggle body.menu-open or .mobile-menu.open */
body.menu-open::before { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 9998; }
body.menu-open .mobile-menu, .mobile-menu.open { transform: translateX(0); }

/* 5) Buttons (Vintage details) -------------------------------------- */
.btn-primary, .btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 10px; font-weight: 700; letter-spacing: 0.4px; border: 2px solid var(--brown); box-shadow: inset 0 -2px 0 rgba(0,0,0,0.08), var(--shadow-s); transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease; }
.btn-primary { background: var(--primary); color: #FFF; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: inset 0 -2px 0 rgba(0,0,0,0.08), var(--shadow-m); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary { background: #FFF; color: var(--secondary); border-color: var(--secondary); }
.btn-secondary:hover { background: #FDFBF6; box-shadow: var(--shadow-m); transform: translateY(-1px); }

.btn-primary:focus-visible, .btn-secondary:focus-visible { outline: 2px dashed var(--mustard); outline-offset: 2px; }

.cta-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* 6) Hero ------------------------------------------------------------ */
.hero { background: var(--paper); border-top: 6px solid var(--mustard); border-bottom: 1px dashed var(--sepia-line); }
.hero .content-wrapper { gap: 14px; }
.hero p { max-width: 62ch; }

/* Trust / badges */
.trust { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 2px solid var(--sepia-line); border-left: 6px solid var(--mustard); background: #FFF; border-radius: var(--radius-m); box-shadow: var(--shadow-s); }
.trust p { margin-bottom: 6px; color: var(--brown); font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; }
.trust ul { margin: 0; padding-left: 20px; }

/* 7) Text Sections & Lists ------------------------------------------ */
.text-section { display: flex; flex-direction: column; gap: 12px; }
.text-section a { font-weight: 700; color: var(--burnt); border-bottom-color: var(--burnt); }
.text-section a:hover { color: var(--secondary); border-bottom-color: var(--secondary); }

.micro-testimonials { display: flex; flex-wrap: wrap; gap: 16px; }

/* 8) Cards & Listings ------------------------------------------------ */
.card { background: #FFF; border: 2px solid var(--sepia-line); border-radius: var(--radius-m); padding: 18px; box-shadow: var(--shadow-s); }

.listing { display: flex; flex-direction: column; gap: 10px; background: #FFF; border: 2px solid var(--sepia-line); border-left: 6px solid var(--secondary); border-radius: var(--radius-m); padding: 16px; box-shadow: var(--shadow-s); }
.listing h3 { margin-bottom: 4px; color: var(--primary); }
.listing a { align-self: flex-start; font-weight: 700; }

.pagination { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 8px; color: var(--brown); }
.pagination a { padding: 6px 10px; border: 1px solid var(--sepia-line); border-radius: var(--radius-s); background: #FFF; }
.pagination a:hover { background: var(--cream); }

/* 9) Testimonials (High contrast, light bg) -------------------------- */
.testimonial-card { background: #FFFFFF; border: 2px solid var(--sepia-line); border-left: 6px solid var(--mustard); border-radius: var(--radius-m); box-shadow: var(--shadow-s); color: #1F1F1F; }
.testimonial-card p { margin: 0; }

/* 10) Footer --------------------------------------------------------- */
footer { background: var(--primary); color: #E9F0F5; border-top: 6px solid var(--mustard); }
footer .content-wrapper { padding: 24px 0; gap: 24px; }
.footer-brand, .footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-brand img { height: 34px; filter: brightness(0) invert(1); }
.footer-nav { flex-wrap: wrap; }
.footer-nav a { color: #E9F0F5; border-bottom-color: transparent; }
.footer-nav a:hover { color: #FFF; border-bottom-color: #FFF; }
.footer-contact a { color: #FFF; border-bottom: 1px dotted rgba(255,255,255,0.7); }
.footer-contact a:hover { border-bottom-color: #FFF; }

/* 11) Utility Patterns ---------------------------------------------- */
.content-grid { justify-content: space-between; }
.text-image-section { align-items: center; }
.feature-item h3 { margin: 0; }

/* 12) Cookie Consent (Banner + Modal) -------------------------------- */
/* Banner */
#cookie-banner, .cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; background: #FFF; color: var(--ink); border-top: 4px solid var(--mustard); box-shadow: 0 -6px 20px rgba(0,0,0,0.12); padding: 16px; display: none; z-index: 9998; }
#cookie-banner.show, .cookie-banner.show { display: flex; }
.cookie-banner .container { flex-direction: column; gap: 12px; }
.cookie-text { display: flex; flex-direction: column; gap: 8px; }
.cookie-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-buttons .btn-primary { background: var(--secondary); border-color: var(--brown); }
.cookie-buttons .btn-secondary { border-color: var(--brown); }

/* Modal */
.cookie-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: none; z-index: 9997; }
.cookie-overlay.show { display: block; }
.cookie-modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.96); background: #FFF; border: 3px double var(--sepia-line); border-radius: var(--radius-l); width: min(94%, 720px); padding: 20px; box-shadow: var(--shadow-l); display: none; flex-direction: column; gap: 16px; z-index: 9999; }
.cookie-modal.show { display: flex; transform: translate(-50%, -50%) scale(1); transition: transform 0.25s ease; }
.cookie-modal h3 { margin-bottom: 6px; }
.cookie-options { display: flex; flex-direction: column; gap: 12px; }
.cookie-option { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; border: 1px dashed var(--sepia-line); border-radius: var(--radius-s); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* Toggle switch */
.toggle { position: relative; width: 46px; height: 26px; background: #E6E6E6; border: 1px solid #CFCFCF; border-radius: 20px; display: inline-flex; align-items: center; padding: 2px; transition: background 0.2s ease; }
.toggle .knob { width: 22px; height: 22px; background: #FFF; border: 1px solid #CFCFCF; border-radius: 50%; transition: transform 0.2s ease; }
.toggle.on { background: #1E6A4F; border-color: #1E6A4F; }
.toggle.on .knob { transform: translateX(20px); border-color: #1E6A4F; }
.toggle[aria-disabled="true"], .toggle.disabled { opacity: 0.6; pointer-events: none; }

/* 13) Accessibility & Micro-interactions ----------------------------- */
::selection { background: #C49A3C; color: #FFF; }
.button-like, .btn-primary, .btn-secondary, .main-nav a, .pagination a, .mobile-nav a { transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease; }
.button-like:hover, .main-nav a:hover, .pagination a:hover { transform: translateY(-1px); }

/* 14) Page-specific small touches ----------------------------------- */
/* How it works list */
ol { display: block; padding-left: 20px; }

/* Stats / key figures list */
ul { list-style-position: outside; }

/* 15) Responsive ----------------------------------------------------- */
@media (min-width: 600px) {
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
}

@media (min-width: 768px) {
  h1 { font-size: 42px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }

  /* Align text-image sections horizontally */
  .text-image-section { flex-direction: row; }
  .content-wrapper { gap: 20px; }
}

@media (min-width: 900px) {
  .main-nav { display: flex; }
  .header-ctas { display: flex; }
  .mobile-menu-toggle { display: none; }

  footer .content-wrapper { flex-direction: row; align-items: flex-start; justify-content: space-between; }
  .hero .content-wrapper { flex-direction: column; }
}

/* 16) Additional Components (not currently in HTML but ready) -------- */
/* Cards & grids utilities (flex-only) */
.card-container .card { flex: 1 1 280px; }
.content-grid > * { flex: 1 1 300px; }

/* Ensure minimum spacing between items */
.content-wrapper > * { margin: 0; }

/* 17) Forms (if injected later) ------------------------------------- */
input, select, textarea { font-family: inherit; font-size: 16px; border: 2px solid var(--sepia-line); border-radius: var(--radius-s); padding: 10px 12px; background: #FFF; color: var(--ink); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--mustard); box-shadow: 0 0 0 3px rgba(196,154,60,0.2); }
label { font-weight: 700; color: var(--brown); margin-bottom: 6px; display: inline-flex; }

/* 18) Header/Footer subtle ornaments -------------------------------- */
header::after { content: ""; display: block; height: 6px; background: repeating-linear-gradient(90deg, rgba(91,69,50,0.08) 0, rgba(91,69,50,0.08) 12px, transparent 12px, transparent 24px); }
footer::before { content: ""; display: block; height: 6px; background: repeating-linear-gradient(90deg, rgba(255,255,255,0.15) 0, rgba(255,255,255,0.15) 12px, transparent 12px, transparent 24px); }

/* 19) Ensured alignment & spacing rules ------------------------------ */
/* Prevent overlapping and ensure gaps */
main .content-wrapper { gap: 20px; }

/* 20) Print basics --------------------------------------------------- */
@media print {
  .mobile-menu, .mobile-menu-toggle, #cookie-banner, .cookie-banner, .cookie-modal, .cookie-overlay { display: none !important; }
  a { border: 0; }
}
