/* =========================================================
   Fillian Brothers Incorporated — site styles
   Palette and type are documented at the top so future edits
   stay consistent with the rest of the system.
   ========================================================= */

:root {
  /* Color — pulled from the FBI crest */
  --maroon:        #6C1930;
  --maroon-dark:   #4A1224;
  --gold:          #B98A3E;
  --gold-light:    #D9B569;
  --parchment:     #F1E8D8;
  --parchment-dark:#E8DCC4;
  --ink:           #2A2320;
  --ink-soft:      #59503F;
  --slate:         #45585C;
  --white:         #FFFDF9;

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 3px;
  --wrap: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; color: var(--maroon-dark); }
p { margin: 0 0 1em; }
button { font: inherit; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--maroon); color: var(--white); padding: 12px 20px;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--slate);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
  cursor: pointer;
}
.btn--call {
  border-color: var(--parchment);
  color: var(--white);
  background: transparent;
}
.btn--call:hover { background: rgba(255,255,255,0.12); }
.btn--maroon { background: var(--maroon); color: var(--white); }
.btn--maroon:hover { background: var(--maroon-dark); }
.btn--gold { background: var(--gold); color: var(--maroon-dark); }
.btn--gold:hover { background: var(--gold-light); }
.btn--outline { background: transparent; color: var(--maroon); border-color: var(--maroon); }
.btn--outline:hover { background: var(--maroon); color: var(--white); }
.btn--block { width: 100%; }

/* ---------- Eyebrow labels ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.6em;
}

/* ---------- Arch rule (signature motif) ---------- */
.arch-rule {
  display: block;
  width: 120px;
  height: 14px;
  margin: 0 0 1.25em;
}
.arch-rule--center { margin-left: auto; margin-right: auto; }
.arch-rule--large { width: 220px; height: 22px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--maroon);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}
.site-header__brand {
  display: inline-flex;
  align-items: center;
  background: var(--parchment);
  padding: 6px 14px;
  border-radius: var(--radius);
}
.site-header__logo { height: 52px; width: auto; display: block; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle__bar { width: 26px; height: 2.5px; background: var(--white); display: block; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav ul { display: flex; gap: 26px; }
.site-nav a {
  color: var(--parchment);
  font-weight: 500;
  font-size: 0.96rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a.is-active { border-bottom-color: var(--gold); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  background: var(--maroon);
  color: var(--parchment);
  padding: 76px 0 96px;
}
.hero__inner { max-width: 760px; }
.hero__eyebrow { color: var(--gold-light); }
.hero__title {
  color: var(--white);
  font-size: clamp(2.3rem, 4.2vw, 3.6rem);
  margin-bottom: 0.4em;
}
.hero__title em { color: var(--gold-light); font-style: italic; }
.hero__subtitle {
  font-size: 1.15rem;
  color: var(--parchment-dark);
  max-width: 56ch;
  margin-bottom: 1.6em;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 1.8em; }
.hero__actions .btn--outline { border-color: var(--parchment); color: var(--parchment); }
.hero__actions .btn--outline:hover { background: var(--parchment); color: var(--maroon-dark); }

/* ---------- Facts strip ---------- */
.facts {
  background: var(--parchment-dark);
  border-bottom: 1px solid rgba(74,18,36,0.12);
}
.facts__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 40px 0;
}
.facts__item { text-align: center; border-left: 1px solid rgba(74,18,36,0.15); padding: 0 20px; }
.facts__item:first-child { border-left: none; }
.facts__number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--maroon);
  font-weight: 700;
}
.facts__label { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section--alt { background: var(--white); }
.section__head { max-width: 640px; margin: 0 0 48px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__title { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.section__lede { color: var(--ink-soft); font-size: 1.08rem; }

.section__foot { margin-top: 44px; text-align: center; }

/* ---------- Services grid (home preview + services page) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-top: 3px solid var(--maroon);
  padding: 30px 28px;
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(42,35,32,0.06);
}
.section--alt .service-card { background: var(--parchment); }
.service-card__title { font-size: 1.2rem; margin-bottom: 0.4em; }
.service-card__text { color: var(--ink-soft); margin-bottom: 0; font-size: 0.98rem; }

/* ---------- Service detail (services.php) ---------- */
.service-detail { padding: 48px 0; border-bottom: 1px solid var(--parchment-dark); }
.service-detail:last-of-type { border-bottom: none; }
.service-detail__grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}
.service-detail__initial {
  font-family: var(--font-display);
  font-size: 4.2rem;
  line-height: 1;
  color: var(--gold);
  font-weight: 600;
}
.service-detail h3 { font-size: 1.5rem; }
.service-detail p { color: var(--ink-soft); max-width: 62ch; }

/* ---------- About preview / split layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split__media {
  background: var(--maroon);
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.split__media img { max-width: 220px; }
.split__media .logo-plate {
  display: inline-flex;
  background: var(--parchment);
  padding: 20px 28px;
  border-radius: var(--radius);
}
.split__text p { color: var(--ink-soft); }

/* ---------- Rings diagram (about.php signature detail) ---------- */
.rings-figure { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.rings-figure svg { flex-shrink: 0; }
.rings-figure__caption { max-width: 32ch; color: var(--ink-soft); font-size: 0.95rem; }
.rings-figure__caption strong { color: var(--maroon); display: block; font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 0.2em; }

/* ---------- Quote / testimonial style block ---------- */
.pull-quote {
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 28px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--maroon-dark);
  margin: 0 0 1.2em;
}

/* ---------- CTA band (footer.php) ---------- */
.cta-band { background: var(--maroon-dark); color: var(--parchment); padding: 72px 0; text-align: center; }
.cta-band__inner { max-width: 620px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.cta-band h2 { color: var(--white); font-size: clamp(1.5rem, 2.6vw, 2rem); }
.cta-band p { color: var(--parchment-dark); }
.cta-band .btn--gold { margin-top: 8px; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.gallery-item {
  aspect-ratio: 4 / 3;
  border: 1.5px dashed var(--maroon);
  border-radius: var(--radius);
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: var(--ink-soft);
}
.gallery-item__label { font-family: var(--font-display); color: var(--maroon); font-size: 1.05rem; margin-bottom: 4px; }
.gallery-item__note { font-size: 0.85rem; }
.gallery-item--cta { transition: background 0.2s ease, border-color 0.2s ease; }
.gallery-item--cta:hover,
.gallery-item--cta:focus-visible { background: var(--parchment); border-style: solid; }
.gallery-item--cta:hover .gallery-item__note,
.gallery-item--cta:focus-visible .gallery-item__note { text-decoration: underline; }
.gallery-item--cta:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.gallery-note {
  background: var(--parchment-dark);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 44px;
}

.gallery-item--photo {
  position: relative;
  display: block;
  padding: 0;
  border: none;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 0 1px 3px rgba(42,35,32,0.18);
}
.gallery-item--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-item--photo:hover img,
.gallery-item--photo:focus-visible img { transform: scale(1.06); }
.gallery-item--photo:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.gallery-item__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 14px 8px;
  background: linear-gradient(to top, rgba(42,35,32,0.82), rgba(42,35,32,0));
  color: var(--white);
  font-size: 0.9rem;
  font-family: var(--font-display);
}

/* ---------- Lightbox ---------- */
/* Un-stick the header while the lightbox is open (see main.js) so it can't
   paint above the overlay. */
body.lightbox-open .site-header { position: static; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(23,18,16,0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
}
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: min(90vw, 1100px);
  max-height: 78vh;
  width: auto;
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.lightbox__caption {
  color: var(--parchment);
  font-family: var(--font-display);
  margin: 16px 0 0;
  text-align: center;
  font-size: 1.05rem;
}
.lightbox__close {
  position: absolute;
  top: 18px; right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 10px;
}
.lightbox__close:hover, .lightbox__close:focus-visible { color: var(--gold-light); }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,253,249,0.12);
  border: none;
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
}
.lightbox__nav:hover, .lightbox__nav:focus-visible { background: rgba(255,253,249,0.25); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
@media (max-width: 640px) {
  .lightbox { padding: 56px 16px; }
  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__close { top: 10px; right: 14px; }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}
.contact-info__item { margin-bottom: 28px; }
.contact-info__item .eyebrow { margin-bottom: 0.3em; }
.contact-info__item a,
.contact-info__item p { font-size: 1.05rem; }

.contact-form { background: var(--white); border-radius: var(--radius); padding: 40px; box-shadow: 0 1px 3px rgba(42,35,32,0.08); }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1.5px solid var(--parchment-dark);
  border-radius: var(--radius);
  background: var(--parchment);
  color: var(--ink);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--maroon); background: var(--white); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: 0.85rem; color: var(--ink-soft); margin-top: 4px; }
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 28px; font-weight: 500; }
.alert--success { background: #E4EFDF; color: #33502B; border: 1px solid #B9D5AC; }
.alert--error { background: #F6E1DC; color: #7A2A17; border: 1px solid #E7B7AA; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--parchment-dark); padding-top: 56px; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(241,232,216,0.14);
}
.site-footer__logo {
  height: 68px;
  margin-bottom: 14px;
  background: var(--parchment);
  padding: 8px 14px;
  border-radius: var(--radius);
}
.site-footer__brand p { color: rgba(241,232,216,0.7); font-size: 0.92rem; max-width: 28ch; }
.site-footer .eyebrow { color: var(--gold-light); }
.site-footer__col p { font-size: 0.95rem; }
.site-footer__links li { margin-bottom: 8px; font-size: 0.95rem; }
.site-footer__legal { padding: 22px 0; font-size: 0.85rem; color: rgba(241,232,216,0.55); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--maroon-dark);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul li a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(241,232,216,0.12); }
  .site-nav .btn--call { margin-top: 14px; align-self: flex-start; }

  .facts__inner { grid-template-columns: 1fr; gap: 20px; }
  .facts__item { border-left: none; padding: 0; }

  .split { grid-template-columns: 1fr; }
  .service-detail__grid { grid-template-columns: 1fr; gap: 10px; }
  .contact-grid { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .site-footer__inner { grid-template-columns: 1fr; }
  .contact-form { padding: 26px; }
  .hero { padding: 56px 0 72px; }
  .section { padding: 60px 0; }
}
