/* ===========================
   Mayfair Masonry - Design Tokens
   =========================== */
:root {
  --ink: #1C1A16;
  --stone: #F1EAE0;
  --stone-dim: #E5DCCC;
  --clay: #1F4A3D;
  --clay-dark: #143128;
  --sand: #D4B25A;
  --taupe: #3A3630;
  --white: #FFFDF9;

  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;

  --max-width: 1180px;
  --edge: clamp(20px, 5vw, 64px);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--taupe);
  background: var(--stone);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--edge);
  padding-right: var(--edge);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* subtle paper grain overlay for warmth */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ===========================
   Eyebrow / Section Titles
   =========================== */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 14px;
  display: block;
}
.eyebrow-light { color: var(--sand); }

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.15;
  color: var(--ink);
  max-width: 720px;
  margin-bottom: 48px;
}
.section-title-light { color: var(--white); }

/* ===========================
   Header / Nav
   =========================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  background: rgba(241, 234, 224, 0.92);
  backdrop-filter: blur(8px);
  padding: 14px 0;
  box-shadow: 0 1px 0 rgba(28,26,22,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.01em;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}
.site-header.scrolled .logo { color: var(--ink); }
.logo span { color: var(--clay); font-weight: 400; }
.logo-footer { color: var(--white); font-size: 1.4rem; }

.logo-img {
  height: 52px;
  width: auto;
  display: block;
  background: rgba(255,253,249,0.9);
  border-radius: 50%;
  padding: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled .logo-img {
  background: transparent;
  box-shadow: none;
}
.logo-img-footer {
  height: 46px;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--white);
  transition: color 0.3s ease, opacity 0.2s ease;
  opacity: 0.9;
}
.main-nav a:hover { opacity: 1; }
.site-header.scrolled .main-nav a { color: var(--taupe); }
.site-header.scrolled .main-nav a.nav-cta { color: var(--white); }

.nav-cta {
  background: var(--clay);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 2px;
  opacity: 1 !important;
}
.nav-cta:hover { background: var(--clay-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: background 0.3s ease;
}
.site-header.scrolled .nav-toggle span { background: var(--ink); }

/* ===========================
   Hero
   =========================== */
.hero {
  position: relative;
  min-height: 85vh;
  min-height: 85svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  z-index: 0;
}
.hero-bg-static {
  animation: heroZoomIn 18s ease-out forwards;
  transform-origin: center 55%;
}
@keyframes heroZoomIn {
  0%   { transform: scale(1); }
  100% { transform: scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg-static { animation: none; }
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(20,18,14,0.15) 0%, rgba(20,18,14,0.08) 30%, rgba(20,18,14,0.68) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 0;
  padding-bottom: 56px;
  color: var(--white);
}
.hero-title-large {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  line-height: 1.0;
  max-width: 900px;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===========================
   Hero Intro strip
   =========================== */
.hero-intro {
  background: var(--white);
  padding: 48px 0;
  border-bottom: 1px solid var(--stone-dim);
}
.hero-intro-text {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  max-width: 780px;
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 2px;
  transition: all 0.25s ease;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--clay);
  color: var(--white);
}
.btn-primary:hover { background: var(--clay-dark); }
.btn-ghost {
  border-color: rgba(255,253,249,0.5);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,253,249,0.08); }
.btn-full { width: 100%; text-align: center; border: none; }

/* Coursing divider - signature element: echoes brick stretcher bond */
.coursing {
  position: relative;
  z-index: 1;
  height: 22px;
  width: 100%;
  background-image:
    linear-gradient(90deg, transparent 0 3px, var(--stone) 3px 100%),
    linear-gradient(var(--clay), var(--clay));
  background-size: 64px 22px, 100% 100%;
  background-repeat: repeat-x, no-repeat;
}
.coursing::before,
.coursing::after { content: none; }
.coursing-dark {
  background-image:
    linear-gradient(90deg, transparent 0 3px, var(--ink) 3px 100%),
    linear-gradient(var(--sand), var(--sand));
  background-size: 64px 22px, 100% 100%;
}

/* ===========================
   Trust strip
   =========================== */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--stone-dim);
}
.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 36px var(--edge);
}
.trust-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  border-left: 1px solid var(--stone-dim);
  padding-left: 24px;
}
.trust-item:first-child { border-left: none; padding-left: 0; }
.trust-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--clay);
  font-weight: 500;
}
.trust-label {
  font-size: 0.8rem;
  color: var(--taupe);
  opacity: 0.75;
}

/* ===========================
   Services (ledger layout)
   =========================== */
.services { padding: 110px 0 90px; background: var(--stone); }

.service-ledger {
  border-top: 1px solid rgba(28,26,22,0.15);
}
.service-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding: 34px 0;
  border-bottom: 1px solid rgba(28,26,22,0.15);
}
.service-mark {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay);
  padding-top: 4px;
}
.service-body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 10px;
}
.service-body p {
  max-width: 620px;
  color: var(--taupe);
  opacity: 0.85;
  font-size: 0.98rem;
}

/* ===========================
   Projects
   =========================== */
.projects { background: var(--ink); padding: 100px 0 110px; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.project-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.project-img {
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #2A2620;
}
.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.project-card:hover .project-img img { transform: scale(1.04); }

.project-img-contain img {
  object-fit: contain;
  background: #14120F;
}
.project-card:hover .project-img-contain img { transform: none; }

.project-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed rgba(201,168,118,0.4);
  color: var(--sand);
  font-size: 0.9rem;
  font-family: var(--font-body);
  background: rgba(255,255,255,0.02);
}

.project-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sand);
}
.project-info h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--white);
  margin: 8px 0 8px;
}
.project-info p {
  color: rgba(255,253,249,0.7);
  font-size: 0.94rem;
  max-width: 480px;
}

/* ===========================
   Process
   =========================== */
.process { padding: 110px 0; background: var(--stone); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.process-step {
  border-top: 2px solid var(--clay);
  padding-top: 20px;
}
.process-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--sand);
  display: block;
  margin-bottom: 14px;
}
.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
}
.process-step p {
  font-size: 0.92rem;
  color: var(--taupe);
  opacity: 0.85;
}

/* ===========================
   About
   =========================== */
.about {
  background: var(--white);
  padding: 110px 0;
}
.about-text { max-width: 760px; }
.about-text p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--taupe);
  margin-bottom: 20px;
  opacity: 0.9;
}

/* ===========================
   Contact
   =========================== */
.contact {
  background: var(--ink);
  padding: 110px 0;
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}
.contact-lede {
  color: rgba(255,253,249,0.8);
  font-size: 1.05rem;
  max-width: 420px;
  margin-bottom: 44px;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,253,249,0.15);
  transition: opacity 0.2s ease;
}
a.contact-detail:hover { opacity: 0.7; }
.contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sand);
}
.contact-value {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
}
.contact-value-address {
  line-height: 1.5;
}

.contact-form {
  background: var(--stone);
  padding: 40px;
  border-radius: 4px;
}
.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;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--taupe);
  margin-bottom: 6px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid rgba(28,26,22,0.18);
  border-radius: 2px;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--clay);
}
.form-note {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--clay-dark);
  min-height: 1.2em;
}

/* ===========================
   Footer
   =========================== */
.site-footer {
  background: var(--ink);
  padding: 36px 0;
  border-top: 1px solid rgba(255,253,249,0.1);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-inner p {
  font-size: 0.85rem;
  color: rgba(255,253,249,0.55);
}

/* Focus visibility for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding: 40px var(--edge);
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { color: var(--white); font-size: 1.1rem; opacity: 1; }
  .nav-toggle { display: flex; }

  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-left: none; padding-left: 0; }

  .service-row { grid-template-columns: 1fr; gap: 12px; }

  .project-grid { grid-template-columns: 1fr; }

  .process-grid { grid-template-columns: 1fr 1fr; }

  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 560px) {
  .process-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 22px; }
  .hero-content { padding-bottom: 40px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; }
}
