/* ──────────────────────────────────────────
   Tinnel Family Rentals — Styles
   Palette: Emerald Green + Cream
   ────────────────────────────────────────── */

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

:root {
  --emerald-900: #064e3b;
  --emerald-800: #065f46;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-100: #d1fae5;
  --emerald-50:  #ecfdf5;
  --cream:       #faf8f0;
  --cream-dark:  #f3efe0;
  --warm-gray:   #f7f5f0;
  --text-dark:   #1a2e2a;
  --text-mid:    #3d5a53;
  --text-light:  #6b8a82;
  --gold:        #d97706;
  --gold-light:  #fef3c7;
  --white:       #ffffff;
  --shadow-sm:   0 1px 4px rgba(6,79,70,.07);
  --shadow-md:   0 4px 16px rgba(6,79,70,.10);
  --shadow-lg:   0 8px 32px rgba(6,79,70,.13);
  --shadow-xl:   0 16px 48px rgba(6,79,70,.15);
  --radius-sm:   10px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-xl:   32px;
  --font-body:   'Nunito', sans-serif;
  --font-display:'Playfair Display', serif;
  --transition:  .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── HEADER ──────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250,248,240,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(6,79,70,.07);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--emerald-800);
}
.logo-icon { color: var(--emerald-700); }
.logo-text .dot { color: var(--gold); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: .938rem;
}
.main-nav a {
  padding: 8px 16px;
  border-radius: 50px;
  color: var(--text-mid);
  transition: all var(--transition);
}
.main-nav a:hover { color: var(--emerald-700); background: var(--emerald-50); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--emerald-800);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ─── BUTTONS ─────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  border-radius: 50px;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-sm { padding: 10px 22px; font-size: .875rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-full { width: 100%; }

.btn-primary {
  background: var(--emerald-700);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(4,120,87,.35);
}
.btn-primary:hover {
  background: var(--emerald-800);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(4,120,87,.4);
}

.btn-outline {
  background: rgba(255,255,255,.15);
  color: var(--white);
  border: 2px solid rgba(255,255,255,.5);
  backdrop-filter: blur(4px);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--emerald-800);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--emerald-700);
  border: 2px solid var(--emerald-200, #a7f3d0);
}
.btn-outline-dark:hover {
  background: var(--emerald-700);
  color: var(--white);
  border-color: var(--emerald-700);
}

.btn-white {
  background: var(--white);
  color: var(--emerald-800);
  box-shadow: var(--shadow-lg);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-xl); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.5);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--emerald-800);
  border-color: var(--white);
}

/* ─── HERO ────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #064e3b 0%, #047857 35%, #059669 60%, #10b981 85%, #6ee7b7 100%);
  z-index: 0;
}
.hero-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 80%, rgba(217,119,6,.2) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(255,255,255,.08) 0%, transparent 50%);
}
.hero-gradient::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.9);
  font-weight: 700;
  font-size: .813rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 28px;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
}
.text-accent {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.063rem, 2vw, 1.25rem);
  color: rgba(255,255,255,.82);
  line-height: 1.75;
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
}
.stat-label {
  font-size: .813rem;
  color: rgba(255,255,255,.65);
  font-weight: 600;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.25);
}

.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  z-index: 2;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: 80px; }

/* ─── SECTION COMMON ──────────────────── */
.section {
  padding: 100px 0;
}
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-tag {
  display: inline-block;
  font-weight: 800;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--emerald-600);
  background: var(--emerald-100);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.section-tag.light {
  color: var(--white);
  background: rgba(255,255,255,.18);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-title.light { color: var(--white); }
.section-subtitle {
  font-size: 1.063rem;
  color: var(--text-light);
  line-height: 1.75;
}
.section-subtitle.light { color: rgba(255,255,255,.75); }

/* ─── PROPERTIES ──────────────────────── */
.properties { background: var(--cream); }
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 40px;
}
.property-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid rgba(6,79,70,.06);
}
.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/2;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.property-card:hover .card-img-wrap img { transform: scale(1.05); }
.card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--emerald-700);
  color: var(--white);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
}
.card-body { padding: 24px; }
.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .813rem;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 10px;
}
.card-meta .sep { color: var(--emerald-300, #6ee7b7); }
.card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.card-desc {
  font-size: .938rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 20px;
}
.properties-note {
  text-align: center;
  color: var(--text-light);
  font-size: .938rem;
}
.properties-note a {
  color: var(--emerald-700);
  font-weight: 700;
  border-bottom: 2px solid var(--emerald-100);
  transition: border-color var(--transition);
}
.properties-note a:hover { border-color: var(--emerald-700); }

/* ─── ABOUT ───────────────────────────── */
.about { background: var(--cream-dark); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-images { position: relative; }
.img-stack {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.img-stack img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}
.img-float {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  font-weight: 800;
  color: var(--emerald-800);
  font-size: .938rem;
}

.about-content .section-tag { margin-bottom: 16px; }
.about-content .section-title { text-align: left; margin-bottom: 20px; }
.about-content > p {
  color: var(--text-mid);
  margin-bottom: 16px;
  font-size: 1.063rem;
}
.about-list { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.about-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1rem;
}

/* ─── WHY US ──────────────────────────── */
.why-us {
  background: linear-gradient(160deg, var(--emerald-900) 0%, var(--emerald-700) 100%);
  position: relative;
  overflow: hidden;
}
.why-us::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 28px 28px;
}
.why-us .container { position: relative; z-index: 1; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  backdrop-filter: blur(6px);
  transition: all var(--transition);
}
.feature-card:hover {
  background: rgba(255,255,255,.12);
  transform: translateY(-4px);
}
.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.feature-card p {
  color: rgba(255,255,255,.7);
  font-size: .938rem;
  line-height: 1.75;
}

/* ─── TESTIMONIALS ────────────────────── */
.testimonials { background: var(--cream); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(6,79,70,.06);
  transition: all var(--transition);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.stars { display: flex; gap: 4px; margin-bottom: 20px; }
.testimonial-text {
  font-size: 1.063rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.author-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-800));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}
.author-name { display: block; font-weight: 700; color: var(--text-dark); }
.author-location { font-size: .813rem; color: var(--text-light); }

/* ─── CTA BANNER ──────────────────────── */
.cta-banner {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}
.cta-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--emerald-800) 0%, var(--emerald-600) 50%, var(--gold) 100%);
}
.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}
.cta-text {
  font-size: 1.063rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 36px;
  line-height: 1.75;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* ─── CONTACT ─────────────────────────── */
.contact { background: var(--cream-dark); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-info .section-tag { margin-bottom: 16px; }
.contact-info .section-title { text-align: left; margin-bottom: 16px; }
.contact-info > p {
  color: var(--text-mid);
  font-size: 1.063rem;
  margin-bottom: 36px;
}
.contact-details { display: flex; flex-direction: column; gap: 24px; }
.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.detail-icon {
  width: 48px;
  height: 48px;
  background: var(--emerald-50);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.detail-icon strong { display: block; font-size: .875rem; color: var(--text-dark); margin-bottom: 2px; }
.contact-details span,
.contact-details a {
  display: block;
  font-size: .938rem;
  color: var(--text-light);
  line-height: 1.6;
}
.contact-details a:hover { color: var(--emerald-700); }

.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(6,79,70,.06);
}
.form-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 28px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 700;
  font-size: .875rem;
  color: var(--text-dark);
  margin-bottom: 7px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--emerald-100);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .938rem;
  color: var(--text-dark);
  background: var(--cream);
  transition: all var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--emerald-600);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(5,150,105,.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-light); }
.form-group textarea { resize: vertical; min-height: 100px; }

.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  background: var(--emerald-50);
  border: 1px solid var(--emerald-100);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-top: 20px;
  font-size: .938rem;
  color: var(--emerald-800);
}
.form-success.show { display: flex; }

/* ─── FOOTER ──────────────────────────── */
.site-footer {
  background: var(--emerald-900);
  color: rgba(255,255,255,.7);
  padding: 64px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand .logo { color: var(--white); margin-bottom: 16px; }
.footer-desc { font-size: .938rem; line-height: 1.75; max-width: 300px; }
.footer-links { display: flex; gap: 48px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col strong {
  color: var(--white);
  font-size: .875rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.footer-col a {
  font-size: .938rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }
.footer-col span { font-size: .938rem; line-height: 1.7; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 24px 0;
  text-align: center;
  font-size: .813rem;
  color: rgba(255,255,255,.4);
}

/* ─── REVEAL ANIMATION ────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ─── MOBILE RESPONSIVE ───────────────── */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-content .section-title,
  .contact-info .section-title { text-align: center; }
  .about-content,
  .contact-info { text-align: center; }
  .about-content > p { margin-left: auto; margin-right: auto; }
  .about-list { align-items: center; }
  .img-float { right: 16px; bottom: -16px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { gap: 32px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(250,248,240,.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 4px;
    border-bottom: 1px solid rgba(6,79,70,.07);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition);
    pointer-events: none;
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .main-nav a { padding: 12px 16px; width: 100%; text-align: center; }
  .hero { min-height: auto; padding: 140px 24px 100px; }
  .hero-stats { gap: 20px; }
  .stat-divider { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px; }
  .section { padding: 72px 0; }
  .footer-links { flex-direction: column; gap: 24px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.125rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .property-grid { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; }
}
