/*
Theme Name: Schills Construction
Description: Custom WordPress theme for Schills Construction — built by Layerly from Figma
Version: 1.0.0
Author: Layerly
*/

/* ── Design tokens (extracted from Figma) ─────── */
:root {
  /* Colors */
  --c-white:     #ffffff;
  --c-bg:        #f8f6f2;
  --c-dark:      #1c1c1c;
  --c-charcoal:  #2d2d2d;
  --c-gray:      #6b6b6b;
  --c-gray-lt:   #e8e4de;
  --c-orange:    #e07b2a;
  --c-orange-dk: #c96a1a;
  --c-overlay:   rgba(20,20,20,0.52);

  /* Typography */
  --f-base:      'Inter', sans-serif;
  --f-heading:   'Playfair Display', serif;

  --sz-h1:       52px;
  --sz-h2:       42px;
  --sz-h3:       28px;
  --sz-h4:       20px;
  --sz-h5:       17px;
  --sz-body:     16px;
  --sz-sm:       14px;

  --fw-reg:      400;
  --fw-med:      500;
  --fw-semi:     600;
  --fw-bold:     700;

  --lh-h:        1.1;
  --lh-body:     1.65;

  /* Spacing */
  --sp-xs:       8px;
  --sp-sm:       16px;
  --sp-md:       24px;
  --sp-lg:       48px;
  --sp-xl:       80px;
  --sp-2xl:      120px;

  /* Layout */
  --max-w:       1200px;
  --r-sm:        4px;
  --r-md:        8px;
  --r-lg:        12px;
}

/* ── Reset ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--f-base);
  font-size: var(--sz-body);
  font-weight: var(--fw-reg);
  color: var(--c-dark);
  background: var(--c-white);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, textarea, select {
  font: inherit;
  border: 1px solid var(--c-gray-lt);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  width: 100%;
  background: var(--c-white);
  color: var(--c-dark);
  transition: border-color .2s;
}
input:focus, textarea:focus { outline: none; border-color: var(--c-orange); }

/* ── Typography ──────────────────────────────── */
h1, .h1 { font-family: var(--f-heading); font-size: var(--sz-h1); font-weight: var(--fw-bold); line-height: var(--lh-h); }
h2, .h2 { font-family: var(--f-heading); font-size: var(--sz-h2); font-weight: var(--fw-bold); line-height: var(--lh-h); }
h3, .h3 { font-family: var(--f-heading); font-size: var(--sz-h3); font-weight: var(--fw-bold); line-height: 1.2; }
h4, .h4 { font-size: var(--sz-h4); font-weight: var(--fw-semi); line-height: 1.3; }
h5, .h5 { font-size: var(--sz-h5); font-weight: var(--fw-semi); line-height: 1.3; }
.text-orange { color: var(--c-orange); }
.text-gray   { color: var(--c-gray); }
.text-white  { color: var(--c-white); }
.text-center { text-align: center; }

/* ── Layout ──────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-lg);
}
.wrap--wide { max-width: 1400px; }
.section { padding-block: var(--sp-xl); }
.section--sm { padding-block: var(--sp-lg); }
.section--bg { background: var(--c-bg); }
.section--dark { background: var(--c-dark); color: var(--c-white); }

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  padding: 13px 28px;
  font-size: var(--sz-body);
  font-weight: var(--fw-semi);
  border-radius: var(--r-sm);
  transition: background .2s, transform .1s;
  white-space: nowrap;
  line-height: 1;
}
.btn:active { transform: scale(.98); }
.btn-primary {
  background: var(--c-orange);
  color: var(--c-white);
}
.btn-primary:hover { background: var(--c-orange-dk); }
.btn-outline {
  background: transparent;
  color: var(--c-white);
  border: 2px solid var(--c-white);
}
.btn-outline:hover { background: var(--c-white); color: var(--c-dark); }
.btn-ghost {
  background: transparent;
  color: var(--c-orange);
  padding-inline: 0;
  font-weight: var(--fw-semi);
}
.btn-ghost::after { content: ' →'; }
.btn-ghost:hover { color: var(--c-orange-dk); }

/* ── Navigation ──────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-charcoal);
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--sp-lg);
  max-width: var(--max-w);
  margin-inline: auto;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 40px; width: auto; }
.nav-logo-text {
  font-family: var(--f-heading);
  font-size: 20px;
  font-weight: var(--fw-bold);
  color: var(--c-white);
}
.nav-links { display: flex; gap: var(--sp-md); align-items: center; }
.nav-links a {
  font-size: var(--sz-sm);
  font-weight: var(--fw-semi);
  color: rgba(255,255,255,.8);
  transition: color .2s;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.nav-links a:hover { color: var(--c-orange); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--c-white); transition: transform .3s; }

/* ── Hero ────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
}
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--c-overlay);
}
.hero__content {
  position: relative;
  z-index: 1;
  padding: var(--sp-2xl) var(--sp-lg) var(--sp-xl);
  max-width: var(--max-w);
  margin-inline: auto;
  width: 100%;
}
.hero__title {
  font-family: var(--f-heading);
  font-size: var(--sz-h1);
  font-weight: var(--fw-bold);
  color: var(--c-white);
  line-height: var(--lh-h);
  max-width: 620px;
  margin-bottom: var(--sp-sm);
}
.hero__sub {
  font-size: var(--sz-h5);
  color: rgba(255,255,255,.85);
  margin-bottom: var(--sp-md);
  max-width: 480px;
}
.hero__ctas { display: flex; gap: var(--sp-sm); flex-wrap: wrap; }

/* ── Split section ───────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  align-items: center;
}
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }
.split__img {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--c-gray-lt);
}
.split__img img { width: 100%; height: 100%; object-fit: cover; }
.split__content { display: flex; flex-direction: column; gap: var(--sp-sm); }
.split__label {
  font-size: var(--sz-sm);
  font-weight: var(--fw-semi);
  color: var(--c-orange);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.split__title { font-family: var(--f-heading); font-size: var(--sz-h2); font-weight: var(--fw-bold); line-height: var(--lh-h); }
.split__body { color: var(--c-gray); line-height: var(--lh-body); }
.split__body p + p { margin-top: var(--sp-sm); }

/* ── Service / feature cards ─────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
}
.cards-grid--2 { grid-template-columns: repeat(2, 1fr); }
.cards-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-white);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.12); transform: translateY(-2px); }
.card__img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--c-gray-lt);
}
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card__img img { transform: scale(1.04); }
.card__body { padding: var(--sp-md); }
.card__title { font-size: var(--sz-h4); font-weight: var(--fw-semi); margin-bottom: var(--sp-xs); }
.card__desc { font-size: var(--sz-sm); color: var(--c-gray); line-height: var(--lh-body); }

/* ── Photo gallery grid ──────────────────────── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-sm);
}
.photo-grid__item {
  aspect-ratio: 4/3;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-gray-lt);
}
.photo-grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.photo-grid__item:hover img { transform: scale(1.05); }

/* ── CTA bar ─────────────────────────────────── */
.cta-bar {
  background: var(--c-orange);
  padding: var(--sp-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-lg);
  flex-wrap: wrap;
}
.cta-bar__text {
  font-family: var(--f-heading);
  font-size: var(--sz-h3);
  font-weight: var(--fw-bold);
  color: var(--c-white);
}
.cta-bar__sub { color: rgba(255,255,255,.85); font-size: var(--sz-body); margin-top: 4px; }

/* ── Testimonial ─────────────────────────────── */
.testimonial {
  background: var(--c-charcoal);
  padding: var(--sp-2xl) var(--sp-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.testimonial__bg {
  position: absolute;
  inset: 0;
  opacity: .15;
}
.testimonial__bg img { width: 100%; height: 100%; object-fit: cover; }
.testimonial__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-inline: auto;
}
.testimonial__quote {
  font-family: var(--f-heading);
  font-size: 26px;
  font-weight: var(--fw-bold);
  color: var(--c-white);
  line-height: 1.4;
  margin-bottom: var(--sp-md);
}
.testimonial__quote::before { content: '\201C'; color: var(--c-orange); font-size: 60px; line-height: 0; vertical-align: -24px; margin-right: 4px; }
.testimonial__author { color: rgba(255,255,255,.7); font-size: var(--sz-sm); font-weight: var(--fw-semi); text-transform: uppercase; letter-spacing: .08em; }
.testimonial__stars { color: var(--c-orange); font-size: 20px; margin-bottom: var(--sp-sm); }

/* ── Process steps ───────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-md); }
.step { text-align: center; padding: var(--sp-md); }
.step__num {
  width: 48px; height: 48px;
  background: var(--c-orange);
  color: var(--c-white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: var(--fw-bold);
  font-size: var(--sz-h4);
  margin: 0 auto var(--sp-sm);
}
.step__title { font-size: var(--sz-h5); font-weight: var(--fw-semi); margin-bottom: var(--sp-xs); }
.step__desc { font-size: var(--sz-sm); color: var(--c-gray); }

/* ── Lead form ───────────────────────────────── */
.form-section {
  background: var(--c-bg);
  padding: var(--sp-xl) var(--sp-lg);
}
.form-card {
  background: var(--c-white);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
  max-width: 600px;
  margin-inline: auto;
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
}
.form-card h2 { margin-bottom: var(--sp-xs); }
.form-card p  { color: var(--c-gray); margin-bottom: var(--sp-lg); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-sm); }
.form-grid .span-full { grid-column: 1 / -1; }
.form-label { font-size: var(--sz-sm); font-weight: var(--fw-semi); display: block; margin-bottom: 6px; }
.form-submit { width: 100%; padding: 16px; font-size: var(--sz-body); margin-top: var(--sp-sm); }
.form-note { font-size: var(--sz-sm); color: var(--c-gray); text-align: center; margin-top: var(--sp-sm); }

/* ── Section header ──────────────────────────── */
.section-head { margin-bottom: var(--sp-lg); }
.section-head--center { text-align: center; }
.section-head .label {
  font-size: var(--sz-sm);
  font-weight: var(--fw-semi);
  color: var(--c-orange);
  text-transform: uppercase;
  letter-spacing: .08em;
  display: block;
  margin-bottom: var(--sp-xs);
}

/* ── Badge / trust signal ────────────────────── */
.trust-bar {
  background: var(--c-dark);
  padding: var(--sp-sm) var(--sp-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-xl);
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  color: rgba(255,255,255,.8);
  font-size: var(--sz-sm);
  font-weight: var(--fw-semi);
}
.trust-item__icon { color: var(--c-orange); font-size: 18px; }

/* ── Footer ──────────────────────────────────── */
.site-footer { background: var(--c-charcoal); color: rgba(255,255,255,.8); padding: var(--sp-xl) var(--sp-lg) var(--sp-lg); }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--sp-xl); margin-bottom: var(--sp-xl); }
.footer-brand p { font-size: var(--sz-sm); margin-top: var(--sp-sm); line-height: var(--lh-body); opacity: .7; }
.footer-col h4 { color: var(--c-white); font-size: var(--sz-sm); font-weight: var(--fw-semi); text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--sp-sm); }
.footer-col a { display: block; font-size: var(--sz-sm); color: rgba(255,255,255,.65); margin-bottom: 8px; transition: color .2s; }
.footer-col a:hover { color: var(--c-orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: var(--sp-md); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-sm); }
.footer-copy { font-size: var(--sz-sm); opacity: .5; }
.footer-social { display: flex; gap: var(--sp-sm); }
.footer-social a { font-size: var(--sz-sm); color: rgba(255,255,255,.5); transition: color .2s; }
.footer-social a:hover { color: var(--c-orange); }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 1024px) {
  :root { --sz-h1: 40px; --sz-h2: 32px; --sp-2xl: 80px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --sz-h1: 32px; --sz-h2: 26px; --sp-xl: 56px; --sp-lg: 32px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--c-charcoal); padding: var(--sp-md); gap: var(--sp-sm); z-index: 200; }
  .split { grid-template-columns: 1fr; }
  .split--reverse { direction: ltr; }
  .cards-grid, .cards-grid--4 { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .cta-bar { flex-direction: column; text-align: center; }
  .trust-bar { gap: var(--sp-md); }
}
@media (max-width: 480px) {
  .photo-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero__ctas { flex-direction: column; }
}
