/* House of Handle LLC — shared styles
   Aesthetic: warm editorial + modern tech */

:root {
  --bg:        #FAF7F2;   /* warm off-white */
  --bg-alt:    #F2EDE4;   /* slightly deeper warm */
  --ink:       #1F1B17;   /* near-black, warm */
  --ink-soft:  #4A443D;   /* muted body text */
  --line:      #E2D9CB;   /* hairline borders */
  --clay:      #B25C3E;   /* warm terracotta accent */
  --clay-dk:   #97492F;
  --sand:      #C9A977;   /* secondary warm */
  --card:      #FFFFFF;
  --header:    #23160C;   /* dark espresso, matches logo */
  --cream:     #ECE0CE;   /* light text on dark header */
  --cream-dim: rgba(236,224,206,.70);
  --shadow:    0 1px 2px rgba(31,27,23,.04), 0 12px 32px rgba(31,27,23,.06);
  --radius:    18px;
  --maxw:      1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; color: var(--ink-soft); }

a { color: var(--clay-dk); text-decoration: none; }
a:hover { color: var(--clay); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: "Inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--clay);
  margin-bottom: 1rem;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header);
  border-bottom: none;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 84px;
}
.brand {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cream);
  display: flex; align-items: center; gap: 18px;
}
.brand .mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center;
  font-size: .95rem; font-weight: 700;
  font-family: "Inter", sans-serif;
}
.brand .mark-img {
  width: 60px; height: 60px;
  object-fit: cover; display: block;
}
.logo-divider {
  width: 1px; height: 34px;
  background: rgba(236,224,206,.32);
  display: inline-block;
}
.site-footer .logo-divider { display: none; }
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  color: var(--cream-dim);
  font-family: "Inter", sans-serif;
  font-size: .78rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .16em;
}
.nav-links a:hover, .nav-links a.active { color: var(--cream); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
/* footer keeps the dark wordmark on the light footer */
.site-footer .brand { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--ink); color: var(--bg);
  padding: 15px 30px; border-radius: 2px;
  font-weight: 600; font-size: .76rem;
  text-transform: uppercase; letter-spacing: .16em;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn:hover { background: var(--clay-dk); color: #fff; transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--bg-alt); color: var(--ink); }

/* Hero buttons on the dark image: filled cream + cream outline */
.hero-banner .btn {
  background: var(--cream); color: #2A1D10;
}
.hero-banner .btn:hover { background: #fff; color: #2A1D10; }
.hero-banner .btn-ghost {
  background: transparent; color: var(--cream);
  border: 1px solid rgba(236,224,206,.55);
}
.hero-banner .btn-ghost:hover { background: rgba(236,224,206,.12); color: #fff; }

/* ---------- Hero ---------- */
.hero { padding: clamp(64px, 11vw, 132px) 0 clamp(48px, 7vw, 84px); }
.hero h1 { max-width: 16ch; }
.hero .lede {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  max-width: 56ch; color: var(--ink-soft);
}
.hero-actions { display: flex; gap: 14px; margin-top: 2rem; flex-wrap: wrap; }

/* ---------- Image hero banner ---------- */
.hero-banner {
  position: relative;
  min-height: clamp(520px, 78vh, 760px);
  display: flex; align-items: center;
  background-image:
    linear-gradient(90deg, rgba(30,19,10,.88) 0%, rgba(30,19,10,.66) 40%, rgba(30,19,10,.34) 70%, rgba(30,19,10,.16) 100%),
    url('images/header.jpg');
  background-size: cover;
  background-position: center right;
}
.hero-banner .wrap { width: 100%; }
.hero-banner .eyebrow { color: #D9C2A0; }
.hero-banner h1 {
  color: var(--cream); max-width: 13ch;
  font-size: clamp(3.4rem, 8.5vw, 6.5rem);
  line-height: 0.98; font-weight: 300;
  letter-spacing: -0.02em;
}
.hero-banner .lede {
  color: rgba(236,224,206,.84); max-width: 54ch;
  font-size: clamp(1rem, 1.4vw, 1.15rem); margin-top: 1.6rem;
}
.hero-banner .hero-actions { margin-top: 2.6rem; }
.hero-banner .btn-ghost { color: #FBF7F0; border-color: rgba(251,247,240,.5); }
.hero-banner .btn-ghost:hover { background: rgba(251,247,240,.12); color: #fff; }
@media (max-width: 640px) {
  .hero-banner {
    background-image:
      linear-gradient(180deg, rgba(38,30,22,.35) 0%, rgba(38,30,22,.78) 100%),
      url('images/header.jpg');
    background-position: center;
    align-items: flex-end;
    padding-bottom: 40px;
  }
}

/* ---------- Sections ---------- */
section { padding: clamp(64px, 9vw, 116px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 56ch; margin-bottom: 4.5rem; }
.section-head h2 { font-weight: 400; }

/* ---------- Philosophy ---------- */
.philosophy { padding: clamp(110px, 16vw, 220px) 0; }
.philosophy-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(40px, 6vw, 96px); align-items: center;
}
.philosophy-media { overflow: hidden; border-radius: 3px; }
.philosophy-media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block;
}
.philosophy .by {
  font-family: "Inter", sans-serif; font-weight: 500;
  text-transform: uppercase; letter-spacing: .18em;
  font-size: .72rem; color: var(--clay);
  margin: 0 0 2.4rem;
}
.philosophy-line {
  font-family: "Fraunces", serif; font-weight: 300;
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  line-height: 1.08; letter-spacing: -0.02em;
  color: var(--ink); max-width: 18ch; margin: 0 0 1.8rem;
}
.philosophy-sub {
  max-width: 50ch; margin: 0;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.6; color: var(--ink-soft);
}

/* ---------- Built to last (dark statement) ---------- */
.manifesto {
  background: var(--header); color: var(--cream);
  padding: clamp(110px, 16vw, 210px) 0;
}
.manifesto .by { color: #D9C2A0; margin: 0 0 2.2rem;
  font-family: "Inter", sans-serif; font-weight: 500;
  text-transform: uppercase; letter-spacing: .18em; font-size: .72rem;
}
.manifesto-line {
  font-family: "Fraunces", serif; font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.7rem);
  line-height: 1.42; letter-spacing: -0.01em;
  color: var(--cream); max-width: 28ch; margin: 0;
}

/* ---------- How we think (creed) ---------- */
.creed { padding: clamp(120px, 17vw, 230px) 0; text-align: center; }
.creed .by {
  color: var(--clay); margin: 0 0 3rem;
  font-family: "Inter", sans-serif; font-weight: 500;
  text-transform: uppercase; letter-spacing: .18em; font-size: .72rem;
}
.creed-lines p {
  font-family: "Fraunces", serif; font-weight: 300;
  font-size: clamp(1.7rem, 4vw, 3.2rem);
  line-height: 1.3; letter-spacing: -0.015em;
  color: var(--ink); margin: 0 auto .35em; max-width: 26ch;
}
.creed-lines p:last-child { margin-bottom: 0; }
.creed-coda {
  margin: 3rem auto 0; color: var(--ink-soft);
  font-family: "Inter", sans-serif; font-size: 1.05rem;
}

/* ---------- Our Work (editorial photo blocks) ---------- */
.work-list { margin-top: 3rem; display: flex; flex-direction: column; gap: clamp(64px, 8vw, 120px); }
.work-item {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px); align-items: center;
  color: var(--ink);
}
.work-media { overflow: hidden; border-radius: 3px; }
.work-media img {
  width: 100%; aspect-ratio: 5 / 4; object-fit: cover;
  display: block; transition: transform .6s ease;
}
.work-item:hover .work-media img { transform: scale(1.04); }
.work-item:nth-of-type(even) .work-media { order: 2; }
.work-title {
  font-family: "Fraunces", serif; font-weight: 300;
  font-size: clamp(2rem, 3.6vw, 3rem);
  letter-spacing: -0.015em; line-height: 1.08; margin-bottom: 1.2rem;
}
.work-desc p { margin: 0 0 1.6rem; max-width: 38ch; color: var(--ink-soft); font-size: 1.08rem; }
.explore {
  font-family: "Inter", sans-serif; font-weight: 600;
  text-transform: uppercase; letter-spacing: .16em;
  font-size: .74rem; color: var(--ink);
}
.explore::after { content: " →"; color: var(--clay); }
.work-item:hover .explore { color: var(--clay); }

/* ---------- Selected work (tiny reveal) ---------- */
.selected-list { list-style: none; margin: 2.5rem 0 0; padding: 0; }
.selected-list li { border-top: 1px solid var(--line); }
.selected-list li:last-child { border-bottom: 1px solid var(--line); }
.selected-list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 26px 2px; color: var(--ink);
  font-family: "Fraunces", serif; font-weight: 400; font-size: 1.5rem;
  transition: padding-left .25s ease;
}
.selected-list a:hover { padding-left: 12px; color: var(--clay); }
.selected-list a::after { content: "→"; font-family: "Inter", sans-serif; font-size: 1rem; color: var(--ink-soft); }
.selected-list a:hover::after { color: var(--clay); }
.coming-soon {
  display: block; padding: 26px 2px;
  font-family: "Inter", sans-serif; font-weight: 500;
  text-transform: uppercase; letter-spacing: .18em;
  font-size: .74rem; color: var(--sand);
}

/* ---------- Company prose ---------- */
.company-copy { max-width: 62ch; }
.company-copy p {
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.7; color: var(--ink-soft); margin: 0 0 1.6rem;
}
.company-copy .company-place {
  color: var(--ink); font-weight: 500; margin: 2.2rem 0 2rem;
}

/* ---------- Architectural capability columns ---------- */
.cols { display: grid; gap: 64px; grid-template-columns: repeat(3, 1fr); }
.col-2 { grid-template-columns: repeat(2, 1fr); }
.feature {
  background: transparent; border: none; box-shadow: none;
  border-top: 1px solid var(--line);
  border-radius: 0; padding: 28px 0 0;
}
.feature .tag {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .18em;
  font-weight: 600; color: var(--clay);
}
.feature h3 {
  margin-top: 1rem; font-size: 1.6rem; font-weight: 400;
}
.feature p { margin-bottom: 0; }
.feature ul {
  margin: 1rem 0 0; padding-left: 1.1em;
  color: var(--ink-soft); font-size: .95rem;
}
.feature li { margin-bottom: .3rem; }

/* ---------- Brand cards ---------- */
.brand-grid { display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); }
.brand-grid-2 { grid-template-columns: repeat(2, 1fr); gap: 40px; }
.card-links { margin-top: 1.1rem; display: flex; flex-direction: column; gap: .5rem; }
.card-links a {
  font-family: "Inter", sans-serif; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em; font-size: .72rem;
  color: var(--ink);
}
.card-links a::after { content: " →"; color: var(--clay); }
.card-links a:hover { color: var(--clay); }
.brand-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.brand-card .swatch {
  height: 240px; overflow: hidden;
}
.brand-card .swatch img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s ease;
}
.brand-card:hover .swatch img { transform: scale(1.04); }

/* ---------- Full-width page banner ---------- */
.page-banner { overflow: hidden; }
.page-banner img {
  width: 100%; height: clamp(280px, 42vw, 540px);
  object-fit: cover; display: block;
}
.brand-card .body { padding: 28px; flex: 1; }
.brand-card .body .kind {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .14em;
  font-weight: 700; color: var(--clay);
}
.brand-card .body h3 { margin: .4rem 0 .4rem; }

/* ---------- Social row ---------- */
.social-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 1.4rem; }
.social-chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--card); border: 1px solid var(--line);
  padding: 11px 18px; border-radius: 999px;
  font-weight: 600; font-size: .9rem; color: var(--ink);
}
.social-chip:hover { background: var(--bg-alt); color: var(--ink); }
.social-chip svg { width: 18px; height: 18px; }

/* ---------- Contact / lists ---------- */
.contact-grid { display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); }
.contact-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow);
}
.contact-card h3 { font-size: 1.1rem; }
.contact-card a { font-weight: 600; }

/* ---------- Footer ---------- */
.footer-strip { overflow: hidden; }
.footer-strip img {
  width: 100%; height: clamp(180px, 26vw, 320px);
  object-fit: cover; display: block;
}
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 56px 0 40px; margin-top: 0;
}
.footer-grid {
  display: flex; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.footer-grid .col h4 {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--ink); margin: 0 0 14px;
}
.footer-grid .col a {
  display: block; color: var(--ink-soft);
  font-size: .92rem; margin-bottom: 9px;
}
.footer-grid .col a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--ink-soft);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .cols, .col-2, .brand-grid, .contact-grid { grid-template-columns: 1fr; }
  .work-item { grid-template-columns: 1fr; gap: 24px; }
  .work-item:nth-of-type(even) .work-media { order: 0; }
  .philosophy-grid { grid-template-columns: 1fr; gap: 40px; }
  .philosophy-media img { aspect-ratio: 3 / 2; }
  .nav-links {
    position: absolute; top: 84px; left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--header); border-bottom: 1px solid rgba(236,224,206,.18);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 360px; }
  .nav-links a { padding: 16px 28px; border-top: 1px solid rgba(236,224,206,.14); }
  .nav-toggle { display: block; }
  .brand { font-size: 1.05rem; letter-spacing: .16em; gap: 12px; }
  .brand .mark-img { width: 42px; height: 42px; }
}
