/* Lynch CPA Associates — shared styles */
:root {
  --navy: #0B1F3A;
  --navy-deep: #071528;
  --navy-mid: #16325A;
  --gold: #C4A35A;
  --gold-light: #D4B76A;
  --gold-dark: #A8883F;
  --cream: #F7F4EE;
  --cream-dark: #EDE8DC;
  --white: #FFFFFF;
  --text: #1A2332;
  --text-muted: #5A6577;
  --border: #D9D2C4;
  --shadow: 0 4px 24px rgba(11, 31, 58, 0.08);
  --shadow-hover: 0 8px 32px rgba(11, 31, 58, 0.14);
  --radius: 10px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --max: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a { color: var(--navy-mid); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-dark); }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--navy);
  padding: 0.5rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ========== Header / Nav ========== */
.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  text-decoration: none;
  flex-shrink: 0;
}
.logo:hover { color: var(--white); }
.logo-harp {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  object-fit: contain;
}
.logo-text {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.logo-text span {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(196, 163, 90, 0.5);
  color: var(--gold);
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}
.nav-toggle:hover, .nav-toggle:focus {
  background: rgba(196, 163, 90, 0.15);
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  color: rgba(255,255,255,0.88);
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold-light);
  background: rgba(196, 163, 90, 0.12);
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

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

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(196, 163, 90, 0.1);
}

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

.nav-cta {
  margin-left: 0.5rem;
  padding: 0.5rem 1.1rem !important;
  background: var(--gold) !important;
  color: var(--navy) !important;
  border-radius: 6px;
  font-weight: 600 !important;
}
.nav-cta:hover {
  background: var(--gold-light) !important;
  color: var(--navy) !important;
}

/* ========== Hero ========== */
.hero {
  background: linear-gradient(145deg, var(--navy-deep) 0%, var(--navy) 45%, var(--navy-mid) 100%);
  color: var(--white);
  padding: 4.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(196,163,90,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; max-width: 680px; }

.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--white);
}

.hero-sub {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1rem;
  max-width: 540px;
}

.hero-location {
  font-size: 0.9rem;
  color: var(--gold);
  letter-spacing: 0.03em;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ========== Sections ========== */
main { flex: 1; }

.section {
  padding: 3.5rem 0;
}

.section-cream { background: var(--cream); }
.section-white { background: var(--white); }

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--navy);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.section-header p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.gold-rule {
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

/* ========== Cards ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  border-color: var(--gold);
}
a.card { color: inherit; text-decoration: none; }
a.card:hover { color: inherit; }

.card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  color: var(--gold);
}
.card h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
}
.card .card-link {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-dark);
}
.card:hover .card-link { color: var(--navy); }

/* Services grid — denser */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.service-card h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ========== About ========== */
.about-lead {
  max-width: 680px;
  margin: 0 auto 2.5rem;
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.value-card {
  text-align: center;
  padding: 1.75rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.value-card .value-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
}
.value-card h3 {
  color: var(--navy);
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
}
.value-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.cta-banner {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius);
}
.cta-banner h2 {
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}
.cta-banner p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.25rem;
}

/* ========== Contact ========== */
.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.15rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--cream);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 163, 90, 0.25);
  background: var(--white);
}
.form-group textarea { min-height: 120px; resize: vertical; }

.info-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.info-card h3 {
  color: var(--gold);
  margin-bottom: 1.25rem;
  font-size: 1.15rem;
}
.info-card .info-item {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.info-card .info-item strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 0.2rem;
  font-weight: 600;
}
.info-card a {
  color: rgba(255,255,255,0.9);
}
.info-card a:hover { color: var(--gold-light); }
.info-note {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(196, 163, 90, 0.3);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
}

/* ========== Page hero (inner pages) ========== */
.page-hero {
  background: linear-gradient(145deg, var(--navy-deep), var(--navy));
  color: var(--white);
  padding: 2.75rem 0 2.5rem;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  margin-bottom: 0.4rem;
}
.page-hero p {
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin: 0 auto;
}

/* ========== Footer ========== */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
  position: relative;
  overflow: hidden;
}

.footer-shamrock {
  position: absolute;
  right: 5%;
  bottom: 10%;
  width: 90px;
  height: 90px;
  opacity: 0.9;
  pointer-events: none;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.footer-brand img, .footer-brand .logo-harp {
  width: 28px;
  height: 28px;
}
.footer-brand span {
  font-weight: 600;
  color: var(--white);
  font-size: 0.95rem;
}

.footer-meta {
  font-size: 0.875rem;
  line-height: 1.8;
}
.footer-meta a { color: var(--gold); }
.footer-meta a:hover { color: var(--gold-light); }

.footer-bottom {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  position: relative;
  z-index: 1;
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .card-grid,
  .values-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

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

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    padding: 0.75rem 1.5rem 1.25rem;
    gap: 0.15rem;
    border-top: 1px solid rgba(196, 163, 90, 0.2);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: 0.75rem 1rem;
    width: 100%;
  }
  .nav-cta {
    margin-left: 0 !important;
    margin-top: 0.35rem;
    text-align: center;
  }

  .header-inner { position: relative; }

  .hero { padding: 3rem 0 2.75rem; }
  .section { padding: 2.75rem 0; }
}

@media (max-width: 480px) {
  .logo-text { font-size: 0.95rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
}
