/* =========================================================
   Daly Carpentry & Maintenance — marketing site styles
   Palette: charcoal base, warm timber gold (#c9a85c), slate
   ========================================================= */

:root {
  --gold: #c9a85c;
  --gold-deep: #b08d3e;
  --ink: #1a1c20;
  --ink-2: #24272d;
  --ink-3: #2e323a;
  --slate: #8b96a8;
  --paper: #f6f4ef;
  --paper-2: #ece8df;
  --text: #2a2d33;
  --text-soft: #5a6068;
  --white: #ffffff;
  --line: rgba(0, 0, 0, 0.09);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 10px 30px -18px rgba(0, 0, 0, 0.35);
  --max: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Barlow Condensed", "Inter", sans-serif;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.5px;
  margin: 0 0 0.4em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; letter-spacing: 0.3px; }

p { margin: 0 0 1rem; }

a { color: inherit; text-decoration: none; }

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

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.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;
}

.eyebrow {
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--gold-deep);
  margin: 0 0 0.6rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn-primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 10px 24px -12px rgba(201, 168, 92, 0.8);
}
.btn-primary:hover { background: var(--gold-deep); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--white); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(26, 28, 32, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--white); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.brand-text em {
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
}

.main-nav { display: flex; align-items: center; }
.nav-menu {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.2s;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.25s var(--ease);
}
.nav-menu a:hover { color: var(--white); }
.nav-menu a:hover::after { width: 100%; }

.header-call {
  color: var(--white);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 1.1rem;
  white-space: nowrap;
}
.header-call:hover { color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  position: relative;
}
.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  position: absolute;
  left: 10px;
  width: 24px; height: 2px;
  background: var(--white);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle .bars { top: 21px; }
.nav-toggle .bars::before { top: -7px; }
.nav-toggle .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background: var(--ink);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Fallback texture while image loads / if missing */
.hero-media {
  background:
    radial-gradient(120% 80% at 70% 20%, rgba(201,168,92,0.18), transparent 60%),
    linear-gradient(160deg, #2a2419 0%, #1a1c20 55%, #14161a 100%);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,22,26,0.92) 0%, rgba(20,22,26,0.72) 45%, rgba(20,22,26,0.35) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 5rem 24px; max-width: 760px; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { color: var(--white); margin-bottom: 0.5em; }
.hero-sub {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.4rem; }
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin: 0; padding: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
}
.hero-badges li { display: flex; align-items: center; gap: 0.5rem; }
.hero-badges span { color: var(--gold); font-weight: 700; }

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--ink-2);
  color: var(--white);
  border-bottom: 3px solid var(--gold);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 1.6rem 24px;
}
.trust-item { display: flex; flex-direction: column; text-align: center; }
.trust-item strong {
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.5px;
  font-size: 1.15rem;
  color: var(--gold);
}
.trust-item span { font-size: 0.88rem; color: rgba(255, 255, 255, 0.7); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-head { max-width: 680px; margin: 0 auto 3rem; text-align: center; }
.section-lead { color: var(--text-soft); font-size: 1.1rem; }

/* ---------- Services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(201, 168, 92, 0.5);
}
.service-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  font-size: 1.7rem;
  background: var(--paper-2);
  border-radius: 12px;
  margin-bottom: 1.1rem;
}
.service-card h3 { color: var(--ink); }
.service-card p { color: var(--text-soft); margin: 0; }
.services-foot { text-align: center; margin-top: 2.5rem; color: var(--text-soft); }
.services-foot a { color: var(--gold-deep); font-weight: 600; border-bottom: 1px solid currentColor; }

/* ---------- About ---------- */
.about { background: var(--paper-2); }
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}
.about-media { position: relative; }
.about-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--ink-3);
}
.about-badge {
  position: absolute;
  bottom: -18px; right: -10px;
  background: var(--ink);
  color: var(--white);
  padding: 1rem 1.3rem;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; line-height: 1.1;
}
.about-badge strong { font-family: "Barlow Condensed", sans-serif; letter-spacing: 0.5px; font-size: 1.1rem; }
.about-badge span { font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
.about-copy h2 { color: var(--ink); }
.about-points { list-style: none; margin: 1.5rem 0 2rem; padding: 0; display: grid; gap: 0.7rem; }
.about-points li { display: flex; align-items: center; gap: 0.7rem; color: var(--text); }
.about-points span { color: var(--gold-deep); font-weight: 800; }

/* ---------- Work / gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 1rem;
}
.gallery-item {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-3);
  box-shadow: var(--shadow-soft);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1rem 0.9rem;
  color: var(--white);
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.5px;
  font-size: 1.05rem;
  text-transform: uppercase;
  background: linear-gradient(transparent, rgba(0,0,0,0.78));
}
.gallery-tall { grid-row: span 2; }
.gallery-wide { grid-column: span 2; }

/* ---------- Process ---------- */
.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  counter-reset: step;
}
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  position: relative;
}
.step-num {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  background: var(--ink);
  color: var(--gold);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 1rem;
}
.step h3 { color: var(--ink); }
.step p { color: var(--text-soft); margin: 0; }

/* ---------- Quote band ---------- */
.quote-band {
  background: var(--ink);
  color: var(--white);
  position: relative;
}
.big-quote { max-width: 820px; margin: 0 auto; text-align: center; }
.big-quote p {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.25;
  color: var(--white);
}
.big-quote footer { color: var(--gold); font-size: 1rem; }
.quote-note { color: rgba(255,255,255,0.45); font-size: 0.85rem; }

/* ---------- Contact ---------- */
.contact { background: var(--paper-2); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.contact-copy h2 { color: var(--ink); }
.contact-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.3rem; }
.contact-list li { display: flex; align-items: flex-start; gap: 1rem; }
.contact-ico {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--white);
  border-radius: 10px;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-soft);
}
.contact-list strong {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink);
}
.contact-list a:hover { color: var(--gold-deep); }

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow);
}
.contact-form h3 { color: var(--ink); margin-bottom: 1.4rem; }
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--paper);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 92, 0.22);
  background: var(--white);
}
.field textarea { resize: vertical; }
.form-note { margin: 0.9rem 0 0; font-size: 0.92rem; min-height: 1.2rem; }
.form-note.ok { color: #2e7d32; }
.form-note.err { color: #c0392b; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.8); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 3rem 24px 2.4rem;
}
.footer-brand strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
  color: var(--white);
  text-transform: uppercase;
}
.footer-brand p { margin: 0.3rem 0 0; font-size: 0.92rem; }
.footer-contact { display: flex; flex-direction: column; gap: 0.4rem; text-align: right; }
.footer-contact a:hover { color: var(--gold); }
.footer-bar {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.1rem 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}

/* ---------- Mobile call bar ---------- */
.mobile-call-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: var(--gold);
  color: var(--ink);
  text-align: center;
  padding: 0.95rem;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 1.1rem;
  box-shadow: 0 -6px 20px -8px rgba(0,0,0,0.4);
}

/* ---------- Reveal on scroll (only hides when JS is active) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-media { max-width: 440px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .header-call { display: none; }
  .nav-menu {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--ink-2);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease);
  }
  .nav-menu.open { max-height: 340px; }
  .nav-menu li { border-top: 1px solid rgba(255,255,255,0.07); }
  .nav-menu a { display: block; padding: 1rem 24px; }
  .nav-menu a::after { display: none; }

  .hero { min-height: 78vh; }
  .hero-overlay { background: linear-gradient(180deg, rgba(20,22,26,0.7) 0%, rgba(20,22,26,0.85) 100%); }
  .hero-content { padding: 4rem 24px; }

  .service-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery-wide { grid-column: span 2; }
  .gallery-tall { grid-row: span 1; }

  .footer-inner { flex-direction: column; }
  .footer-contact { text-align: left; }

  .mobile-call-bar { display: block; }
  body { padding-bottom: 56px; }
}

@media (max-width: 460px) {
  .trust-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}
