/* Salazar & Associates, CPAs — Static recreation
   Colors: navy #253D8C, gold #FFC60B, cream #FCF6DB,
           light blue #C7EAFB, dark gray #414042
*/

:root {
  --navy: #253D8C;
  --gold: #FFC60B;
  --cream: #FCF6DB;
  --lightblue: #C7EAFB;
  --gray: #414042;
  --muted: #7A7A7A;
  --white: #ffffff;
  --max: 1140px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "futura-pt", "Futura PT", Futura, "Trebuchet MS", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  color: var(--gray);
  line-height: 1.6;
  background: #fff;
}

a { color: var(--navy); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #6c6c6c; text-decoration: none; }

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

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

/* ---------- Header / hero ---------- */
.site-header {
  position: relative;
  background: url("../images/salazarcpas-website-header-photo.jpg")
              center bottom / cover no-repeat;
  color: #fff;
  padding: 36px 0 0;
  min-height: 530px;
  display: flex;
  flex-direction: column;
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.2);
  z-index: 1;
}
.site-header > .container {
  position: relative;
  z-index: 2;
}
@media (max-width: 768px) {
  .site-header { min-height: 420px; padding-top: 28px; }
}

.site-header .brand {
  text-align: center;
}
.site-header .brand h1 {
  font-family: "futura-pt-bold", "Futura PT", Futura, "Trebuchet MS", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 30px;
  margin: 0;
  letter-spacing: 0.5px;
}
.site-header .brand .tagline {
  font-family: "futura-pt", "Futura PT", Futura, "Trebuchet MS", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: 22px;
  margin: 6px 0 0;
}
.site-header .brand .gold-rule {
  width: 15%;
  min-width: 90px;
  height: 0;
  border-top: 1.5px solid var(--gold);
  margin: 18px auto;
}

/* Navigation */
.primary-nav {
  margin-top: 18px;
}
.primary-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 30px;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  color: #fff;
  font-family: "futura-pt-bold", "Futura PT", Futura, "Trebuchet MS", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  text-transform: none;
  font-size: 18px;
  padding: 10px 4px;
  display: inline-block;
}
.primary-nav a:hover,
.primary-nav li.active a {
  color: var(--gold);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  margin: 10px auto 0;
}

.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: inline-block; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .primary-nav ul {
    display: block;
    text-align: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.35s ease;
  }
  .primary-nav ul li { display: block; }
  .primary-nav.open ul {
    max-height: 600px;
    opacity: 1;
    padding-top: 10px;
    padding-bottom: 25px;
  }
  .primary-nav a { padding: 10px 0; display: inline-block; }
}

/* Hours / quick info banner inside header */
.header-hours {
  text-align: center;
  margin: 18px 0 0;
  font-size: 15px;
  color: #fff;
}

/* ---------- Sections ---------- */
.section {
  padding: 70px 0;
}
.section.cream { background: #FFFCEC; }
.section.navy { background: var(--navy); color: #fff; }
.section.navy a { color: var(--lightblue); }

/* Global headings (consistent across all pages) */
h2 {
  color: var(--navy);
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: 26px;
  margin: 0 0 18px;
}
h3 {
  color: var(--navy);
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin: 18px 0 10px;
}
@media (min-width: 769px) {
  h2 { font-size: 33px; }
  h3 { font-size: 22px; }
}
.section.navy h2 { color: #fff; }

.section .lead {
  max-width: 720px;
  margin: 0 auto 30px;
  text-align: center;
  font-size: 17px;
}

.gold-rule-left {
  width: 80px;
  border-top: 2px solid var(--gold);
  margin: 0 0 18px;
}

/* Two-column row */
.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 768px) {
  .row-2 { grid-template-columns: 1fr; }
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--navy);
  color: #fff !important;
  padding: 12px 24px;
  font-family: "futura-pt", "Futura PT", Futura, "Trebuchet MS", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  border-radius: 3px;
  border: 0;
  cursor: pointer;
  transition: background 0.2s ease;
  text-transform: uppercase;
}
.btn:hover { background: #1b2e6e; text-decoration: none; }
.btn.gold { background: var(--gold); color: var(--navy) !important; }
.btn.gold:hover { background: #e6b209; }

/* Notification banner */
.notification {
  background: #939598;
  padding: 80px 24px;
  text-align: center;
}
.notification p {
  color: #FCF6DB;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.5px;
  line-height: 1.4;
  text-transform: uppercase;
  margin: 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 769px) {
  .notification p { font-size: 28px; }
}

/* Office contact callout */
.contact-callout {
  background: #fff;
  text-align: center;
  padding: 50px 20px;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}
.contact-callout p { margin: 6px 0; font-size: 18px; }
.contact-callout a { color: var(--navy); font-weight: 700; }
.contact-callout strong { font-weight: 700; }
@media (min-width: 769px) {
  .contact-callout p { font-size: 27px; }
}

/* Service section (image + text side by side) */
.service-section {
  background: #FFFCEC;
  padding: 100px 24px;
}
.service-row {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.service-photo img {
  width: 100%;
  height: auto;
  display: block;
}
.service-text {
  text-align: center;
  color: #000;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}
.service-text h3 { margin: 18px 0 28px; font-size: 22px; }
.service-text p {
  color: #000;
  font-size: 15px;
  margin: 0 auto;
  max-width: 520px;
}
@media (min-width: 769px) {
  .service-text h3 { font-size: 28px; }
  .service-text p { font-size: 19px; }
}
.navy-rule {
  width: 90px;
  height: 0;
  border-top: 3px solid var(--navy);
  margin: 0 auto;
}
@media (max-width: 768px) {
  .service-row { grid-template-columns: 1fr; gap: 30px; }
  .service-section { padding: 60px 60px; }
}

/* Services grid */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  align-items: center;
}
.service-img {
  width: 100%;
  border-radius: 4px;
  background: #ddd;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
@media (max-width: 768px) { .services { grid-template-columns: 1fr; gap: 30px; } }

/* Map */
.map-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.map-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Location row (self-contained section: text left, map right) */
.location-row {
  background: #e5e5e5;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}
.location-text {
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  color: #000;
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.location-text h2 { margin: 0 0 16px; }
.location-text p {
  font-size: 18px;
  color: #000;
  margin: 18px 0 28px;
}
.navy-rule-left {
  margin: 0 0 18px;
  width: 90px;
}
.btn-blue {
  display: inline-block;
  background: #8a8a8a;
  color: #fff !important;
  padding: 12px 24px;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  transition: background 0.2s ease;
  text-transform: uppercase;
  text-decoration: none;
}
.btn-blue:hover {
  background: var(--navy);
  text-decoration: none;
}
.location-map {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px;
  overflow: hidden;
}
.location-map iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
@media (max-width: 768px) {
  .location-row { grid-template-columns: 1fr; }
  .location-text { padding: 50px 40px; }
  .location-map { min-height: 400px; }
}

/* Generic page section (shared by all pages) */
.page {
  background: #fff;
  padding: 80px 24px;
  text-align: center;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}
.page.cream { background: #FFFCEC; }
.page h2 { margin: 0 0 24px; }
.page h3 { color: #000; font-weight: 700; margin: 40px 0 18px; }
.page p {
  color: #000;
  font-size: 16px;
  line-height: 1.7;
  margin: 0 auto 18px;
  max-width: 760px;
}
.page .lead {
  font-size: 22px;
  line-height: 1.5;
  margin: 0 auto 50px;
  max-width: 820px;
}
.page .subtitle {
  text-align: center;
  font-weight: 700;
  font-size: 18px;
  margin: 0 auto 24px;
  max-width: 760px;
}
.page a { font-weight: 700; }
@media (max-width: 768px) {
  .page { padding: 60px 24px; }
}

.location-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}
.location-photos img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 768px) {
  .location-photos { grid-template-columns: 1fr; gap: 20px; }
}

/* Location page - map section */
.location-map-section {
  background: #fff;
  padding: 0 0 80px;
}
.location-map-full {
  position: relative;
  width: 100%;
  height: 360px;
  overflow: hidden;
}
.location-map-full iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.location-map-cta {
  text-align: center;
  padding: 40px 24px 0;
}
.btn-map {
  display: inline-block;
  background: #939598;
  color: #fff !important;
  padding: 16px 40px;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.5px;
  border-radius: 6px;
  border: 0;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s ease;
}
.btn-map:hover {
  background: var(--navy);
  text-decoration: none;
}
@media (max-width: 768px) {
  .location-map-full { height: 480px; }
  .location-map-section { padding: 0 0 60px; }
}

/* Staff grid (used inside .page on /staff/) */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 40px;
}
@media (max-width: 768px) { .staff-grid { grid-template-columns: 1fr; gap: 40px; } }

.staff-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  text-align: center;
  padding: 0;
}
.staff-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.staff-card h3 {
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  color: #7A7A7A;
  font-size: 24px;
  margin: 22px 0 6px;
}
.staff-card p {
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  color: #7A7A7A;
  margin: 0;
}

.staff-card-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.staff-card-vertical img {
  width: auto;
  height: 100%;
  max-height: 500px;
  object-fit: contain;
  aspect-ratio: auto;
}

/* IRS resources */
.irs-block { margin-bottom: 38px; }
.irs-block h3 {
  color: var(--navy);
  font-family: "futura-pt-bold", "Futura PT", Futura, "Trebuchet MS", "Helvetica Neue", Arial, sans-serif;
  font-size: 22px;
  margin: 0 0 8px;
}
.irs-block .deadline {
  font-weight: 600;
  color: var(--navy);
  margin-top: 18px;
  margin-bottom: 4px;
}

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info p { margin: 6px 0; }
.contact-info i { color: var(--navy); width: 22px; margin-right: 8px; }

.contact-form label {
  display: block;
  margin-top: 14px;
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font: inherit;
  margin-top: 6px;
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form button { margin-top: 20px; }

/* Footer */
.site-footer {
  background: #414042;
  color: #fff;
  text-align: center;
  padding: 60px 20px 50px;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}
.site-footer h2 {
  color: #FCF6DB;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  margin: 0 0 14px;
  font-size: 36px;
  letter-spacing: 0.5px;
}
.site-footer p {
  font-size: 16px;
  color: #fff;
  margin: 4px 0;
}
.site-footer a {
  color: #a8a8a8;
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-footer a:hover {
  color: var(--gold);
  text-decoration: none;
}
.site-footer .gold-rule {
  width: 120px;
  border-top: 1px solid #fff;
  margin: 60px auto;
}
.site-footer .copyright {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: #fff;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: none;
  z-index: 50;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}
.scroll-top.visible { display: block; }

/* Utility */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }
ul.plain { list-style: none; padding: 0; }
ul.plain li { padding: 4px 0; }
