/* Auburn Cabinet Company. Same tokens and type as Auburn Closet Co and Wheelhouse Design Co. */
:root {
  --navy: #2c3e50;
  --navy-light: #3d5268;
  --white: #ffffff;
  --warm: #faf8f5;
  --cream: #f5f0ea;
  --text: #2d2926;
  --text-light: #6b5e54;
  --accent: #9c7c5c;
  --accent-light: #c4a77d;
  --accent-warm: #b8956a;
  --border: #e8e0d6;
  --text-muted: #94a3b8;
  --text-dim: #d4ccc4;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Lora', Georgia, 'Times New Roman', serif; }

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

a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: fixed; top: 0; left: 0; width: auto; height: auto; z-index: 999; background: var(--navy); color: var(--white); padding: 0.75rem 1.5rem; font-weight: 600; text-decoration: none; border-radius: 0 0 8px 0; }

/* Header */
header {
  background: var(--white);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-right { display: flex; align-items: center; gap: 0.75rem; }
.logo { font-size: 1.2rem; font-weight: 700; color: var(--navy); letter-spacing: -0.01em; text-decoration: none; }
.logo span { color: var(--accent); }
header a.cta-link {
  background: var(--navy); color: var(--white); padding: 0.5rem 1.25rem; border-radius: 6px;
  text-decoration: none; font-size: 0.85rem; font-weight: 600; white-space: nowrap;
}
header a.cta-link:hover { background: var(--navy-light); }

.hamburger {
  background: none; border: none; cursor: pointer; padding: 0.5rem; display: flex; flex-direction: column;
  gap: 5px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 1px; transition: transform 0.2s, opacity 0.2s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--white);
  z-index: 99; padding: 5rem 2rem 2rem; flex-direction: column; gap: 0.25rem; overflow-y: auto;
}
.mobile-nav.open { display: flex; }
@media (min-width: 641px) {
  .mobile-nav {
    top: 60px; right: 1rem; left: auto; bottom: auto; width: 280px; padding: 1.5rem; border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12); border: 1px solid var(--border); max-height: calc(100vh - 80px);
  }
}
.mobile-nav a { color: var(--navy); text-decoration: none; font-size: 1.15rem; font-weight: 500; padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav .nav-section { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-light); padding: 1rem 0 0.25rem; font-weight: 600; }
.mobile-nav .nav-sub { padding-left: 1rem; font-size: 1.05rem; }

/* Hero */
.hero {
  background-color: var(--navy);
  background: linear-gradient(rgba(44, 62, 80, 0.4), rgba(44, 62, 80, 0.55)), url('../images/hero-kitchen-island.webp') center/cover no-repeat;
  color: var(--white);
  padding: 5rem 1.5rem;
  text-align: center;
  min-height: 70vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.hero h1 { font-size: 2.4rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 1rem; max-width: 640px; line-height: 1.2; text-shadow: 0 2px 12px rgba(0,0,0,0.4); }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,0.92); max-width: 540px; margin-bottom: 2rem; text-shadow: 0 1px 6px rgba(0,0,0,0.3); }

.hero-cta, .cta-button {
  display: inline-block; background: var(--accent-warm); color: var(--white); padding: 0.9rem 2rem;
  border-radius: 24px; text-decoration: none; font-weight: 600; font-size: 1rem; transition: background 0.2s, transform 0.2s;
}
.hero-cta:hover, .cta-button:hover { background: var(--accent-light); transform: translateY(-1px); }

/* Layout */
.container { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 4rem 0; }
section.alt { background: var(--warm); }
.text-center { text-align: center; }

h1.page-title { font-size: 2rem; font-weight: 700; color: var(--navy); margin-bottom: 1rem; line-height: 1.25; }
h2 { font-size: 1.8rem; font-weight: 700; color: var(--navy); margin-bottom: 0.5rem; letter-spacing: -0.01em; }
h3 { color: var(--navy); }
p + p { margin-top: 1rem; }
.section-sub { color: var(--text-light); font-size: 1.05rem; margin-bottom: 2rem; }
.lead { font-size: 1.1rem; color: var(--text-light); }
.hero-img { width: 100%; height: 340px; object-fit: cover; border-radius: 12px; margin: 1.5rem 0; }

/* Cards */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card {
  background: var(--white); border-radius: 12px; padding: 1.25rem; border: 1px solid var(--border);
  transition: box-shadow 0.2s; text-decoration: none; color: inherit; display: block;
}
.service-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.service-card img { width: 100%; height: 170px; object-fit: cover; border-radius: 8px; margin-bottom: 1rem; }
.service-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.35rem; }
.service-card p { font-size: 0.9rem; color: var(--text-light); }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem 2rem; margin-top: 1.25rem; }
.feature h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; font-family: inherit; }
.feature p { font-size: 0.92rem; color: var(--text-light); }

/* Process */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; list-style: none; }
.step-number {
  width: 44px; height: 44px; background: var(--accent-warm); color: var(--white); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-family: 'Lora', Georgia, serif;
  font-weight: 700; font-size: 1.1rem; margin: 0 auto 0.75rem;
}
.process-steps h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.35rem; }
.process-steps p { font-size: 0.85rem; color: var(--text-light); }

/* Drawing to finished */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0 0.5rem; }
.compare figure { margin: 0; }
.compare img { width: 100%; height: 240px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.compare figcaption { font-size: 0.82rem; color: var(--text-light); margin-top: 0.4rem; text-align: center; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-grid img { width: 100%; height: 250px; object-fit: cover; border-radius: 8px; }

/* Areas */
.areas-list { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.area-tag { background: var(--white); border: 1px solid var(--border); padding: 0.5rem 1.25rem; border-radius: 100px; font-size: 0.9rem; color: var(--navy); font-weight: 500; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--border); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 1rem; min-height: 44px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { color: var(--text-light); margin-top: 0.5rem; }

/* Family note */
.family-note { border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; background: var(--white); }
.family-note h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.family-note p { color: var(--text-light); font-size: 0.95rem; }
.family-note a { color: var(--accent); font-weight: 600; }

/* Page nav */
.page-nav { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 1.5rem; }
.page-nav a { color: var(--accent); text-decoration: none; font-size: 0.95rem; font-weight: 500; padding: 0.5rem 0; }
.page-nav a:hover { text-decoration: underline; }

/* Contact */
.contact-section { background: linear-gradient(135deg, #3a2e25 0%, #4a3d33 100%); color: var(--white); padding: 4rem 1.5rem; text-align: center; }
.contact-section h2 { color: var(--white); margin-bottom: 0.75rem; }
.contact-section > p { color: var(--text-dim); margin-bottom: 2rem; font-size: 1.05rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 680px; margin: 0 auto 1rem; }
.contact-item .label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: #90a4ae; margin-bottom: 0.25rem; }
.contact-item .value { font-size: 1.05rem; font-weight: 600; color: var(--white); overflow-wrap: anywhere; }
.contact-item a { color: var(--white); text-decoration: none; }

.contact-form { max-width: 600px; margin: 2rem auto 0; text-align: left; }
.contact-form label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--white); }
.contact-form label span { font-weight: 400; color: #90a4ae; font-size: 0.8rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 0.75rem; border: 1px solid rgba(255,255,255,0.2); border-radius: 6px; font-size: 1rem;
  font-family: inherit; background: rgba(255,255,255,0.95); color: var(--text); margin-bottom: 1.25rem;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(139,115,85,0.3); }
.contact-form textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-3 { grid-template-columns: 2fr 1fr 1fr; }
.checkbox-group { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 1.25rem; }
.checkbox-group label { display: flex; align-items: center; gap: 0.5rem; font-weight: 400; font-size: 0.95rem; margin-bottom: 0; cursor: pointer; min-height: 36px; }
.checkbox-group input[type="checkbox"] { width: auto; margin-bottom: 0; }
.contact-form button {
  width: 100%; padding: 1rem; background: var(--accent-warm); color: var(--white); border: none; border-radius: 24px;
  font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: background 0.2s; margin-top: 1rem;
}
.contact-form button:hover { background: var(--accent-light); }
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
footer { background: var(--navy); color: var(--text-dim); text-align: center; padding: 2rem 1.5rem; font-size: 0.8rem; line-height: 1.8; }
footer strong { color: var(--text-dim); }
footer a { color: var(--text-dim); text-decoration: underline; }

/* Simple pages (thank you, error) */
.simple-page { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4rem 1.5rem; gap: 1rem; }
.simple-page h1 { color: var(--navy); font-size: 2rem; }
.simple-page p { color: var(--text-light); max-width: 460px; }

@media (max-width: 640px) {
  .hero { padding: 3.5rem 1.25rem; min-height: 60vh; }
  .hero h1 { font-size: 1.8rem; }
  h1.page-title { font-size: 1.6rem; }
  h2 { font-size: 1.5rem; }
  section { padding: 3rem 0; }
  .services-grid, .features, .contact-grid, .compare { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid img { height: 180px; }
  .hero-img { height: 240px; }
  .form-row, .form-row-3, .checkbox-group { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  header a.cta-link { display: none; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 1.5rem; }
  .logo { font-size: 1rem; }
}
