/* ============================================================
   PORTA FORES — design tokens
   Concept: the site reads like a shop drawing for a storefront
   door system — hairline reveals, spec callouts, offset "seated"
   panels that click into place like a door meeting its frame.
   ============================================================ */

:root {
  --ink: #0B0B0C;
  --frame: #3B3A38;
  --glazing: #C9A15A;
  --glazing-light: #D9B876;
  --aluminum: #C9C7C2;
  --aluminum-dim: #EDEBE7;
  --vapor: #F6F6F5;
  --signal: #9C6B30;
  --white: #FFFFFF;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --container: 1180px;
  --gutter: 24px;
  --radius: 2px;

  --ease: cubic-bezier(0.65, 0, 0.35, 1);
}

@media (min-width: 900px) {
  :root { --gutter: 48px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--vapor);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 4.2vw + 1rem, 4.2rem); }
h2 { font-size: clamp(1.9rem, 2.4vw + 1rem, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--frame); }

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

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--glazing);
  margin-bottom: 1em;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--signal);
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  fill: var(--frame);
}
.spec-label--dim { fill: var(--aluminum); font-size: 9.5px; }

/* keyboard focus */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--glazing);
  outline-offset: 3px;
}

/* ---------- buttons: "seat into the frame" on press ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9em 1.6em;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  box-shadow: 5px 5px 0 var(--glazing);
  cursor: pointer;
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.btn:hover, .btn:focus-visible { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--glazing); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--aluminum);
}
.btn--ghost:hover, .btn--ghost:focus-visible { box-shadow: 0 0 0 var(--aluminum); }
.btn--small { padding: 0.6em 1.1em; font-size: 0.82rem; box-shadow: 3px 3px 0 var(--glazing); }
.btn--small:hover { transform: translate(3px, 3px); }
.btn--block { width: 100%; justify-content: center; }

/* solid gold CTA for use on dark chrome (header, footer) where the
   default dark-on-dark button would lose contrast */
.btn--gold {
  background: var(--glazing);
  border-color: var(--glazing);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--aluminum);
}
.btn--gold:hover, .btn--gold:focus-visible { box-shadow: 0 0 0 var(--aluminum); }

/* ---------- panel: offset frame motif for cards/images ---------- */
.panel {
  background: var(--white);
  border: 1px solid var(--ink);
  box-shadow: 8px 8px 0 var(--aluminum-dim);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 12, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(201, 161, 90, 0.25);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}
.site-header__logo {
  height: 52px;
  width: 74px;
  overflow: hidden;
  position: relative;
  display: block;
}
.site-header__logo img {
  position: absolute;
  top: -9px;
  left: -22px;
  width: 120px;
  max-width: none;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 2.2rem;
}
.site-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--aluminum);
  position: relative;
  padding: 0.3em 0;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--glazing);
  transition: right 0.2s var(--ease);
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--vapor); }
.site-nav a:hover::after, .site-nav a:focus-visible::after { right: 0; }

.site-nav a.lang-switch, .mobile-nav a.lang-switch {
  font-family: var(--font-mono) !important;
  font-size: 0.72rem !important;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: 1px solid var(--glazing);
  padding: 0.25em 0.6em !important;
}
.lang-switch::after { display: none !important; content: none !important; }
.site-nav a.lang-switch:hover, .mobile-nav a.lang-switch:hover,
.site-nav a.lang-switch:focus-visible, .mobile-nav a.lang-switch:focus-visible {
  background: var(--glazing);
  color: var(--ink) !important;
}

.site-header__actions { display: flex; align-items: center; gap: 1rem; }

.nav-toggle {
  display: inline-flex;
  background: none;
  border: 1px solid var(--aluminum);
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--vapor);
  position: relative;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--ink);
  border-top: 1px solid rgba(201, 161, 90, 0.25);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  padding: 14px var(--gutter);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 500;
  color: var(--vapor);
}

@media (min-width: 960px) {
  .site-nav { display: flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 64px 0 40px;
  overflow: hidden;
  background: var(--ink);
  color: var(--vapor);
}
.hero__grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
.hero__copy h1 { color: var(--vapor); }
.hero__copy .tagline {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--glazing-light);
  margin: -0.4em 0 1.2em;
}
.hero__copy p.lead {
  font-size: 1.15rem;
  max-width: 46ch;
  color: var(--aluminum);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero .btn--ghost { color: var(--vapor); box-shadow: 5px 5px 0 var(--aluminum); }
.hero .btn--ghost:hover, .hero .btn--ghost:focus-visible { box-shadow: 0 0 0 var(--aluminum); }
.hero__pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
}
.hero__pillars li {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aluminum);
}
.hero__diagram { justify-self: center; width: 100%; max-width: 420px; }
.hero__diagram svg { width: 100%; height: auto; }
.hero-diagram .spec-label { fill: var(--aluminum); }
.hero-diagram .spec-label--dim { fill: #7C7A76; }

.hero .draw-line {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: draw-in 0.9s var(--ease) forwards;
}
.hero .draw-line:nth-of-type(2) { animation-delay: 0.15s; }
.hero .draw-line:nth-of-type(3) { animation-delay: 0.3s; }
.hero .draw-line:nth-of-type(4) { animation-delay: 0.45s; }
@keyframes draw-in { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero .draw-line { stroke-dashoffset: 0; animation: none; }
}

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; }
  .hero { padding: 88px 0 60px; }
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust {
  border-top: 1px solid var(--aluminum);
  border-bottom: 1px solid var(--aluminum);
  background: var(--white);
}
.trust__row {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem 3rem;
  padding: 22px 0;
  justify-content: center;
}
.trust__item {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--frame);
  display: flex;
  align-items: center;
  gap: 0.6em;
}
.trust__item::before { content: "◆"; color: var(--signal); font-size: 0.6rem; }

/* ============================================================
   SECTION SCAFFOLDING
   ============================================================ */
section { padding: 88px 0; }
.section-head { max-width: 60ch; margin-bottom: 3rem; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- About ---------- */
.about__grid {
  display: grid;
  gap: 3rem;
}
.about__figure {
  aspect-ratio: 4/5;
  background: linear-gradient(155deg, var(--frame), var(--ink));
  position: relative;
  overflow: hidden;
}
.about__figure img { width: 100%; height: 100%; object-fit: cover; }
.about__figure .figure-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--vapor);
  background: linear-gradient(0deg, rgba(20,24,29,0.85), transparent);
  text-transform: uppercase;
}
.about__callouts { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.about__callouts li { display: flex; gap: 1rem; align-items: baseline; }
.about__callouts .num { font-family: var(--font-mono); color: var(--signal); font-size: 0.85rem; }

@media (min-width: 900px) {
  .about__grid { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
}

/* ---------- Services ---------- */
.services__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
.service-card {
  padding: 2rem;
  position: relative;
}
.service-card .spec-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--aluminum);
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
}
.service-card h3 { margin-bottom: 0.5rem; }
.service-card p { margin-bottom: 0; font-size: 0.95rem; }
.service-card__icon { width: 40px; height: 40px; margin-bottom: 1.2rem; color: var(--glazing); }

@media (min-width: 700px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .services__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Gallery ---------- */
.gallery__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
.gallery__item {
  aspect-ratio: 1/1;
  overflow: hidden;
  position: relative;
  background: var(--aluminum-dim);
  border: 1px solid var(--ink);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item .tag {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--ink);
  color: var(--vapor);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  text-transform: uppercase;
}
.gallery__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--aluminum);
  text-transform: uppercase;
  background: repeating-linear-gradient(135deg, var(--aluminum-dim), var(--aluminum-dim) 10px, var(--vapor) 10px, var(--vapor) 20px);
}

@media (min-width: 700px) {
  .gallery__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .gallery__grid { grid-template-columns: repeat(4, 1fr); }
}

.gallery__promo { margin-top: 3.5rem; }
.gallery__promo h3 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--frame);
  margin-bottom: 1.2rem;
}
.gallery__promo-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
  align-items: start;
}
.gallery__promo-item {
  background: var(--ink);
  border: 1px solid var(--aluminum);
  overflow: hidden;
  position: relative;
  container-type: inline-size;
}
.gallery__promo-item img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
  transition: transform 0.4s var(--ease);
}
.gallery__promo-item:hover img { transform: scale(1.03); }

/* Corrected-email patches: the source flyer graphics have an old
   email baked into the pixels; these overlay the fixed address at
   the exact position/color of the original text (no image edit
   tools available to fix the source JPEGs directly). */
.gallery__promo-item__patch {
  position: absolute;
  display: flex;
  align-items: center;
  font-family: var(--font-body);
  color: #F2F2F0;
  font-size: 2.3cqw;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}
.gallery__promo-item--standout .gallery__promo-item__patch {
  left: 67.9%;
  top: 91.5%;
  width: 26.5%;
  height: 2.48%;
  background: #0E0E0E;
  padding-left: 0.3em;
}
.gallery__promo-item--first-impressions .gallery__promo-item__patch {
  left: 16.1%;
  top: 91.9%;
  width: 29.6%;
  height: 2.78%;
  background: #0B0802;
  padding-left: 0.2em;
}

@media (min-width: 700px) {
  .gallery__promo-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Locations / service area ---------- */
.locations__grid {
  display: grid;
  gap: 2rem;
}
.map-panel {
  padding: 2rem;
  min-height: 320px;
}
.branch-card { padding: 1.8rem; }
.branch-card .eyebrow { margin-bottom: 0.6em; }
.branch-card dl { margin: 1rem 0 0; display: grid; gap: 0.4rem; font-size: 0.92rem; }
.branch-card dt { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; color: var(--aluminum); text-transform: uppercase; }
.branch-card dd { margin: 0 0 0.6rem; }
.branch-cards { display: grid; gap: 1.5rem; }

@media (min-width: 900px) {
  .locations__grid { grid-template-columns: 1.3fr 1fr; }
}
@media (min-width: 560px) {
  .branch-cards { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .branch-cards { grid-template-columns: 1fr; }
}

.route-svg { width: 100%; height: auto; }

/* ---------- Testimonials ---------- */
.testimonials__grid {
  display: grid;
  gap: 1.5rem;
}
.testimonial {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.testimonial blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--ink);
}
.testimonial cite {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--frame);
  display: block;
}
@media (min-width: 900px) {
  .testimonials__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Quote / contact ---------- */
.quote {
  background: var(--ink);
  color: var(--vapor);
}
.quote .eyebrow { color: var(--glazing); }
.quote h2 { color: var(--vapor); }
.quote p { color: var(--aluminum); }
.quote__grid { display: grid; gap: 3rem; }

.steps { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.4rem; counter-reset: step; }
.steps li { display: flex; gap: 1rem; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  width: 28px; height: 28px;
  border: 1px solid var(--aluminum);
  color: var(--vapor);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.steps h4 { color: var(--vapor); font-size: 1rem; margin: 0 0 0.2rem; }
.steps p { margin: 0; font-size: 0.9rem; }

.form-panel {
  background: var(--frame);
  border: 1px solid var(--aluminum);
  padding: 2rem;
}
.field { margin-bottom: 1.2rem; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--aluminum);
  margin-bottom: 0.5em;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--aluminum);
  color: var(--vapor);
  padding: 0.8em 1em;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; gap: 1.2rem; }
@media (min-width: 560px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}
.form-note { font-size: 0.8rem; color: var(--aluminum); margin-top: 1rem; }
.form-status { font-family: var(--font-mono); font-size: 0.85rem; margin-top: 1rem; display: none; }
.form-status.is-visible { display: block; }
.form-status.is-error { color: #E8896B; }
.form-status.is-success { color: #6FCF97; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (min-width: 900px) {
  .quote__grid { grid-template-columns: 0.9fr 1.1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: var(--aluminum);
  border-top: 1px solid rgba(201, 161, 90, 0.25);
  padding: 56px 0 32px;
}
.footer__grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer__col p { color: var(--aluminum); }
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--glazing);
  margin-bottom: 1rem;
}
.footer__col a, .footer__col p { display: block; font-size: 0.92rem; margin-bottom: 0.6rem; color: var(--aluminum); }
.footer__col a:hover { color: var(--glazing-light); }
.footer__logo {
  height: 93px;
  width: 130px;
  overflow: hidden;
  position: relative;
  margin-bottom: 1rem;
}
.footer__logo img {
  position: absolute;
  top: -14px;
  left: -39px;
  width: 210px;
  max-width: none;
}
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--aluminum);
  opacity: 0.7;
  text-transform: uppercase;
}
@media (min-width: 700px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 29, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 84vh; border: 1px solid var(--aluminum); }
.lightbox__close {
  position: absolute;
  top: 20px; right: 20px;
  background: none;
  border: 1px solid var(--aluminum);
  color: var(--vapor);
  width: 40px; height: 40px;
  cursor: pointer;
  font-size: 1.1rem;
}
