/* ============================================================
   HAMMEL HAUS DESIGN CO.
   Shared stylesheet — edit colors & fonts here in one place.
   ============================================================ */

/* ---- 0. Self-hosted font (no external dependency) ---- */
@font-face {
  font-family: "Jost";
  src: url("assets/fonts/Jost.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---- 1. Brand palette (change these to retheme the whole site) ---- */
:root {
  --cream:        #e8e5df;   /* page background (from the form page) */
  --cream-soft:   #efece6;   /* slightly lighter panels */
  --rust:         #9e4e2c;   /* terracotta accent — headings, links, button */
  --rust-deep:    #863f22;   /* hover state for rust */
  --ink:          #3d3a36;   /* primary warm charcoal text */
  --muted:        #6e6860;   /* secondary / labels */
  --line:         #b9b2a7;   /* input borders, hairlines */
  --hero-text:    #f3efe9;   /* light text over the hero photo */
  /* darkening layer on hero image — must be a gradient to be a valid bg layer */
  --hero-overlay: linear-gradient(rgba(34, 36, 38, 0.55), rgba(34, 36, 38, 0.66));

  --maxw: 1180px;
  --gap: clamp(1.25rem, 4vw, 3rem);
}

/* ---- 2. Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--rust); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: var(--rust-deep); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(3rem, 8vh, 7rem) clamp(1.25rem, 6vw, 5rem);
  /* Fallback gradient shows even before you add the photo */
  background:
    var(--hero-overlay),
    radial-gradient(120% 120% at 50% 35%, #6c6b66 0%, #43433f 70%);
  background-size: cover;
  background-position: center;
  color: var(--hero-text);
  overflow: hidden;
}

/* Add your photo by replacing assets/hero.jpg */
.hero[data-photo] {
  background:
    var(--hero-overlay),
    radial-gradient(ellipse 75% 65% at 50% 44%, rgba(26, 27, 29, 0.5), transparent 72%),
    var(--hero-photo, none) center / cover no-repeat;
}

.hero__inner {
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.4rem, 3.3vh, 2.1rem);
}

.hero__logo {
  width: clamp(260px, 46vw, 460px);
  margin: 0 auto;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.4));
  animation: rise 1s ease both;
}

/* Text wordmark fallback — used if you don't have a logo image yet */
.wordmark {
  font-family: "Jost", sans-serif;
  font-weight: 300;
  letter-spacing: 0.18em;
  line-height: 1;
  color: var(--hero-text);
}
.wordmark .top { font-size: clamp(2rem, 7vw, 4rem); }
.wordmark .sub {
  display: block;
  font-size: clamp(0.9rem, 2.6vw, 1.4rem);
  letter-spacing: 0.42em;
  margin-top: 0.4em;
  opacity: 0.85;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 1.1em;
  font-weight: 300;
  font-size: clamp(0.78rem, 0.72rem + 0.26vw, 0.92rem);
  line-height: 1.58;
  text-wrap: pretty;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
  animation: rise 1s ease 0.15s both;
}

.hero__cta {
  margin-top: 0.5rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.05rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--hero-text);
  animation: fadeIn 1s ease 0.3s both, ctaInvite 2.8s ease-in-out 1.8s infinite;
}
.hero__cta::after {
  content: "";
  width: 120px;
  height: 1px;
  background: var(--hero-text);
  transition: width 0.3s ease;
}
.hero__cta:hover { color: var(--hero-text); }
.hero__cta:hover::after { width: 170px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
/* gentle downward bob inviting the user toward the form */
@keyframes ctaInvite {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
}

/* ============================================================
   INQUIRY FORM  ("Let's talk")
   ============================================================ */
.inquire {
  padding: clamp(2.5rem, 5vh, 3.5rem) var(--gap);
  background: var(--cream);
}
.inquire__inner { max-width: 560px; margin: 0 auto; }

.section-title {
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 300;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  color: var(--rust);
  text-align: center;
  letter-spacing: 0.04em;
  margin-bottom: clamp(1.25rem, 3vh, 2rem);
}

form { display: flex; flex-direction: column; gap: 0.95rem; }

/* Netlify detection form must stay hidden despite the rule above */
form[hidden] { display: none !important; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; gap: 0.95rem; } }

.field { display: flex; flex-direction: column; gap: 0.35rem; }

label, .field-label {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.req { color: var(--muted); font-size: 0.8rem; font-weight: 300; }

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink);
  background-color: var(--cream);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.6rem 0.75rem;
  width: 100%;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--rust);
  box-shadow: 0 0 0 1px var(--rust);
}
textarea { resize: vertical; min-height: 84px; }
select { appearance: none; cursor: pointer; background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236e6860' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center;
  padding-right: 2.5rem;
}

/* checkbox group */
.checks { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.3rem; }
.check { display: flex; align-items: center; gap: 0.7rem; cursor: pointer; font-weight: 300; }
.check input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background-color: var(--cream);
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.check input:checked {
  background-color: var(--rust);
  border-color: var(--rust);
}
.check input:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid var(--cream);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.check input:focus-visible { outline: none; box-shadow: 0 0 0 1px var(--rust); }

/* honeypot — hidden anti-spam field, leave empty */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.submit {
  align-self: flex-start;
  margin-top: 0.5rem;
  font-family: "Jost", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--rust);
  border: 1px solid var(--rust);
  border-radius: 2px;
  padding: 0.85rem 2.6rem;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.submit:hover { background: var(--rust-deep); border-color: var(--rust-deep); }

.form-status { font-size: 0.95rem; color: var(--rust); min-height: 1.4em; }
.form-status.ok { color: var(--ink); }

/* ============================================================
   FOOTER  (cream theme — matches the form page)
   ============================================================ */
.footer {
  background: var(--cream-soft);
  border-top: 1px solid var(--line);
  padding: clamp(4rem, 10vh, 6.5rem) var(--gap) clamp(1.1rem, 2.5vh, 1.6rem);
  color: var(--muted);
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.75rem;
  text-align: center;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}
.footer__logo { width: clamp(155px, 27vw, 195px); height: auto; }
.footer__mark {
  font-weight: 300;
  letter-spacing: 0.2em;
  font-size: 1.4rem;
  color: var(--ink);
}
.footer__mark span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  margin-top: 0.35em;
  color: var(--muted);
}
.footer__email {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--rust);
}
.footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.6rem clamp(1.25rem, 4vw, 2.5rem);
  font-size: 0.95rem;
}
.footer__row .dot { color: var(--line); }
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 2rem;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.footer__legal a { color: var(--muted); }
.footer__legal a:hover { color: var(--rust); }

/* ============================================================
   PRIVACY PAGE
   ============================================================ */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(4rem, 10vh, 7rem) var(--gap);
}
.legal__back {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}
.legal h1 {
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 300;
  color: var(--rust);
  letter-spacing: 0.03em;
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  margin-bottom: 0.4em;
}
.legal .eff { color: var(--muted); margin-bottom: 2.5rem; }
.legal h2 {
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin: 2.25rem 0 0.75rem;
}
.legal h3 { font-weight: 500; font-size: 1.05rem; margin: 1.25rem 0 0.4rem; }
.legal p { margin-bottom: 1rem; }
.legal ul { margin: 0 0 1rem 1.25rem; }
.legal li { margin-bottom: 0.4rem; }
.legal strong { font-weight: 500; }

/* ============================================================
   RESPONSIVE TUNING
   ============================================================ */
@media (max-width: 600px) {
  .hero { min-height: 100svh; }
  .hero__copy { font-size: 1.02rem; }
  .submit { align-self: stretch; text-align: center; }
  .footer__inner { gap: 1.5rem; }
}

/* ============================================================
   V2 LAYOUT (index-v2.html) — tagline hero + split copy/form
   Scoped to new classes; does not affect index.html
   ============================================================ */

/* Tagline replaces the long hero copy */
.hero__tagline {
  max-width: 440px;
  font-weight: 300;
  font-size: clamp(0.95rem, 0.88rem + 0.4vw, 1.15rem);
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: var(--hero-text);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
  animation: rise 1s ease 0.15s both;
}

/* Two-column section */
.split {
  background: var(--cream);
  padding: clamp(3rem, 8vh, 6rem) clamp(1.5rem, 7vw, 5.5rem);
}
.split__inner {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3.5rem, 9vw, 7.5rem);
  align-items: start;
}

/* LEFT copy column */
.split__copy {
  display: flex;
  flex-direction: column;
  gap: 1.3em;
  font-weight: 300;
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.18rem);
  line-height: 1.7;
  color: var(--ink);
  text-wrap: pretty;
}

/* Signature under the intro copy, balancing the form's height */
.split__copy .section-title { text-align: left; }
.split__signature {
  width: clamp(220px, 60%, 340px);
  height: auto;
  margin-top: 0.5rem;
  align-self: flex-end;
}

/* RIGHT form column */
.section-title--left {
  text-align: left;
  margin-bottom: 1.5rem;
}

/* Mobile: stack copy above form, hero tagline already stacks naturally */
@media (max-width: 820px) {
  .split__inner { grid-template-columns: 1fr; gap: clamp(2rem, 6vh, 3rem); }
  .split__copy { font-size: 1rem; }
  .section-title--left { text-align: center; }
}
