/* Thorn Homes - Main Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --dark-green: #1a3a2a;
  --mid-green: #2d5a3d;
  --light-green: #4a8c5c;
  --gold: #c9a84c;
  --gold-light: #e0c070;
  --cream: #f8f4ed;
  --white: #ffffff;
  --text-dark: #1a1a1a;
  --text-mid: #444444;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--white);
}

/* ── NAV ── */
nav {
  background: var(--dark-green);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  height: 70px;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.8rem;
}

.nav-links a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--gold);
}

/* ── HERO SLIDESHOW ── */
.hero {
  position: relative;
  height: 85vh;
  overflow: hidden;
  background: var(--dark-green);
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: kenburns 24s infinite;
}

.hero-slide:nth-child(1) { animation-delay: 0s; background-image: url('images/hero1.jpg'); }
.hero-slide:nth-child(2) { animation-delay: 6s; background-image: url('images/hero2.jpg'); }
.hero-slide:nth-child(3) { animation-delay: 12s; background-image: url('images/hero3.jpg'); }
.hero-slide:nth-child(4) { animation-delay: 18s; background-image: url('images/hero4.jpg'); }

@keyframes kenburns {
  0%   { opacity: 0; transform: scale(1.08); }
  5%   { opacity: 1; }
  20%  { opacity: 1; }
  25%  { opacity: 0; transform: scale(1.0); }
  100% { opacity: 0; transform: scale(1.08); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.55) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.hero-overlay h1 {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-overlay p {
  color: var(--cream);
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 600px;
  margin-bottom: 2rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 3px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}

.btn-gold {
  background: var(--gold);
  color: var(--dark-green);
}
.btn-gold:hover { background: var(--gold-light); }

.btn-outline {
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
}
.btn-outline:hover { background: var(--gold); color: var(--dark-green); }

/* ── SECTIONS ── */
section { padding: 5rem 2rem; }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--dark-green);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 1rem 0 2.5rem;
}

/* ── INTRO BAND ── */
.intro-band {
  background: var(--dark-green);
  color: var(--cream);
  text-align: center;
  padding: 3.5rem 2rem;
}

.intro-band p {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* ── STATS ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.stat-card {
  text-align: center;
  padding: 2rem 1rem;
  border: 1px solid #e0d9cc;
  border-radius: 4px;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  color: var(--dark-green);
  font-weight: 700;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-mid);
  margin-top: 0.4rem;
  letter-spacing: 0.04em;
}

/* ── LOCATIONS ── */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.location-card {
  background: var(--cream);
  padding: 2rem;
  border-left: 4px solid var(--gold);
  border-radius: 2px;
}

.location-card h3 {
  font-family: 'Playfair Display', serif;
  color: var(--dark-green);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.location-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ── CARDS ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--white);
  border: 1px solid #e8e2d8;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.25s;
}

.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); }

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--mid-green);
  display: block;
}

.card-body {
  padding: 1.5rem;
}

.card-body h3 {
  font-family: 'Playfair Display', serif;
  color: var(--dark-green);
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.card-body p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ── TESTIMONIALS ── */
.testimonial {
  background: var(--cream);
  border-left: 4px solid var(--gold);
  padding: 2rem 2.5rem;
  margin-bottom: 2rem;
  border-radius: 2px;
}

.testimonial blockquote {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-mid);
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial cite {
  font-weight: 600;
  color: var(--dark-green);
  font-style: normal;
  font-size: 0.9rem;
}

/* ── AWARDS ── */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.award-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border: 2px solid var(--gold);
  border-radius: 4px;
}

.award-year {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--gold);
  font-weight: 700;
}

.award-title {
  font-size: 0.9rem;
  color: var(--dark-green);
  font-weight: 600;
  margin-top: 0.5rem;
  line-height: 1.4;
}

/* ── CONTACT FORM ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark-green);
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: border-color 0.2s;
}

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

.form-group textarea { min-height: 140px; resize: vertical; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--dark-green);
  padding: 5rem 2rem 4rem;
  text-align: center;
}

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: var(--cream);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.85;
}

/* ── VIDEO GRID ── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.video-thumb {
  position: relative;
  cursor: pointer;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
}

.video-thumb img {
  width: 100%;
  display: block;
  transition: opacity 0.2s;
}

.video-thumb:hover img { opacity: 0.75; }

.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-play svg {
  width: 56px;
  height: 56px;
  opacity: 0.9;
}

.video-caption {
  padding: 0.75rem;
  background: rgba(0,0,0,0.75);
  color: var(--cream);
  font-size: 0.8rem;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox.active { display: flex; }

.lightbox-inner {
  position: relative;
  width: 90%;
  max-width: 900px;
}

.lightbox-inner iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
}

.lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

/* ── FOOTER ── */
footer {
  background: var(--dark-green);
  color: var(--cream);
  padding: 3.5rem 2rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-brand .nav-logo { font-size: 1.3rem; display: inline-block; margin-bottom: 1rem; }

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.75;
  max-width: 280px;
}

.footer-col h4 {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: var(--cream); text-decoration: none; font-size: 0.9rem; opacity: 0.8; transition: opacity 0.2s; }
.footer-col ul li a:hover { opacity: 1; color: var(--gold); }

.footer-col p { font-size: 0.9rem; opacity: 0.8; line-height: 1.7; }

.footer-bottom {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.5;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

/* ── BURGER MENU ── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 200;
}

.nav-burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE ── */
@media (max-width: 900px) {
  .nav-burger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--dark-green);
    flex-direction: column;
    gap: 0;
    padding: 0;
    z-index: 100;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }

  .nav-links.open { display: flex; }

  .nav-links li { border-bottom: 1px solid rgba(255,255,255,0.08); }

  .nav-links a {
    display: block;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(255,255,255,0.06);
    color: var(--gold);
  }
}
