/* ==========================================================
   THEMES - switch by changing one attribute on the <html> tag:
   <html lang="en" data-theme="teal">   (or "rose", or "blue")
   ========================================================== */

:root{
  --navy:#0f172a;
  --bg:#f8fafc;
  --muted:#94a3b8;

  /* default = teal (version 1) */
  --accent:#14b8a6;          /* bright accent: links/hover on dark backgrounds */
  --btn-from:#0d9488;        /* button gradient (dark enough for white text) */
  --btn-to:#14b8a6;
  --btn-rgb:20,184,166;      /* used for button glow */
  --cta-bg:linear-gradient(135deg,#0f172a 0%,#0f3d3e 100%);
  --bar-bg:rgba(6,78,74,0.94);     /* header colour (deep teal) */
  --footer-bg:#042f2e;             /* footer colour */
  --heading:#0f766e;               /* headings on light sections */
  --text:#17353a;                  /* body text on light sections */
}

/* Version 2: pink / red */
:root[data-theme="rose"]{
  --accent:#fb7185;
  --btn-from:#be123c;
  --btn-to:#e11d48;
  --btn-rgb:225,29,72;
  --cta-bg:linear-gradient(135deg,#0f172a 0%,#4c0519 100%);
  --bar-bg:rgba(76,5,25,0.94);
  --footer-bg:#3b0413;
  --heading:#be123c;
  --text:#3b1a24;
}

/* Version 3: vivid blue */
:root[data-theme="blue"]{
  --accent:#38bdf8;
  --btn-from:#1d4ed8;
  --btn-to:#0284c7;
  --btn-rgb:2,132,199;
  --cta-bg:linear-gradient(135deg,#0f172a 0%,#1e3a8a 100%);
  --bar-bg:rgba(23,37,84,0.94);
  --footer-bg:#0c1a4a;
  --heading:#1d4ed8;
  --text:#172036;
}

/* ========================= BASE ========================= */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{ scroll-behavior:smooth; }

body{
  font-family:'Poppins',sans-serif;
  background:var(--bg);
  color:var(--text);
  overflow-x:hidden;
}

a:focus-visible,
button:focus-visible{
  outline:3px solid var(--accent);
  outline-offset:3px;
}

/* ========================= HEADER ========================= */
header{
  position:fixed;
  width:100%;
  top:0;
  background:var(--bar-bg);
  border-bottom:2px solid var(--accent);
  backdrop-filter:blur(8px);
  padding:15px 8%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  z-index:1000;
}

.logo{
  color:#fff;
  font-weight:700;
  font-size:1.3rem;
  text-decoration:none;
}

nav a{
  color:#fff;
  margin-left:25px;
  text-decoration:none;
  font-weight:500;
  transition:color 0.3s;
}

nav a:hover{ color:var(--accent); }

/* ========================= BUTTON ========================= */
.btn{
  display:inline-block;
  background:linear-gradient(135deg,var(--btn-from),var(--btn-to));
  color:#fff;
  padding:12px 28px;
  border-radius:30px;
  text-decoration:none;
  font-weight:600;
  transition:transform 0.4s, box-shadow 0.4s;
  box-shadow:0 8px 20px rgba(var(--btn-rgb),0.35);
}

.btn:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 25px rgba(var(--btn-rgb),0.55);
}

/* ========================= HERO ========================= */
.hero{
  min-height:100vh;
  min-height:100svh;               /* correct height on phones with moving address bars */
  padding:90px 0 140px;            /* top: clears header; bottom: reserves room for social icons */
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:#fff;
  overflow:hidden;
  background:var(--navy);          /* shown while the image loads */
}

/* the photo lives on ::before so it can be brightened without touching the text */
.hero::before{
  content:'';
  position:absolute;
  inset:0;
  background:url('../images/vaneye2.webp') center/cover no-repeat;
  filter:brightness(1.15) saturate(1.15);
  animation:heroSettle 9s ease-out both;
  z-index:0;
}

/* light in the middle, darker only behind header and text */
.hero::after{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(
    to bottom,
    rgba(15,23,42,0.45) 0%,
    rgba(15,23,42,0.15) 40%,
    rgba(15,23,42,0.50) 100%
  );
  z-index:1;
}

.hero-content{
  position:relative;
  z-index:2;
  padding:0 8%;
  max-width:900px;
  color:#fff;
}

.hero h1,
.hero p{
  text-shadow:0 2px 12px rgba(0,0,0,0.55);
}

.hero h1{
  font-size:3rem;
  line-height:1.2;
  margin-bottom:20px;
  text-wrap:balance;               /* evens out line lengths */
  animation:fadeUp 1s ease both;
}

.hero p{
  font-size:1.6rem;
  font-weight:500; 
  line-height:1.7;
  max-width:38rem;                 /* comfortable line length on desktop */
  margin:0;
  text-align:center;
  text-wrap:balance;               /* evens out line lengths on desktop and mobile */
  animation:fadeUp 1s ease 0.25s both;
}

.hero .btn{
  animation:fadeUp 1s ease 0.5s both;
}
/* ========================= SERVICES ========================= */
section{ padding:100px 8%; }

.section-title{
  color:var(--heading);
  text-align:center;
  margin-bottom:60px;
  font-size:2.2rem;
}

.services{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:30px;
}

.card{
  background:#fff;
  padding:35px;
  border-radius:20px;
  border-top:4px solid var(--btn-to);
  box-shadow:0 10px 30px rgba(0,0,0,0.05);
  transition:transform 0.4s, box-shadow 0.4s;
}

.card h3{ color:var(--heading); margin-bottom:12px; }

.card:hover{
  transform:translateY(-10px);
  box-shadow:0 20px 40px rgba(0,0,0,0.1);
}

.content p{
  text-align:justify;
  margin-top:30px;
}

/* ========================= CTA ========================= */
.cta{
  background:var(--cta-bg);
  color:#fff;
  text-align:center;
  padding:80px;
}

.cta h4{
  font-size:2.5rem;
  margin-bottom:20px;
}

.cta p{ text-align:justify; }

/* ========================= WHY ========================= */
.why{
  background:#fff;
  padding:30px 80px;
}

.why h5{ font-size:1rem; color:var(--heading); }
.why p{ text-align:justify; }

.why a{
  text-decoration:none;
  color:var(--heading);
}

.why a:hover{ text-decoration:underline; }

/* ========================= FOOTER ========================= */
footer{
  background:var(--footer-bg);
  color:#fff;
  border-top:2px solid var(--accent);
  text-align:center;
  padding:30px 10px;
  font-size:0.9rem;
}

footer a{ color:#fff; }
footer a:hover{ color:var(--accent); }

/* ========================= SOCIAL ========================= */
.social{
  position:absolute;
  z-index:10;
  bottom:24px;
  display:flex;
  justify-content:center;
  align-items:center;
  animation:fadeUp 1s ease 0.7s both;
}

.social li{ list-style:none; }

.social li a{
  display:inline-block;
  margin-right:30px;
  filter:invert(1);
  transform:scale(0.5);
  transition:0.5s;
}

.social li a:hover{
  transform:scale(0.5) translateY(-15px);
}

/* ========================= COOKIE BANNER ========================= */
.cookie-container{
  position:fixed;
  bottom:-100%;
  left:0;
  width:100%;
  background:#111827;
  color:#fff;
  padding:25px;
  box-shadow:0 -5px 15px rgba(0,0,0,0.3);
  transition:all 0.6s cubic-bezier(0.19,1,0.22,1);
  z-index:10000;
  border-top:3px solid var(--accent);
  display:flex;
  justify-content:center;
}

.cookie-container.show{ bottom:0; }

.cookie-content{
  max-width:1000px;
  display:flex;
  align-items:center;
  gap:20px;
}

.cookie-content h3{ margin:0; font-size:1.3rem; color:var(--accent); }
.cookie-content p{ margin:0; font-size:1rem; color:#d1d5db; line-height:1.5; text-align:inherit; }
.cookie-content a{ color:#fff; text-decoration:none; }
.cookie-content a:hover,
.cookie-content a:active{ color:var(--accent); }   /* fixed: no longer affects every link on the site */

.cookie-buttons{ display:flex; gap:10px; }

.accept-btn{
  background:var(--btn-to);
  color:#fff;
  border:none;
  padding:10px 20px;
  border-radius:4px;
  font-weight:bold;
  cursor:pointer;
  transition:0.3s;
}

.reject-btn{
  background:transparent;
  color:#9ca3af;
  border:1px solid #4b5563;
  padding:10px 20px;
  border-radius:4px;
  cursor:pointer;
  transition:0.3s;
}

.accept-btn:hover{ background:var(--btn-from); }
.reject-btn:hover{ color:#fff; border-color:#fff; }

@media (max-width:768px){
  .cookie-container{ padding:14px 16px; }
  .cookie-content{ gap:8px; }
  .cookie-content h3{ font-size:1rem; }
  .cookie-content p{ font-size:0.85rem; line-height:1.4; }
  .cookie-buttons{ width:100%; }
  .cookie-buttons button{ flex:1; padding:10px; }
}

/* ========================= ANIMATIONS ========================= */
@keyframes fadeUp{
  from{ transform:translateY(30px); opacity:0; }
  to{ transform:translateY(0); opacity:1; }
}

/* photo slowly settles into place on page load */
@keyframes heroSettle{
  from{ transform:scale(1.08); }
  to{ transform:scale(1); }
}

/* ========================= HERO CAROUSELS (CSS only) =========================
   .rotator stacks its children on top of each other and fades them in turn.
   Built for exactly 3 slides per rotator. */
.rotator{ display:grid; }

.rotator > *{
  grid-area:1 / 1;                 /* all slides share one cell, so the height never jumps */
  opacity:0;
  animation:rotateFade 12s ease-in-out infinite;
}
.rotator > :nth-child(2){ animation-delay:4s; }
.rotator > :nth-child(3){ animation-delay:8s; }

@keyframes rotateFade{
  0%        { opacity:0; transform:translateY(16px); }   /* waiting / about to appear */
  5%, 27%   { opacity:1; transform:translateY(0); }      /* fully visible */
  32%, 100% { opacity:0; transform:translateY(-16px); }  /* gone before the next slide starts at 33.3% */
}

/* The general rule ".hero p" (fade-up on load) was overriding the rotator animation on the
   tagline <p> tags, so all three stayed visible on top of each other. These rules are more
   specific, so the rotation wins. */
.hero .tagline > p{
  animation:rotateFade 12s ease-in-out infinite;
}
.hero .tagline > p:nth-child(2){ animation-delay:4s; }
.hero .tagline > p:nth-child(3){ animation-delay:8s; }

/* rotating tagline under the (static) h1 */
.hero .tagline{
  max-width:38rem;
  margin:0 auto 28px;
  animation:fadeUp 1s ease 0.25s both;
}
.hero .tagline p{
  margin:0;
  font-size:1.25rem;
  font-weight:500;
}

/* Google reviews */
.hero .reviews{
  max-width:30rem;
  margin:0 auto 10px;
  animation:fadeUp 1s ease 0.4s both;
}
.hero .reviews > *{
  animation-duration:36s;          /* slower, so people can read a review */
}
.hero .reviews > :nth-child(2){ animation-delay:12s; }
.hero .reviews > :nth-child(3){ animation-delay:24s; }
.hero .reviews:hover > *{ animation-play-state:paused; }

.review{
  margin:0;
  padding:18px 24px;
  background:rgba(15,23,42,0.5);
  backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,0.2);
  border-bottom:3px solid var(--accent);
  border-radius:16px;
  text-align:center;
}
.reviews-link{
  display:inline-block;
  margin-bottom:28px;
  padding:4px 2px;
  color:#fff;
  font-size:0.9rem;
  font-weight:500;
  text-decoration:none;
  text-shadow:0 2px 10px rgba(0,0,0,0.55);
  border-bottom:1px solid rgba(255,255,255,0.5);
  transition:color 0.3s, border-color 0.3s;
  animation:fadeUp 1s ease 0.5s both;
}
.reviews-link:hover{
  color:var(--accent);
  border-color:var(--accent);
}

.review .stars{ color:#fbbc04; letter-spacing:3px; font-size:1.1rem; }
.review blockquote{
  margin:8px 0;
  font-size:1rem;
  line-height:1.6;
  text-wrap:balance;
}
.review figcaption{ font-size:0.85rem; opacity:0.85; }

/* ========================= MOBILE ========================= */
@media (max-width:768px){
  header{ padding:12px 5%; }
  nav a{ margin-left:14px; font-size:0.9rem; }

  .hero{ padding:80px 0 130px; }
  .hero h1{ font-size:2rem; }
  .hero .tagline p{ font-size:1.25rem; }
  .review{ padding:14px 16px; }
  .review blockquote{ font-size:0.92rem; }
  .hero p{ font-size:1rem; }

  section{ padding:70px 6%; }
  .cta{ padding:60px 6%; }
  .why{ padding:30px 6%; }
  .cta h4{ font-size:1.8rem; }

  .cookie-content{ flex-direction:column; text-align:center; }
}

/* ========================= REDUCED MOTION ========================= */
@media (prefers-reduced-motion:reduce){
  *,
  *::before,
  *::after{
    animation:none !important;
    transition:none !important;
    scroll-behavior:auto !important;
  }
}

/* with reduced motion, show just the first slide of each carousel */
@media (prefers-reduced-motion:reduce){
  .rotator > :first-child{ opacity:1; }
}
/* ==========================================================
   ADDITIONS: paste at the END of your main stylesheet.
   They use your theme variables (--btn-from, --btn-to, --heading, etc.)
   ========================================================== */

/* ---------- note under the hero button ---------- */
.hero .cta-note{
  margin-top:14px;
  font-size:0.9rem;
  color:#fff;
  text-shadow:0 2px 10px rgba(0,0,0,0.7);
  animation:fadeUp 1s ease 0.6s both;
}

/* ---------- header "Get a quote" button (replaces the Contact link) ---------- */
nav a.nav-cta{
  background:linear-gradient(135deg,var(--btn-from),var(--btn-to));
  color:#fff;
  padding:8px 16px;
  border-radius:30px;
  font-weight:600;
  white-space:nowrap;
}
nav a.nav-cta:hover{ color:#fff; }

/* ---------- "How it works" strip ---------- */
.how{
  background:#fff;
  text-align:center;          /* also centres the button at the bottom */
}

.steps{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:30px;
  max-width:960px;
  margin:0 auto;
}

.step{ padding:10px 16px; }

.step-num{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:52px;
  height:52px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--btn-from),var(--btn-to));
  color:#fff;
  font-weight:700;
  font-size:1.3rem;
  margin-bottom:16px;
  box-shadow:0 8px 20px rgba(var(--btn-rgb),0.3);
}

.step h3{
  color:var(--heading);
  font-size:1.15rem;
  margin-bottom:8px;
}

.step p{
  line-height:1.6;
  text-align:center;
}

.how .btn{
  display:inline-block;
  margin-top:40px;
}
/* ==========================================================
   ADDITIONS: paste at the END of your main stylesheet.
   They use your theme variables (--btn-from, --btn-to, --heading, etc.)
   ========================================================== */

/* ---------- note under the hero button ---------- */
.hero .cta-note{
  margin-top:14px;
  font-size:0.9rem;
  color:#fff;
  text-shadow:0 2px 10px rgba(0,0,0,0.7);
  animation:fadeUp 1s ease 0.6s both;
}

/* ---------- header "Get a quote" button (replaces the Contact link) ---------- */
nav a.nav-cta{
  background:linear-gradient(135deg,var(--btn-from),var(--btn-to));
  color:#fff;
  padding:8px 16px;
  border-radius:30px;
  font-weight:600;
  white-space:nowrap;
}
nav a.nav-cta:hover{ color:#fff; }

/* ---------- "How it works" strip ---------- */
.how{
  background:#fff;
  text-align:center;          /* also centres the button at the bottom */
}

.steps{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:30px;
  max-width:960px;
  margin:0 auto;
}

.step{ padding:10px 16px; }

.step-num{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:52px;
  height:52px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--btn-from),var(--btn-to));
  color:#fff;
  font-weight:700;
  font-size:1.3rem;
  margin-bottom:16px;
  box-shadow:0 8px 20px rgba(var(--btn-rgb),0.3);
}

.step h3{
  color:var(--heading);
  font-size:1.15rem;
  margin-bottom:8px;
}

.step p{
  line-height:1.6;
  text-align:center;
}

.how .btn{
  display:inline-block;
  margin-top:40px;
}

/* ---------- photo + text section ("Careful loading, every time") ---------- */
.about{ background:var(--bg); }

.about-inner{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:50px;
  align-items:center;
  max-width:1100px;
  margin:0 auto;
}

.about-img{
  width:100%;
  height:auto;
  aspect-ratio:4 / 3;
  object-fit:cover;
  border-radius:20px;
  box-shadow:0 20px 40px rgba(0,0,0,0.12);
}

.about-text{ text-align:left; }

.about-text h2{
  color:var(--heading);
  font-size:2rem;
  margin-bottom:16px;
}

.about-text p{
  line-height:1.7;
  margin-bottom:18px;
  text-align:left;
}

.ticks{ list-style:none; margin:0 0 26px; }
.ticks li{ padding-left:30px; position:relative; margin-bottom:10px; line-height:1.5; }
.ticks li::before{
  content:'✓';
  position:absolute;
  left:0;
  color:var(--btn-to);
  font-weight:700;
}

@media (max-width:768px){
  .about-inner{ grid-template-columns:1fr; gap:28px; }
  .about-text h2{ font-size:1.6rem; }
}