/*
  Oak Haven CPAs — static rebuild stylesheet.
  Colors/fonts pulled directly from the live oakhavencpas.com (see README
  for how they were measured): body font PT Sans, heading font Roboto,
  heading/body text colors, accent blue, and dark footer all match.
*/

@import url('https://fonts.googleapis.com/css2?family=PT+Sans:wght@400;700&family=Roboto:wght@400;700&display=swap');

:root{
  --text: #464646;
  --heading: #1c2122;
  --accent: #125e92;
  --accent-dark: #0e4a74;
  --footer-bg: #363636;
  --divider: #eaeaea;
  --bg: #ffffff;
  --max-width: 1170px;
  --font-body: "PT Sans", sans-serif;
  --font-heading: "Roboto", sans-serif;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.7;
}
img{ max-width: 100%; height: auto; display: block; }
a{ color: var(--accent); text-decoration: none; }
a:hover{ color: var(--accent-dark); }
ul, ol{ padding-left: 1.25em; }

h1, h2, h3, h4{
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--heading);
  line-height: 1.3;
  margin: 0 0 0.5em;
}
h1{ font-size: 2.1rem; }
h2{ font-size: 1.85rem; text-transform: uppercase; }
h3{ font-size: 1.3rem; text-transform: uppercase; }
p{ margin: 0 0 1.2em; }

.container{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* -------- Accent divider under headings -------- */
.divider{
  width: 40px;
  height: 3px;
  background: var(--accent);
  margin: 14px 0 20px;
}
.divider--center{ margin-left: auto; margin-right: auto; }

/* -------- Buttons -------- */
.btn{
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  padding: 12px 26px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background .15s ease, color .15s ease;
}
.btn:hover{
  background: var(--accent);
  color: #fff;
}

/* -------- Top bar (phone) -------- */
.topbar{
  text-align: center;
  padding: 8px 0;
  font-size: 0.85rem;
  color: var(--text);
  border-bottom: 1px solid var(--divider);
}
.topbar a{ color: var(--text); }
.topbar a:hover{ color: var(--accent); }

/* -------- Header / nav -------- */
.site-header{
  padding: 18px 0;
  background: #fff;
}
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo img{ height: 66px; width: auto; }

.nav-toggle{
  display: none;
  background: none;
  border: 1px solid var(--heading);
  border-radius: 3px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span{
  display: block;
  width: 22px;
  height: 2px;
  background: var(--heading);
  margin: 4px 0;
}

.main-nav ul{
  list-style: none;
  display: flex;
  gap: 34px;
  margin: 0;
  padding: 0;
}
.main-nav a{
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--heading);
}
.main-nav a:hover,
.main-nav .is-active a{
  color: var(--accent);
}

@media (max-width: 860px){
  .nav-toggle{ display: block; }
  .main-nav{
    display: none;
    position: absolute;
    left: 0; right: 0;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    z-index: 50;
  }
  .main-nav.is-open{ display: block; }
  .main-nav ul{ flex-direction: column; padding: 10px 20px 20px; gap: 0; }
  .main-nav li{ border-bottom: 1px solid var(--divider); }
  .main-nav a{ display: block; padding: 12px 0; }
  .site-header .container{ position: relative; flex-wrap: wrap; }
}

/* -------- Hero (home) -------- */
.hero{
  position: relative;
  background-size: cover;
  background-position: center;
  color: var(--heading);
  padding: 90px 0;
}
.hero-inner{ max-width: 620px; }
.hero h1, .heading{
  text-transform: uppercase;
  font-size: 2.6rem;
  margin-bottom: 0.3em;
}
.hero .subhead{
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--heading);
  margin-bottom: 0.6em;
}
.hero p.lead{ font-size: 1.05rem; }

@media (max-width: 700px){
  .hero{ padding: 56px 0; }
  .hero h1{ font-size: 1.9rem; }
}

/* -------- Banner Slider -------- */
.banner-slider{
  position: relative;
  min-height: 500px;
}
.slider-slide{
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}
.slider-slide.is-active{
  opacity: 1;
}

@media (max-width: 700px){
  .banner-slider{ min-height: 350px; }
}

/* -------- Promo band (home, second slide content) -------- */
.promo{
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 70px 0;
}
.promo::before{
  content: "";
  position: absolute; inset: 0;
  background: rgba(15, 30, 43, 0.55);
}
.promo .container{ position: relative; z-index: 1; max-width: 640px; }
.promo h2, .promo .subhead{ color: #fff; }
.promo p{ color: #eef2f5; }

/* -------- Three-column "who/what/how" -------- */
.trio{
  padding: 70px 0;
}
.trio-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
@media (max-width: 860px){
  .trio-grid{ grid-template-columns: 1fr; }
}
.trio-item h3{ margin-bottom: 0; }

/* -------- Page banner (interior pages) -------- */
.page-banner{
  padding: 70px 0;
  background: var(--heading);
  background-size: cover;
  background-position: center;
}
.page-banner h1{
  color: #fff;
  text-transform: uppercase;
  margin: 0;
}
.page-banner.has-photo{
  position: relative;
}
.page-banner.has-photo::before{
  content: "";
  position: absolute; inset: 0;
  background: rgba(15, 25, 34, 0.35);
}
.page-banner.has-photo .container{ position: relative; z-index: 1; }
.page-banner.has-photo h1{
  color: var(--heading);
  text-shadow: 0 1px 12px rgba(255,255,255,0.6);
}

/* -------- Generic content section -------- */
.section{ padding: 70px 0; }
.section--tight{ padding: 50px 0; }
.section-title{ margin-bottom: 0; }

/* -------- Services page cards -------- */
.service-block{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 50px 0;
  border-top: 1px solid var(--divider);
}
.service-block:first-of-type{ border-top: 0; }
.service-block.reverse .service-media{ order: 2; }
.service-block.no-media{ grid-template-columns: 1fr; }
@media (max-width: 780px){
  .service-block{ grid-template-columns: 1fr; }
  .service-block.reverse .service-media{ order: 0; }
}

/* -------- Contact page -------- */
.contact-map iframe{
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}
.contact-layout{
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 50px;
}
@media (max-width: 860px){
  .contact-layout{ grid-template-columns: 1fr; }
}
.contact-form label{
  display: block;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 6px;
  font-family: var(--font-heading);
}
.contact-form .field{ margin-bottom: 20px; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea{
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--divider);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
}
.contact-form textarea{ min-height: 140px; resize: vertical; }
.contact-form button{
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  padding: 12px 30px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.85rem;
  cursor: pointer;
}
.contact-form button:hover{ background: var(--accent-dark); }
.form-success{
  display: none;
  background: #eaf6ea;
  border: 1px solid #bfe4bf;
  color: #2b5e2b;
  padding: 14px 18px;
  margin-bottom: 20px;
  border-radius: 3px;
}
.contact-info dt{
  font-weight: 700;
  color: var(--heading);
  font-family: var(--font-heading);
  margin-top: 18px;
}
.contact-info dt:first-child{ margin-top: 0; }
.contact-info dd{ margin: 4px 0 0; }

/* -------- Legal / privacy long-form content -------- */
.legal-content h2{
  font-size: 1.3rem;
  text-transform: none;
  margin-top: 1.6em;
}
.legal-content h2:first-child{ margin-top: 0; }
.legal-content p, .legal-content li{ font-size: 0.98rem; }
.legal-content ul{ margin-bottom: 1.2em; }

/* -------- Footer -------- */
.site-footer{
  background: var(--footer-bg);
  color: #cfcfcf;
  padding: 56px 0;
  margin-top: 0;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 700px){
  .footer-grid{ grid-template-columns: 1fr; }
}
.site-footer h4{
  color: #fff;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 1rem;
  margin-bottom: 1em;
}
.site-footer a{ color: #cfcfcf; }
.site-footer a:hover{ color: #fff; }
.site-footer ul{ list-style: none; margin: 0; padding: 0; }
.site-footer li{ margin-bottom: 0.5em; }
.site-footer p{ margin: 0 0 0.5em; }
