/* ═══════════════════════════════════════════════════════
   DRAME BROTHERS HOME & YARD — Shared Stylesheet
   ═══════════════════════════════════════════════════════

   COLOR VARIABLES
   To change the site palette, edit only this block.
   ─────────────────────────────────────────────────── */

:root {
  --olive: #3d4228;
  /* primary dark — headers, footer, buttons */
  --olive-md: #585c3c;
  /* mid olive — hover states */
  --olive-lt: #7a7e5a;
  /* light olive — secondary text, labels */
  --cream: #f2ead8;
  /* warm cream — text on dark backgrounds */
  --cream-dk: #e4d9c0;
  /* slightly darker cream — borders on dark */
  --gold: #c8b560;
  /* accent — links, highlights, section labels */
  --gold-lt: #f0e9cc;
  /* very light gold — hover fills */
  --off: #f5f0e6;
  /* warm off-white — page background */
  --white: #ffffff;
  /* pure white — card backgrounds */
  --border: #e0d9c5;
  /* warm border color */
  --muted: #8a8568;
  /* muted text */
  --text: #2a2c1a;
  /* primary body text */
  --red: #8b2e1e;
  /* error states */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --radius: 4px;
}


/* ── Reset & Base ──────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--off);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}

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

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


/* ── Typography ────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.2;
}

p {
  margin-bottom: 1em;
}

p:last-child {
  margin-bottom: 0;
}


/* ── Navigation ────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--olive);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 20px 40px;
  gap: 28px;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--cream);
  letter-spacing: 0.02em;
  opacity: 0.9;
  display: none;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(242, 234, 216, 0.75);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--gold);
}


/* Simple top bar for inner pages */

.topbar {
  background: var(--olive);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
}

.topbar-logo {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--cream);
  letter-spacing: 0.02em;
}

.topbar-back {
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s;
}

.topbar-back:hover {
  opacity: 0.75;
}


/* ── Hero ──────────────────────────────────────────── */

.hero {
  position: relative;
  height: 58vh;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--olive);
  /* fallback while image loads */
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient( 135deg, rgba(30, 35, 15, 0.65) 0%, rgba(30, 35, 15, 0.40) 100%);
}

.hero-card {
  position: relative;
  z-index: 2;
  background: rgba(40, 45, 22, 0.82);
  border: 1px solid rgba(200, 181, 96, 0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 52px 56px;
  text-align: center;
  max-width: 560px;
  width: 90%;
}

.hero-card h1 {
  font-size: clamp(36px, 5vw, 52px);
  color: var(--cream);
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}

.hero-card p {
  font-size: 15px;
  color: rgba(242, 234, 216, 0.7);
  font-weight: 300;
  margin-bottom: 28px;
}

.hero-btn {
  display: inline-block;
  padding: 13px 32px;
  border: 1.5px solid rgba(200, 181, 96, 0.6);
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: var(--sans);
  cursor: pointer;
  background: transparent;
}

.hero-btn:hover {
  background: var(--gold);
  color: var(--olive);
  border-color: var(--gold);
}


/* ── Section wrapper ───────────────────────────────── */

.section {
  padding: 80px 40px;
}

.section-inner {
  max-width: 860px;
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section h2 {
  font-size: clamp(28px, 4vw, 40px);
  color: var(--olive);
  margin-bottom: 24px;
}


/* ── About section ─────────────────────────────────── */

.about {
  background: var(--white);
}

.about p {
  font-size: 16px;
  color: #3a3d26;
  max-width: 680px;
  margin-bottom: 1.1em;
}

.about .section-inner {
  text-align: center;
}

.about .section-inner p {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}


/* ── Services section ──────────────────────────────── */

.services {
  background: var(--off);
}

.services .section-inner {
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.service-card {
  position: relative;
  display: block;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3/4;
  background: var(--olive-md);
}

.service-card:hover .service-img {
  transform: scale(1.04);
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}


/* Placeholder when no image is set */

.service-img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--olive-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease;
}

.service-card:hover .service-img-placeholder {
  transform: scale(1.04);
}

.service-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient( to top, rgba(30, 35, 15, 0.85) 0%, rgba(30, 35, 15, 0.2) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 28px;
  transition: background 0.3s;
}

.service-card:hover .service-overlay {
  background: linear-gradient( to top, rgba(30, 35, 15, 0.92) 0%, rgba(30, 35, 15, 0.4) 60%, rgba(30, 35, 15, 0.1) 100%);
}

.service-label {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--cream);
  text-align: center;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.service-cta {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 6px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s;
}

.service-card:hover .service-cta {
  opacity: 1;
  transform: translateY(0);
}


/* ── Footer ────────────────────────────────────────── */

.footer {
  background: var(--olive);
  padding: 56px 40px 40px;
  color: var(--cream);
}

.footer-inner {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.footer h3 {
  font-size: 30px;
  color: var(--cream);
  margin-bottom: 6px;
}

.footer-tagline {
  font-size: 13px;
  color: rgba(242, 234, 216, 0.5);
  font-weight: 300;
  margin-bottom: 0;
}

.footer-contact h4 {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.footer-contact p {
  font-size: 14px;
  color: rgba(242, 234, 216, 0.75);
  margin-bottom: 6px;
}

.footer-contact a {
  color: rgba(242, 234, 216, 0.75);
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: var(--gold);
}

.footer-bottom {
  max-width: 860px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(242, 234, 216, 0.1);
  font-size: 12px;
  color: rgba(242, 234, 216, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}


/* ── Page hero (inner pages) ───────────────────────── */

.page-hero {
  background: var(--olive);
  padding: 56px 40px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 0%, rgba(200, 181, 96, 0.15), transparent 60%);
  pointer-events: none;
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  color: var(--cream);
  position: relative;
  margin-bottom: 8px;
}

.page-hero p {
  font-size: 14px;
  color: rgba(242, 234, 216, 0.6);
  position: relative;
  max-width: 480px;
  margin: 0 auto 16px;
  font-weight: 300;
}

.page-hero .phone-line {
  font-size: 13px;
  color: var(--gold);
  position: relative;
}

.page-hero .phone-line a {
  color: var(--gold);
  font-weight: 500;
}

.page-hero .phone-line a:hover {
  text-decoration: underline;
}


/* ── Placeholder pages ─────────────────────────────── */

.inquiry-wrap {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.inquiry-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 36px;
}

.inquiry-card h2 {
  font-size: 26px;
  color: var(--olive);
  margin-bottom: 6px;
}

.inquiry-card .sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
}

.coming-soon-note {
  background: var(--gold-lt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13px;
  color: #5a4a00;
  margin-bottom: 28px;
}


/* ── Shared form elements (inquiry pages) ──────────── */

.ifield {
  margin-bottom: 16px;
}

.ifield label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 5px;
}

.ifield input, .ifield select, .ifield textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.ifield select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238a8568' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.ifield input:focus, .ifield select:focus, .ifield textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 181, 96, 0.15);
}

.ifield input.err, .ifield select.err, .ifield textarea.err {
  border-color: var(--red);
}

.field-error {
  font-size: 12px;
  color: var(--red);
  margin-top: 4px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ibtn {
  width: 100%;
  padding: 14px;
  background: var(--olive);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.15s, transform 0.1s;
  margin-top: 8px;
}

.ibtn:hover:not(:disabled) {
  background: var(--olive-md);
}

.ibtn:active:not(:disabled) {
  transform: scale(0.99);
}

.ibtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}


/* ── Success screen (shared) ───────────────────────── */

.success-screen {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.success-screen.show {
  display: block;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: var(--gold-lt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
}

.success-screen h2 {
  font-size: 30px;
  color: var(--olive);
  margin-bottom: 8px;
}

.success-screen p {
  font-size: 14px;
  color: var(--muted);
}


/* ── Utilities ─────────────────────────────────────── */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}


/* ── Responsive ────────────────────────────────────── */

@media (max-width: 768px) {
  .nav {
    padding: 16px 20px;
  }
  .nav-links {
    display: none;
  }
  .section {
    padding: 56px 20px;
  }
  .topbar {
    padding: 14px 20px;
  }
  .footer {
    padding: 48px 20px 32px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .hero-card {
    padding: 36px 28px;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .service-card {
    aspect-ratio: 4/3;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .inquiry-card {
    padding: 24px 20px;
  }
  .page-hero {
    padding: 40px 20px 36px;
  }
}
