/*
Theme Name: Ward & Tarski Restoration
Theme URI: https://mold-fire-water.com/
Author: Ward & Tarski
Description: Custom WordPress theme for Ward & Tarski mold, fire, water, and asbestos restoration services.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: ward-tarski
*/

:root {
  --ink: #17211f;
  --muted: #5d6864;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --line: #dde4dc;
  --green: #2f6f5d;
  --green-dark: #18483d;
  --gold: #d49a3a;
  --shadow: 0 18px 50px rgba(23, 33, 31, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 246, 0.92);
  border-bottom: 1px solid rgba(221, 228, 220, 0.86);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: clamp(184px, 24vw, 282px);
  height: auto;
  max-height: 58px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.site-nav ul {
  display: contents;
}

.site-nav li {
  list-style: none;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--green-dark);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.menu-button span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 66px));
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 72px clamp(18px, 5vw, 72px);
}

.page-hero {
  position: relative;
  min-height: min(600px, calc(82vh - 66px));
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 88px clamp(18px, 5vw, 72px);
}

.hero-image,
.hero-overlay,
.page-hero-image,
.page-hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image,
.page-hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(14, 24, 21, 0.82) 0%, rgba(14, 24, 21, 0.62) 38%, rgba(14, 24, 21, 0.14) 100%),
    linear-gradient(180deg, rgba(14, 24, 21, 0.08), rgba(14, 24, 21, 0.2));
}

.page-hero-overlay {
  background:
    linear-gradient(90deg, rgba(14, 24, 21, 0.86) 0%, rgba(14, 24, 21, 0.68) 44%, rgba(14, 24, 21, 0.18) 100%),
    linear-gradient(180deg, rgba(14, 24, 21, 0.08), rgba(14, 24, 21, 0.34));
}

.hero-content,
.page-hero-content {
  position: relative;
  max-width: 720px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.section h2,
.intro h2 {
  margin: 0;
  line-height: 1.04;
  font-weight: 850;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(44px, 7vw, 84px);
}

.page-hero h1 {
  max-width: 820px;
  font-size: clamp(42px, 6vw, 72px);
}

.hero-copy {
  max-width: 610px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2vw, 22px);
}

.page-hero-content p:not(.eyebrow) {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2vw, 22px);
}

.page-hero-content .button {
  margin-top: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--green);
}

.button.primary:hover {
  background: var(--green-dark);
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.12);
}

.section,
.section-band {
  padding: clamp(64px, 9vw, 112px) clamp(18px, 5vw, 72px);
}

.section-band {
  background: var(--green-dark);
  color: #fff;
}

.section-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.intro-grid,
.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.intro-grid p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 19px;
}

.intro h2,
.section h2 {
  font-size: clamp(32px, 4vw, 52px);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.work-item,
.contact-form,
.gallery-grid figure {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(23, 33, 31, 0.08);
}

.service-card,
.work-item,
.gallery-grid figure {
  overflow: hidden;
}

.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-card h3,
.service-card p {
  padding-inline: 22px;
}

.service-card h3 {
  margin: 22px 0 8px;
  font-size: 22px;
}

.service-card p {
  margin: 0 0 24px;
  color: var(--muted);
}

.service-card .text-link {
  display: inline-block;
  margin: 0 22px 24px;
  color: var(--green-dark);
  font-weight: 850;
  text-decoration-color: rgba(47, 111, 93, 0.34);
  text-underline-offset: 4px;
}

.work-section {
  background: #eef3ed;
}

.work-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
}

.work-item.large {
  grid-row: span 2;
}

.work-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.work-item.large img {
  aspect-ratio: 1 / 1;
}

.work-item div {
  padding: 22px;
}

.work-item h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.work-item p {
  margin: 0;
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.large-gallery-grid,
.service-photo-grid {
  display: grid;
  gap: 18px;
}

.large-gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-photo-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-grid figure {
  margin: 0;
}

.large-gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(23, 33, 31, 0.08);
}

.gallery-grid img,
.large-gallery-grid img,
.service-photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #fff;
}

.service-photo-grid img {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(23, 33, 31, 0.08);
}

.gallery-grid figcaption {
  padding: 10px 12px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.about-grid > img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.page-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.page-copy {
  max-width: 760px;
}

.page-copy p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 19px;
}

.page-highlights {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(23, 33, 31, 0.08);
}

.page-highlights h2 {
  margin: 0;
  font-size: 28px;
}

.about-section p {
  color: var(--muted);
  font-size: 18px;
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  font-weight: 750;
}

.check-list li::before {
  position: absolute;
  left: 0;
  content: "\2713";
  color: var(--green);
}

.contact-section {
  background: #222b28;
  color: #fff;
}

.contact-section p,
.contact-list {
  color: rgba(255, 255, 255, 0.78);
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  font-weight: 750;
}

.contact-list a {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.34);
  text-underline-offset: 4px;
}

.contact-list.dark,
.contact-list.dark a {
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  color: var(--ink);
}

.contact-form h3 {
  margin: 0;
}

.contact-form .button {
  margin-top: 8px;
}

.contact-page-section {
  background: #eef3ed;
}

.contact-panel {
  margin: 22px 0;
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(23, 33, 31, 0.08);
}

.contact-phone {
  display: inline-block;
  color: var(--green-dark);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 900;
  line-height: 1;
  text-decoration-color: rgba(47, 111, 93, 0.28);
  text-underline-offset: 6px;
}

.contact-panel p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 19px;
  font-weight: 750;
}

.service-photo-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
}

.contact-call-card .button {
  margin-top: 8px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(18px, 5vw, 72px);
  color: var(--muted);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 800px) {
  .menu-button {
    display: grid;
  }

  .site-nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .hero {
    min-height: 680px;
    align-items: end;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(14, 24, 21, 0.24) 0%, rgba(14, 24, 21, 0.82) 58%, rgba(14, 24, 21, 0.9) 100%);
  }

  .intro-grid,
  .about-grid,
  .contact-grid,
  .page-content-grid,
  .service-grid,
  .gallery-grid,
  .large-gallery-grid,
  .service-photo-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-item.large {
    grid-row: auto;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .brand img {
    width: 182px;
  }

  .hero {
    min-height: 620px;
    padding-bottom: 44px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .button {
    width: 100%;
  }
}
