/* ============================================
   Community Income Tax — Warm St. Augustine Design
   A family-friendly, locally-inspired CPA website
   ============================================ */

:root {
  /* Professional palette aligned with the redesigned site */
  --cream: #f7f8fb;
  --warm-white: #ffffff;
  --sand: #eef3f7;
  --terracotta: #1d5f93;
  --terracotta-dark: #143f64;
  --gold: #1f715f;
  --gold-light: #f2b66f;
  --brown-deep: #101827;
  --brown-mid: #596273;
  --brown-muted: #7a8394;
  --ink: #172033;
  --muted: #596273;
  --subtle: #7a8394;
  --line: #dfe4eb;
  --shadow-warm: 0 22px 60px rgba(16, 24, 39, 0.13);
  --shadow-card: 0 16px 38px rgba(16, 24, 39, 0.06);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--warm-white);
  background: var(--brown-deep);
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Container */
.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

.section-pad {
  padding: clamp(48px, 6vw, 96px) 0;
}

/* Section labels */
.section-label {
  margin: 0 0 10px;
  color: var(--terracotta);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: system-ui, -apple-system, sans-serif;
}

/* Headings */
h1, h2, h3 {
  color: var(--brown-deep);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.8rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.25rem;
}

p {
  color: var(--muted);
  overflow-wrap: anywhere;
}

/* Section header */
.section-header.centered {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--brown-muted);
  max-width: 540px;
  margin: 12px auto 0;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--brown-deep);
}

.brand-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

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

.brand-name {
  font-size: clamp(1.28rem, 2.3vw, 1.65rem);
  font-weight: 800;
  color: var(--brown-deep);
}

.brand-tagline {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
}

/* Nav toggle (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--brown-deep);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Main nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 34px);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.main-nav a {
  color: var(--brown-mid);
  transition: color 0.2s ease;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover {
  color: var(--terracotta);
  border-bottom-color: var(--terracotta);
}

.nav-phone {
  background: var(--brown-deep) !important;
  color: var(--cream) !important;
  padding: 10px 18px !important;
  border-radius: var(--radius-sm) !important;
  border-bottom: none !important;
  font-size: 0.98rem !important;
}

.nav-phone:hover {
  background: var(--terracotta-dark) !important;
  color: var(--cream) !important;
  border-bottom-color: transparent !important;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: clamp(480px, 65vh, 620px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("assets/office-hero.png") center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 24, 39, 0.9) 0%, rgba(16, 24, 39, 0.64) 44%, rgba(16, 24, 39, 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--cream);
  max-width: 680px;
  padding: clamp(48px, 6vw, 72px) 0;
}

.hero-eyebrow {
  margin: 0 0 16px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.hero-content h1 {
  color: var(--cream);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(255, 255, 255, 0.84);
  max-width: 560px;
  line-height: 1.7;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 190px));
  gap: 14px;
  margin-top: 28px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: all 0.25s ease;
  border: 2px solid transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-warm {
  background: var(--terracotta);
  color: var(--cream) !important;
  border-color: var(--terracotta);
}

.btn-warm:hover {
  background: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
  box-shadow: 0 6px 24px rgba(29, 95, 147, 0.28);
}

.btn-outline-warm {
  background: transparent;
  color: var(--cream) !important;
  border-color: rgba(255, 255, 255, 0.38);
}

.btn-outline-warm:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--cream);
}

.btn-outline-dark {
  background: transparent;
  color: var(--brown-deep) !important;
  border-color: var(--line);
}

.btn-outline-dark:hover {
  background: var(--sand);
  border-color: var(--terracotta);
  color: var(--terracotta) !important;
}

/* ============================================
   TRUST BAR
   ============================================ */
.trust-bar {
  background: var(--warm-white);
  border-bottom: 1px solid var(--line);
  padding: clamp(20px, 3vw, 36px) 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.trust-item {
  text-align: center;
  padding: 8px 16px;
}

.trust-icon {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.trust-item strong {
  display: block;
  color: var(--brown-deep);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.trust-item span {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.92rem;
  color: var(--brown-muted);
}

/* ============================================
   WELCOME SECTION
   ============================================ */
.welcome-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.welcome-image-wrap {
  position: relative;
}

.welcome-image {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-warm);
}

.welcome-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--gold-light);
  border-radius: var(--radius-lg);
  opacity: 0.3;
  z-index: -1;
}

.welcome-text h2 {
  margin-bottom: 20px;
}

.welcome-text p {
  margin-bottom: 14px;
  font-size: 1.05rem;
}

.welcome-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.value-item {
  text-align: center;
  padding: 20px 14px;
  background: var(--warm-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.value-icon {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--terracotta);
}

.value-item strong {
  display: block;
  color: var(--brown-deep);
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.value-item span {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.92rem;
  color: var(--brown-muted);
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  background: var(--warm-white);
}

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

.warm-card {
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(24px, 3vw, 32px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.warm-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-warm);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.card-emoji {
  font-size: 1.6rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sand);
  border-radius: var(--radius-sm);
}

.card-header h3 {
  color: var(--brown-deep);
  font-size: 1.2rem;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-list li {
  position: relative;
  padding: 10px 0 10px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

.service-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

/* ============================================
   TEAM
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  max-width: 900px;
  margin-inline: auto;
}

.team-card {
  text-align: center;
  padding: clamp(28px, 4vw, 40px) !important;
}

.photo-wrap {
  width: 180px;
  height: 230px;
  margin: 0 auto 20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.team-card h3 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  margin-bottom: 4px;
}

.team-role {
  color: var(--terracotta) !important;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px !important;
}

.team-card p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================
   RESOURCES
   ============================================ */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 28px);
  margin-bottom: clamp(24px, 4vw, 40px);
}

.resource-group h3 {
  color: var(--brown-deep);
  font-size: 1.15rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
}

.resource-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  color: var(--terracotta) !important;
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.resource-link:hover {
  color: var(--terracotta-dark) !important;
}

.link-arrow {
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.resource-link:hover .link-arrow {
  transform: translateX(4px);
}

.resource-desc {
  margin: 0 0 16px !important;
  padding-left: 0 !important;
  font-size: 0.88rem !important;
  line-height: 1.5 !important;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.quick-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 18px;
  background: var(--warm-white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--brown-deep) !important;
  transition: all 0.25s ease;
}

.quick-link-btn:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--cream) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(29, 95, 147, 0.24);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  background: linear-gradient(135deg, var(--brown-deep) 0%, #143f64 100%);
  color: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.contact-info h2 {
  color: var(--cream);
  margin-bottom: 16px;
}

.contact-info > p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.05rem;
  max-width: 480px;
}

.contact-highlights {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.highlight-icon {
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
}

.highlight-item strong {
  display: block;
  color: var(--cream);
  font-size: 0.92rem;
}

.highlight-item span {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
}

.map-panel {
  overflow: hidden;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.map-panel iframe {
  width: 100%;
  height: 218px;
  display: block;
  border: 0;
}

.contact-panel {
  padding: clamp(28px, 4vw, 36px) !important;
  background: var(--warm-white) !important;
}

.panel-title {
  color: var(--brown-deep) !important;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 700;
  margin-bottom: 4px !important;
}

.panel-subtitle {
  color: var(--brown-muted) !important;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 24px !important;
}

.contact-body {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(220px, 1fr);
  gap: 18px;
  padding-top: 20px;
  border-top: 1.5px solid var(--line);
  margin-bottom: 24px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-link-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--terracotta) !important;
  font-family: system-ui, -apple-system, sans-serif;
  transition: transform 0.2s ease;
}

.contact-link-item:hover {
  transform: translateX(4px);
}

.link-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sand);
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
}

.contact-link-item strong {
  display: block;
  color: var(--brown-deep) !important;
  font-size: 0.92rem;
}

.contact-link-item span {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.92rem;
  color: var(--muted) !important;
}

.contact-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.contact-panel .btn {
  flex: 1;
  font-size: 0.92rem;
  min-height: 46px;
}

.review-link {
  display: block;
  text-align: center;
  padding: 12px 16px;
  color: var(--terracotta) !important;
  background: var(--sand);
  border-radius: var(--radius-sm);
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  transition: all 0.25s ease;
}

.review-link:hover {
  background: var(--terracotta);
  color: var(--cream) !important;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--warm-white);
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

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

.site-footer p {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.92rem;
  color: var(--brown-muted);
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.92rem;
}

.footer-nav a {
  color: var(--brown-muted);
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--terracotta);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 980px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: calc(100vh - 84px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: start;
    align-items: center;
    gap: 24px;
    padding: 40px 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 49;
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .contact-body {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resources-grid {
    grid-template-columns: 1fr;
  }

  .quick-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .welcome-values {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .brand-tagline {
    font-size: 0.78rem;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(16, 24, 39, 0.84) 0%, rgba(16, 24, 39, 0.72) 56%, rgba(16, 24, 39, 0.52) 100%);
  }

  .map-panel iframe {
    height: 260px;
  }

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

  .services-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .quick-links {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

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

  .btn {
    width: 100%;
  }

  .photo-wrap {
    width: 160px;
    height: 200px;
  }

  .welcome-accent {
    right: 0;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}
