/*
Theme Name: Install Garage Door Services
Theme URI: https://installgaragedoorservice.com
Author: Install Garage Door Services
Description: Custom theme for Install Garage Door Services — Santa Clarita, CA. Contractor License #920588.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: install-garage-door
*/

/* =========================================================
   INSTALL GARAGE DOOR SERVICES — design tokens & components
   Palette pulled from the shop's own flyers and logo: deep
   navy, bold gold, and a bright blue accent. Signature motif:
   the sectional garage-door panel — a stack of ridged
   horizontal bars — used as dividers, nav rail, hero mechanism
   and hover states throughout the site.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Oswald:wght@400;500;600;700&family=Source+Sans+3:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root{
  /* colour — navy / gold / blue, from the Install Garage Door Services flyers */
  --ink:        #10151d;
  --steel-900:  #0b1830;   /* deep navy — headers, footers, dark sections */
  --steel-800:  #122543;   /* secondary navy surface */
  --steel-700:  #17335c;   /* mid navy — line art, borders on dark */
  --steel-600:  #3d5c8c;   /* muted navy-gray */
  --panel:      #eef2f7;   /* cool light panel background */
  --panel-line: #d5dde7;   /* light dividing lines */
  --panel-deep: #e2e8f2;
  --white:      #f8fafc;
  --amber:      #e3b23c;   /* brand gold */
  --amber-dim:  #c89a2e;
  --rust:       #2e63d6;   /* brand blue accent */
  --green-ok:   #21a366;

  /* type */
  --f-hero: 'Anton', 'Oswald', 'Arial Narrow', sans-serif;
  --f-display: 'Oswald', 'Arial Narrow', sans-serif;
  --f-body: 'Source Sans 3', -apple-system, Segoe UI, sans-serif;
  --f-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --radius: 3px;
  --wrap: 1180px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--f-body);
  color:var(--ink);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family:var(--f-display); font-weight:600; margin:0; line-height:1.08; letter-spacing:.2px; }
p{ margin:0 0 1em; line-height:1.6; color:var(--steel-700); }
.mono{ font-family:var(--f-mono); }

.wrap{ max-width:var(--wrap); margin:0 auto; padding:0 28px; }
section{ padding:88px 0; }
@media (max-width:720px){ section{ padding:56px 0; } .wrap{ padding:0 20px; } }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline:3px solid var(--amber);
  outline-offset:2px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

/* ---------- eyebrow / kicker ---------- */
.eyebrow{
  font-family:var(--f-mono);
  font-size:12.5px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--amber-dim);
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:14px;
}
.eyebrow::before{
  content:"";
  width:22px; height:2px;
  background:var(--amber);
  display:inline-block;
}

/* =========================================================
   PANEL-RAIL — signature divider component.
   Renders as a stack of ridged bars, like the seams on a
   sectional garage door, with two round track-rollers.
   ========================================================= */
.panel-rail{
  height:26px;
  width:100%;
  position:relative;
  background:
    repeating-linear-gradient(
      to bottom,
      var(--panel-line) 0px, var(--panel-line) 2px,
      transparent 2px, transparent 9px
    );
  opacity:.9;
}
.panel-rail::before,
.panel-rail::after{
  content:"";
  position:absolute;
  top:50%; transform:translateY(-50%);
  width:9px; height:9px;
  border-radius:50%;
  background:var(--steel-600);
}
.panel-rail::before{ left:6%; }
.panel-rail::after{ right:6%; }
.panel-rail--dark{
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,.14) 0px, rgba(255,255,255,.14) 2px,
      transparent 2px, transparent 9px
    );
}

/* ---------- header ---------- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:var(--steel-900);
  border-bottom:1px solid var(--steel-700);
}
.site-header .wrap{
  display:flex; align-items:center; justify-content:space-between;
  height:74px;
}
.brand{ display:flex; align-items:center; gap:12px; color:var(--white); }
.brand__mark{ width:34px; height:34px; flex:none; }
.brand__text{ font-family:var(--f-display); font-size:18px; line-height:1.15; color:var(--white); }
.brand__text small{
  display:block; font-family:var(--f-mono); font-size:10.5px;
  letter-spacing:.1em; color:var(--amber); text-transform:uppercase; margin-top:2px;
}

.main-nav{ display:flex; align-items:center; gap:2px; }
.main-nav a{
  font-family:var(--f-display);
  font-size:14.5px;
  letter-spacing:.03em;
  text-transform:uppercase;
  color:#c9d4e3;
  padding:10px 16px;
  position:relative;
}
.main-nav a:hover{ color:var(--white); }
.main-nav a.is-active{ color:var(--white); }
.main-nav a.is-active::after{
  content:"";
  position:absolute; left:16px; right:16px; bottom:4px;
  height:3px; background:var(--amber); border-radius:2px;
}
.header-cta{ display:flex; align-items:center; gap:14px; }
.header-phone{
  font-family:var(--f-mono); color:var(--white); font-size:15px; font-weight:600;
  display:flex; align-items:center; gap:8px;
}
.header-phone svg{ width:16px; height:16px; color:var(--amber); }

.nav-toggle{
  display:none;
  background:none; border:1px solid var(--steel-600); border-radius:var(--radius);
  width:42px; height:38px; cursor:pointer; color:var(--white);
  align-items:center; justify-content:center;
}
.nav-toggle svg{ width:20px; height:20px; }

@media (max-width:900px){
  .main-nav{
    position:absolute; top:74px; left:0; right:0;
    background:var(--steel-900); border-bottom:1px solid var(--steel-700);
    flex-direction:column; align-items:stretch; gap:0;
    display:none;
    padding:8px 0 16px;
  }
  .main-nav.is-open{ display:flex; }
  .main-nav a{ padding:14px 28px; }
  .main-nav a.is-active::after{ display:none; }
  .main-nav a.is-active{ background:var(--steel-800); }
  .nav-toggle{ display:inline-flex; }
  .header-phone span{ display:none; }
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  font-family:var(--f-display); font-size:15px; letter-spacing:.03em; text-transform:uppercase;
  padding:14px 26px; border-radius:var(--radius);
  border:1.5px solid transparent; cursor:pointer;
  transition:transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn svg{ width:16px; height:16px; }
.btn:hover{ transform:translateY(-1px); }
.btn--amber{ background:var(--amber); color:var(--steel-900); }
.btn--amber:hover{ background:var(--amber-dim); }
.btn--outline-dark{ border-color:var(--steel-600); color:var(--white); }
.btn--outline-dark:hover{ border-color:var(--white); }
.btn--outline{ border-color:var(--steel-700); color:var(--ink); }
.btn--outline:hover{ border-color:var(--ink); }
.btn--block{ width:100%; }

/* =========================================================
   HERO — the page "opens" like a sectional door on load,
   sliding up to reveal the headline behind the track.
   ========================================================= */
.hero{
  position:relative;
  background:var(--steel-900);
  color:var(--white);
  overflow:hidden;
  padding:0;
}
.hero__inner{
  max-width:var(--wrap); margin:0 auto; padding:96px 28px 110px;
  position:relative; z-index:2;
  display:grid; grid-template-columns:1.15fr .85fr; gap:48px; align-items:end;
}
.hero__eyebrow{
  font-family:var(--f-mono); font-size:13px; letter-spacing:.16em; text-transform:uppercase;
  color:var(--amber); margin-bottom:18px; display:flex; align-items:center; gap:10px;
}
.hero__eyebrow::before{ content:"●"; font-size:9px; color:var(--amber); }
.hero h1{
  font-family:var(--f-hero);
  font-size:clamp(40px,6vw,72px);
  text-transform:uppercase;
  letter-spacing:.01em;
  color:var(--white);
  max-width:15ch;
}
.hero h1 em{ font-style:normal; color:var(--amber); }
.hero__lead{ color:#c7d2e3; font-size:18px; max-width:46ch; margin:22px 0 30px; }
.hero__ctas{ display:flex; gap:14px; flex-wrap:wrap; }

.hero__plate{
  background:var(--steel-800);
  border:1px solid var(--steel-700);
  border-radius:var(--radius);
  padding:24px 24px 20px;
  align-self:end;
}
.hero__plate-row{
  display:flex; justify-content:space-between; align-items:baseline;
  padding:10px 0; border-bottom:1px dashed var(--steel-700);
  font-family:var(--f-mono); font-size:13.5px;
}
.hero__plate-row:last-child{ border-bottom:none; }
.hero__plate-row span:first-child{ color:#8fa2be; text-transform:uppercase; letter-spacing:.06em; font-size:11.5px; }
.hero__plate-row span:last-child{ color:var(--white); font-weight:600; }

.hero__door{
  position:absolute; inset:0; z-index:1;
  display:flex; flex-direction:column; justify-content:flex-end;
  pointer-events:none;
}
.hero__door .panel-rail{ position:relative; }

/* door panels graphic strip along the bottom of hero, decorative */
.door-strip{
  position:absolute; left:0; right:0; bottom:0; height:64px; z-index:1;
  background:
    repeating-linear-gradient(to bottom,
      rgba(255,255,255,.05) 0, rgba(255,255,255,.05) 1px,
      transparent 1px, transparent 16px),
    var(--steel-800);
  border-top:1px solid var(--steel-700);
  opacity:.7;
}

/* ---------- trust / strip bar ---------- */
.trust-strip{
  background:var(--panel);
  border-bottom:1px solid var(--panel-line);
}
.trust-strip .wrap{
  display:flex; flex-wrap:wrap; gap:28px; justify-content:space-between;
  padding:22px 28px;
}
.trust-item{
  display:flex; align-items:center; gap:10px;
  font-family:var(--f-mono); font-size:13px; color:var(--steel-700);
  text-transform:uppercase; letter-spacing:.03em;
}
.trust-item svg{ width:18px; height:18px; color:var(--amber-dim); flex:none; }

/* ---------- section headers ---------- */
.section-head{ max-width:640px; margin-bottom:48px; }
.section-head h2{ font-size:clamp(28px,4vw,42px); }
.section-head p{ margin-top:16px; font-size:17px; }
.section-head--center{ margin-left:auto; margin-right:auto; text-align:center; }

/* ---------- service cards ---------- */
.services-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:2px;
  background:var(--panel-line);
  border:1px solid var(--panel-line);
}
@media (max-width:900px){ .services-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:600px){ .services-grid{ grid-template-columns:1fr; } }

.service-card{
  background:var(--white); padding:34px 28px;
  display:flex; flex-direction:column; gap:14px;
  transition:background .15s ease;
}
.service-card:hover{ background:var(--panel); }
.service-card__num{ font-family:var(--f-mono); color:var(--amber-dim); font-size:12.5px; }
.service-card__icon{ width:38px; height:38px; color:var(--steel-900); }
.service-card h3{ font-size:19px; }
.service-card p{ font-size:15px; margin-bottom:6px; }
.service-card__link{
  margin-top:auto; font-family:var(--f-mono); font-size:12.5px; text-transform:uppercase;
  letter-spacing:.05em; color:var(--rust); display:inline-flex; align-items:center; gap:6px;
}

/* ---------- split / feature rows ---------- */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center; }
@media (max-width:820px){ .split{ grid-template-columns:1fr; gap:36px; } }
.split--reverse .split__media{ order:2; }
@media (max-width:820px){ .split--reverse .split__media{ order:0; } }

.feature-list{ display:flex; flex-direction:column; gap:16px; margin-top:22px; }
.feature-list li{ display:flex; gap:14px; align-items:flex-start; color:var(--steel-700); }
.feature-list svg{ width:20px; height:20px; color:var(--green-ok); flex:none; margin-top:2px; }

/* graphic media block using the door motif instead of stock photos */
.door-art{
  background:var(--panel);
  border:1px solid var(--panel-line);
  border-radius:var(--radius);
  padding:28px;
}
.door-art svg{ width:100%; height:auto; display:block; }

/* ---------- plate / badge component (license, hours) ---------- */
.plate{
  background:var(--steel-900); color:var(--white);
  border-radius:var(--radius); padding:32px;
  position:relative;
}
.plate::before{
  content:""; position:absolute; top:10px; left:10px; width:7px; height:7px; border-radius:50%;
  background:var(--steel-600); box-shadow:
    calc(100% + 6px) 0 var(--steel-600);
}
.plate h3{ color:var(--white); font-size:15px; letter-spacing:.08em; text-transform:uppercase; margin-bottom:18px; }

/* ---------- hours table ---------- */
.hours-table{ width:100%; border-collapse:collapse; font-family:var(--f-mono); font-size:14.5px; }
.hours-table td{ padding:9px 0; border-bottom:1px solid var(--steel-700); }
.hours-table td:first-child{ color:#a6b7cc; text-transform:uppercase; letter-spacing:.05em; font-size:12.5px; }
.hours-table td:last-child{ text-align:right; color:var(--white); font-weight:600; }
.hours-table tr:last-child td{ border-bottom:none; }
.after-hours-note{
  margin-top:18px; padding-top:16px; border-top:1px dashed var(--steel-700);
  font-size:13.5px; color:#c7d2e3; line-height:1.6;
}
.after-hours-note strong{ color:var(--amber); }

/* ---------- tip cards (flyer graphics) ---------- */
.tip-grid{
  display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-top:8px;
}
@media (max-width:720px){ .tip-grid{ grid-template-columns:1fr; } }
.tip-card{
  margin:0; border-radius:var(--radius); overflow:hidden;
  border:1px solid var(--steel-700); background:var(--steel-800);
  transition:transform .15s ease;
}
.tip-card:hover{ transform:translateY(-2px); }
.tip-card img{ width:100%; height:auto; display:block; }

/* ---------- CTA band ---------- */
.cta-band{
  background:var(--amber);
  color:var(--steel-900);
}
.cta-band .wrap{
  display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;
  padding:52px 28px;
}
.cta-band h2{ font-family:var(--f-hero); text-transform:uppercase; font-size:clamp(22px,3.2vw,32px); max-width:20ch; }
.cta-band .btn--outline-dark{ border-color:var(--steel-900); color:var(--steel-900); }
.cta-band .btn--outline-dark:hover{ background:var(--steel-900); color:var(--white); }

/* ---------- service area ---------- */
.area-list{ display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
.area-list span{
  font-family:var(--f-mono); font-size:12.5px; text-transform:uppercase; letter-spacing:.03em;
  border:1px solid var(--panel-line); border-radius:var(--radius); padding:8px 13px;
  color:var(--steel-700);
}

/* ---------- footer ---------- */
.site-footer{ background:var(--steel-900); color:#c7d2e3; }
.footer-grid{
  display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px;
  padding:64px 0 40px;
}
@media (max-width:820px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .footer-grid{ grid-template-columns:1fr; } }
.footer-grid h4{
  color:var(--white); font-size:13px; letter-spacing:.08em; text-transform:uppercase; margin-bottom:16px;
}
.footer-grid ul{ display:flex; flex-direction:column; gap:10px; font-size:14.5px; }
.footer-grid a:hover{ color:var(--white); }
.footer-brand p{ color:#8fa2be; font-size:14px; max-width:34ch; }
.footer-bottom{
  border-top:1px solid var(--steel-800);
  padding:22px 0; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
  font-family:var(--f-mono); font-size:12px; color:#7e93ac;
}

/* ---------- generic page hero (interior pages) ---------- */
.page-hero{ background:var(--steel-900); color:var(--white); padding:64px 0 46px; }
.page-hero h1{ font-size:clamp(32px,5vw,48px); color:var(--white); max-width:20ch; }
.page-hero p{ color:#c7d2e3; max-width:56ch; margin-top:16px; font-size:17px; }

/* ---------- forms ---------- */
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
@media (max-width:600px){ .form-grid{ grid-template-columns:1fr; } }
.field{ display:flex; flex-direction:column; gap:7px; }
.field--full{ grid-column:1/-1; }
.field label{ font-family:var(--f-mono); font-size:12px; text-transform:uppercase; letter-spacing:.05em; color:var(--steel-700); }
.field input, .field select, .field textarea{
  font-family:var(--f-body); font-size:15px; padding:12px 14px;
  border:1.5px solid var(--panel-line); border-radius:var(--radius); background:var(--white); color:var(--ink);
}
.field textarea{ resize:vertical; min-height:120px; }
.field input:hover, .field select:hover, .field textarea:hover{ border-color:var(--steel-600); }
.form-note{ font-size:13px; color:var(--steel-600); margin-top:14px; }

/* ---------- process steps (numbered — real sequence) ---------- */
.steps{ display:flex; flex-direction:column; }
.step{ display:grid; grid-template-columns:64px 1fr; gap:20px; padding:26px 0; border-top:1px solid var(--panel-line); }
.step:last-child{ border-bottom:1px solid var(--panel-line); }
.step__num{ font-family:var(--f-mono); font-size:22px; color:var(--amber-dim); }
.step h3{ font-size:18px; margin-bottom:6px; }

/* ---------- misc ---------- */
.tag{
  display:inline-block; font-family:var(--f-mono); font-size:11.5px; text-transform:uppercase;
  letter-spacing:.06em; padding:5px 10px; border-radius:2px; background:var(--panel); color:var(--steel-700);
  border:1px solid var(--panel-line);
}
.tag--amber{ background:rgba(217,142,43,.14); color:var(--amber-dim); border-color:rgba(217,142,43,.3); }

.map-frame{ border:1px solid var(--panel-line); border-radius:var(--radius); overflow:hidden; }
.map-frame iframe{ width:100%; height:100%; min-height:340px; border:0; display:block; }

.brands-row{ display:flex; flex-wrap:wrap; gap:14px; margin-top:8px; }
.brands-row span{
  font-family:var(--f-mono); font-size:13px; padding:9px 14px; border:1px solid var(--panel-line);
  border-radius:var(--radius); color:var(--steel-700);
}
