/* ========================================
   Denne Ahlefeld CPA — Design Concept
   Palette: warm amber accent + deep charcoal + warm off-white
   Font: Work Sans
   ======================================== */

:root {
  --accent: #d96a1f;
  --accent-dark: #b35515;
  --accent-light: #f4e4d4;
  --dark: #1e1b16;
  --dark-soft: #2a2620;
  --light: #faf7f2;
  --light-tint: #f3ede4;
  --white: #ffffff;
  --text: #2a2620;
  --text-muted: #6b6358;
  --border: #e2d9cc;
  --radius: 8px;
  --radius-lg: 14px;
  --nav-h: 68px;
  --banner-h: 42px;
  --maxw: 1200px;
  --ease: 200ms ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--banner-h) + var(--nav-h) + 16px);
}

body {
  font-family: 'Work Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--light);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-dark); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--accent); }

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

/* ===== EYEBROW ===== */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.eyebrow.accent { color: var(--accent); }
.eyebrow.light { color: rgba(255,255,255,0.65); }

/* ===== HEADINGS ===== */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 900;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  margin-bottom: 18px;
}

h3 {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  margin-bottom: 10px;
}

h4 {
  font-size: 13px;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  color: var(--accent);
}

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--ease);
  text-decoration: none;
  min-height: 44px;
  white-space: nowrap;
}

.btn-filled {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-filled:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.btn-large { padding: 16px 34px; font-size: 16px; }

/* ===== NAV ===== */
.site-nav {
  position: sticky;
  top: 42px;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
  color: var(--dark);
}
.wordmark-name {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.wordmark-role {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links > a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: color var(--ease);
}
.nav-links > a:hover { color: var(--accent); }

.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 700 !important;
  font-size: 14px !important;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: background var(--ease) !important;
}
.nav-cta:hover { background: var(--accent-dark) !important; color: var(--white) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--dark);
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

/* ===== HERO ===== */
.hero {
  background: var(--dark);
  color: var(--white);
  padding: 80px 0;
  overflow: hidden;
}

.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text .eyebrow {
  color: var(--accent);
}

.hero h1 {
  color: var(--white);
}

.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.78);
  line-height: 1.55;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-cta .btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}
.hero-cta .btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* ===== TRUST ===== */
.trust {
  padding: 100px 0;
  background: var(--white);
}

.trust-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: start;
}

.trust-text p {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.65;
}

.trust-checklist {
  background: var(--light-tint);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid var(--border);
}

.checklist-title {
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 22px;
}

.trust-checklist ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.trust-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
}

.trust-checklist svg {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 1px;
}

/* ===== SERVICES ===== */
.services {
  padding: 100px 0;
  background: var(--light);
}

.section-head {
  text-align: center;
  margin-bottom: 56px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.section-head p {
  color: var(--text-muted);
  font-size: 17px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--ease), transform var(--ease);
}
.service-card:hover {
  box-shadow: 0 8px 28px rgba(30,27,22,0.08);
}

.service-featured {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
  padding: 48px 44px;
}
.service-featured h3 { color: var(--white); }
.service-featured p { color: rgba(255,255,255,0.75); font-size: 16px; }

.service-compact-group {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.service-compact {
  padding: 32px 30px;
  flex: 1;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-featured .service-icon {
  background: rgba(217,106,31,0.18);
  color: var(--accent);
}

.service-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}

.service-featured .service-label {
  color: var(--accent);
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}

.service-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

.service-link {
  margin-top: auto;
  padding-top: 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.service-link:hover { color: var(--accent-dark); }

/* ===== PROOF ===== */
.proof {
  padding: 100px 0;
  background: var(--white);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 64px;
  text-align: center;
}

.stat {
  padding: 36px 20px;
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid var(--border);
}

.stat-num {
  display: block;
  font-size: clamp(2.8rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.proof-photo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.proof-photo-row img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ===== ABOUT ===== */
.about {
  padding: 100px 0;
  background: var(--light-tint);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: center;
}

.about-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.about-photo img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

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

.about-credentials {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.credential-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1.5px solid var(--accent);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 100px;
}

/* ===== CTA BAND ===== */
.cta-band {
  background: var(--dark);
  color: var(--white);
  padding: 90px 0 80px;
}

.cta-inner {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-sub {
  color: rgba(255,255,255,0.72);
  font-size: 17px;
  margin-bottom: 36px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.cta-actions .btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}
.cta-actions .btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  text-align: left;
  padding-top: 56px;
  border-top: 1px solid rgba(255,255,255,0.12);
  align-items: start;
}

.contact-info h3 {
  color: var(--white);
  font-size: 14px;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  margin-top: 22px;
}
.contact-info h3:first-child { margin-top: 0; }

.contact-info address,
.contact-info p {
  color: rgba(255,255,255,0.72);
  font-style: normal;
  font-size: 15px;
  line-height: 1.5;
}

.contact-info a {
  color: var(--accent);
}

/* ===== FORM ===== */
.contact-form {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  color: var(--white);
  transition: border-color var(--ease);
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255,255,255,0.35);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-field textarea { resize: vertical; }

.contact-form .btn {
  width: 100%;
  margin-top: 4px;
}

.form-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
  min-height: 1em;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark-soft);
  color: rgba(255,255,255,0.6);
  padding: 72px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}

.footer-wordmark { margin-bottom: 16px; }
.footer-wordmark .wordmark-name { color: var(--white); }

.footer-tag {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
  margin-bottom: 18px;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  transition: all var(--ease);
}
.footer-social:hover {
  background: var(--accent);
  color: var(--white);
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col li {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

.footer-col li a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color var(--ease);
}
.footer-col li a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 28px 0;
}

.land-ack {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.4);
  margin-bottom: 10px;
  font-style: italic;
  max-width: 900px;
}

.copyright {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-photo { max-width: 480px; }
  
  .trust-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 700px) {
  .nav-toggle {
    display: flex;
  }
  
  .nav-links {
    position: absolute;
    top: calc(var(--nav-h) + 42px);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--ease), opacity var(--ease);
  }
  
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .nav-links > a {
    width: 100%;
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
    display: block;
  }
  
  .nav-links > a:last-child {
    border-bottom: none;
    margin-top: 8px;
    text-align: center;
  }
  
  .hero { padding: 56px 0; }
  .hero-sub { font-size: 16px; }
  
  .hero-cta {
    flex-direction: column;
  }
  .hero-cta .btn { width: 100%; }
  
  .trust, .services, .proof, .about {
    padding: 64px 0;
  }
  
  .cta-band { padding: 64px 0 56px; }
  .cta-actions {
    flex-direction: column;
  }
  .cta-actions .btn { width: 100%; }
  
  .stats-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .proof-photo-row {
    grid-template-columns: 1fr 1fr;
  }
  .proof-photo-row img:nth-child(3) {
    display: none;
  }
  
  .service-featured { padding: 36px 28px; }
  .service-compact { padding: 28px 24px; }
  
  .contact-form { padding: 28px 24px; }
  
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 480px) {
  .container, .nav-inner, .hero-inner { padding-left: 20px; padding-right: 20px; }
  
  .proof-photo-row {
    grid-template-columns: 1fr;
  }
  .proof-photo-row img:nth-child(3) {
    display: block;
  }
  
  .wordmark-name { font-size: 15px; }
}

/* ===== REVEAL ANIMATION (applied by JS only) ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}