/* =========================================================
   AMALGAM CONSTRUCTION — CORE STYLESHEET
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Color tokens */
  --black: #15130F;
  --charcoal: #211E19;
  --charcoal-light: #3B3630;
  --white: #FFFFFF;
  --gray-light: #F2F0EB;
  --gray-mid: #8C8678;
  --gray-border: #DEDACF;
  --yellow: #FFC13A;
  --orange: #FE7C26;

  /* Type */
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --max-width: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
}

/* -------------------- Reset -------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
h1, h2, h3, h4, p { margin: 0; }

/* visible focus state for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

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

/* -------------------- Typography -------------------- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--orange);
  display: inline-block;
}

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.01em;
  font-size: clamp(2.8rem, 7vw, 6.2rem);
  text-transform: uppercase;
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.005em;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  text-transform: uppercase;
}
h3, .h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  text-transform: uppercase;
}
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--gray-mid);
  max-width: 46ch;
  line-height: 1.65;
}
.body-text { max-width: 68ch; color: var(--charcoal); }
.body-text + .body-text { margin-top: 1rem; }

.on-dark .lede { color: #C9C4B8; }
.on-dark .body-text { color: #D9D5C9; }

/* -------------------- Layout helpers -------------------- */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: clamp(4rem, 8vw, 7.5rem) 0; }
.section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--dark { background: var(--black); color: var(--white); }
.section--charcoal { background: var(--charcoal); color: var(--white); }
.section--light { background: var(--gray-light); }
.section--white { background: var(--white); }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 3rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  flex-wrap: wrap;
}
.section-head h2 { max-width: 14ch; }

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--orange);
  color: var(--black);
}
.btn--primary:hover { background: var(--yellow); }
.btn--outline-dark {
  border-color: var(--black);
  color: var(--black);
  background: transparent;
}
.btn--outline-dark:hover { background: var(--black); color: var(--white); }
.btn--outline-light {
  border-color: rgba(255,255,255,0.45);
  color: var(--white);
  background: transparent;
}
.btn--outline-light:hover { border-color: var(--white); background: var(--white); color: var(--black); }
.btn--block { width: 100%; }
.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; }

/* -------------------- Header -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(21, 19, 15, 0.96);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white);
}
.brand-mark { background: var(--white); padding: 4px; display: inline-flex; }
.brand img { height: 40px; width: auto; display: block; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
}
.brand-text span { display: block; font-size: 0.6rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0.18em; color: var(--yellow); margin-top: 3px; }

.main-nav { display: flex; align-items: center; gap: 2.6rem; }
.main-nav ul { display: flex; gap: 2.4rem; }
.main-nav a {
  color: #E7E4DA;
  font-weight: 500;
  font-size: 0.98rem;
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.2s ease;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width 0.2s ease;
}
.main-nav a:hover { color: var(--white); }
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { width: 100%; }
.main-nav a[aria-current="page"] { color: var(--white); }

.header-actions { display: flex; align-items: center; gap: 1.5rem; }
.header-phone {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.header-phone svg { width: 16px; height: 16px; fill: var(--yellow); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 32px;
  position: relative;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* -------------------- Hero -------------------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, rgba(21,19,15,0.35) 0%, rgba(21,19,15,0.55) 55%, rgba(21,19,15,0.92) 100%),
              url('../assets/images/hero-site.jpg') center/cover no-repeat;
  color: var(--white);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: -6%;
  width: 46%;
  height: 100%;
  background: var(--orange);
  clip-path: polygon(38% 0, 100% 0, 62% 100%, 0% 100%);
  opacity: 0.14;
}
.hero-inner { position: relative; padding-bottom: clamp(3rem, 6vw, 5rem); padding-top: 8rem; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--yellow);
  color: var(--black);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding: 0.5rem 0.9rem;
  margin-bottom: 1.6rem;
}
.hero h1 { max-width: 15ch; }
.hero h1 .accent { color: var(--yellow); }
.hero-desc { margin-top: 1.6rem; max-width: 52ch; font-size: 1.15rem; color: #E9E6DC; }
.hero-actions { margin-top: 2.6rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.hero-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--white);
}
.hero-phone svg { width: 20px; height: 20px; fill: var(--yellow); }

/* smaller inner-page hero */
.page-hero {
  position: relative;
  padding: 11rem 0 4.5rem;
  background: linear-gradient(180deg, rgba(21,19,15,0.55), rgba(21,19,15,0.88)), url('../assets/images/page-banner.jpg') center/cover no-repeat;
  color: var(--white);
}
.page-hero .eyebrow { color: var(--yellow); }
.page-hero .eyebrow::before { background: var(--yellow); }
.page-hero h1 { margin-top: 1rem; }
.page-hero .lede { margin-top: 1.2rem; color: #E4E1D6; }
.breadcrumb {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem;
  color: #B8B3A5;
  padding: 1rem 0;
}
.breadcrumb a:hover { color: var(--yellow); }

/* -------------------- Stat strip -------------------- */
.stat-strip {
  display: flex;
  border-top: 1px solid var(--gray-border);
  border-bottom: 1px solid var(--gray-border);
}
.stat-strip .stat {
  flex: 1;
  padding: 2.2rem var(--gutter);
  border-right: 1px solid var(--gray-border);
}
.stat-strip .stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--orange);
  display: block;
}
.stat-label { font-size: 0.9rem; color: var(--gray-mid); margin-top: 0.2rem; }

/* -------------------- Cards: services -------------------- */
.service-list { border-top: 1px solid var(--gray-border); }
.service-row {
  display: grid;
  grid-template-columns: 90px 1fr 220px;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid var(--gray-border);
  transition: background-color 0.2s ease;
}
.service-row:hover { background: var(--gray-light); }
.service-index {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gray-mid);
}
.service-row h3 { margin-bottom: 0.5rem; }
.service-row p { color: var(--gray-mid); max-width: 60ch; }
.service-arrow {
  justify-self: end;
  width: 44px; height: 44px;
  border: 2px solid var(--black);
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.service-row:hover .service-arrow { background: var(--orange); border-color: var(--orange); }
.service-arrow svg { width: 18px; height: 18px; }

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  padding: 2.2rem;
  height: 100%;
}
.service-card .service-index { display: block; margin-bottom: 1.4rem; }
.service-card h3 { margin-bottom: 0.8rem; }
.service-card p { color: var(--gray-mid); font-size: 0.96rem; }

/* -------------------- Project cards -------------------- */
.project-card {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
  color: var(--white);
  display: block;
}
.project-card .img-wrap { aspect-ratio: 4/3; overflow: hidden; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.project-card:hover img { transform: scale(1.06); }
.project-card-body { padding: 1.4rem 1.5rem 1.6rem; }
.project-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--yellow);
  text-transform: uppercase;
}
.project-card h3 { margin-top: 0.5rem; font-size: 1.35rem; }
.project-loc { color: #B8B3A5; font-size: 0.9rem; margin-top: 0.35rem; }
.project-card .underline {
  height: 2px; width: 0; background: var(--orange); margin-top: 1rem;
  transition: width 0.3s ease;
}
.project-card:hover .underline { width: 48px; }

.filter-bar { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.filter-btn {
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--gray-border);
  background: transparent;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--charcoal);
  transition: all 0.2s ease;
}
.filter-btn:hover { border-color: var(--orange); }
.filter-btn.is-active { background: var(--black); border-color: var(--black); color: var(--white); }

/* -------------------- Why us -------------------- */
.reason-card { padding: 2rem 0 2rem 0; border-top: 1px solid rgba(255,255,255,0.15); }
.reason-card:last-child { border-bottom: 1px solid rgba(255,255,255,0.15); }
.reason-num { font-family: var(--font-display); font-size: 1.1rem; color: var(--yellow); }
.reason-card h3 { margin-top: 0.6rem; }
.reason-card p { margin-top: 0.6rem; color: #C9C4B8; max-width: 50ch; }

/* -------------------- CTA band -------------------- */
.cta-band {
  background: var(--black);
  color: var(--white);
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: '';
  position: absolute;
  left: -8%; bottom: -40%;
  width: 50%;
  height: 140%;
  background: var(--yellow);
  opacity: 0.08;
  clip-path: polygon(0 0, 55% 0, 100% 100%, 45% 100%);
}
.cta-band-inner { position: relative; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 2.5rem; }
.cta-band h2 { max-width: 18ch; }
.cta-contact { display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start; }
.cta-contact a { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.cta-contact a:hover { color: var(--yellow); }

/* -------------------- Values / About -------------------- */
.value-grid { border-top: 1px solid var(--gray-border); border-left: 1px solid var(--gray-border); }
.value-item { border-right: 1px solid var(--gray-border); border-bottom: 1px solid var(--gray-border); padding: 2.4rem; }
.value-item h3 { margin-bottom: 0.8rem; }
.value-item p { color: var(--gray-mid); font-size: 0.96rem; }

.approach-row { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem,5vw,5rem); align-items: center; }
.approach-row:nth-child(even) .approach-media { order: 2; }
.approach-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.approach-row + .approach-row { margin-top: clamp(3rem, 6vw, 5rem); }

/* -------------------- Contact -------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2.5rem, 5vw, 5rem); }
.contact-info-item { padding: 1.6rem 0; border-bottom: 1px solid var(--gray-border); }
.contact-info-item:first-child { padding-top: 0; }
.contact-info-item .label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.03em; color: var(--orange); text-transform: uppercase; }
.contact-info-item .value { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; margin-top: 0.4rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--charcoal); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--gray-border);
  background: var(--gray-light);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--orange);
  background: var(--white);
  outline: none;
}
.field textarea { resize: vertical; min-height: 130px; }
.field-required { color: var(--orange); }
.form-note { font-size: 0.85rem; color: var(--gray-mid); margin-top: 1rem; }
.form-success {
  display: none;
  background: var(--gray-light);
  border-left: 3px solid var(--orange);
  padding: 1.2rem 1.4rem;
  margin-top: 1.5rem;
  font-weight: 500;
}
.form-success.is-visible { display: block; }

/* -------------------- Partners -------------------- */
.login-card { max-width: 480px; margin: 0 auto; }
.form-error {
  display: none;
  color: #B3261E;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 1rem;
}
.form-error.is-visible { display: block; }
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--gray-border);
  padding-bottom: 1.4rem;
  margin-bottom: 1.4rem;
}
.download-list { list-style: none; margin: 0; padding: 0; }
.download-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--gray-border);
  flex-wrap: wrap;
}
.download-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.download-meta { color: var(--gray-mid); font-size: 0.9rem; margin-top: 0.2rem; }

/* -------------------- Project detail -------------------- */
.detail-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; border-top: 1px solid var(--gray-border); border-bottom: 1px solid var(--gray-border); padding: 2rem 0; }
.detail-meta .label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--gray-mid); }
.detail-meta .value { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin-top: 0.4rem; }
.detail-gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; }
.detail-gallery img { width: 100%; height: 100%; object-fit: cover; }
.detail-gallery .stack { display: grid; gap: 1rem; }

/* -------------------- Footer -------------------- */
.site-footer { background: var(--black); color: #D9D5C9; padding: clamp(3.5rem, 6vw, 5.5rem) 0 2rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand .brand-text { color: var(--white); }
.footer-tagline { margin-top: 1rem; max-width: 32ch; color: #B8B3A5; font-size: 0.95rem; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--white); margin-bottom: 1.2rem; }
.footer-col ul li { margin-bottom: 0.7rem; }
.footer-col a { color: #C9C4B8; font-size: 0.95rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--yellow); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1.8rem; font-size: 0.85rem; color: #8A8578; flex-wrap: wrap; gap: 1rem; }
.footer-bottom a:hover { color: var(--yellow); }

/* -------------------- Utility -------------------- */
.visually-hidden {
  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: -9999px; top: 0; z-index: 200;
  background: var(--yellow); color: var(--black); padding: 1rem 1.5rem; font-weight: 700;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .approach-row { grid-template-columns: 1fr; }
  .approach-row:nth-child(even) .approach-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .detail-meta { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .main-nav { position: fixed; inset: 88px 0 0 0; background: var(--black); flex-direction: column; align-items: stretch; padding: 2rem var(--gutter); gap: 2rem; transform: translateX(100%); transition: transform 0.3s ease; overflow-y: auto; }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 1.6rem; }
  .main-nav a { font-size: 1.3rem; }
  .header-phone { display: none; }
  .nav-toggle { display: flex; }
  .stat-strip { flex-wrap: wrap; }
  .stat-strip .stat { flex: 1 1 50%; border-bottom: 1px solid var(--gray-border); }
  .service-row { grid-template-columns: 50px 1fr; }
  .service-arrow { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .value-grid { border-left: none; }
  .value-item { border-right: none; }
  .form-grid { grid-template-columns: 1fr; }
  .detail-meta { grid-template-columns: 1fr 1fr; }
  .detail-gallery { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2.2rem; }
}

@media (max-width: 480px) {
  .site-header .wrap { height: 72px; }
  .brand img { height: 38px; }
  .hero { min-height: 100vh; }
  .hero-inner { padding-top: 6rem; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
}
