/* Creative Cabinetree — static rebuild
   Replicates the classic Squarespace 7.0 airy look:
   white background, generous whitespace, thin-weight sans-serif,
   uppercase letter-spaced labels, dark charcoal-brown footer. */

:root {
  --footer-bg: #2b241d;          /* dark charcoal-brown */
  --text: #1f1f1f;
  --text-light: #444;
  --accent: #8aa832;            /* lime-green tree mark */
  --max-width: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  padding: 1.4rem 2rem;
  border-bottom: 1px solid #eee;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo {
  width: 72px;
  height: 72px;
  object-fit: cover;
}

.main-nav {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.main-nav a:hover { color: var(--accent); }
.main-nav a.nav-todo { color: #bbb; cursor: default; }
.main-nav a.nav-todo:hover { color: #bbb; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  max-height: 78vh;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  max-height: 78vh;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.25);
}

.hero-overlay h1 {
  font-weight: 200;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: 0.02em;
  color: #222;
  max-width: 20ch;
}

.hero-overlay .tagline {
  margin-top: 1rem;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  letter-spacing: 0.08em;
  color: #444;
}

/* ---------- Portfolio columns ---------- */
.portfolio {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 2rem;
}

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

.column { text-align: center; }

.column-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: 1.5rem;
}

.column h3 {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-weight: 400;
  font-size: 1rem;
  margin-bottom: 0.9rem;
  color: #222;
}

.column p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ---------- Testimonials ---------- */
.testimonials {
  text-align: center;
  padding: 4rem 2rem 5.5rem;
  background: #fafafa;
}

.testimonials h2 {
  font-weight: 200;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: 0.04em;
  color: #222;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.8rem;
  font-weight: 400;
  color: #fff;
  background: var(--footer-bg);
  padding: 0.9rem 2.6rem;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s ease;
}

.btn:hover { background: #4a4033; }

/* ---------- Contact ---------- */
.contact {
  text-align: center;
  padding: 4rem 2rem 5.5rem;
  background: #fff;
}

.contact h2 {
  font-weight: 200;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: 0.04em;
  color: #222;
  margin-bottom: 0.8rem;
}

.contact-sub {
  color: var(--text-light);
  margin-bottom: 2.5rem;
}

.contact-form {
  max-width: 620px;
  margin: 0 auto;
  text-align: left;
}

.form-row { margin-bottom: 1.6rem; }

.form-row label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.form-row .optional {
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--text-light);
  font-weight: 300;
}

.form-row input,
.form-row textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 2px;
  padding: 0.8rem 1rem;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}

.form-row textarea { resize: vertical; }

.contact-form .btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: #fff;
  text-align: center;
  padding: 3.5rem 2rem;
}

.footer-inner p { margin-bottom: 0.7rem; }

.footer-location { letter-spacing: 0.06em; }

.footer-email a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.footer-email a:hover { border-bottom-color: #fff; }

.footer-copy {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-top a {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.footer-top a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .header-inner { flex-direction: column; gap: 1rem; }
  .main-nav { gap: 1.4rem; flex-wrap: wrap; justify-content: center; }
  .columns { grid-template-columns: 1fr; gap: 2.5rem; }
  .portfolio { padding: 3rem 1.5rem; }
}
