/* ==========================================================================
   Downers Grove Digital — stylesheet
   ========================================================================== */

:root {
  --navy: #1F3B57;
  --terracotta: #C4622D;
  --terracotta-light: #e3a077;
  --cream: #F7F3EC;
  --cream-card: #FBF9F4;
  --white: #ffffff;

  --text-body: #26241f;
  --text-muted-1: #4b4a44;
  --text-muted-2: #5a594f;
  --text-muted-3: #6b6a63;
  --text-faint: #8a8368;

  --border-light: #eee6d9;
  --border-input: #ddd2ba;

  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--cream);
}

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

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

.container {
  max-width: 1100px;
  margin: 0 auto;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 56px;
  background: rgba(247, 243, 236, .92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(31, 59, 87, .1);
}

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 19px;
  color: var(--navy);
}

.nav-logo span { color: var(--terracotta); }

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
}

.nav-cta {
  background: var(--terracotta);
  color: #fff;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--cream);
  border-bottom: 1px solid rgba(31, 59, 87, .1);
  padding: 12px 24px 24px;
  flex-direction: column;
  gap: 4px;
}

.nav-mobile-menu.is-open { display: flex; }

.nav-mobile-menu a {
  padding: 12px 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  border-bottom: 1px solid rgba(31, 59, 87, .08);
}

.nav-mobile-menu .nav-cta {
  margin-top: 12px;
  text-align: center;
}

/* ---------- Hero ---------- */

.hero {
  padding: 96px 24px 88px;
  text-align: center;
  max-width: 840px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 52px;
  line-height: 1.15;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 24px;
}

.hero p {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-muted-1);
  margin: 0 0 36px;
}

.btn-primary {
  display: inline-block;
  background: var(--terracotta);
  color: #fff;
  padding: 16px 36px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* ---------- Section headers ---------- */

.section { padding: 80px 24px; }
.section--white { background: var(--white); }
.section--cream { background: var(--cream); }

.section-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  margin: 0 0 8px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted-3);
  font-size: 16px;
  margin: 0 0 48px;
}

/* ---------- Services ---------- */

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.svc-card {
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 30px;
  background: var(--cream-card);
  transition: transform .15s ease;
}

.svc-card:hover { transform: translateY(-2px); }

.svc-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  margin-bottom: 18px;
}

.svc-icon--navy { background: var(--navy); }
.svc-icon--terracotta { background: var(--terracotta); }

.svc-card h3 {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 10px;
}

.svc-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted-2);
  margin: 0;
}

/* ---------- Why Us ---------- */

.why {
  padding: 80px 24px;
  background: var(--navy);
  color: #fff;
}

.why-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.why-eyebrow {
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--terracotta-light);
  font-weight: 600;
  margin-bottom: 14px;
}

.why h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 600;
  margin: 0 0 20px;
}

.why-copy p {
  font-size: 16px;
  line-height: 1.7;
  color: #cdd8e3;
  margin: 0;
}

.why-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.why-stat {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  padding: 22px 26px;
}

.why-stat-number {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--terracotta-light);
  margin-bottom: 4px;
}

.why-stat-label {
  font-size: 14.5px;
  color: #cdd8e3;
}

/* ---------- Work ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.work-card {
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
  background: var(--cream-card);
  transition: transform .15s ease;
}

.work-card:hover { transform: translateY(-2px); }

.placeholder-image {
  height: 140px;
  background: repeating-linear-gradient(135deg, #e9e2d3, #e9e2d3 10px, #e2d8c4 10px, #e2d8c4 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  color: var(--text-faint);
  text-align: center;
}

.work-card-body { padding: 22px; }

.work-card h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px;
}

.work-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted-2);
  margin: 0 0 14px;
}

.work-card-tag {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--terracotta);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}

.owner-photo {
  width: 280px;
  height: 280px;
  border-radius: 12px;
  background: repeating-linear-gradient(45deg, #e9e2d3, #e9e2d3 10px, #ded2b8 10px, #ded2b8 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--text-faint);
  text-align: center;
  padding: 20px;
}

.about-eyebrow {
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 14px;
}

.about h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 18px;
}

.about p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-muted-1);
  margin: 0;
}

/* ---------- Contact ---------- */

.contact-intro {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.contact-intro h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 12px;
}

.contact-intro p {
  font-size: 16px;
  color: var(--text-muted-3);
  margin: 0 0 40px;
}

.contact-form-wrap {
  max-width: 560px;
  margin: 0 auto;
}

.contact-info {
  text-align: center;
  font-size: 14.5px;
  color: var(--text-muted-2);
  margin: 0 0 28px;
  line-height: 1.7;
}

.contact-info strong { color: var(--navy); }

.contact-info .placeholder-note {
  display: inline-block;
  font-size: 12px;
  color: var(--text-faint);
  font-style: italic;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 14px 16px;
  border: 1px solid var(--border-input);
  border-radius: 8px;
  font-size: 14.5px;
  background: var(--cream-card);
  font-family: inherit;
  color: var(--text-body);
  width: 100%;
}

.contact-form select { color: var(--text-muted-3); }

.contact-form textarea { resize: none; }

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-faint);
}

.contact-form button {
  background: var(--terracotta);
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.contact-form button:hover { opacity: .85; }

.contact-form button:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.contact-footnote {
  text-align: center;
  font-size: 13px;
  color: var(--text-faint);
  margin: 8px 0 0;
}

.form-error {
  font-size: 13.5px;
  color: #b3401f;
  text-align: center;
  margin: 0;
}

/* Honeypot field — hidden from real users, visible to bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Success state */
.form-success {
  text-align: center;
  padding: 40px 24px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: var(--cream-card);
}

.form-success h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 10px;
}

.form-success p {
  font-size: 15px;
  color: var(--text-muted-2);
  margin: 0;
}

[hidden] { display: none !important; }

/* ---------- Footer ---------- */

.footer {
  padding: 28px 24px;
  background: var(--navy);
  color: #a9bacb;
  font-size: 13px;
  text-align: center;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .nav { padding: 16px 20px; }
  .nav-links,
  .hero-note { display: none !important; }
  .nav-toggle { display: flex; }

  .svc-grid,
  .work-grid,
  .why-grid,
  .about-grid { grid-template-columns: 1fr !important; }

  .about-grid { text-align: center; }
  .owner-photo { margin: 0 auto; }

  .hero { padding: 64px 20px 56px; }
  .hero h1 { font-size: 36px !important; }
  .hero p { font-size: 17px; }

  .section { padding: 56px 20px; }
  .why { padding: 56px 20px; }

  .contact-row { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 30px !important; }
  .section-title { font-size: 26px; }
}
