/* ============================================
   Dunrite Accounting — Skyline Power
   Institutional confidence. Modern luxury.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  --ink: #050E1F;
  --ink-2: #0B1A33;
  --navy: #09274E;
  --navy-2: #0E2E5C;
  --gold: #E0A82E;
  --brass: #B5841F;
  --cream: #F5F0E8;
  --off-white: #F8F5EE;
  --cream-deep: #ECE4D5;
  --line: rgba(9, 39, 78, 0.12);
  --line-dark: rgba(245, 240, 232, 0.16);
  --muted: #4A5568;
  --muted-dark: rgba(245, 240, 232, 0.65);
  --ink-soft: #1A1F2E;
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--off-white);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
::selection { background: var(--gold); color: var(--ink); }

section { padding: 120px 0; }
.column { max-width: 1320px; margin: 0 auto; padding: 0 56px; }
.column-narrow { max-width: 880px; margin: 0 auto; padding: 0 56px; }
@media (max-width: 768px) {
  section { padding: 80px 0; }
  .column, .column-narrow { padding: 0 24px; }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 5.2vw, 5rem); }
h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin-bottom: 0.3em; }
h3 { font-size: 1.5rem; font-weight: 500; margin-bottom: 0.4em; }
h4 { font-size: 1.1rem; font-weight: 500; margin-bottom: 0.4em; }
h1 strong, h2 strong, h3 strong { font-weight: 700; }
p { color: var(--muted); margin-bottom: 1em; }
p.lead { font-size: 1.15rem; color: var(--ink-soft); line-height: 1.6; }
strong { font-weight: 600; }
em { font-style: italic; }

/* Tiny utility label */
.micro {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}
.micro-gold { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 18px 32px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}
.btn-primary {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}
.btn-primary::after { content: '→'; font-weight: 400; }
.btn-primary:hover { background: var(--cream); border-color: var(--cream); }

.btn-ghost-dark {
  color: var(--cream);
  background: rgba(245, 240, 232, 0.05);
  border-color: rgba(245, 240, 232, 0.3);
  backdrop-filter: blur(6px);
}
.btn-ghost-dark:hover { background: rgba(245, 240, 232, 0.12); border-color: var(--cream); }

.btn-ghost-light {
  color: var(--ink);
  background: transparent;
  border-color: var(--ink);
}
.btn-ghost-light:hover { background: var(--ink); color: var(--cream); }

/* ---------- Demo banner removed; nav-cta retained ---------- */

/* ---------- Header / Nav ---------- */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
}
.site-header.light {
  position: sticky;
  background: rgba(248, 245, 238, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
@media (max-width: 768px) { .nav { padding: 18px 24px; } }
.nav-logo img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
}
.site-header.light .nav-logo img { filter: none; }
@media (max-width: 540px) { .nav-logo img { height: 36px; } }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--cream);
  transition: color 0.2s;
}
.site-header.light .nav-links a { color: var(--ink); }
.nav-links a:hover { color: var(--gold); }
.nav-links a.active { color: var(--gold); }

.nav-cta {
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em;
  padding: 12px 22px;
  border: 1px solid rgba(245, 240, 232, 0.35);
  transition: all 0.25s;
}
.site-header.light .nav-cta { border-color: var(--ink); }
.nav-cta:hover {
  background: var(--gold);
  color: var(--ink) !important;
  border-color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--cream);
  margin: 5px 0;
  transition: 0.2s;
}
.site-header.light .nav-toggle span { background: var(--ink); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--ink);
    padding: 24px 32px;
    gap: 20px;
    align-items: flex-start;
    display: none;
    z-index: 50;
  }
  .site-header.light .nav-links { background: var(--off-white); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
}

/* ---------- HERO (full-bleed image / video, bottom-aligned content) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  padding-bottom: 100px;
}
.hero-bg {
  position: absolute;
  inset: -2%;
  background-size: cover;
  background-position: center;
  animation: kb 32s ease-in-out infinite alternate;
}
@keyframes kb { from { transform: scale(1.0); } to { transform: scale(1.10) translate(1%, 1%); } }
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,14,31,0.35) 0%, rgba(5,14,31,0.55) 50%, rgba(5,14,31,0.94) 100%);
}
.hero > .column { position: relative; z-index: 2; width: 100%; padding-top: 120px; }
.hero h1 {
  color: var(--cream);
  font-weight: 300;
  max-width: 980px;
  margin: 24px 0;
}
.hero p.tag {
  font-size: 1.15rem;
  color: var(--muted-dark);
  max-width: 580px;
  margin-bottom: 40px;
  line-height: 1.55;
  font-weight: 300;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Slim hero variant for inner pages */
.hero-inner {
  min-height: 65vh;
  padding-bottom: 80px;
}
.hero-inner > .column { padding-top: 140px; }
.hero-inner h1 { max-width: 780px; }

/* ---------- METRIC BAR (overlapping hero) ---------- */
.metric-bar { padding: 0; background: var(--cream); border-bottom: 1px solid var(--line); }
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 880px) { .metric-grid { grid-template-columns: repeat(2, 1fr); } }
.metric {
  padding: 40px 32px;
  border-right: 1px solid var(--line);
}
.metric:last-child { border-right: none; }
@media (max-width: 880px) {
  .metric { border-right: none; border-bottom: 1px solid var(--line); }
  .metric:nth-child(odd) { border-right: 1px solid var(--line); }
  .metric:nth-last-child(-n+2) { border-bottom: none; }
}
.metric-num {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: clamp(2.4rem, 3.5vw, 3rem);
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.metric-num strong { font-weight: 700; }
.metric-num .unit {
  font-size: 0.5em;
  font-weight: 400;
  color: var(--muted);
  margin-left: 2px;
}
.metric-label {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Section header (asymmetric) ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 64px;
}
@media (max-width: 880px) { .section-head { grid-template-columns: 1fr; gap: 16px; } }
.section-head h2 { max-width: 600px; margin-top: 16px; }
.section-head p { max-width: 460px; margin: 0; font-size: 1.02rem; }

/* ---------- Photo-backed practice cards ---------- */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 960px) { .practice-grid { grid-template-columns: 1fr; } }
.practice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  color: var(--ink);
}
.practice-card:hover {
  transform: translateY(-4px);
  border-color: var(--brass);
  box-shadow: 0 20px 40px rgba(9, 39, 78, 0.10);
}
.practice-card .bg {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}
.practice-card:hover .bg { transform: scale(1.04); }
.practice-card .content {
  padding: 32px 32px 36px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.practice-card .num {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--brass);
  margin-bottom: 16px;
}
.practice-card h3 {
  font-weight: 500;
  font-size: 1.55rem;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}
.practice-card p {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 0 0 auto;
  line-height: 1.65;
}
.practice-card .arrow {
  margin-top: 24px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}
/* Ensure BG image is visible without being clipped by overflow */
.practice-card > .bg { flex-shrink: 0; }

/* ---------- Capabilities band (dark with faint photo) ---------- */
.capabilities {
  background: var(--ink);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.capabilities .bg-faint {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.18;
}
.capabilities > .column { position: relative; z-index: 2; }
.capabilities h2 { color: var(--cream); max-width: 760px; }
.capabilities .section-head p { color: var(--muted-dark); }
.capabilities .micro { color: var(--gold); }
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 56px;
}
@media (max-width: 880px) { .cap-grid { grid-template-columns: 1fr; gap: 32px; } }
.cap {
  border-top: 1px solid var(--line-dark);
  padding-top: 24px;
}
.cap h4 {
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--cream);
  margin-bottom: 10px;
}
.cap p { color: var(--muted-dark); font-size: 0.98rem; margin: 0; }

/* ---------- Editorial split (50/50 photo + content) ---------- */
.editorial {
  padding: 0;
  background: var(--off-white);
}
.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
}
.editorial-grid.reverse { direction: rtl; }
.editorial-grid.reverse > * { direction: ltr; }
@media (max-width: 880px) {
  .editorial-grid, .editorial-grid.reverse { grid-template-columns: 1fr; direction: ltr; }
  .editorial-photo { min-height: 50vh; }
}
.editorial-content {
  padding: 100px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 768px) { .editorial-content { padding: 64px 24px; } }
.editorial-content .micro { margin-bottom: 24px; }
.editorial-content h2 {
  font-weight: 300;
  max-width: 540px;
  margin-bottom: 28px;
}
.editorial-content p {
  max-width: 480px;
  font-size: 1.05rem;
  line-height: 1.7;
}
.editorial-content .sig {
  margin-top: 32px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.editorial-photo {
  background-size: cover;
  background-position: center;
}

/* ---------- Photo break (full-bleed image with overlay text) ---------- */
.photobreak {
  position: relative;
  height: 70vh;
  overflow: hidden;
  padding: 0;
}
.photobreak .bg {
  position: absolute; inset: -2%;
  background-size: cover; background-position: center;
  animation: kb 36s ease-in-out infinite alternate;
}
.photobreak::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,14,31,0.45) 0%, rgba(5,14,31,0.88) 100%);
}
.photobreak .column {
  position: relative; z-index: 2;
  height: 100%; display: flex; align-items: flex-end;
  padding-bottom: 80px;
}
.photobreak h2 {
  color: var(--cream);
  font-weight: 300;
  max-width: 900px;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.3;
}
.photobreak h2 em { font-style: italic; color: var(--gold); font-weight: 400; }

/* ---------- Testimonial (centered, on dark) ---------- */
.testimonial-band {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
}
.testimonial-band blockquote {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.35;
  color: var(--cream);
  max-width: 1000px;
  margin: 24px auto;
  letter-spacing: -0.015em;
}
.testimonial-band blockquote strong { font-weight: 600; }
.testimonial-band cite {
  display: block;
  margin-top: 32px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
}
.testimonial-band .ornament {
  width: 40px; height: 1px;
  background: var(--gold);
  margin: 0 auto 40px;
}

/* ---------- Closing CTA (full-bleed, animated) ---------- */
.closing {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: var(--cream);
  padding: 0;
}
.closing-bg {
  position: absolute; inset: -2%;
  background-size: cover; background-position: center;
  animation: kb 36s ease-in-out infinite alternate;
}
.closing::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(5,14,31,0.92) 0%, rgba(5,14,31,0.7) 100%);
}
.closing > .column { position: relative; z-index: 2; padding: 100px 56px; }
.closing h2 { color: var(--cream); max-width: 720px; margin: 20px 0 24px; }
.closing p { color: var(--muted-dark); max-width: 540px; font-size: 1.1rem; margin-bottom: 40px; }

/* ---------- Light prose block (centered text section) ---------- */
.prose {
  background: var(--off-white);
}
.prose .column-narrow { text-align: left; }
.prose h2 { max-width: 720px; margin-bottom: 32px; }
.prose p {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 720px;
}
.prose p.lead {
  font-size: 1.25rem;
  color: var(--ink);
  font-weight: 400;
}

/* ---------- Process / numbered list ---------- */
.steps { list-style: none; }
.step {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
  transition: padding 0.3s ease;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step:hover { padding-left: 16px; }
.step-num {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gold);
  letter-spacing: 0.18em;
}
.step h3 {
  font-weight: 500;
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.step p {
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 0;
  font-size: 1.02rem;
  line-height: 1.7;
}
@media (max-width: 640px) {
  .step { grid-template-columns: 1fr; gap: 8px; padding: 28px 0; }
  .step:hover { padding-left: 0; }
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 880px; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 1.8rem;
  color: var(--gold);
  transition: transform 0.25s ease;
  line-height: 1;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item-body {
  padding: 0 0 28px;
  max-width: 760px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-group label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 0;
  font-family: 'Inter', sans-serif;
  font-size: 1.02rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  transition: border-color 0.2s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}
.form-group textarea { resize: vertical; min-height: 120px; line-height: 1.55; }

/* Contact grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 96px;
  align-items: start;
}
@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
}
.contact-detail {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.contact-detail:last-child { border-bottom: 1px solid var(--line); }
.contact-detail dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.contact-detail dd {
  font-size: 1.1rem;
  color: var(--ink);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--muted-dark);
  padding: 80px 0 32px;
  border-top: 1px solid var(--line-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 52px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.footer-brand p { max-width: 320px; font-size: 0.96rem; color: var(--muted-dark); }
.footer-col h5 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--muted-dark); font-size: 0.96rem; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 16px; }
.mt-2 { margin-top: 32px; }
.mt-3 { margin-top: 56px; }
