/* ============================================================
   Maltas Construction — production stylesheet
   Recreated pixel-for-pixel from the Claude Design prototype
   (Maltas Construction.dc.html). Colors, spacing, and
   clamp() type scales are carried over verbatim.
   ============================================================ */

:root {
  --bg:        #191713;  /* page base            */
  --bg-deep:   #14120F;  /* trust strip / footer */
  --bg-input:  #221F1A;  /* form fields          */
  --panel:     #F4F0E8;  /* light sections       */
  --panel-alt: #EEE8DC;  /* light card hover     */
  --ink:       #201D18;  /* text on light        */
  --gold:      #C08B4F;  /* primary accent       */
  --gold-lt:   #D9A96C;  /* accent hover         */
  --gold-dk:   #A06E38;  /* accent on light bg   */
  --cream:     #F4F0E8;  /* headings on dark     */
  --text:      #E9E4DA;  /* body on dark         */
  --text-mut:  #CFC8BA;  /* muted on dark        */
  --text-dim:  #A79E8F;  /* dimmer on dark       */
  --text-dim2: #857C6D;  /* faint / placeholder  */
  --text-lt:   #5B5346;  /* body on light        */
  --hairline:  rgba(233, 228, 218, 0.08);
  --line-dk:   #D9D2C4;  /* grid lines on light  */
  --maxw:      1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Archivo', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  min-width: 320px;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-lt); }

input::placeholder,
textarea::placeholder { color: var(--text-dim2); }

img, video { display: block; }

/* No orphan words in headlines ----------------------------- */
h1, h2, h3,
.hero__title, .featured__title, .about__title,
.contact__title, .step__title, .service__title {
  text-wrap: balance;
}

/* Shared layout helpers ------------------------------------ */
.wrap { max-width: var(--maxw); margin: 0 auto; }

.section { padding: clamp(64px, 10vw, 120px) clamp(20px, 5vw, 48px); }

.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.32em;
  font-weight: 600;
  color: var(--gold);
}
.eyebrow--dk { color: var(--gold-dk); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(25, 23, 19, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.nav__brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  color: #F4F0E8;
}
.nav__brand-name {
  font-weight: 750;
  letter-spacing: 0.14em;
  font-size: clamp(14px, 2.6vw, 17px);
}
.nav__brand-tag {
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--gold);
  font-weight: 500;
}
.nav__right {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 28px);
}
.nav__links {
  display: flex;
  gap: clamp(14px, 2.5vw, 28px);
  font-size: 13px;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.nav__links a { color: var(--text-mut); }
.nav__links a:hover { color: var(--gold-lt); }

.nav__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-mut);
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav--open .nav__hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav--open .nav__hamburger span:nth-child(2) { opacity: 0; }
.nav--open .nav__hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile-menu {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: rgba(20, 18, 15, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
  padding: 0 clamp(16px, 4vw, 48px);
  flex-direction: column;
  display: none;
}
.nav--open .nav__mobile-menu { display: flex; }
.nav__mobile-menu a {
  padding: 16px 0;
  font-size: 14px;
  letter-spacing: 0.1em;
  font-weight: 500;
  color: var(--text-mut);
  border-bottom: 1px solid var(--hairline);
}
.nav__mobile-menu a:last-child { border-bottom: none; }
.nav__mobile-menu a:hover { color: var(--gold-lt); }

@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
}

/* Primary pill button (gold) ------------------------------- */
.btn-pill {
  background: var(--gold);
  color: #191713;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 3px;
  white-space: nowrap;
}
.btn-pill:hover { background: var(--gold-lt); color: #191713; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(25, 23, 19, 0.92) 0%,
    rgba(25, 23, 19, 0.35) 45%,
    rgba(25, 23, 19, 0.25) 100%
  );
}
.hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 140px clamp(20px, 5vw, 48px) clamp(48px, 8vh, 96px);
}
.hero__title {
  margin: 0 0 20px;
  font-size: clamp(38px, 7.5vw, 84px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cream);
  max-width: 13ch;
}
.hero__lede {
  margin: 0 0 32px;
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.6;
  color: #D8D1C4;
  max-width: 52ch;
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Large call-to-action buttons ----------------------------- */
.btn {
  padding: 16px 28px;
  font-size: 15px;
  letter-spacing: 0.06em;
  border-radius: 3px;
  font-weight: 700;
}
.btn--gold { background: var(--gold); color: #191713; }
.btn--gold:hover { background: var(--gold-lt); color: #191713; }
.btn--ghost {
  border: 1px solid rgba(244, 240, 232, 0.4);
  color: var(--cream);
  font-weight: 600;
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust {
  border-bottom: 1px solid var(--hairline);
  background: var(--bg-deep);
}
.trust__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px clamp(20px, 5vw, 48px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  justify-content: space-between;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  font-weight: 500;
}

/* ============================================================
   LIGHT SECTIONS (Services + Portfolio)
   ============================================================ */
.panel {
  background: var(--panel);
  color: var(--ink);
}
.h-section {
  margin: 0 0 16px;
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.lede {
  margin: 0 0 48px;
  font-family: 'Lora', Georgia, serif;
  font-size: 17px;
  line-height: 1.65;
  text-wrap: pretty;
}
.lede--light { color: var(--text-lt); }

/* Services grid -------------------------------------------- */
.services__grid {
  display: grid;
  grid-template-columns: 1fr;            /* < 640px           */
  gap: 1px;
  background: var(--line-dk);
  border: 1px solid var(--line-dk);
}
@media (min-width: 640px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .services__grid { grid-template-columns: repeat(3, 1fr); }
}
.service {
  background: var(--panel);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.15s ease;
}
.service:hover { background: var(--panel-alt); }
.service__num {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold-dk);
  font-weight: 600;
}
.service__title {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.service__desc {
  margin: 0;
  font-family: 'Lora', Georgia, serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-lt);
  text-wrap: pretty;
}

/* ============================================================
   FEATURED PROJECT
   ============================================================ */
.featured__head {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 64px);
  align-items: flex-end;
  margin-bottom: 36px;
}
.featured__title {
  margin: 0;
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--cream);
  flex: 1 1 340px;
}
.featured__copy {
  margin: 0;
  flex: 1 1 300px;
  font-family: 'Lora', Georgia, serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-dim);
  text-wrap: pretty;
}
.featured__media {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg-deep);
}
.featured__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
}
.tile { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.tile__frame {
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
}
.tile__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tile__caption {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.portfolio__note {
  margin: 40px 0 0;
  font-size: 13px;
  color: var(--text-dim2);
  font-family: 'Lora', Georgia, serif;
}

/* ============================================================
   PROCESS
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: 1fr;            /* < 560px           */
  gap: clamp(24px, 3vw, 40px);
}
@media (min-width: 560px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1020px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}
.step {
  border-top: 2px solid var(--gold);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step__num {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-weight: 600;
}
.step__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--cream);
}
.step__desc {
  margin: 0;
  font-family: 'Lora', Georgia, serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dim);
  text-wrap: pretty;
}

.h-cream { color: var(--cream); }
.max-20 { max-width: 20ch; }
.max-22 { max-width: 22ch; }

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  background: var(--bg-deep);
  border-top: 1px solid var(--hairline);
}
.about__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.about__media { flex: 1 1 280px; max-width: 440px; }
.about__frame {
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
}
.about__frame img { width: 100%; height: 100%; object-fit: cover; }
.about__cred {
  margin: 14px 0 0;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}
.about__body { flex: 1 1 320px; }
.about__title {
  margin: 0 0 20px;
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--cream);
}
.about__p {
  margin: 0 0 16px;
  font-family: 'Lora', Georgia, serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-mut);
  text-wrap: pretty;
}
.about__p:last-of-type { margin-bottom: 28px; }
.social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.social a {
  border: 1px solid rgba(233, 228, 218, 0.2);
  padding: 9px 16px;
  border-radius: 3px;
  color: var(--text-mut);
}
.social a:hover { border-color: var(--gold); color: var(--gold); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 72px);
}
.contact__col { flex: 1 1 320px; }
.contact__title {
  margin: 0 0 20px;
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--cream);
}
.contact__copy {
  margin: 0 0 32px;
  font-family: 'Lora', Georgia, serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-dim);
  text-wrap: pretty;
}
.contact__list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact__phone {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.01em;
}
.contact__phone:hover { color: var(--gold); }
.contact__email { font-size: 16px; color: var(--gold); }
.contact__addr {
  margin: 8px 0 0;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  line-height: 2;
}

.form {
  flex: 1 1 340px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form input,
.form textarea {
  background: var(--bg-input);
  border: 1px solid rgba(233, 228, 218, 0.14);
  border-radius: 3px;
  padding: 15px 16px;
  font-size: 15px;
  color: var(--cream);
  font-family: 'Archivo', sans-serif;
}
.form textarea { resize: vertical; }
.form__row {
  display: flex;
  gap: 14px;
}
.form__row input { flex: 1 1 0; min-width: 0; }
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form button {
  background: var(--gold);
  color: #191713;
  border: none;
  padding: 16px 28px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  border-radius: 3px;
  cursor: pointer;
  font-family: 'Archivo', sans-serif;
}
.form button:hover { background: var(--gold-lt); }
.form__hint {
  margin: 0;
  font-size: 12px;
  color: var(--text-dim2);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--hairline);
  background: var(--bg-deep);
  padding: 28px clamp(20px, 5vw, 48px);
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-dim2);
}

/* Respect reduced-motion: pause autoplaying background video */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
