/* ============================================================
   Penberg Mechanical — Demo Site
   Light, calm, photo-first. Colors sampled from the business's
   actual logo (red #cf0c2c / blue #6a8dc7), not invented.
   ============================================================ */

:root{
  --ink: #1c1c1c;
  --ink-soft: #55585c;
  --paper: #ffffff;
  --paper-alt: #f6f5f2;
  --border: #e6e3dd;
  --red: #c0122d;
  --red-dark: #97101f;
  --blue: #3f6aa8;
  --blue-soft: #eaf0f8;

  --font: "Barlow", sans-serif;
  --font-head: "Barlow Semi Condensed", sans-serif;

  --wrap: 1160px;
  --radius: 10px;
  --ease: cubic-bezier(.22,.9,.32,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img{ display: block; max-width: 100%; }
a{ color: inherit; text-decoration: none; }

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

.skip-link{
  position: absolute; left: -999px; top: 0;
  background: var(--red); color: #fff; padding: 10px 16px; z-index: 999;
}
.skip-link:focus{ left: 12px; top: 12px; }

.eyebrow{
  font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  font-size: .8rem; color: var(--red); margin: 0 0 .6rem;
}
.eyebrow-center{ text-align: center; }

.section-title{
  font-family: var(--font-head); font-weight: 600;
  line-height: 1.15; font-size: clamp(1.7rem, 3vw, 2.35rem);
  margin: 0 0 1rem; color: var(--ink); max-width: 26ch;
}
.section-title-center{ text-align: center; max-width: none; margin-left: auto; margin-right: auto; }
.services .section-title,
.work .section-title{ text-align: center; max-width: none; margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font); font-weight: 600; font-size: .98rem;
  padding: .8rem 1.5rem; border-radius: 8px;
  border: 1.5px solid transparent;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  cursor: pointer;
}
.btn-primary{ background: var(--red); color: #fff; }
.btn-primary:hover{ background: var(--red-dark); }
.btn-outline{ border-color: var(--border); color: var(--ink); background: transparent; }
.btn-outline:hover{ border-color: var(--ink); }
.btn-block{ width: 100%; }

/* ============ HEADER ============ */
.site-header{
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  display: flex; align-items: center; gap: 2rem;
  padding: .85rem 28px;
}
.logo{ display: flex; align-items: center; flex-shrink: 0; }
.logo img{ height: 44px; width: auto; }

.main-nav{ display: flex; gap: 1.8rem; margin: 0 auto; }
.main-nav a{
  font-size: .95rem; font-weight: 500; color: var(--ink-soft);
  transition: color .2s;
}
.main-nav a:hover{ color: var(--red); }

.header-cta{ display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.open-tag{
  font-size: .78rem; font-weight: 600; color: var(--blue);
  background: var(--blue-soft); padding: .3rem .7rem; border-radius: 999px;
}
.phone-link{ font-weight: 700; color: var(--red); font-size: 1rem; white-space: nowrap; }

.nav-toggle{
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: .4rem;
}
.nav-toggle span{ width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }

/* ============ HERO ============ */
.hero{ padding: 4rem 0 5rem; background: var(--paper-alt); }
.hero-inner{
  display: grid; grid-template-columns: 1fr .85fr; gap: 3.5rem; align-items: center;
}
.hero-copy h1{
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.15;
  margin: 0 0 1.1rem; color: var(--ink);
}
.hero-sub{ max-width: 48ch; color: var(--ink-soft); font-size: 1.06rem; }
.hero-actions{ display: flex; gap: 1rem; margin: 1.7rem 0 1.6rem; flex-wrap: wrap; }
.hero-proof{ display: flex; align-items: center; gap: .6rem; color: var(--ink-soft); font-size: .95rem; }
.stars{ color: var(--red); letter-spacing: .06em; }

.hero-photo{ margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 40px -20px rgba(0,0,0,.25); }
.hero-photo img{ width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* ============ SERVICES ============ */
.services{ padding: 5.5rem 0 5rem; }
.services-grid{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2.8rem;
}
.service-card{
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.8rem 1.5rem; background: var(--paper);
}
.service-icon{ color: var(--red); margin-bottom: 1rem; }
.service-card h3{ font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; margin: 0 0 .5rem; }
.service-card p{ color: var(--ink-soft); font-size: .93rem; margin: 0; }

/* ============ SLIDER (shared) ============ */
.slider{ position: relative; margin-top: 2.8rem; }
.slider-track{
  display: flex; gap: 1.4rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: .4rem .2rem 1rem;
  scrollbar-width: none;
}
.slider-track::-webkit-scrollbar{ display: none; }
.slider-arrow{
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--border);
  color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -10px rgba(0,0,0,.35);
  transition: background .2s var(--ease), color .2s var(--ease), opacity .2s var(--ease), border-color .2s var(--ease);
}
.slider-arrow:hover{ background: var(--red); color: #fff; border-color: var(--red); }
.slider-arrow:disabled{ opacity: .3; cursor: default; }
.slider-arrow.slider-prev{ left: -14px; }
.slider-arrow.slider-next{ right: -14px; }
.slider-dots{ display: flex; justify-content: center; gap: .5rem; margin-top: .2rem; }
.slider-dots button{
  width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0; cursor: pointer;
  background: var(--border); transition: background .2s var(--ease), transform .2s var(--ease);
}
.slider-dots button.active{ background: var(--red); transform: scale(1.3); }

/* ============ OUR WORK ============ */
.work{ padding: 5rem 0; background: var(--paper-alt); }
.work-item{
  flex: 0 0 calc((100% - 2 * 1.4rem) / 3);
  margin: 0; border-radius: var(--radius); overflow: hidden;
  background: var(--paper); border: 1px solid var(--border);
}
.work-item img{ width: 100%; height: 240px; object-fit: cover; cursor: zoom-in; transition: transform .35s var(--ease); }
.work-item img:hover{ transform: scale(1.04); }

/* ---------- lightbox ---------- */
.lightbox{
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 4vh 4vw;
  background: rgba(20,18,16,.82);
  backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden;
  transition: opacity .28s var(--ease), visibility .28s var(--ease);
}
.lightbox.open{ opacity: 1; visibility: visible; }
.lightbox-figure{
  margin: 0; max-width: 100%; max-height: 100%;
  display: flex; flex-direction: column; gap: .9rem;
  transform: scale(.96); transition: transform .28s var(--ease);
}
.lightbox.open .lightbox-figure{ transform: scale(1); }
.lightbox-figure img{
  max-width: 100%; max-height: 82vh; width: auto; height: auto;
  border-radius: var(--radius); object-fit: contain;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
}
.lightbox-figure figcaption{
  color: #f4f2ee; font-weight: 600; font-size: 1rem; text-align: center;
}
.lightbox-close{
  position: absolute; top: 1.2rem; right: 1.4rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.14); border: none; color: #fff;
  font-size: 1.4rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s var(--ease);
}
.lightbox-close:hover{ background: rgba(255,255,255,.28); }
.lightbox-nav{
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.14); border: none; color: #fff;
  font-size: 1.5rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s var(--ease);
}
.lightbox-nav:hover{ background: rgba(255,255,255,.28); }
.lightbox-prev{ left: 1.4rem; }
.lightbox-next{ right: 1.4rem; }
@media (max-width: 640px){
  .lightbox-nav{ width: 40px; height: 40px; font-size: 1.2rem; }
  .lightbox-prev{ left: .6rem; }
  .lightbox-next{ right: .6rem; }
}
.work-item figcaption{ padding: .8rem 1rem; font-size: .9rem; color: var(--ink-soft); font-weight: 500; }

/* ============ WHY US ============ */
.why-us{ padding: 5rem 0; }
.why-grid{
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem 2.5rem; margin-top: 2.6rem; max-width: 860px; margin-left: auto; margin-right: auto;
}
.why-item{ display: flex; gap: 1rem; align-items: flex-start; }
.why-check{
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--blue-soft); color: var(--blue);
  display: flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 700;
  margin-top: 2px;
}
.why-item strong{ color: var(--ink); }
.why-item div{ color: var(--ink-soft); font-size: .96rem; }

/* ============ TESTIMONIALS ============ */
.testimonials{ padding: 5rem 0; background: var(--paper-alt); }
.testimonials .slider-track{ gap: 1.5rem; }
.testimonial-card{
  flex: 0 0 calc((100% - 2 * 1.5rem) / 3);
  margin: 0; background: var(--paper);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.7rem; display: flex; flex-direction: column; gap: 1rem;
}
.testimonial-card p{ margin: 0; color: var(--ink); font-size: .95rem; line-height: 1.65; }
.testimonial-card footer{ display: flex; flex-direction: column; gap: 2px; margin-top: auto; }
.testimonial-card cite{ font-style: normal; font-weight: 700; color: var(--ink); font-size: .9rem; }
.testimonial-card footer span{ color: var(--ink-soft); font-size: .78rem; }
.owner-reply{
  background: var(--blue-soft); border-left: 3px solid var(--blue);
  padding: .7rem .9rem; border-radius: 6px; font-size: .82rem; color: #2c4d78;
}

/* ============ ABOUT ============ */
.about{ padding: 5.5rem 0; }
.about-grid{ display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: center; }
.about-photo{ margin: 0; border-radius: var(--radius); overflow: hidden; }
.about-photo img{ width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.about-copy p{ color: var(--ink-soft); }
.about-copy .section-title{ color: var(--ink); }

/* ============ CONTACT ============ */
.contact{ padding: 5.5rem 0; background: var(--paper-alt); }
.contact-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.contact-lead{ color: var(--ink-soft); }
.contact-list{ list-style: none; padding: 0; margin: 1.4rem 0 1.8rem; display: flex; flex-direction: column; gap: 1rem; }
.contact-list li{ display: flex; align-items: center; gap: .8rem; color: var(--ink-soft); }
.contact-list svg{ color: var(--blue); flex-shrink: 0; }
.contact-list a{ color: var(--ink); font-weight: 600; }

.map-block{
  display: flex; align-items: center; gap: .7rem;
  padding: 1rem 1.1rem; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--border);
  font-size: .92rem; color: var(--ink-soft);
}

.contact-form{
  background: var(--paper); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.9rem;
  display: flex; flex-direction: column; gap: 1.1rem;
}
.form-row{ display: flex; flex-direction: column; gap: .4rem; }
.form-row label{ font-size: .85rem; color: var(--ink-soft); font-weight: 500; }
.form-row input, .form-row select, .form-row textarea{
  background: var(--paper); border: 1px solid var(--border);
  border-radius: 8px; padding: .7rem .9rem; color: var(--ink); font-family: var(--font); font-size: .95rem;
  transition: border-color .2s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus{
  outline: none; border-color: var(--red);
}
.form-note{ text-align: center; font-size: .78rem; color: var(--ink-soft); margin: -.4rem 0 0; }
.form-success{
  background: #eaf6ee; border: 1px solid #b9e0c4;
  color: #285e3a; padding: .9rem 1rem; border-radius: 8px; font-size: .88rem;
}
.form-error{
  background: #fdecec; border: 1px solid #f2c2c2;
  color: #922; padding: .9rem 1rem; border-radius: 8px; font-size: .88rem;
}
.form-error a{ color: var(--red); font-weight: 700; }
.contact-form .btn[disabled]{ opacity: .7; cursor: default; }

/* ============ FOOTER ============ */
.site-footer{ background: var(--paper); padding: 3.5rem 0 0; border-top: 1px solid var(--border); }
.footer-inner{ display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; padding-bottom: 2.6rem; }
.footer-brand p{ color: var(--ink-soft); font-size: .88rem; max-width: 32ch; margin-top: .9rem; }
.footer-nav{ display: flex; flex-direction: column; gap: .7rem; }
.footer-nav a{ color: var(--ink-soft); font-size: .9rem; }
.footer-nav a:hover{ color: var(--red); }
.footer-contact{ display: flex; flex-direction: column; gap: .6rem; }
.footer-contact a{ color: var(--red); font-weight: 700; }
.footer-contact span{ color: var(--ink-soft); font-size: .88rem; }
.footer-bottom{
  border-top: 1px solid var(--border);
  padding: 1.1rem 28px; text-align: center; font-size: .78rem; color: var(--ink-soft);
}

/* ---------- mobile sticky call bar ---------- */
.mobile-call-bar{
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--red); color: #fff; font-weight: 700; text-align: center;
  align-items: center; justify-content: center;
  padding: 1rem; box-shadow: 0 -6px 18px rgba(0,0,0,.15);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 980px){
  .main-nav{ display: none; }
  .nav-toggle{ display: flex; }
  .header-cta{ display: none; }
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-photo{ order: -1; }
  .services-grid{ grid-template-columns: repeat(2, 1fr); }
  .work-item{ flex-basis: calc((100% - 1.4rem) / 2); }
  .why-grid{ grid-template-columns: 1fr; }
  .testimonial-card{ flex-basis: 100%; }
  .about-grid, .contact-grid{ grid-template-columns: 1fr; }
  .about-photo{ order: -1; max-width: 360px; margin: 0 auto; }
  .footer-inner{ grid-template-columns: 1fr; gap: 2rem; }
  .mobile-call-bar{ display: flex; }
  body{ padding-bottom: 58px; }

  .site-header.open .main-nav{
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-top: 1px solid var(--border);
    padding: .5rem 28px 1rem;
  }
  .site-header.open .main-nav a{ padding: .8rem 0; border-bottom: 1px solid var(--border); }
  .site-header.open .nav-toggle span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .site-header.open .nav-toggle span:nth-child(2){ opacity: 0; }
  .site-header.open .nav-toggle span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 640px){
  .services-grid{ grid-template-columns: 1fr; }
  .work-item{ flex-basis: 100%; }
}

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