/* ============================================================
   JCC Crest Accounting — Base Stylesheet
   Layout: white body, brand gradient on nav / hero / footer
   Fonts: Cormorant Garamond, Poppins, DM Sans
   ============================================================ */

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

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

/* ── Root tokens ── */
:root {
  --wine-dark:  #5C2530;
  --wine-mid:   #843F47;
  --rose-light: #C98B80;
  --white:      #FFFFFF;
  --text:       #333333;
  --grey-bg:    #F8F8F8;

  --gradient: linear-gradient(to right, var(--wine-dark), var(--wine-mid), var(--rose-light));

  --font-brand:    'Cormorant Garamond', Georgia, serif;
  --font-headline: 'Poppins', sans-serif;
  --font-body:     'DM Sans', sans-serif;

  --nav-height:  64px;
  --max-width:   1100px;
  --section-gap: 80px;
}

/* ── Base ── */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  min-height: 100vh;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ── Typography ── */
.brand-name {
  font-family: var(--font-brand);
  font-weight: 600;
}

h1, h2, h3 {
  font-family: var(--font-headline);
  font-weight: 700;
  line-height: 1.2;
  color: var(--wine-dark);
}

/* Headings inside gradient sections stay white */
.section-hero h1,
.section-hero h2,
.section-hero h3,
.site-footer h1,
.site-footer h2,
.site-footer h3 {
  color: var(--white);
}

/* ── Layout ── */
.container {
  width: min(var(--max-width), 100% - 2rem);
  margin-inline: auto;
}

section {
  padding-block: var(--section-gap);
}

/* ── Section backgrounds ── */
.section-white {
  background: var(--white);
}

.section-grey {
  background: var(--grey-bg);
}

.section-hero {
  background: var(--gradient);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

/* ── Hero section ── */
#hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 3rem;
  align-items: center;
  padding-block: 4rem;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.25rem;
}

.hero-content h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

/* Button for use on gradient sections — white bg, Dark Wine text */
.btn-hero {
  background: var(--white);
  color: var(--wine-dark);
  border: none;
}

.btn-hero:hover {
  background: rgba(255, 255, 255, 0.92);
  color: var(--wine-dark);
}

/* Accent bar — thin Mid Wine line above a section */
.section-accent-top {
  border-top: 3px solid var(--wine-mid);
}

/* ── Inner page headers ── */
.page-header {
  background: var(--gradient);
  color: var(--white);
  position: relative;
  overflow: hidden;
  height: 120px;
  padding-block: 0;
  display: flex;
  align-items: center;
}

.page-header h1,
.page-header h2,
.page-header h3,
.page-header .section-intro {
  color: var(--white);
}

.page-header .section-header {
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

/* ── Navigation ── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--gradient);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--white);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: var(--white);
  opacity: 0.85;
  transition: opacity 0.2s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  opacity: 1;
}

.nav-links a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* "Book a Call" — white bg, Dark Wine text, 1px Dark Wine border */
.nav-cta {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--wine-dark);
  background: var(--white);
  border: 1px solid var(--wine-dark);
  border-radius: 4px;
  padding: 0.5rem 1.25rem;
  transition: background 0.2s;
  white-space: nowrap;
}

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.88);
  color: var(--wine-dark);
}

.nav-cta.nav-cta-active {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Logo mark sizing — controlled via CSS, not inline style */
.nav-logo-img {
  height: 120px;
  width: auto;
}

/* New mobile hamburger and dropdown — hidden on desktop */
#nav-hamburger  { display: none; }
#nav-mobile-menu { display: none; }

/* ── Page body offset for fixed nav ── */
.page-content {
  padding-top: var(--nav-height);
  background: var(--white);
}

/* ── Decorative rings (hero only) ── */
.rings {
  position: absolute;
  left: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 480px;
  height: 480px;
  pointer-events: none;
}

.rings circle {
  fill: none;
  stroke: var(--white);
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  transition: opacity 0.2s;
  cursor: pointer;
  border: none;
}

/* Primary CTA — brand gradient, white text */
.btn-primary {
  background: var(--gradient);
  color: var(--white);
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-primary:disabled,
.btn-primary:disabled:hover {
  background: #CCCCCC;
  color: var(--white);
  cursor: not-allowed;
  opacity: 1;
}

/* Outline variant — for use on white/grey sections */
.btn-outline {
  background: transparent;
  color: var(--wine-dark);
  border: 1.5px solid var(--wine-mid);
}

.btn-outline:hover {
  background: var(--grey-bg);
}

/* Ghost variant — for use inside gradient sections */
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

/* ── Section header (reusable centred intro block) ── */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h1,
.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.section-intro {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  max-width: 540px;
  margin-inline: auto;
  line-height: 1.65;
}

/* ── Service cards ── */
.service-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: stretch;
}

.service-card {
  background: var(--white);
  border: 1px solid rgba(201, 139, 128, 0.4);
  border-radius: 10px;
  padding: 2rem 2.25rem;
  box-shadow: 0 2px 16px rgba(92, 37, 48, 0.07);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  /* clickable card resets */
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.service-card:hover {
  box-shadow: 0 4px 24px rgba(92, 37, 48, 0.13);
  border-color: rgba(201, 139, 128, 0.7);
}

/* Services page — clickable cards with hover bar */
#services-cards .service-card {
  position: relative;
  overflow: hidden;
  padding-bottom: 3rem; /* reserves space so bar never overlaps content */
}

.service-card__hover-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--wine-dark);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-align: center;
  padding: 8px 0;
  opacity: 0;
  transition: opacity 0.2s;
}

.service-card:hover .service-card__hover-bar {
  opacity: 1;
}

.service-card__title {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--wine-dark);
  line-height: 1.3;
}

.service-card__price-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.price-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: #999999;
}

.price-original {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #999999;
  text-decoration: line-through;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.price-current {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--wine-dark);
  line-height: 1.2;
}

.price-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  background: var(--wine-mid);
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
}

.service-card__desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.65;
  margin-top: auto;
}

/* ── CTA section (home + about) ── */
#cta,
#about-cta {
  padding-block: 6rem;
}

.cta-inner {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.cta-inner h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1.25rem;
}

.cta-sub {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.65;
  margin-bottom: 2rem;
}

/* ── About page — bio layout ── */
.bio-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 4rem;
  align-items: start;
}

.bio-photo-placeholder {
  background: var(--grey-bg);
  border: 1px solid rgba(201, 139, 128, 0.35);
  border-radius: 12px;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: #aaaaaa;
}

.bio-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.bio-text p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  line-height: 1.8;
}

/* ── About page — credentials ── */
.credentials-list {
  list-style: none;
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: center;
  padding: 0;
}

.credentials-list li {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  line-height: 1.5;
  padding-left: 1.4rem;
  position: relative;
  text-align: left;
}

.credentials-list li::before {
  content: '●';
  position: absolute;
  left: 0;
  color: var(--wine-mid);
  font-size: 0.55em;
  top: 0.35em;
}

/* ── Testimonial cards ── */
.testimonial-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid rgba(201, 139, 128, 0.4);
  border-radius: 10px;
  padding: 2rem 2.25rem;
  box-shadow: 0 2px 16px rgba(92, 37, 48, 0.07);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial-stars {
  color: var(--wine-mid);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.testimonial-quote {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.75;
  flex-grow: 1;
}

.testimonial-attr {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--wine-dark);
  margin-top: auto;
}

/* ── Card inner sections (service detail blocks) ── */
.card-section {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.card-label {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--wine-dark);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0;
}

.card-list li {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.55;
}

.card-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--wine-mid);
}

.card-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.65;
}

.card-note {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: #666666;
  margin-top: auto;
}

.services-disclaimer {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.8rem;
  color: #666666;
  text-align: center;
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.services-cta {
  text-align: center;
}

/* ── Contact form ── */
.contact-form-wrap {
  max-width: 600px;
  margin-inline: auto;
  background: var(--white);
  border-radius: 10px;
  padding: 2.75rem 3rem;
  box-shadow: 0 2px 24px rgba(92, 37, 48, 0.08);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Two-column row (First / Last name) */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.form-input,
.form-select,
.form-textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid #DDDDDD;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  width: 100%;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--wine-mid);
  box-shadow: 0 0 0 3px rgba(132, 63, 71, 0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #999999;
}

/* Placeholder state for non-required selects (toggled via JS) */
.form-select.select-placeholder {
  color: #999999;
}

/* Active (real option chosen) state for non-required selects */
.form-select.select-active {
  color: var(--text);
}

/* Select: grey until a real option is chosen */
.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235C2530' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 2.75rem;
  cursor: pointer;
  color: #999999;
}

.form-select[required]:valid {
  color: var(--text);
}

.form-select option {
  color: var(--text);
}

.form-textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.6;
}

.contact-form button[type="submit"] {
  display: block;
  width: 100%;
  text-align: center;
}

/* LinkedIn hover — can't be expressed inline */
.contact-info-link:hover {
  color: #843F47 !important;
}

/* ── Footer ── */
.site-footer {
  background: var(--gradient);
  color: var(--white);
  padding-block: 3rem;
  font-size: 0.8rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
}

.footer-brand {
  text-align: left;
}

.footer-tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.4rem;
}

.footer-secondary {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  flex-shrink: 0;
}

.footer-qb-logo {
  height: 32px;
  width: auto;
  opacity: 0.8;
}

.footer-linkedin {
  color: var(--white);
  opacity: 0.75;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s;
  margin-top: 12px;
}

.footer-linkedin svg {
  width: 28px;
  height: 28px;
}

.footer-linkedin:hover {
  opacity: 1;
}

.footer-qb-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  align-self: flex-end;
}

.footer-qb-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  text-align: right;
}

/* ── Bio location ── */
.bio-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 1rem;
}

/* ── Credentials two-column layout ── */
.credentials-columns {
  display: flex;
  align-items: stretch;
}

.credentials-col-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-left: 32px;
  padding-right: 32px;
}

.credentials-col-left .credentials-list {
  list-style: disc;
  list-style-position: inside;
  text-align: left;
  padding-left: 0;
}

.credentials-col-left .credentials-list li {
  padding-left: 0;
  text-align: left;
}

.credentials-col-left .credentials-list li::before {
  display: none;
}

.credentials-col-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-left: 48px;
  border-left: 1px solid #dddddd;
}

.credentials-col-heading {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* ── Trademark notice ── */
.trademark-notice {
  font-size: 0.65rem;
  color: #999999;
  font-weight: 400;
  margin-top: 1.5rem;
  text-align: left;
  align-self: flex-start;
  width: 100%;
  max-width: 100%;
  line-height: 1.5;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  :root {
    --nav-height: 56px;
    --section-gap: 56px;
  }

  .nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav-logo-img {
    height: 96px;
  }

  /* Hide nav links on mobile */
  .nav-links {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-block: 3rem;
  }

  .hero-spacer {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    text-align: center;
  }

  .service-cards {
    grid-template-columns: 1fr;
  }

  .testimonial-cards {
    grid-template-columns: 1fr;
  }

  #cta,
  #about-cta {
    padding-block: 4rem;
  }

  .bio-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .bio-photo-placeholder {
    max-width: 240px;
    margin-inline: auto;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-wrap {
    padding: 2rem 1.5rem;
  }

  /* ── Mobile hamburger menu ── */

  /* Suppress desktop Contact Us pill */
  .nav-cta { display: none; }

  /* New hamburger button */
  #nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
  }

  #nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
  }

  /* Dropdown panel */
  #nav-mobile-menu {
    display: block;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--gradient);
    z-index: 99;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.25s ease;
  }

  #nav-mobile-menu.is-open {
    max-height: 400px;
  }

  /* Stacked nav links */
  .mobile-nav-link {
    display: block;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--white);
    opacity: 0.8;
    text-align: center;
    padding: 16px 0;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-nav-link.mobile-nav-active {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  /* Contact Us button inside dropdown */
  .mobile-nav-cta {
    display: block;
    background: var(--white);
    color: var(--wine-dark);
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-align: center;
    text-decoration: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    margin: 16px;
  }

  .mobile-nav-cta.mobile-nav-active {
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  /* Credentials columns — stack on mobile */
  .credentials-columns {
    flex-direction: column;
    gap: 2rem;
  }

  .credentials-col-left {
    padding-right: 0;
  }

  .credentials-col-right {
    border-left: none;
    padding-left: 0;
    width: 100%;
    align-items: center;
  }

  .trademark-notice {
    max-width: 100%;
    width: 100%;
    align-self: flex-start;
    text-align: left;
  }

  /* Footer — stack and center on mobile */
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-brand {
    text-align: center;
  }

}
