:root {
  --gold: #c2ac93;      /* palette-0 - accent / text on dark */
  --navy: #0c3242;      /* palette-1 - dark surfaces */
  --brown: #595045;     /* palette-2 */
  --pale: #e3f1f8;      /* palette-3 */
  --bg: #344e56;        /* page background */
  --white: #ffffff;
}

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

body {
  font-family: 'Lato', Helvetica, sans-serif;
  background: var(--bg);
  color: var(--gold);
  line-height: 1.5;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
  background: var(--bg); /* solid, so content doesn't show through */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Urbanist', sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--gold);
}

nav > ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Every top-level item uses the same layout so Furniture lines up with the rest */
nav > ul > li {
  display: flex;
  align-items: center;
}

nav a {
  font-family: 'Urbanist', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.5rem 0;
}

nav a:hover { color: var(--white); }

/* Hero image */
.hero img {
  width: 100%;
  border-radius: 4px;
}

/* Feature / About section */
.features {
  padding: 2rem 0;
  text-align: center;
}

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

.feature-icon {
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 auto 1rem;
}

.feature h3 {
  font-family: 'Urbanist', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.feature p {
  font-family: 'Urbanist', sans-serif;
  font-size: 1.15rem;
}

/* Behind the Design / CTA banner */
.banner {
  background: var(--gold);
  color: var(--navy);
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: 4px;
  margin: 2rem 0;
}

.banner h2 {
  font-family: 'Urbanist', sans-serif;
  font-weight: 700;
  font-size: 2.75rem;
  margin-bottom: 1rem;
}

.banner p {
  font-family: 'Urbanist', sans-serif;
  font-size: 1.4rem;
  max-width: 700px;
  margin: 0 auto 1.75rem;
}

.btn {
  display: inline-block;
  background: var(--navy);
  color: var(--gold);
  font-family: 'Urbanist', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1rem 1.75rem;
  border-radius: 8px;
  border: 2px solid var(--gold);
}

.btn:hover { opacity: 0.9; }

/* Furniture gallery */
.gallery-section h2 {
  font-family: 'Urbanist', sans-serif;
  text-align: center;
  padding: 2rem 0 1rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  padding: 1rem 0 3rem;
}

.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 4px;
}

/* Contact section */
.contact {
  background: var(--navy);
  padding: 3rem 1.5rem;
  border-radius: 4px;
  margin: 2rem 0;
  text-align: center;
}

.contact h2 {
  font-family: 'Urbanist', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.contact p {
  font-family: 'Urbanist', sans-serif;
  font-size: 1.2rem;
  color: var(--gold);
  max-width: 600px;
  margin: 0 auto 2rem;
}

form {
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

form label {
  font-family: 'Urbanist', sans-serif;
  font-size: 0.95rem;
  color: var(--gold);
  margin-bottom: 0.25rem;
  display: block;
}

form input,
form textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: 4px;
  border: 1px solid var(--gold);
  background: var(--white);
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
}

form textarea { min-height: 120px; resize: vertical; }

form button {
  margin-top: 0.5rem;
  align-self: center;
}

/* Footer */
footer {
  padding: 2rem 0;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1rem;
}

.social-links a svg {
  width: 20px;
  height: 20px;
  fill: var(--gold);
}

.social-links a:hover svg { fill: var(--white); }

html { scroll-behavior: smooth; }

/* Tap-friendly controls (44px+ touch targets) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  cursor: pointer;
}

form input,
form textarea {
  min-height: 44px;
  font-size: 1rem; /* 16px prevents iOS auto-zoom on focus */
}

/* Hamburger button (hidden on desktop) */
.menu-toggle {
  display: none;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 48px;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

/* Tablet & phone */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .menu-toggle { display: block; }

  nav {
    display: none;
    width: 100%;
    order: 3;
  }

  nav.open { display: block; }

  nav > ul {
    flex-direction: column;
    gap: 0;
    background: var(--navy);
    border-radius: 8px;
    overflow: hidden;
  }

  nav a {
    display: block;
    padding: 1rem 1.25rem;
    min-height: 48px;
  }

  nav > ul > li + li { border-top: 1px solid rgba(194, 172, 147, 0.25); }

  .features-grid { grid-template-columns: 1fr; gap: 2rem; }
  .banner h2, .contact h2 { font-size: 2rem; }
  .banner p { font-size: 1.2rem; }
}

/* Small phones */
@media (max-width: 480px) {
  .container { padding: 0 1rem; }

  .logo { font-size: 1.4rem; }

  .banner,
  .contact { padding: 2rem 1rem; }

  .banner h2,
  .contact h2 { font-size: 1.75rem; }

  .banner p,
  .contact p { font-size: 1.05rem; }

  .feature h3 { font-size: 1.25rem; }
  .feature p { font-size: 1.05rem; }

  .gallery {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .gallery img { height: 240px; }

  .btn,
  form button {
    width: 100%;
  }
}

/* Current page highlight in nav */
nav a.active { color: var(--white); }
@media (min-width: 769px) {
  /* Reserve the underline space on every link so the active one doesn't shift */
  nav > ul > li > a { border-bottom: 2px solid transparent; }
  nav a.active { border-bottom-color: var(--gold); }

  /* The arrow's tap area has empty space after the glyph. Pulling the next item in
     closes that up; more negative = Contact moves closer (-0.775rem = same gap as the others) */
  .has-submenu { margin-right: -1.525rem; }
}

/* ---------- Sub-navigation (Furniture dropdown) ---------- */
.has-submenu {
  position: relative;
  display: flex;
  align-items: center;
}

.submenu-toggle {
  background: none;
  border: none;
  color: inherit;
  width: 32px;
  height: 32px;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 50%;
}

.submenu-toggle:hover { color: var(--white); }

.submenu-toggle span {
  display: inline-block;
  transition: transform 0.2s;
}

.has-submenu.open .submenu-toggle span { transform: rotate(180deg); }

.submenu {
  list-style: none;
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  padding: 0.5rem 0;
  background: var(--navy);
  border: 1px solid rgba(194, 172, 147, 0.25);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  z-index: 110;
}

.has-submenu:hover > .submenu,
.has-submenu.open > .submenu { display: block; }

.submenu a {
  display: block;
  padding: 0.65rem 1.1rem;
  white-space: nowrap;
  font-size: 1rem;
}

.submenu a:hover { background: rgba(194, 172, 147, 0.15); }

/* Furniture categories */
.gallery-category {
  scroll-margin-top: 6rem; /* clears the sticky header */
  padding-top: 1rem;
}

.gallery-category h3 {
  font-family: 'Urbanist', sans-serif;
  font-size: 1.6rem;
  margin: 1rem 0 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(194, 172, 147, 0.35);
}

.gallery-category .gallery { padding-bottom: 1.5rem; }

@media (max-width: 768px) {
  .has-submenu { flex-wrap: wrap; }
  .has-submenu > a { flex: 1; }

  .submenu-toggle {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }

  .submenu {
    position: static;
    width: 100%;
    min-width: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.2);
  }

  /* Tap to open on touch screens, not hover */
  .has-submenu:hover > .submenu { display: none; }
  .has-submenu.open > .submenu { display: block; }

  .submenu a {
    min-height: 48px;
    padding: 0.9rem 1.25rem 0.9rem 2.25rem;
  }

  .submenu li + li a { border-top: 1px solid rgba(194, 172, 147, 0.15); }
}

@media (max-width: 768px) {
  nav > ul { align-items: stretch; }
  nav > ul > li > a { flex: 1; }
}

/* ---------- Contact form feedback ---------- */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  display: none;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-family: 'Urbanist', sans-serif;
  font-size: 1.05rem;
  text-align: center;
}

.form-status.success,
.form-status.error { display: block; }

.form-status.success { background: #dff3e4; color: #1d5b2f; }
.form-status.error   { background: #fbe1e1; color: #8a1f1f; }

.btn:disabled { opacity: 0.6; cursor: wait; }
