/* =============================================================
   Young Accounting LLC — Main Stylesheet
   -------------------------------------------------------------
   HOW TO CUSTOMIZE:
   - Colors: edit the CSS variables in :root below
   - Fonts: swap the Google Fonts link in each HTML <head> and
     update --font-heading / --font-body here
   - Spacing: adjust --section-padding, --container-max, etc.
   ============================================================= */

/* ── CSS Variables (easy customization) ── */
:root {
  /* Brand colors */
  --color-navy:       #1a2a3a;   /* primary dark — nav, headings */
  --color-navy-light: #243447;   /* slightly lighter navy */
  --color-gold:       #b8912a;   /* accent — buttons, highlights */
  --color-gold-light: #d4a84b;   /* hover state for gold */
  --color-cream:      #f8f5ef;   /* warm off-white backgrounds */
  --color-white:      #ffffff;
  --color-text:       #2c2c2c;   /* body text */
  --color-text-muted: #6b7280;   /* secondary text */
  --color-border:     #e5e0d8;   /* subtle borders */

  /* Typography */
  --font-heading: 'Merriweather', Georgia, serif;
  --font-body:    'Work Sans', 'Helvetica Neue', sans-serif;

  /* Layout */
  --container-max:    1100px;
  --section-padding:  80px;
  --nav-height:       72px;

  /* Transitions */
  --transition: 0.2s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--color-text);
  background:
    radial-gradient(circle at top right, #f6ecda 0%, rgba(246,236,218,0) 42%),
    var(--color-white);
}

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

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-gold-light);
}

/* ── Container ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 11px 26px;
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
  border: 2px solid transparent;
}

.btn-lg {
  padding: 14px 34px;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
  text-align: center;
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-white);
  border-color: var(--color-gold);
}
.btn-primary:hover {
  background: var(--color-gold-light);
  border-color: var(--color-gold-light);
  color: var(--color-white);
}

.btn-secondary {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}
.btn-secondary:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}
.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-navy);
}

/* ── Section defaults ── */
.section {
  padding: var(--section-padding) 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.divider-line {
  width: 56px;
  height: 3px;
  background: var(--color-gold);
  margin-bottom: 36px;
}

.section-cta {
  margin-top: 48px;
  text-align: center;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 31, 45, 0.92);
  backdrop-filter: blur(8px);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-image {
  width: 210px;
  max-width: 45vw;
  height: auto;
}

/* Nav links */
.main-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.main-nav a {
  color: rgba(255,255,255,0.82);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--color-white);
  border-bottom-color: var(--color-gold);
}

.nav-cta {
  flex-shrink: 0;
  font-size: 0.88rem;
  padding: 8px 18px;
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(rgba(20, 34, 49, 0.78), rgba(20, 34, 49, 0.68)),
    url('images/home-hero.webp'),
    linear-gradient(
      135deg,
      var(--color-navy) 0%,
      var(--color-navy-light) 60%,
      #2e4a6a 100%
    );
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* Subtle geometric texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.02) 0px,
      rgba(255,255,255,0.02) 1px,
      transparent 1px,
      transparent 60px
    );
}

.hero-overlay {
  display: none; /* Kept for optional photo overlay if you add a bg image */
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 80px 24px;
  animation: fade-up 0.8s ease both;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-white);
  margin-bottom: 24px;
}

.hero h1 em {
  color: var(--color-gold);
  font-style: italic;
}

.hero-sub {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.84);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Angled bottom divider */
.hero-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--color-white);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

/* ─────────────────────────────────────────
   PAGE HERO (inner pages)
───────────────────────────────────────── */
.page-hero {
  background:
    linear-gradient(rgba(24, 39, 55, 0.8), rgba(24, 39, 55, 0.7)),
    var(--color-navy);
  background-size: cover;
  background-position: center;
  padding: 64px 0 56px;
  position: relative;
}

.about-page .page-hero {
  background-image:
    linear-gradient(rgba(24, 39, 55, 0.82), rgba(24, 39, 55, 0.72)),
    url('images/social-share.webp');
}

.services-page .page-hero {
  background-image:
    linear-gradient(rgba(24, 39, 55, 0.82), rgba(24, 39, 55, 0.72)),
    url('images/home-hero.webp');
}

.team-page .page-hero {
  background-image:
    linear-gradient(rgba(24, 39, 55, 0.8), rgba(24, 39, 55, 0.72)),
    url('images/team-hero.webp');
}

.contact-page .page-hero {
  background-image:
    linear-gradient(rgba(24, 39, 55, 0.82), rgba(24, 39, 55, 0.72)),
    url('images/contact-hero.webp');
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--color-white);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--color-white);
  margin-bottom: 10px;
}

.page-hero p {
  color: rgba(255,255,255,0.72);
  font-size: 1.1rem;
}

/* ─────────────────────────────────────────
   CARDS GRID (home services preview)
───────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.card {
  background: var(--color-white);
  border-radius: 8px;
  padding: 36px 28px;
  border-top: 4px solid var(--color-gold);
  border: 1px solid #ece6db;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: fade-up 0.6s ease both;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(18, 31, 45, 0.11);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: var(--color-navy);
  background: rgba(184, 145, 42, 0.14);
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.card p {
  color: var(--color-text-muted);
  font-size: 0.97rem;
}

/* ─────────────────────────────────────────
   TEAM TEASER (home)
───────────────────────────────────────── */
.team-teaser {
  background: var(--color-cream);
}

.team-teaser-inner {
  display: flex;
  align-items: center;
  gap: 64px;
  flex-wrap: wrap;
}

.team-teaser-text {
  flex: 1 1 320px;
}

.team-teaser-text h2 {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  color: var(--color-navy);
  margin-bottom: 16px;
}

.team-teaser-text p {
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

.team-teaser-values {
  flex: 1 1 240px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Value pills / tags */
.value-pill {
  background: #e9edf2;
  color: var(--color-navy);
  padding: 8px 22px;
  border-radius: 40px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.values-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ─────────────────────────────────────────
   CONSULTATION BANNER
───────────────────────────────────────── */
.consultation-banner {
  background: linear-gradient(120deg, #162738 0%, #20384f 100%);
}

.consultation-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.consultation-inner h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-white);
  margin-bottom: 8px;
}

.consultation-inner p {
  color: rgba(255,255,255,0.72);
}

/* ─────────────────────────────────────────
   ABOUT PAGE — Mission + FAQ
───────────────────────────────────────── */
.mission-statement {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  max-width: 720px;
}

/* FAQ accordion */
.faq-section {
  background: var(--color-cream);
}

.faq-list {
  max-width: 780px;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  padding: 22px 0;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--color-navy);
  cursor: pointer;
  text-align: left;
  gap: 12px;
}

.faq-question:hover {
  color: var(--color-gold);
}

.faq-icon {
  font-size: 1.4rem;
  line-height: 1;
  color: var(--color-gold);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
}

.faq-answer p {
  padding-bottom: 22px;
  color: var(--color-text-muted);
  line-height: 1.75;
}

/* Open state (toggled by JS) */
.faq-item.open .faq-answer {
  max-height: 400px;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

/* Affiliations */
.affiliations-section {
  background: var(--color-navy);
  padding: 48px 0;
  text-align: center;
}

.affiliations-section h3 {
  font-family: var(--font-heading);
  color: var(--color-gold);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.affiliations-section p {
  color: rgba(255,255,255,0.72);
}

/* ─────────────────────────────────────────
   SERVICES PAGE
───────────────────────────────────────── */
.services-intro {
  max-width: 680px;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 40px;
}

.services-intro-small {
  font-size: 0.92rem;
  margin-top: -22px;
  margin-bottom: 20px;
  color: #6f7782;
  letter-spacing: 0.02em;
}

/* Service tags/chips */
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag {
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  color: var(--color-navy);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 40px;
  transition: background var(--transition), border-color var(--transition);
}

button.tag {
  font-family: var(--font-body);
  cursor: pointer;
}

.tag:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-white);
}

.service-tag.active {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-white);
}

.service-detail-panel {
  margin-top: 20px;
  background: linear-gradient(145deg, #fffefb 0%, #f8f4eb 100%);
  border: 1px solid #e8e0d2;
  border-left: 4px solid var(--color-gold);
  border-radius: 10px;
  padding: 20px 22px;
  max-width: 760px;
  animation: fade-up 0.25s ease both;
}

.service-detail-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.74rem;
  color: #8b6d22;
  font-weight: 700;
  margin-bottom: 6px;
}

.service-detail-panel h3 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.service-detail-panel p {
  color: var(--color-text-muted);
  font-size: 0.97rem;
  margin: 0;
}

/* Right fit section */
.right-fit-section {
  background: var(--color-cream);
}

.right-fit-section p {
  color: var(--color-text-muted);
  max-width: 680px;
  margin-bottom: 12px;
}

/* Promise grid */
.promise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.promise-card {
  background: var(--color-cream);
  border-radius: 8px;
  padding: 32px 24px;
  border-left: 4px solid var(--color-gold);
}

.promise-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.promise-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-navy);
  margin-bottom: 10px;
}

.promise-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ─────────────────────────────────────────
   TEAM PAGE
───────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  background: var(--color-white);
  border-radius: 12px;
  padding: 40px 32px;
  border-top: 4px solid var(--color-gold);
}

.team-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-gold);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

.team-card-info h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-navy);
  margin-bottom: 4px;
}

.team-title {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 14px;
}

.team-card-info p {
  color: var(--color-text-muted);
  font-size: 0.97rem;
  margin-bottom: 10px;
}

.team-credentials {
  font-size: 0.82rem !important;
  color: var(--color-text-muted) !important;
  font-style: italic;
}

/* ─────────────────────────────────────────
   CONTACT PAGE
───────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-navy);
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.contact-email {
  color: var(--color-gold);
  font-weight: 600;
  font-size: 1.05rem;
}

.contact-details {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-detail-item strong {
  display: block;
  color: var(--color-navy);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.contact-detail-item p {
  margin: 0;
  font-size: 0.95rem;
}

/* Form */
.contact-form-wrapper {
  background: var(--color-white);
  border-radius: 12px;
  padding: 40px 36px;
  border-top: 4px solid var(--color-gold);
  box-shadow: 0 20px 35px rgba(20, 32, 45, 0.12);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-navy);
  letter-spacing: 0.03em;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 11px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: 5px;
  background: var(--color-white);
  color: var(--color-text);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-gold);
}

.form-group input:invalid:focus,
.form-group textarea:invalid:focus {
  border-color: #c62828;
}

.form-group textarea {
  resize: vertical;
}

.form-success {
  color: #2e7d32;
  font-weight: 600;
  padding: 12px 0;
}

.form-error {
  color: #c62828;
  font-weight: 600;
  padding: 12px 0;
}

.privacy-consent {
  border-top: 1px solid var(--color-border);
  margin-top: 4px;
  padding-top: 16px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: var(--color-gold);
}

.privacy-note {
  margin-top: 10px;
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.hp-field {
  display: none !important;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.site-footer {
  background: #132333;
  padding: 64px 0 0;
}

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

.footer-brand .footer-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-white);
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
}
.footer-brand .footer-logo em {
  color: var(--color-gold);
  font-style: normal;
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer-legal {
  font-size: 0.78rem !important;
  color: rgba(255,255,255,0.4) !important;
  margin-top: 12px !important;
}

.footer-col h4 {
  color: var(--color-gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col a,
.footer-col p {
  display: block;
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  margin-bottom: 8px;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--color-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 24px;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255,255,255,0.4);
  font-size: 0.82rem;
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 56px;
  }

  /* Mobile nav */
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-navy-light);
    padding: 12px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    border-left: none;
  }

  .nav-cta {
    display: none;
  }

  .hero-content {
    padding: 60px 24px;
  }

  .logo-image {
    width: 178px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .team-teaser-inner {
    gap: 40px;
  }

  .consultation-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contact-form-wrapper {
    padding: 28px 20px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.6rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .logo-image {
    width: 150px;
  }
}
