/* =========================================================
   R & V Appliances Repair Inc — Global Design System
   Palette: Trust Blue
   ========================================================= */
:root {
  --navy-900: #0f1b3d;
  --navy-700: #1e3a5f;
  --blue-500: #3b6fa0;
  --blue-300: #6a9bc9;
  --ice-50:   #e8edf3;
  --white:    #ffffff;
  --ink-900:  #0a1226;
  --ink-600:  #4a5878;
  --ink-400:  #8593ad;

  --cta:        #ff7a1a;       /* warm CTA stands out vs navy */
  --cta-hover:  #ff8f3d;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 8px rgba(15,27,61,.08);
  --shadow-md: 0 10px 30px rgba(15,27,61,.12);
  --shadow-lg: 0 20px 60px rgba(15,27,61,.18);

  --container: 1200px;
  --nav-h: 68px;

  --font-sans: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--blue-500); }

h1, h2, h3, h4 { font-family: var(--font-sans); color: var(--navy-900); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { margin: 0 0 1em; color: var(--ink-600); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ====== Buttons ====== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
  border: 0; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--cta); color: #fff; box-shadow: 0 8px 22px rgba(255,122,26,.35); }
.btn-primary:hover { background: var(--cta-hover); transform: translateY(-2px); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.25); color: #fff; }
.btn-outline { background: #fff; color: var(--navy-900); border: 1.5px solid var(--ice-50); }
.btn-outline:hover { border-color: var(--blue-500); color: var(--blue-500); }

/* ====== Glassmorphism Navbar ====== */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,.65);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(15,27,61,.08);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.scrolled { background: rgba(255,255,255,.85); box-shadow: var(--shadow-sm); }
.nav .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--navy-900); font-size: 1.05rem; }
.brand-mark {
  width: 90px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--navy-900), var(--blue-500));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .85rem;
  box-shadow: var(--shadow-sm);
}
.nav-links { display: none; gap: 26px; align-items: center; }
.nav-links a { color: var(--ink-900); font-weight: 500; font-size: .95rem; position: relative; }
.nav-links a::after { content:""; position:absolute; left:0; right:0; bottom:-6px; height:2px; background: var(--cta); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { padding: 10px 16px; font-size: .9rem; }

.menu-toggle {
  display: inline-flex; flex-direction: column; gap: 5px;
  background: transparent; border: 0; padding: 8px; cursor: pointer;
}
.menu-toggle span { width: 22px; height: 2px; background: var(--navy-900); border-radius: 2px; transition: transform .25s var(--ease), opacity .25s var(--ease); }
.menu-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2){ opacity: 0; }
.menu-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 auto 0;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(15,27,61,.08);
  padding: 18px 20px 24px;
  display: none; flex-direction: column; gap: 6px;
  z-index: 49;
}
.mobile-menu.open { display: flex; animation: slideDown .25s var(--ease); }
.mobile-menu a { padding: 12px 8px; border-bottom: 1px solid var(--ice-50); color: var(--navy-900); font-weight: 500; }
.mobile-menu .btn { margin-top: 12px; justify-content: center; }

@keyframes slideDown { from { opacity:0; transform: translateY(-8px);} to { opacity:1; transform: translateY(0);} }

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

/* ====== Hero ====== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(59,111,160,.35), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(15,27,61,.55), transparent 60%),
    linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #fff;
  padding: clamp(56px, 9vw, 110px) 0 clamp(64px, 10vw, 120px);
}
.hero h1 { color: #fff; }
.hero p.lead { color: rgba(255,255,255,.85); font-size: clamp(1.05rem,1.6vw,1.2rem); max-width: 56ch; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: rgba(255,255,255,.85); font-size: .92rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cta); display: inline-block; }

.hero-visual {
  position: relative; aspect-ratio: 1/1; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  display: grid; place-items: center; color: rgba(255,255,255,.6);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 900px){
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 60px; }
}

/* ====== Sections ====== */
section { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600;
  color: var(--blue-500); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 12px;
}

/* ====== Image placeholders ====== */
.placeholder {
  aspect-ratio: 1/1; width: 100%;
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, var(--ice-50), #fff),
    repeating-linear-gradient(45deg, rgba(59,111,160,.08) 0 12px, transparent 12px 24px);
  background-blend-mode: multiply;
  display: grid; place-items: center;
  color: var(--blue-500); font-weight: 600; letter-spacing: .04em;
  border: 1px solid rgba(59,111,160,.15);
  box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.placeholder::after {
  content:""; position:absolute; inset:0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.6), transparent 50%);
  pointer-events:none;
}

/* ====== Cards ====== */
.cards {
  
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  
}
.card {
  background: #fff; border: 1px solid var(--ice-50);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(59,111,160,.3); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-900), var(--blue-500));
  color:#fff; display:grid; place-items:center; margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: .95rem; }

/* ====== Two-col image+text ====== */
.feature {
  display: grid; gap: 32px; align-items: center;
}
@media (min-width: 900px){ .feature { grid-template-columns: 1fr 1fr; gap: 60px; } }
.feature.reverse > :first-child { order: 2; }
@media (max-width: 899px){ .feature.reverse > :first-child { order: 0; } }

/* ====== Stats ====== */
.stats {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  background: var(--navy-900);
  color: #fff; border-radius: var(--radius-lg);
  padding: 36px; margin-top: 32px;
}
.stat .num { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; color: #fff; }
.stat .label { color: rgba(255,255,255,.75); font-size: .9rem; }

/* ====== CTA strip ====== */
.cta-strip {
  background: linear-gradient(135deg, var(--navy-900), var(--blue-500));
  color: #fff; border-radius: var(--radius-lg);
  padding: 40px; text-align: center;
}
.cta-strip h2 { color: #fff; }
.cta-strip p { color: rgba(255,255,255,.85); }

/* ====== Footer ====== */
footer {
  background: var(--navy-900); color: rgba(255,255,255,.8);
  padding: 64px 0 28px; margin-top: 40px;
}
footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; letter-spacing: .02em; }
.footer-grid {
  display: grid; gap: 36px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px){ .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-grid a { color: rgba(255,255,255,.75); display: block; padding: 4px 0; font-size: .92rem; }
.footer-grid a:hover { color: #fff; }
.footer-brand p { color: rgba(255,255,255,.7); font-size: .92rem; max-width: 32ch; }
.footer-bottom {
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .85rem; color: rgba(255,255,255,.6);
}
.footer-call {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 600; font-size: 1.1rem; margin-top: 12px;
}

/* ====== Scroll Reveal ====== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
.middle {

  display: grid;
  place-items: center; 
  margin: auto;

}
/*body { color: #841f1f !important; }*/
/* ====== Services Dropdown (desktop) ====== */
.has-dropdown { position: relative; }
.has-dropdown > .dd-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 0; padding: 0;
  font: inherit; color: var(--ink-900); font-weight: 500; font-size: .95rem;
  cursor: pointer;
}
.has-dropdown > .dd-toggle .chev {
  width: 12px; height: 12px; transition: transform .25s var(--ease);
}
.has-dropdown:hover > .dd-toggle .chev,
.has-dropdown:focus-within > .dd-toggle .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 260px;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid rgba(15,27,61,.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  z-index: 60;
}
.dropdown::before {
  content:""; position:absolute; top:-14px; left:0; right:0; height:14px;
}
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: block; padding: 10px 14px;
  border-radius: 10px; color: var(--navy-900);
  font-size: .92rem; font-weight: 500;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.dropdown a::after { display: none; }
.dropdown a:hover { background: var(--ice-50); color: var(--blue-500); }

/* Mobile submenu */
.mobile-submenu { display: none; flex-direction: column; padding-left: 14px; border-left: 2px solid var(--ice-50); margin: 4px 0 8px; }
.mobile-submenu.open { display: flex; }
.mobile-submenu a { padding: 10px 8px; font-size: .92rem; border-bottom: none; color: var(--ink-600); }
.mobile-sub-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; background: transparent; border: 0; padding: 12px 8px;
  border-bottom: 1px solid var(--ice-50);
  color: var(--navy-900); font: inherit; font-weight: 500; font-size: 1rem;
  cursor: pointer;
}
.mobile-sub-toggle .chev { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.mobile-sub-toggle.open .chev { transform: rotate(180deg); }

/* ====== Social Icons ====== */
.socials { display: inline-flex; gap: 10px; align-items: center; }
.social-link {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  transition: background .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
}
.social-link:hover { background: var(--cta); border-color: var(--cta); color:#fff; transform: translateY(-2px); }
.social-link svg { width: 18px; height: 18px; }

.nav .socials .social-link {
  width: 34px; height: 34px;
  background: rgba(15,27,61,.06);
  border-color: rgba(15,27,61,.1);
  color: var(--navy-900);
}
.nav .socials .social-link:hover { background: var(--cta); border-color: var(--cta); color: #fff; }
.nav .socials .social-link svg { width: 16px; height: 16px; }

@media (max-width: 899px){ .nav .socials { display: none; } }

.mobile-menu .socials { margin-top: 16px; justify-content: center; }
.mobile-menu .social-link {
  background: var(--ice-50);
  border-color: rgba(15,27,61,.08);
  color: var(--navy-900);
}
