/* Brand standards: Factory Creek
   Colors: Dark Green #273527, Off White #FFF0C5
   Fonts:  Empera Regular (display), Arquitecta Black (labels/subheads)
   Font files are optional: drop WOFF2 files into /fonts (see README-fonts.txt).
   Until then, the fallbacks below are used. */

@font-face {
  font-family: "Empera";
  src: local("Empera Regular"), local("Empera-Regular"), url("fonts/Empera-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Arquitecta";
  src: local("Arquitecta Black"), local("Arquitecta-Black"), url("fonts/Arquitecta-Black.woff2") format("woff2");
  font-weight: 900; font-style: normal; font-display: swap;
}

:root {
  --green: #273527;
  --cream: #FFF0C5;
  --green-soft: color-mix(in srgb, var(--green) 22%, transparent);
  --cream-soft: color-mix(in srgb, var(--cream) 28%, transparent);
  --display: "Empera", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --label: "Arquitecta", "Avenir Next", "Century Gothic", "Trebuchet MS", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--green);
  font: 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 40rem) { .wrap { padding: 0 2rem; } }

h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.05; letter-spacing: .02em; text-transform: uppercase; }
h2 { font-size: clamp(2.1rem, 4vw, 2.9rem); margin: 0 0 1.25rem; }
h3 { font-family: var(--label); font-weight: 900; font-size: 1.05rem; letter-spacing: .12em; text-transform: uppercase; line-height: 1.3; margin: 0 0 .75rem; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { text-decoration-color: currentColor; opacity: .8; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; border-radius: 2px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--green); color: var(--cream); border-bottom: 2px solid var(--cream); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; flex-wrap: wrap; padding-top: .35rem; padding-bottom: .35rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { display: block; height: 2.6rem; width: auto; }
.brand-name { font-family: var(--display); font-size: 1.7rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1; padding-top: .1em; }
.site-header nav { display: flex; gap: 1.5rem; }
.site-header nav a {
  font-family: var(--label); font-weight: 900; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; padding: .4rem 0; border-bottom: 2px solid transparent;
}
.site-header nav a:hover { border-bottom-color: var(--cream); opacity: 1; }

/* phones: keep the header on one compact row */
@media (max-width: 39.99rem) {
  html { scroll-padding-top: 4rem; }
  .bar { flex-wrap: nowrap; gap: .5rem; min-height: 3.25rem; }
  .brand { gap: .45rem; min-width: 0; }
  .brand img { height: 2.3rem; }
  .brand-name { display: none; } /* icon-only on phones; the hero shows the full name */
  .site-header nav { gap: .85rem; }
  .site-header nav a { font-size: .66rem; letter-spacing: .1em; }
}

/* hero */
.hero { background: var(--green); color: var(--cream); padding: clamp(2.5rem, 7vw, 5.5rem) 0; }
.hero-grid { display: grid; gap: 1.75rem; align-items: center; }
.hero-mark { width: clamp(8rem, 22vw, 13rem); height: auto; }
.hero h1 { font-size: clamp(2.8rem, 8vw, 5.6rem); margin: 0 0 1.1rem; }
.hero h1 span { display: block; font-family: var(--label); font-weight: 900; font-size: clamp(.9rem, 1.8vw, 1.2rem); letter-spacing: .3em; margin-top: .9rem; }
.hero .lead { max-width: 38rem; font-size: clamp(1.05rem, 2vw, 1.25rem); margin: 0; }
@media (min-width: 44rem) { .hero-grid { grid-template-columns: auto 1fr; gap: 3.5rem; } }

/* about */
.about { display: grid; gap: 2rem; padding-top: 3.5rem; padding-bottom: 3.5rem; }
.portrait { margin: 0; }
.portrait img { width: 100%; max-width: 22rem; height: auto; display: block; border: 3px solid var(--green); border-radius: 2px; }
.about-text p { max-width: 40rem; }
@media (min-width: 52rem) { .about { grid-template-columns: 20rem 1fr; gap: 3.5rem; align-items: center; } }

/* services */
.services { background: var(--green); color: var(--cream); padding: 3.5rem 0; }
.service { padding: 2rem 0; border-top: 1px solid var(--cream-soft); display: grid; gap: 1.5rem; }
.service:first-of-type { border-top: 0; padding-top: .5rem; }
.service-text p { max-width: 42rem; margin: 0 0 1rem; }
.service figure { margin: 0; }
.service img { width: 100%; height: auto; display: block; border: 2px solid var(--cream); border-radius: 2px; }
.cols { padding-left: 1.2rem; margin: 0; columns: 1; }
.cols li { margin-bottom: .3rem; break-inside: avoid; }
.cols li::marker { color: var(--cream); }
@media (min-width: 40rem) { .cols { columns: 2; column-gap: 2rem; } }
@media (min-width: 52rem) {
  .service.has-img { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
  .service.has-img:nth-of-type(even) figure { order: -1; }
}

.site-footer { background: var(--green); color: var(--cream); padding: 1.5rem 0; font-family: var(--label); font-weight: 900; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.site-footer .wrap { display: flex; align-items: center; gap: .8rem; }
.site-footer img { height: 1.8rem; width: auto; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
