/* ═══════════════════════════════════════════════
   The Benchmark Construction — Styles
   Architectural warm ivory · Slate blue accent · Brass
   ═══════════════════════════════════════════════ */

:root {
  --bg-main: #F8F6F1;
  --bg-alt: #F3F0E8;
  --bg-white: #FFFFFF;
  --slate: #2D5A7A;
  --slate-hover: #234D6A;
  --slate-dim: rgba(45, 90, 122, 0.12);
  --slate-light: rgba(45, 90, 122, 0.06);
  --brass: #A68B5B;
  --brass-dim: rgba(166, 139, 91, 0.12);
  --brass-hover: #8F7A4E;
  --text: #1F1F1F;
  --text-dim: #5C5C5C;
  --text-muted: #909090;
  --text-on-dark: #FFFFFF;
  --border: #E2DED7;
  --border-glow: rgba(45, 90, 122, 0.2);
  --radius: 8px;
  --radius-sm: 6px;
  --transition: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-main);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── Typography ─── */

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
}

.accent { color: var(--brass); }
.accent-slate { color: var(--slate); }

/* ─── Section Container ─── */

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 16px;
  padding: 6px 16px;
  border: 1px solid var(--slate-dim);
  border-radius: 100px;
}

.section-title {
  font-size: clamp(32px, 4.5vw, 52px);
  color: var(--text);
  margin-bottom: 20px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 540px;
  margin: 0 auto;
}

/* ─── Buttons ─── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.4s var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--bg-white);
  color: var(--slate);
}

.btn-primary:hover {
  background: #F0EDE5;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(45, 90, 122, 0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--text-on-dark);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
  border-color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* ─── NAV ─── */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.5s var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-mark { flex-shrink: 0; }

.nav-logo-text { display: flex; flex-direction: column; }

.nav-logo-title {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  color: var(--text);
  line-height: 1.1;
}

.nav-logo-sub {
  font-size: 11px;
  color: var(--slate);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--slate);
  transition: width 0.3s var(--transition);
}

.nav-link:hover { color: var(--slate); }
.nav-link:hover::after { width: 100%; }

.nav-cta {
  padding: 10px 22px;
  background: var(--slate);
  color: var(--text-on-dark);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
}

.nav-cta:hover {
  background: var(--slate-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--slate-dim);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ─── HERO ─── */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
  background: var(--slate);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 32px;
  padding: 8px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
}

.hero-title {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 24px;
  color: var(--text-on-dark);
}

.hero-line-1 { display: block; }
.hero-line-2 { display: block; color: var(--brass); }

.hero-subtitle {
  font-size: clamp(15px, 1.2vw, 18px);
  color: rgba(255, 255, 255, 0.75);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat-num {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 36px;
  font-weight: 600;
  color: var(--text-on-dark);
  line-height: 1;
  margin-bottom: 6px;
}

.hero-stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 2;
}

/* ─── SERVICES ─── */

.services {
  background: var(--bg-main);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: all 0.4s var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--slate), transparent);
  transform: scaleX(0);
  transition: transform 0.6s var(--transition);
}

.service-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(45, 90, 122, 0.08);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon { margin-bottom: 20px; }

.service-title {
  font-size: 20px;
  color: var(--text);
  margin-bottom: 12px;
}

.service-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-features {
  list-style: none;
}

.service-features li {
  font-size: 13px;
  color: var(--text-muted);
  padding: 4px 0;
  position: relative;
  padding-left: 16px;
}

.service-features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--slate);
}

/* ─── ABOUT ─── */

.about {
  background: var(--bg-main);
}

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-media { position: relative; }

.about-image-frame {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image-accent {
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 60%;
  height: 60%;
  border: 1px solid var(--brass-dim);
  border-radius: var(--radius);
  z-index: -1;
}

.about-heading {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 20px;
  color: var(--text);
}

.about-text {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-values {
  list-style: none;
  margin-top: 24px;
}

.about-values li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text);
}

/* ─── PROJECTS ─── */

.projects {
  background: var(--bg-alt);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-white);
  transition: all 0.4s var(--transition);
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 16px 48px rgba(45, 90, 122, 0.08);
}

.project-image {
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(45, 90, 122, 0.15) 100%);
}

.project-image-content { position: relative; z-index: 1; }

.project-info { padding: 20px; }

.project-title {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 4px;
}

.project-location {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-tag {
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--slate-light);
  color: var(--slate);
  font-weight: 500;
}

/* ─── TESTIMONIALS ─── */

.testimonials {
  background: var(--bg-alt);
}

.testimonials-track-wrapper {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
}

.testimonials-track {
  display: flex;
  gap: 24px;
  width: max-content;
}

.testimonial-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  width: 340px;
  flex-shrink: 0;
  transition: all 0.3s;
}

.testimonial-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 8px 24px rgba(45, 90, 122, 0.06);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}

.testimonial-author { display: flex; flex-direction: column; }

.testimonial-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.testimonial-location {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ─── CONTACT ─── */

.contact {
  background: var(--bg-main);
}

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: var(--bg-white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.contact-info-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-info-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.contact-form {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s;
}

.form-input:focus {
  outline: none;
  border-color: var(--slate);
  box-shadow: 0 0 0 3px var(--slate-dim);
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A68B5B' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.form-select option { background: var(--bg-white); color: var(--text); }

.form-textarea { resize: vertical; min-height: 100px; }

.form-submit {
  width: 100%;
  padding: 16px;
  font-size: 15px;
  margin-top: 8px;
  background: var(--slate);
  color: var(--text-on-dark);
}

.form-submit:hover {
  background: var(--slate-hover);
  box-shadow: 0 8px 24px rgba(45, 90, 122, 0.2);
}

/* ─── FOOTER ─── */

.footer {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s;
}

.footer-link:hover { color: var(--slate); }

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

/* ─── RESPONSIVE ─── */

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg-white);
    padding: 80px 32px;
    gap: 8px;
    border-left: 1px solid var(--border);
    z-index: 99;
  }
  .nav-toggle { display: flex; z-index: 100; }

  .hero-title { font-size: clamp(40px, 10vw, 56px); }
  .hero-stats { gap: 24px; }
  .hero-stat-num { font-size: 28px; }

  .about-split { grid-template-columns: 1fr; gap: 32px; }
  .projects-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }
  .contact-split { grid-template-columns: 1fr; }

  .footer-content { flex-direction: column; gap: 24px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}

/* Project image overlay */
.project-image {
  position: relative;
  overflow: hidden;
  min-height: 240px;
}
.project-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.5) 100%);
  z-index: 1;
  pointer-events: none;
}
.project-card:hover .project-image {
  background-size: 110% !important;
  transition: background-size 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-image {
  transition: background-size 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}