/* ═══════════════════════════════════════
   DACRES & DUNBAR TAX SERVICE
   Global Stylesheet
═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Source+Sans+3:wght@300;400;500;600&display=swap');

:root {
  --navy: #0D1B2A;
  --navy-mid: #1A2E45;
  --gold: #C5933A;
  --gold-light: #E2B563;
  --cream: #F9F5EE;
  --cream-dark: #EFE9DC;
  --text: #1C2B3A;
  --text-muted: #5A6B7A;
  --white: #FFFFFF;
  --border: #DDD5C8;
  --success: #2E7D5B;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--text);
  background: var(--cream);
  font-size: 16px;
  line-height: 1.7;
  animation: fadeInPage 0.4s ease both;
}

@keyframes fadeInPage {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ─── PAGE TRANSITION OVERLAY ─── */
#transition-overlay {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
#transition-overlay.fade-out {
  opacity: 1;
}

  opacity: 0;
  visibility: hidden;
}
.loader-logo-name {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
}
.loader-logo-name span { color: var(--gold-light); }
.loader-tagline {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.loader-bar {
  width: 160px;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 8px;
}
.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--gold);
  border-radius: 3px;
  animation: loadBar 1.1s ease forwards;
}
@keyframes loadBar {
  to { width: 100%; }
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
}

/* ─── HEADER ─── */
header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--gold);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}
.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-name {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.logo-tagline {
  color: var(--gold-light);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
nav a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
nav a:hover { color: var(--gold-light); background: rgba(255,255,255,0.07); }
nav a.active { color: var(--gold-light); }

.btn-book-header {
  background: var(--gold) !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
  padding: 9px 18px !important;
  border-radius: 5px !important;
}
.btn-book-header:hover {
  background: var(--gold-light) !important;
  color: var(--navy) !important;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: 0.3s;
}

@media (max-width: 820px) {
  .hamburger { display: flex; }
  nav {
    display: none;
    position: fixed;
    top: 75px;
    left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 4px;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 3px solid var(--gold);
    z-index: 999;
  }
  nav.open { display: flex; }
  nav a { width: 100%; padding: 12px 16px; font-size: 1rem; }
  .btn-book-header { text-align: center; margin-top: 8px; }
}

/* ─── PAGE HERO ─── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 64px 24px 56px;
  text-align: center;
  border-bottom: 3px solid var(--gold);
}
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.68); font-size: 1rem; max-width: 500px; margin: 0 auto; }

/* ─── SECTIONS ─── */
section { padding: 72px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-title { font-size: clamp(1.6rem, 3.5vw, 2.4rem); color: var(--navy); margin-bottom: 16px; }
.section-subtitle { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; margin-bottom: 48px; }

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 30px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  letter-spacing: 0.02em;
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197,147,58,0.35);
}
.btn-outline {
  display: inline-block;
  border: 2px solid rgba(255,255,255,0.5);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: 6px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover { border-color: var(--gold-light); background: rgba(197,147,58,0.12); color: var(--gold-light); }

/* ─── TRUST BAR ─── */
.trust-bar { background: var(--gold); padding: 14px 24px; }
.trust-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 600; font-size: 0.87rem; }

/* ─── SERVICES ─── */
.services-bg { background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.service-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: 8px;
  padding: 32px 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover { box-shadow: 0 8px 32px rgba(13,27,42,0.1); transform: translateY(-3px); }
.service-icon { font-size: 2.2rem; margin-bottom: 16px; }
.service-card h3 { font-size: 1.25rem; color: var(--navy); margin-bottom: 16px; }
.service-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.service-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.93rem; color: var(--text-muted); }
.service-list li::before { content: '✓'; color: var(--gold); font-weight: 700; flex-shrink: 0; margin-top: 2px; }

/* ─── CTA BAND ─── */
.cta-band { background: var(--navy); padding: 64px 24px; text-align: center; }
.cta-band h2 { color: var(--white); font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.72); margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ─── WHY US ─── */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 48px; }
.why-card { text-align: center; padding: 32px 20px; border-radius: 8px; background: var(--white); border: 1px solid var(--border); }
.why-number { font-family: 'Playfair Display', serif; font-size: 2.8rem; font-weight: 700; color: var(--gold); line-height: 1; margin-bottom: 8px; }
.why-label { font-weight: 600; color: var(--navy); font-size: 0.95rem; }

/* ─── TESTIMONIALS ─── */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  padding: 28px 24px;
}
.stars { color: var(--gold); font-size: 1rem; margin-bottom: 12px; }
.testimonial-text { font-style: italic; color: var(--text); margin-bottom: 16px; font-size: 0.97rem; }
.testimonial-author { font-weight: 700; color: var(--navy); font-size: 0.9rem; }
.testimonial-role { font-size: 0.82rem; color: var(--text-muted); }

/* ─── ABOUT ─── */
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 700px) { .about-layout { grid-template-columns: 1fr; gap: 32px; } }
.about-img-block {
  background: linear-gradient(145deg, var(--navy), var(--navy-mid));
  border-radius: 12px;
  padding: 48px 36px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.about-img-block::before {
  content: '';
  position: absolute;
  bottom: -30px; right: -30px;
  width: 150px; height: 150px;
  border: 3px solid rgba(197,147,58,0.25);
  border-radius: 50%;
}
.about-avatar { font-size: 4rem; margin-bottom: 16px; }
.about-name { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--white); margin-bottom: 4px; }
.about-title { color: var(--gold-light); font-size: 0.88rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.about-text p { color: var(--text-muted); margin-bottom: 16px; font-size: 0.97rem; }
.values-list { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.value-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--cream); border-radius: 6px; border-left: 3px solid var(--gold); }
.value-icon { font-size: 1.2rem; }
.value-text { font-weight: 600; color: var(--navy); font-size: 0.93rem; }

/* ─── CONTACT ─── */
.contact-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: start; }
@media (max-width: 780px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-block { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 20px 22px; display: flex; gap: 14px; align-items: flex-start; }
.contact-block-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.contact-block-label { font-weight: 700; color: var(--navy); font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.contact-block-value { font-size: 0.95rem; color: var(--text); }
.contact-block-value a { color: var(--gold); text-decoration: none; font-weight: 500; }
.hours-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; font-size: 0.88rem; color: var(--text-muted); margin-top: 4px; }
.hours-day { font-weight: 600; color: var(--navy); }

/* ─── FORM ─── */
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 36px 32px; }
.form-card h3 { color: var(--navy); font-size: 1.4rem; margin-bottom: 6px; }
.form-subtitle { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 28px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 0.88rem; color: var(--navy); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.05em; }
.form-group input,
.form-group textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.97rem;
  color: var(--text);
  background: var(--cream);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(197,147,58,0.12); }
.form-group textarea { resize: vertical; min-height: 110px; }
.sms-consent-box { background: #EAF4F0; border: 1px solid #B8DECE; border-left: 4px solid var(--success); border-radius: 6px; padding: 18px 20px; margin: 20px 0; }
.sms-consent-box p { font-size: 0.85rem; color: #2D4A3E; line-height: 1.6; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 12px; }
.checkbox-row input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--gold); margin-top: 2px; cursor: pointer; }
.checkbox-row label { font-size: 0.87rem; color: var(--text); line-height: 1.55; cursor: pointer; font-weight: 400 !important; text-transform: none !important; letter-spacing: 0 !important; }
.form-legal { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 20px; }
.form-legal a { color: var(--gold); text-decoration: none; font-weight: 600; }
.btn-submit { width: 100%; padding: 15px; background: var(--navy); color: var(--white); font-family: 'Source Sans 3', sans-serif; font-size: 1rem; font-weight: 700; border: none; border-radius: 6px; cursor: pointer; letter-spacing: 0.04em; transition: background 0.2s, transform 0.15s; }
.btn-submit:hover { background: var(--gold); color: var(--navy); transform: translateY(-1px); }
.form-success { display: none; background: #EAF4F0; border: 1px solid #B8DECE; border-radius: 8px; padding: 24px; text-align: center; color: var(--success); font-weight: 600; font-size: 1rem; margin-top: 16px; }

/* ─── CALENDLY ─── */
.calendly-section { background: var(--cream-dark); padding: 56px 24px; }
.calendly-wrapper { max-width: 900px; margin: 0 auto; background: var(--white); border-radius: 12px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 4px 24px rgba(13,27,42,0.08); }
.calendly-header { background: var(--navy); padding: 24px 32px; text-align: center; }
.calendly-header h3 { color: var(--white); font-size: 1.35rem; margin-bottom: 4px; }
.calendly-header p { color: rgba(255,255,255,0.68); font-size: 0.9rem; }
.calendly-iframe-wrap iframe { width: 100%; min-height: 650px; border: none; display: block; }

/* ─── POLICY PAGES ─── */
.policy-page { max-width: 800px; margin: 0 auto; padding: 60px 24px; }
.policy-page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--navy); margin-bottom: 6px; }
.policy-date { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 40px; border-bottom: 1px solid var(--border); padding-bottom: 20px; }
.policy-section { margin-bottom: 36px; }
.policy-section h2 { font-size: 1.25rem; color: var(--navy); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--gold); display: inline-block; }
.policy-section p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 10px; }
.policy-section ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.policy-section ul li { padding-left: 20px; position: relative; font-size: 0.93rem; color: var(--text-muted); }
.policy-section ul li::before { content: '•'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.policy-section a { color: var(--gold); text-decoration: none; font-weight: 600; }
.policy-highlight { background: var(--cream-dark); border-left: 4px solid var(--gold); padding: 14px 18px; border-radius: 0 6px 6px 0; font-size: 0.92rem; color: var(--text); margin: 12px 0; }

/* ─── FOOTER ─── */
footer { background: var(--navy); color: var(--white); padding: 56px 24px 28px; border-top: 3px solid var(--gold); }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 780px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand-name { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--white); margin-bottom: 6px; }
.footer-brand-tag { font-size: 0.83rem; color: var(--gold-light); font-style: italic; margin-bottom: 16px; }
.footer-contact-item { display: flex; align-items: center; gap: 8px; font-size: 0.87rem; color: rgba(255,255,255,0.72); margin-bottom: 8px; text-decoration: none; }
.footer-contact-item:hover { color: var(--gold-light); }
.footer-col h4 { font-family: 'Source Sans 3', sans-serif; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-light); margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.72); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-book-btn { display: inline-block; margin-top: 16px; background: var(--gold); color: var(--navy); font-weight: 700; font-size: 0.88rem; padding: 10px 20px; border-radius: 5px; text-decoration: none; transition: background 0.2s; }
.footer-book-btn:hover { background: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; color: rgba(255,255,255,0.45); }
.footer-bottom a { color: rgba(255,255,255,0.55); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold-light); }

/* ─── UTILITIES ─── */
.text-center { text-align: center; }
@media (max-width: 480px) { section { padding: 52px 20px; } .form-card { padding: 24px 20px; } }
