/* Lovegrass Lane — Country Modern */

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

:root {
  --brown-dark:  #2a1f14;
  --brown:       #4a3728;
  --brown-mid:   #7a5c3a;
  --tan:         #c8a87a;
  --cream:       #f7f0e6;
  --cream-dark:  #ede4d5;
  --white-card:  rgba(255,255,255,0.93);
  --overlay:     rgba(26,16,5,0.48);
  --overlay-lt:  rgba(26,16,5,0.25);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--brown-dark);
  background: var(--cream-dark);
  min-height: 100vh;
}

/* ── WOOD BACKGROUND ── */
.wood-bg {
  background-image: url('/assets/wood.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* ── NAVIGATION ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 56px;
  background: rgba(26,16,5,0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.nav-brand img {
  height: 36px;
  width: 36px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.nav-brand span {
  font-family: Georgia, serif;
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 0.7em; opacity: 0.7; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: rgba(26,16,5,0.92);
  backdrop-filter: blur(6px);
  border-radius: 6px;
  min-width: 180px;
  padding: 0.4rem 0;
  list-style: none;
}
.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  border-radius: 0;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu { display: block; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: 0.3s;
}

/* ── HERO (index page) ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: url('/assets/wood.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
  padding: 2rem;
}
.hero-search {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 480px;
  background: rgba(247,240,230,0.18);
  border: 1.5px solid rgba(255,255,255,0.55);
  border-radius: 3px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
}
.hero-search input[type="text"] {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.03em;
}
.hero-search input[type="text"]::placeholder {
  color: rgba(255,255,255,0.5);
}
.hero-search button {
  background: transparent;
  border: none;
  border-left: 1.5px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.75);
  padding: 0.65rem 1rem;
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.2s, background 0.2s;
}
.hero-search button:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.hero-btn {
  display: inline-block;
  padding: 0.7rem 2.5rem;
  border: 1.5px solid rgba(255,255,255,0.7);
  border-radius: 3px;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-style: italic;
  transition: background 0.2s, color 0.2s;
}
.hero-btn:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding-top: 56px;
  padding-bottom: 12px;
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: linear-gradient(var(--overlay), var(--overlay)), url('/assets/wood.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.page-hero h1 {
  font-family: Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.page-hero .sub {
  margin-top: 0.5rem;
  font-style: italic;
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
}

/* ── MAIN CONTENT ── */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

/* ── WELCOME SECTION ── */
.welcome-section {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.welcome-section h2 {
  font-family: Georgia, serif;
  font-size: 2rem;
  color: var(--brown);
  margin-bottom: 0.4rem;
}
.welcome-section .tagline {
  font-style: italic;
  color: var(--brown-mid);
  margin-bottom: 1.8rem;
  font-size: 1.05rem;
}
.welcome-section p {
  line-height: 1.8;
  color: var(--brown-dark);
  margin-bottom: 1.4rem;
  font-size: 1.05rem;
}
.btn-primary {
  display: inline-block;
  padding: 0.7rem 2.2rem;
  background: var(--brown);
  color: #fff;
  border-radius: 3px;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  font-style: italic;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--brown-dark); }

/* ── PROJECT GRID ── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.project-card {
  background: var(--white-card);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(42,31,20,0.12);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42,31,20,0.18);
}
.project-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-card-img.placeholder {
  background: linear-gradient(135deg, #e8dcc8, #d4c5a9);
  font-family: Georgia, serif;
  color: var(--brown-mid);
  font-size: 3rem;
}
.project-card-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.project-card-body h3 {
  font-family: Georgia, serif;
  font-size: 1.25rem;
  color: var(--brown);
  margin-bottom: 0.4rem;
}
.project-card-body p {
  font-size: 0.9rem;
  color: var(--brown-mid);
  flex: 1;
}
.card-link {
  margin-top: 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tan);
  font-weight: 600;
}

/* ── GALLERY PAGE ── */
.gallery-intro {
  max-width: 680px;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.gallery-intro p { line-height: 1.8; color: var(--brown-dark); }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.photo-slot {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #e8dcc8, #d4c5a9);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--brown-mid);
  font-style: italic;
  font-size: 0.9rem;
  gap: 0.5rem;
  overflow: hidden;
}
.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-placeholder { font-size: 2rem; opacity: 0.4; }
.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--brown-mid);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}
.back-link:hover { color: var(--brown); }
.back-link::before { content: '← '; }

/* ── SMARTHOME DASHBOARD ── */
.dashboard { display: flex; flex-direction: column; gap: 2rem; }
.dash-section {
  background: var(--white-card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(42,31,20,0.1);
}
.dash-header {
  background: var(--brown);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-family: Georgia, serif;
  font-size: 1rem;
  letter-spacing: 0.06em;
}
.dash-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 1rem 1.25rem;
}
.dash-btn {
  display: inline-block;
  padding: 0.45rem 1rem;
  border: 1.5px solid var(--tan);
  border-radius: 4px;
  color: var(--brown);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s;
  background: #fff;
}
.dash-btn:hover {
  background: var(--brown);
  color: #fff;
  border-color: var(--brown);
}

/* ── GUEST PORTAL ── */
.guest-card {
  background: var(--white-card);
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: 0 2px 16px rgba(42,31,20,0.12);
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.guest-card h2 {
  font-family: Georgia, serif;
  font-size: 2rem;
  color: var(--brown);
  margin-bottom: 0.5rem;
}
.guest-card .tagline {
  font-style: italic;
  color: var(--brown-mid);
  margin-bottom: 1.5rem;
}
.guest-card p { line-height: 1.8; color: var(--brown-dark); }
.guest-wifi-card {
  width: 100%;
  max-width: 480px;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(42,31,20,0.15);
}

/* ── FOOTER ── */
footer {
  background: rgba(26,16,5,0.92);
  backdrop-filter: blur(6px);
  border-top: 2px solid rgba(160, 100, 40, 0.55);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 0.5rem 2rem;
  font-size: 0.8rem;
  line-height: 1.8;
}
footer img {
  height: 42px;
  margin-bottom: 0.5rem;
  opacity: 0.82;
  filter: brightness(0) invert(1);
}
footer a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 56px; right: 0; left: 0; background: rgba(26,16,5,0.95); padding: 0.75rem 0; }
  .nav-links.open { display: flex; }
  .nav-links a { border-radius: 0; padding: 0.6rem 1.5rem; font-size: 0.9rem; }
  .dropdown-menu { position: static; background: rgba(0,0,0,0.2); border-radius: 0; }
  .nav-dropdown > a::after { content: ''; }
  .nav-toggle { display: flex; }
  .page-hero { min-height: 220px; }
  main { padding: 2rem 1.25rem 4rem; }
  .project-grid { grid-template-columns: 1fr; }
}
