/* ============================================
   New House of Design — Stylesheet
   ============================================ */

:root {
  --text-color: #414141;   /* primary text — headings, body, nav-active-page text */
  --muted: #a8a8a7;        /* current-page nav link, footer text */
  --border-color: #e0e0e0;
  --section-gray: #fafafa; /* Our Brands section background */
  --hero-bg: #e8e8e8;
}

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

body {
  font-family: 'Avenir Next', Avenir, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 50px 20px;
}

/* ---------- Navigation ---------- */
.navbar {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
}

.nav-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
}

/* Logo renders at native size (78x62) — no forced scaling */
.logo img { width: 78px; height: 62px; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

/* The current page's nav link is the lighter/muted one — matches source site */
.nav-links a.active {
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--text-color);
}

/* ---------- Hero ---------- */
/* hero-banner.jpg already contains the full graphic (logo + taglines) at 980x238 —
   it is rendered as-is, full width, no separate overlay text needed */
.hero {
  background: none;
}

.hero-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 30px 20px;
}

.hero-inner img {
  width: 100%;
  height: auto;
}

/* ---------- Section Headings ---------- */
h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-color);
}

/* ---------- About ---------- */
.about p {
  font-size: 20px;
  font-weight: 300;
  color: #000;
  line-height: 1.6;
}

.about p strong { font-weight: 600; }

/* ---------- Brands ---------- */
.brands {
  background: var(--section-gray);
}

.brands-intro {
  font-size: 20px;
  font-weight: 300;
  color: #000;
  line-height: 1.6;
  margin-bottom: 40px;
}

.brands-intro strong { font-weight: 600; }

.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  text-align: center;
}

/* Culture Tz / Roddy Rod cards are <a> links, Villas Boas is a <button> that
   opens the modal — reset their default element styling to match the
   original div-based card look, with a subtle hover cue that they're clickable */
.brand-card-link {
  display: block;
  width: 100%;
  background: none;
  border: none;
  font: inherit;
  text-align: center;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.15s ease;
}

.brand-card-link:hover,
.brand-card-link:focus-visible {
  opacity: 0.75;
}

/* Logos render at native pixel size; bottoms align across the row
   so the headings beneath all start at the same baseline */
.brand-logo {
  height: 140px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 20px;
}

.brand-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

.brand-card h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 15px;
  color: var(--text-color);
}

.brand-card p {
  font-size: 16px;
  font-weight: 300;
  color: #000;
  line-height: 1.6;
}

/* ---------- Contact Form ---------- */
.contact-section {
  max-width: 600px;
}

.contact-section h1 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--text-color);
}

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

.form-group label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-color);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid var(--border-color);
  border-radius: 2px;
  color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--text-color);
}

.contact-section button {
  width: 100%;
  background: var(--text-color);
  color: #fff;
  border: none;
  padding: 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  border-radius: 2px;
  transition: opacity 0.2s ease;
}

.contact-section button:hover { opacity: 0.85; }

/* ---------- Footer ---------- */
footer {
  text-align: center;
}

.footer-inner {
  border-top: 1px solid var(--border-color);
  padding: 30px 20px;
}

footer p {
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Modal ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}

.modal-overlay.is-open {
  display: flex;
}

.modal-box {
  position: relative;
  background: #fff;
  max-width: 420px;
  width: 100%;
  padding: 40px 30px;
  border-radius: 4px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-box p {
  font-size: 16px;
  color: var(--text-color);
  line-height: 1.5;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 14px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text-color);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .brand-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .container { padding: 40px 20px; }

  h2 { font-size: 18px; }
  .about p, .brands-intro { font-size: 17px; }
}

@media (max-width: 480px) {
  .nav-inner { padding: 10px 16px; }
  .logo img { width: 58px; height: 46px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 10px; }

  .about p, .brands-intro { font-size: 15px; }
  .brand-card p { font-size: 14px; }

  .container { padding: 30px 16px; }
}
