/* ===========================================================
   Interval Electrical Services — stylesheet
   Brand colors sampled directly from the company logo.
   =========================================================== */

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

:root{
  --ink:        #17181A;   /* near-black, matches logo charcoal   */
  --ink-soft:   #232427;
  --orange:     #FF671B;   /* exact bolt color from logo          */
  --orange-dark:#D9530F;
  --paper:      #F7F5F1;   /* warm off-white page background      */
  --white:      #FFFFFF;
  --steel:      #5B5E63;   /* secondary text                      */
  --steel-light:#9A9DA3;
  --line:       #E7E3DA;   /* light hairline                      */
  --line-dark:  #33353A;   /* hairline on dark sections            */
  --ok:         #2E7D46;

  --display: 'Oswald', sans-serif;
  --body: 'Work Sans', sans-serif;

  --radius: 2px;
  --shadow: 0 12px 32px rgba(23,24,26,.10);
  --container: 1180px;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body{
  margin:0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -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(--display);
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.08;
  margin: 0 0 .5em;
  font-weight: 600;
}
p{ margin: 0 0 1em; color: var(--steel); }
.container{ max-width: var(--container); margin: 0 auto; padding: 0 24px; }

:focus-visible{
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

/* ---------- Eyebrow / breaker-tag label ----------
   Signature element: styled after the toggle switches
   on a circuit-breaker panel — a small tracked label
   with a switch dot in front of it. Used to open every
   section, echoing the switchboard photography used
   throughout the site. */
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:.55em;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 14px;
}
.eyebrow::before{
  content:"";
  width: 18px; height: 9px;
  border: 1.5px solid var(--orange);
  border-radius: 2px;
  background: linear-gradient(to right, transparent 50%, var(--orange) 50%);
  flex: none;
}
.eyebrow.on-dark{ color: var(--orange); }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:.6em;
  font-family: var(--display);
  font-weight:600;
  letter-spacing:.04em;
  text-transform: uppercase;
  font-size: 15px;
  padding: 15px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor:pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{ background: var(--orange); color: var(--white); }
.btn-primary:hover{ background: var(--orange-dark); }
.btn-outline{ background: transparent; border-color: currentColor; color: var(--white); }
.btn-outline:hover{ background: var(--white); color: var(--ink); }
.btn-outline.dark{ color: var(--ink); }
.btn-outline.dark:hover{ background: var(--ink); color: var(--white); }
.btn-block{ width:100%; justify-content:center; }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top:0; z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
}
.header-row{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 0;
  gap: 24px;
}
.logo-link{ flex:none; }
.logo-link img{ height: 52px; width:auto; }
.main-nav{ display:flex; align-items:center; gap: 34px; }
.main-nav a{
  font-family: var(--display);
  font-size: 14px;
  letter-spacing:.06em;
  text-transform: uppercase;
  color: var(--white);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.main-nav a:hover, .main-nav a[aria-current="page"]{
  color: var(--orange);
  border-color: var(--orange);
}
.header-cta{ display:flex; align-items:center; gap:16px; }
.header-phone{
  font-family: var(--display);
  color: var(--white);
  font-size: 15px;
  letter-spacing:.03em;
  display:flex; align-items:center; gap:8px;
}
.header-phone strong{ color: var(--orange); }
.nav-toggle{
  display:none;
  background:none; border:none; cursor:pointer;
  width:38px; height:34px; padding:0;
  flex-direction:column; justify-content:center; gap:6px;
}
.nav-toggle span{ height:2px; background:var(--white); display:block; }

.mobile-cta{ display:none; }

@media (max-width: 900px){
  .header-row{ flex-wrap: wrap; }
  .logo-link{ order:1; }
  .header-cta{ order:2; }
  .main-nav{
    order: 3;
    flex-basis: 100%;
    width: 100%;
    background: var(--ink);
    flex-direction:column; align-items:flex-start;
    padding: 0 0 0;
    max-height: 0;
    overflow:hidden;
    gap: 0;
    border-bottom: 0 solid var(--line-dark);
    display:flex;
    transition: max-height .25s ease, padding .25s ease, border-color .25s ease;
  }
  .main-nav.open{
    max-height: 600px;
    padding: 10px 0 26px;
    border-bottom: 1px solid var(--line-dark);
  }
  .main-nav a{ width:100%; padding:12px 0; border-bottom:1px solid var(--line-dark); }
  .nav-toggle{ display:flex; }
  .header-phone{ display:none; }
  .header-cta > a.btn-primary{ display:none; }
  .mobile-cta{
    display:flex; flex-direction:column; gap:10px;
    width:100%; margin-top:14px;
  }
  .mobile-cta .btn{ width:100%; justify-content:center; }
}

/* ---------- Hero ---------- */
.hero{
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow:hidden;
  padding: 84px 0 120px;
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(700px 420px at 82% 8%, rgba(255,103,27,.16), transparent 60%);
  pointer-events:none;
}
.hero-grid{
  position:relative;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items:center;
}
.hero h1{
  font-size: clamp(38px, 5.4vw, 66px);
  margin-bottom: .3em;
}
.hero h1 .accent{ color: var(--orange); }
.hero .lede{
  color: var(--steel-light);
  font-size: 18px;
  max-width: 46ch;
  margin-bottom: 1.6em;
}
.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; }
.hero-photo{
  position:relative;
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
  border: 6px solid var(--ink-soft);
}
.hero-photo img{ width:100%; height:100%; object-fit:cover; aspect-ratio: 4/5; }
.hero-badge{
  position:absolute; left:-18px; bottom:-18px;
  background: var(--orange);
  color: var(--white);
  padding: 14px 18px;
  border-radius: var(--radius);
  font-family: var(--display);
  text-transform:uppercase;
  font-size: 13px;
  letter-spacing:.05em;
  box-shadow: var(--shadow);
  line-height:1.3;
}
.hero-badge b{ display:block; font-size: 22px; letter-spacing:0; }

@media (max-width: 860px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-photo{ max-width: 380px; margin: 0 auto; transform:none; }
}

/* ---------- Angled current-cut divider ---------- */
.current-cut{
  height: 46px;
  background: var(--paper);
  clip-path: polygon(0 100%, 0 40%, 6% 40%, 9% 0%, 12% 40%, 100% 40%, 100% 100%);
  margin-top: -1px;
}
.current-cut.reverse{
  background: var(--ink);
  clip-path: polygon(0 0, 0 60%, 6% 60%, 9% 100%, 12% 60%, 100% 60%, 100% 0);
}

/* ---------- Trust strip ---------- */
.trust-strip{
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.trust-row{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 30px 0;
}
.trust-item{ display:flex; gap:12px; align-items:flex-start; }
.trust-item .dot{
  flex:none; width:10px; height:10px; margin-top:6px;
  background: var(--orange); border-radius:1px; transform:rotate(45deg);
}
.trust-item strong{ display:block; font-family:var(--display); font-size:15px; letter-spacing:.02em; text-transform:uppercase; }
.trust-item span{ color: var(--steel); font-size:14px; }
@media (max-width: 860px){ .trust-row{ grid-template-columns: 1fr 1fr; } }

/* ---------- Sections ---------- */
section{ padding: 88px 0; }
.section-head{ max-width: 640px; margin-bottom: 48px; }
.section-head h2{ font-size: clamp(28px, 3.4vw, 42px); }
.section-head p{ font-size:17px; }
.section-alt{ background: var(--white); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.section-dark{ background: var(--ink); color: var(--white); }
.section-dark p{ color: var(--steel-light); }
.section-dark h2{ color: var(--white); }

/* ---------- Service cards ---------- */
.services-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card{
  background: var(--white);
  padding: 30px 26px;
  transition: background .15s ease;
}
.service-card:hover{ background: var(--paper); }
.service-card .num{
  font-family: var(--display);
  color: var(--orange);
  font-size: 13px;
  letter-spacing:.1em;
  margin-bottom: 14px;
  display:block;
}
.service-card h3{ font-size: 18px; margin-bottom: 10px; }
.service-card p{ font-size: 14.5px; margin:0; }
@media (max-width: 980px){ .services-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .services-grid{ grid-template-columns: 1fr; } }

/* ---------- Work gallery ---------- */
.gallery-grid{
  display:grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
}
.gallery-grid .g-item{
  position:relative;
  border-radius: var(--radius);
  overflow:hidden;
  background: var(--ink);
}
.gallery-grid .g-item img{ width:100%; height:100%; object-fit:cover; }
.gallery-grid .g-tall{ grid-row: span 2; aspect-ratio: 4/5; }
.gallery-grid .g-item.wide{ aspect-ratio: 16/9;}
.gallery-grid .g-item:not(.g-tall):not(.wide){ aspect-ratio: 4/3; }
.g-cap{
  position:absolute; left:0; right:0; bottom:0;
  padding: 14px 16px;
  background: linear-gradient(0deg, rgba(0,0,0,.72), transparent);
  color:#fff; font-family: var(--display); font-size: 13px; letter-spacing:.04em; text-transform:uppercase;
}
@media (max-width: 860px){
  .gallery-grid{ grid-template-columns: 1fr 1fr; }
  .gallery-grid .g-tall{ grid-row: span 1; aspect-ratio: 4/3; }
}
@media (max-width: 560px){ .gallery-grid{ grid-template-columns: 1fr; } }

/* ---------- Before / after ---------- */
.before-after{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items:center;
}
.before-after img{ border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 860px){ .before-after{ grid-template-columns:1fr; } }

/* ---------- Testimonial ---------- */
.testimonial-card{
  background: var(--ink);
  color: var(--white);
  padding: 48px;
  border-radius: var(--radius);
  border-left: 5px solid var(--orange);
  max-width: 760px;
}
.testimonial-card .stars{ color: var(--orange); letter-spacing:3px; font-size:18px; margin-bottom:18px; }
.testimonial-card blockquote{
  margin:0 0 22px; font-size: 21px; line-height:1.55;
  font-family: var(--display); font-weight:400; text-transform:none; letter-spacing:0;
}
.testimonial-card cite{ font-style:normal; color: var(--steel-light); font-size:14px; }
.testimonial-card cite b{ color: var(--white); }

/* ---------- CTA band ---------- */
.cta-band{
  background: var(--orange);
  color: var(--white);
  padding: 56px 0;
}
.cta-row{ display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap; }
.cta-row h2{ margin:0; font-size: clamp(24px,3vw,34px); color:var(--white); }
.cta-row p{ color: rgba(255,255,255,.86); margin:6px 0 0; }
.cta-band .btn-primary{ background: var(--ink); }
.cta-band .btn-primary:hover{ background: #000; }
.cta-band .btn-outline{ border-color: var(--white); }

/* ---------- Footer ---------- */
.site-footer{ background: var(--ink); color: var(--steel-light); padding: 70px 0 26px; }
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-grid img{ height: 40px; margin-bottom: 16px; }
.footer-grid h4{ color: var(--white); font-size:14px; letter-spacing:.08em; margin-bottom:16px; }
.footer-grid p{ font-size:14px; }
.footer-grid ul li{ margin-bottom:10px; font-size:14px; }
.footer-grid a:hover{ color: var(--orange); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px;
  padding-top: 22px; font-size: 13px;
}
.social-row{ display:flex; gap:14px; }
.social-row a{
  width:36px; height:36px; border:1px solid var(--line-dark); border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  transition: border-color .15s ease, color .15s ease;
}
.social-row a:hover{ border-color: var(--orange); color: var(--orange); }
@media (max-width: 860px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-grid{ grid-template-columns: 1fr; } }

/* ---------- Page hero (interior pages) ---------- */
.page-hero{
  background: var(--ink); color:var(--white);
  padding: 64px 0 88px;
}
.page-hero h1{ font-size: clamp(32px,4.4vw,52px); margin-bottom:.3em; }
.page-hero p{ color: var(--steel-light); max-width: 60ch; font-size:17px; }
.breadcrumb{ font-size:13px; letter-spacing:.06em; text-transform:uppercase; color: var(--steel-light); margin-bottom:18px; }
.breadcrumb a:hover{ color: var(--orange); }

/* ---------- Full service list (services page) ---------- */
.service-list{ display:flex; flex-direction:column; }
.service-row{
  display:grid; grid-template-columns: 90px 1fr auto;
  gap: 28px; align-items:center;
  padding: 32px 0; border-bottom: 1px solid var(--line);
}
.service-row .row-num{ font-family: var(--display); font-size:30px; color: var(--orange); }
.service-row h3{ font-size: 21px; margin-bottom:6px; }
.service-row p{ margin:0; max-width: 60ch; }
.service-row .row-arrow{ color: var(--orange); font-size:22px; }
@media (max-width: 700px){
  .service-row{ grid-template-columns: 50px 1fr; }
  .service-row .row-arrow{ display:none; }
}

/* ---------- About page ---------- */
.about-grid{ display:grid; grid-template-columns: .8fr 1.2fr; gap:56px; align-items:start; }
.about-photo{ position:sticky; top: 110px; }
.about-photo img{ border-radius: var(--radius); box-shadow: var(--shadow); }
.about-photo .name-plate{
  background: var(--ink); color:var(--white);
  padding: 18px 20px; margin-top: -6px; position:relative; z-index:2;
  border-left: 5px solid var(--orange);
}
.about-photo .name-plate b{ display:block; font-family:var(--display); text-transform:uppercase; font-size:17px; }
.about-photo .name-plate span{ font-size:13px; color: var(--steel-light); letter-spacing:.05em; text-transform:uppercase; }
.about-copy h2{ font-size: clamp(26px,3.2vw,36px); }
.about-copy p{ font-size:16.5px; }
.value-list{ display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-top: 30px; }
.value-item{ padding: 20px; background:var(--white); border:1px solid var(--line); border-radius: var(--radius); }
.value-item strong{ display:block; font-family:var(--display); text-transform:uppercase; font-size:14.5px; margin-bottom:6px; }
.value-item span{ font-size:14px; color:var(--steel); }
@media (max-width: 900px){ .about-grid{ grid-template-columns:1fr; } .about-photo{ position:static; max-width:360px; } }
@media (max-width: 560px){ .value-list{ grid-template-columns:1fr; } }

/* ---------- Service areas list ---------- */
.area-tags{ display:flex; flex-wrap:wrap; gap:10px; }
.area-tags span{
  border: 1px solid var(--line-dark);
  color: var(--white);
  font-family: var(--display);
  font-size: 13px; letter-spacing:.04em; text-transform:uppercase;
  padding: 9px 16px; border-radius: var(--radius);
}
.area-tags span.wide{ border-color: var(--orange); color: var(--orange); }

/* ---------- Contact page ---------- */
.contact-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items:start; }
.contact-card{
  background: var(--white); border:1px solid var(--line); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow);
}
.contact-list{ display:flex; flex-direction:column; gap:20px; margin-bottom: 30px; }
.contact-list li{ display:flex; gap:14px; align-items:flex-start; }
.contact-list .ico{
  flex:none; width:40px; height:40px; border-radius:50%;
  background: var(--ink); color: var(--orange);
  display:flex; align-items:center; justify-content:center;
  font-family: var(--display); font-size:16px;
}
.contact-list strong{ display:block; font-family:var(--display); text-transform:uppercase; font-size:13px; letter-spacing:.04em; color:var(--steel); }
.contact-list a, .contact-list span.val{ font-size:16px; color: var(--ink); }
.contact-list a:hover{ color: var(--orange); }

.biz-card{
  background: var(--ink); color:#fff;
  border-radius: var(--radius);
  padding: 28px;
  border-left: 5px solid var(--orange);
}
.biz-card img{ height:34px; margin-bottom:18px; }
.biz-card ul{ display:grid; grid-template-columns:1fr 1fr; gap:8px 16px; margin-top:18px; }
.biz-card ul li{ font-size:13.5px; color: var(--steel-light); position:relative; padding-left:14px; }
.biz-card ul li::before{ content:"—"; position:absolute; left:0; color:var(--orange); }

form.contact-form{ display:flex; flex-direction:column; gap:16px; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.contact-form label{ font-family:var(--display); font-size:12.5px; letter-spacing:.06em; text-transform:uppercase; color:var(--steel); display:block; margin-bottom:6px; }
.contact-form input, .contact-form select, .contact-form textarea{
  width:100%; padding: 13px 14px; border:1px solid var(--line); border-radius: var(--radius);
  font-family: var(--body); font-size:15px; background:var(--paper); color:var(--ink);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus{ outline:2px solid var(--orange); border-color:var(--orange); }
.contact-form textarea{ resize:vertical; min-height:120px; }
.form-note{ font-size:13px; color:var(--steel-light) !important; margin-top:4px; }
@media (max-width: 900px){ .contact-grid{ grid-template-columns:1fr; } }
@media (max-width: 560px){ .form-row{ grid-template-columns:1fr; } }

/* ---------- Map placeholder ---------- */
.map-wrap{ border-radius: var(--radius); overflow:hidden; border:1px solid var(--line); }
.map-wrap iframe{ width:100%; height:340px; border:0; display:block; }
