/* =========================================================
   Pacific Home Improvement — Design tokens
   Palette: Navy (structure) / Red (energy, CTAs) / White
   Type: Oswald (condensed display, matches logo wordmark)
         Inter (body, UI)
   Signature: sawtooth divider motif, echoing the handsaw
   silhouette in the logo artwork
   ========================================================= */

:root{
  --navy-900:#101a2e;
  --navy-800:#16233d;
  --navy-700:#1b2a4a;
  --navy-600:#28395c;
  --navy-100:#e8ebf1;
  --red-700:#a50d26;
  --red-600:#c8102e;
  --red-500:#e01530;
  --white:#ffffff;
  --off-white:#f6f4ef;
  --ink:#1c2128;
  --muted:#5c6672;
  --muted-light:#8994a3;
  --border:#e3e0d8;

  --font-display:'Oswald', sans-serif;
  --font-body:'Inter', sans-serif;

  --container:1180px;
  --radius:4px;
  --shadow-card:0 10px 30px -12px rgba(16,26,46,0.25);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3,h4{
  font-family:var(--font-display);
  text-transform:uppercase;
  letter-spacing:0.02em;
  margin:0;
  line-height:1.05;
  color:var(--navy-700);
}
p{ margin:0; }
button{ font-family:inherit; cursor:pointer; }
.container{
  width:100%;
  max-width:var(--container);
  margin:0 auto;
  padding:0 24px;
}
:focus-visible{
  outline:3px solid var(--red-600);
  outline-offset:2px;
}

/* Eyebrow label used above section headings */
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family:var(--font-display);
  font-size:13px;
  font-weight:600;
  letter-spacing:0.18em;
  text-transform:uppercase;
  color:var(--red-600);
  margin-bottom:14px;
}
.eyebrow::before{
  content:'';
  width:28px;
  height:2px;
  background:var(--red-600);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:15px 30px;
  font-family:var(--font-display);
  font-size:15px;
  font-weight:600;
  letter-spacing:0.06em;
  text-transform:uppercase;
  border-radius:var(--radius);
  border:2px solid transparent;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space:nowrap;
}
.btn:hover{ transform:translateY(-2px); }
.btn-primary{ background:var(--red-600); color:var(--white); }
.btn-primary:hover{ background:var(--red-500); box-shadow:0 10px 20px -8px rgba(200,16,46,0.55); }
.btn-outline{ background:transparent; border-color:currentColor; color:var(--white); }
.btn-outline:hover{ background:rgba(255,255,255,0.12); }
.btn-outline-navy{ background:transparent; border-color:var(--navy-700); color:var(--navy-700); }
.btn-outline-navy:hover{ background:var(--navy-700); color:var(--white); }
.btn-block{ width:100%; }

/* =========================================================
   Sawtooth divider — the signature element.
   A jagged strip referencing the handsaw blade in the mark.
   ========================================================= */
.sawtooth{
  width:100%;
  height:22px;
  display:block;
  line-height:0;
}
.sawtooth svg{ width:100%; height:100%; display:block; }

/* =========================================================
   Header
   ========================================================= */
.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:var(--navy-700);
  border-bottom:1px solid rgba(255,255,255,0.08);
}
.site-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:88px;
}
.brand{ display:flex; align-items:center; height:100%; }
.brand img{ height:52px; width:auto; }

.main-nav{ display:flex; align-items:center; gap:36px; }
.main-nav a{
  font-family:var(--font-display);
  font-size:14px;
  font-weight:500;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--white);
  opacity:0.85;
  position:relative;
  padding:6px 0;
}
.main-nav a:hover{ opacity:1; }
.main-nav a::after{
  content:'';
  position:absolute;
  left:0; right:0; bottom:0;
  height:2px;
  background:var(--red-600);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .2s ease;
}
.main-nav a:hover::after{ transform:scaleX(1); }

.header-actions{ display:flex; align-items:center; gap:22px; }
.header-phone{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--white);
  font-family:var(--font-display);
  font-size:16px;
  letter-spacing:0.03em;
}
.header-phone svg{ width:18px; height:18px; flex-shrink:0; }

.nav-toggle{
  display:none;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  background:none;
  border:none;
  width:40px;
  height:40px;
  flex-shrink:0;
  padding:0;
}
.nav-toggle .bar{
  display:block;
  width:24px;
  height:2px;
  background:var(--white);
  border-radius:1px;
}

/* =========================================================
   Hero
   ========================================================= */
.hero{
  position:relative;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(200,16,46,0.18), transparent 55%),
    linear-gradient(160deg, var(--navy-900), var(--navy-700) 65%);
  overflow:hidden;
  padding:96px 0 76px;
}
.hero-saw{
  position:absolute;
  right:-140px;
  top:52%;
  transform:translateY(-50%) rotate(-6deg);
  width:900px;
  max-width:none;
  opacity:0.08;
  pointer-events:none;
}
.hero .container{
  position:relative;
  display:grid;
  grid-template-columns:1.15fr 0.85fr;
  gap:48px;
  align-items:center;
}
.hero-logo{ width:min(420px, 100%); margin-bottom:28px; }
.hero-kicker{
  font-family:var(--font-display);
  color:var(--red-500);
  font-size:14px;
  font-weight:600;
  letter-spacing:0.2em;
  text-transform:uppercase;
  margin-bottom:16px;
  display:block;
}
.hero h1{
  color:var(--white);
  font-size:clamp(38px, 5vw, 58px);
  margin-bottom:20px;
}
.hero h1 span{ color:var(--red-500); }
.hero p.lede{
  font-size:18px;
  line-height:1.6;
  color:rgba(255,255,255,0.78);
  max-width:520px;
  margin-bottom:36px;
}
.hero-ctas{ display:flex; gap:16px; flex-wrap:wrap; margin-bottom:44px; }
.hero-stats{
  display:flex;
  gap:36px;
  flex-wrap:wrap;
  border-top:1px solid rgba(255,255,255,0.15);
  padding-top:28px;
}
.hero-stat strong{
  display:block;
  font-family:var(--font-display);
  font-size:30px;
  color:var(--white);
}
.hero-stat span{
  font-size:13px;
  color:rgba(255,255,255,0.6);
  text-transform:uppercase;
  letter-spacing:0.08em;
}
.hero-card{
  background:var(--white);
  border-radius:6px;
  padding:34px;
  box-shadow:var(--shadow-card);
  position:relative;
}
.hero-card::before{
  content:'';
  position:absolute;
  inset:-10px -10px auto auto;
  width:64px; height:64px;
  border-top:4px solid var(--red-600);
  border-right:4px solid var(--red-600);
}
.hero-card h3{ font-size:20px; margin-bottom:6px; }
.hero-card p{ color:var(--muted); font-size:14.5px; line-height:1.6; margin-bottom:22px; }
.hero-card ul{ display:flex; flex-direction:column; gap:12px; margin-bottom:24px; }
.hero-card li{
  display:flex; align-items:center; gap:10px;
  font-size:14.5px; color:var(--ink); font-weight:500;
}
.hero-card li svg{ width:18px; height:18px; color:var(--red-600); flex-shrink:0; }

/* =========================================================
   Section shell
   ========================================================= */
section{ padding:90px 0; }
.section-off{ background:var(--off-white); }
.section-navy{ background:var(--navy-700); }
.section-head{ max-width:640px; margin-bottom:56px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head h2{ font-size:clamp(28px,3.4vw,40px); margin-bottom:14px; }
.section-head p{ color:var(--muted); font-size:16.5px; line-height:1.65; }
.section-navy .section-head h2, .section-navy .section-head p{ color:var(--white); }
.section-navy .section-head p{ color:rgba(255,255,255,0.68); }

/* =========================================================
   Services
   ========================================================= */
.services-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:2px;
  background:var(--border);
  border:1px solid var(--border);
}
.service-card{
  background:var(--white);
  padding:38px 32px;
  transition:background .18s ease;
}
.service-card:hover{ background:var(--off-white); }
.service-icon{
  width:52px; height:52px;
  display:flex; align-items:center; justify-content:center;
  background:var(--navy-700);
  color:var(--white);
  margin-bottom:22px;
  border-radius:3px;
}
.service-icon svg{ width:26px; height:26px; }
.service-card h3{ font-size:19px; margin-bottom:10px; }
.service-card p{ color:var(--muted); font-size:14.5px; line-height:1.6; }

/* =========================================================
   About
   ========================================================= */
.about-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:64px;
  align-items:center;
}
.about-copy p{ color:var(--muted); font-size:16px; line-height:1.75; margin-bottom:18px; }
.about-copy p:last-of-type{ margin-bottom:0; }
.about-signature{
  margin-top:28px;
  display:flex;
  align-items:center;
  gap:16px;
}
.about-signature img{ height:34px; width:auto; }
.about-signature div{ font-size:13.5px; color:var(--muted); line-height:1.4; }
.about-signature strong{ display:block; color:var(--navy-700); font-family:var(--font-display); font-size:15px; letter-spacing:0.02em; }

.about-panel{
  background:var(--navy-700);
  color:var(--white);
  padding:44px;
  border-radius:6px;
  position:relative;
}
.about-panel::before{
  content:'';
  position:absolute;
  inset:auto auto -10px -10px;
  width:64px; height:64px;
  border-bottom:4px solid var(--red-600);
  border-left:4px solid var(--red-600);
}
.about-panel-list{ display:flex; flex-direction:column; }
.about-panel-item{
  display:flex; gap:16px;
  padding:20px 0;
  border-bottom:1px solid rgba(255,255,255,0.12);
}
.about-panel-item:first-child{ padding-top:0; }
.about-panel-item:last-child{ border-bottom:none; padding-bottom:0; }
.about-panel-item svg{ width:24px; height:24px; color:var(--red-500); flex-shrink:0; margin-top:2px; }
.about-panel-item h4{ color:var(--white); font-size:16px; margin-bottom:4px; }
.about-panel-item p{ color:rgba(255,255,255,0.65); font-size:14px; line-height:1.55; }

/* =========================================================
   Gallery
   ========================================================= */
.gallery-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:20px;
}
.gallery-item{
  position:relative;
  aspect-ratio:4/3;
  border-radius:4px;
  overflow:hidden;
  background:linear-gradient(145deg, var(--navy-600), var(--navy-800));
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,0.08);
}
.gallery-item span{
  font-family:var(--font-display);
  color:rgba(255,255,255,0.4);
  font-size:14px;
  text-transform:uppercase;
  letter-spacing:0.1em;
  text-align:center;
  padding:0 20px;
}
.gallery-item::after{
  content:'';
  position:absolute;
  left:16px; top:16px;
  width:22px; height:22px;
  border-top:2px solid var(--red-600);
  border-left:2px solid var(--red-600);
}
.gallery-note{
  margin-top:28px;
  text-align:center;
  color:rgba(255,255,255,0.55);
  font-size:14px;
}

/* =========================================================
   Testimonials
   ========================================================= */
.testimonial-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:28px;
}
.testimonial-card{
  background:var(--white);
  border:1px solid var(--border);
  border-top:3px solid var(--red-600);
  padding:32px;
  border-radius:4px;
  display:flex;
  flex-direction:column;
}
.stars{ display:flex; gap:4px; margin-bottom:18px; }
.stars svg{ width:16px; height:16px; color:var(--red-600); }
.testimonial-card p.quote{
  font-size:15.5px;
  line-height:1.7;
  color:var(--ink);
  margin-bottom:22px;
  flex-grow:1;
}
.testimonial-name{ font-family:var(--font-display); font-size:15px; color:var(--navy-700); letter-spacing:0.02em; }
.testimonial-loc{ font-size:13px; color:var(--muted); margin-top:2px; }

/* =========================================================
   CTA Banner
   ========================================================= */
.cta-banner{
  background:var(--red-600);
  padding:56px 0;
}
.cta-banner .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  flex-wrap:wrap;
}
.cta-banner h2{ color:var(--white); font-size:clamp(24px,3vw,32px); }
.cta-banner p{ color:rgba(255,255,255,0.85); margin-top:8px; font-size:15.5px; }
.cta-banner-actions{ display:flex; gap:14px; flex-wrap:wrap; }
.cta-banner .btn-primary{ background:var(--navy-700); }
.cta-banner .btn-primary:hover{ background:var(--navy-800); }

/* =========================================================
   Contact
   ========================================================= */
.contact-grid{
  display:grid;
  grid-template-columns:1.1fr 0.9fr;
  gap:56px;
}
.contact-form{
  background:var(--off-white);
  border:1px solid var(--border);
  border-radius:6px;
  padding:40px;
}
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-bottom:18px; }
.form-group{ display:flex; flex-direction:column; gap:8px; margin-bottom:18px; }
.form-group label{
  font-size:13px;
  font-weight:600;
  color:var(--navy-700);
  text-transform:uppercase;
  letter-spacing:0.05em;
}
.form-group input, .form-group select, .form-group textarea{
  border:1px solid var(--border);
  background:var(--white);
  border-radius:3px;
  padding:12px 14px;
  font-family:var(--font-body);
  font-size:14.5px;
  color:var(--ink);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus{
  border-color:var(--red-600);
  outline:none;
}
.form-group textarea{ resize:vertical; min-height:120px; }
.form-note{ font-size:12.5px; color:var(--muted-light); margin-top:16px; text-align:center; }

.contact-info-card{
  background:var(--navy-700);
  color:var(--white);
  border-radius:6px;
  padding:40px;
  margin-bottom:24px;
}
.contact-info-row{
  display:flex;
  gap:16px;
  align-items:flex-start;
  padding:18px 0;
  border-bottom:1px solid rgba(255,255,255,0.12);
}
.contact-info-row:first-child{ padding-top:0; }
.contact-info-row:last-child{ border-bottom:none; padding-bottom:0; }
.contact-info-row svg{ width:22px; height:22px; color:var(--red-500); flex-shrink:0; margin-top:2px; }
.contact-info-row h4{ color:var(--white); font-size:14px; text-transform:uppercase; letter-spacing:0.06em; margin-bottom:4px; }
.contact-info-row p, .contact-info-row a{ color:rgba(255,255,255,0.72); font-size:15px; line-height:1.5; }
.contact-info-row a:hover{ color:var(--white); }

.service-area-card{
  border:1px solid var(--border);
  border-radius:6px;
  padding:28px 32px;
}
.service-area-card h4{ font-size:15px; color:var(--navy-700); margin-bottom:10px; text-transform:uppercase; letter-spacing:0.05em; }
.service-area-card p{ color:var(--muted); font-size:14.5px; line-height:1.6; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer{ background:var(--navy-900); color:rgba(255,255,255,0.6); padding:56px 0 28px; }
.footer-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  flex-wrap:wrap;
  gap:40px;
  padding-bottom:36px;
  border-bottom:1px solid rgba(255,255,255,0.1);
  margin-bottom:28px;
}
.footer-brand img{ height:32px; margin-bottom:14px; }
.footer-brand p{ font-size:14px; max-width:280px; line-height:1.6; }
.footer-links{ display:flex; gap:64px; flex-wrap:wrap; }
.footer-col h5{
  font-family:var(--font-display);
  color:var(--white);
  font-size:13px;
  letter-spacing:0.1em;
  text-transform:uppercase;
  margin-bottom:16px;
}
.footer-col a, .footer-col p{
  display:block;
  font-size:14px;
  margin-bottom:10px;
  color:rgba(255,255,255,0.6);
}
.footer-col a:hover{ color:var(--white); }
.footer-bottom{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
  font-size:13px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px){
  .hero .container{ grid-template-columns:1fr; }
  .hero-card{ max-width:460px; }
  .about-grid{ grid-template-columns:1fr; }
  .services-grid{ grid-template-columns:repeat(2,1fr); }
  .testimonial-grid{ grid-template-columns:1fr; }
  .gallery-grid{ grid-template-columns:repeat(2,1fr); }
  .contact-grid{ grid-template-columns:1fr; }
}

@media (max-width: 760px){
  .main-nav{
    display:none;
    position:absolute;
    top:78px; left:0; right:0;
    background:var(--navy-800);
    flex-direction:column;
    align-items:flex-start;
    gap:0;
    padding:8px 24px 20px;
    border-bottom:1px solid rgba(255,255,255,0.1);
  }
  .main-nav.nav-open{ display:flex; }
  .main-nav a{ width:100%; padding:14px 0; border-bottom:1px solid rgba(255,255,255,0.08); }
  .header-phone span{ display:none; }
  .header-phone{ flex-shrink:0; }
  .header-phone svg{ flex-shrink:0; }
  .header-actions{ gap:10px; }
  .brand img{ height:34px; }
  .btn.btn-primary{ padding:12px 16px; font-size:13px; }
  .nav-toggle{ display:flex; }
  .header-actions{ gap:14px; }
  .services-grid{ grid-template-columns:1fr; }
  .gallery-grid{ grid-template-columns:1fr; }
  .form-row{ grid-template-columns:1fr; }
  .hero{ padding:64px 0 52px; }
  .cta-banner .container{ flex-direction:column; align-items:flex-start; }
  .footer-top{ flex-direction:column; }
  section{ padding:64px 0; }
}
