/* Bridgeroy Accounting Services — site styles */

:root {
  --navy: #1E293E;
  --gold: #CBA54D;
  --light-gold: #E0C585;
  --bg: #F9FAFB;
  --white: #FFFFFF;
  --border: #DCE0E5;
  --muted: #676F7E;
  --header-h: 72px;
  --radius: 8px;
  --max: 1120px;
  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--navy);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

.container {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

/* ——— Header ——— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(30, 41, 62, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(203, 165, 77, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo {
  height: 44px;
  width: 44px;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 4px;
  background: var(--white);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.brand-sub {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.btn-gold:hover,
.btn-gold:focus-visible {
  background: #d4b35c;
  border-color: #d4b35c;
  box-shadow: 0 4px 14px rgba(203, 165, 77, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(203, 165, 77, 0.12);
}

.btn-nav {
  padding: 10px 20px;
  font-size: 0.85rem;
  color: var(--white);
}

.btn-nav:hover,
.btn-nav:focus-visible {
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: 1px solid rgba(203, 165, 77, 0.4);
  border-radius: 6px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--gold);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 48px) 24px 64px;
  background: var(--navy) url("assets/hero-bg.jpg") center / cover no-repeat;
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(30, 41, 62, 0.8);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.eyebrow {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 48px;
  height: 1px;
  background: var(--gold);
}

.section-eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.2;
  color: var(--light-gold);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

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

/* ——— Sections shared ——— */
.section {
  padding: 96px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  color: var(--navy);
  margin-bottom: 16px;
}

.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--gold);
  margin: 16px auto 0;
}

/* ——— Services ——— */
.services {
  background: var(--bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 28px rgba(30, 41, 62, 0.1);
}

.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(224, 197, 133, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.icon-circle svg {
  width: 22px;
  height: 22px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.service-card li {
  position: relative;
  padding-left: 16px;
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 8px;
  line-height: 1.5;
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--gold);
}

/* ——— About ——— */
.about {
  background: var(--navy);
  color: var(--white);
}

.about .section-title {
  color: var(--light-gold);
}

.about-copy {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
}

.about-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 48px;
  max-width: 720px;
  margin: 0 auto;
}

.about-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.92);
}

.check-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(203, 165, 77, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.check-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ——— Contact ——— */
.contact {
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 28px rgba(30, 41, 62, 0.1);
}

.contact-card .icon-circle {
  margin: 0 auto 18px;
}

.contact-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.contact-card a {
  color: var(--muted);
  font-size: 1rem;
  transition: color 0.2s ease;
  word-break: break-word;
}

.contact-card a:hover,
.contact-card a:focus-visible {
  color: var(--gold);
}

/* ——— Footer ——— */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  padding: 56px 24px 40px;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.footer-brand-sub {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  margin-top: 4px;
}

.footer-tagline {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--light-gold);
  margin: 18px 0 20px;
}

.footer-rule {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 20px;
  border: none;
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 10px;
}

.footer-links {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--gold);
}

.footer-sep {
  margin: 0 8px;
  opacity: 0.5;
}


/* ——— Free tool teaser ——— */
.tool-teaser {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.tool-teaser-copy {
  max-width: 720px;
  margin: 0 auto 32px;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--muted);
}

.tool-teaser-actions {
  display: flex;
  justify-content: center;
}

/* ——— Legal pages ——— */
.legal-page {
  padding: calc(var(--header-h) + 64px) 0 80px;
  min-height: 70vh;
}

.legal-page h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.25rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.legal-page h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--gold);
  margin: 16px 0 28px;
}

.legal-page h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--navy);
  margin: 28px 0 10px;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  margin-bottom: 12px;
  max-width: 720px;
  line-height: 1.7;
}

.legal-page ul {
  margin: 0 0 16px 20px;
  list-style: disc;
}

.legal-page a {
  color: var(--gold);
}

.legal-meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 24px;
}

/* ——— Responsive ——— */
@media (max-width: 960px) {
  .services-grid,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 24px 24px;
    background: rgba(30, 41, 62, 0.98);
    border-bottom: 1px solid rgba(203, 165, 77, 0.2);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .btn-nav {
    margin-top: 16px;
    width: 100%;
  }

  .services-grid,
  .contact-grid,
  .about-points {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 0;
  }

  .brand-sub {
    font-size: 0.55rem;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 32px, var(--max));
  }

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

  .btn {
    width: 100%;
  }
}


/* ——— Free tools grid ——— */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 8px;
}

.tool-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 8px 24px rgba(30, 41, 62, 0.04);
}

.tool-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--navy);
}

.tool-card p {
  color: var(--muted);
  flex: 1;
  line-height: 1.65;
}

.tool-card .btn {
  align-self: flex-start;
}

@media (max-width: 960px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
}


/* ——— Free tools hub ——— */
.hub-hero {
  padding-bottom: 24px;
}

.hub-tools {
  padding-top: 16px;
}

.tool-card-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

.tool-card h2 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  color: var(--navy);
  margin: 0;
}

.hub-whatsapp {
  margin-top: 40px;
  padding: 28px 24px;
  background: var(--navy);
  color: #F9FAFB;
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hub-whatsapp p {
  margin: 0;
  max-width: 640px;
  line-height: 1.65;
  color: rgba(249, 250, 251, 0.88);
}

.hub-whatsapp .btn-navy {
  background: var(--gold);
  color: var(--navy);
  border: none;
}

.hub-whatsapp .btn-navy:hover,
.hub-whatsapp .btn-navy:focus-visible {
  background: var(--light-gold);
}

.tool-teaser-copy a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: underline;
}

.back-to-tools {
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.back-to-tools a {
  color: var(--gold);
  font-weight: 600;
}

.back-to-tools a:hover,
.back-to-tools a:focus-visible {
  text-decoration: underline;
}


/* ——— Free tools FAQ (AEO) ——— */
.hub-faq {
  padding-top: 8px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
  margin-top: 8px;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 18px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  padding: 14px 0;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--gold);
  font-weight: 700;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p {
  color: var(--muted);
  padding: 0 0 16px;
  line-height: 1.65;
}
.faq-item a { color: var(--navy); text-decoration: underline; }
.faq-item a:hover { color: var(--gold); }

@media (min-width: 961px) {
  .hub-tools .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
