/* ============================================================
   Apple Tree Homestay — Premium Custom Stylesheet
   Design Ethos: Organic Luxury, Warm Mountain Retreat, High Polish
   Palette: Deep Pine Green, Terracotta Apple Red, Sage, Warm Sands
   ============================================================ */

:root {
  /* Color System */
  --green-primary: #1A3D2F;     /* Deep Forest Pine */
  --green-medium: #2D6A4F;      /* Rich Foliage */
  --green-light: #EBF2EE;       /* Soft Sage Tint */
  --red-accent: #C94A4A;        /* Terracotta Apple Red */
  --red-dark: #A53636;          /* Darker Apple Red */
  --gold-accent: #D4AF37;       /* Soft Amber/Gold */
  --bg-warm: #FAF7F2;           /* Warm Sand Linen */
  --bg-card: #FFFFFF;           /* Crisp White for Cards */
  --text-main: #2A2421;         /* Deep Organic Charcoal */
  --text-muted: #6E635F;        /* Muted Earthy Brown */
  --white: #FFFFFF;
  
  /* Borders & Shadows */
  --border-color: rgba(42, 36, 33, 0.08);
  --border-focus: rgba(45, 106, 79, 0.4);
  --shadow-premium: 0 16px 36px rgba(26, 61, 47, 0.04);
  --shadow-hover: 0 24px 48px rgba(26, 61, 47, 0.08);
  --shadow-sm: 0 4px 12px rgba(26, 61, 47, 0.03);
  
  /* Layout & Sizing */
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-full: 9999px;
  --maxw: 1200px;
  --header-h: 80px;
  
  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.15s ease;
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-warm);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--green-medium);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--green-primary);
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--green-primary);
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1.2em;
}

address {
  font-style: normal;
}

/* Containers & Accessibility */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--green-primary);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
  font-family: var(--font-sans);
}

.skip-link:focus {
  left: 0;
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  transition: var(--transition-smooth);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(26, 61, 47, 0.12);
}

.btn:active {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--green-primary);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--green-medium);
}

.btn--whatsapp {
  background: #25D366;
  color: var(--white);
}

.btn--whatsapp:hover {
  background: #20ba59;
}

.btn--call {
  background: var(--red-accent);
  color: var(--white);
}

.btn--call:hover {
  background: var(--red-dark);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--ghost:hover {
  background: var(--white);
  color: var(--green-primary);
  border-color: var(--white);
}

.btn--block {
  width: 100%;
  justify-content: center;
}

.btn .ico {
  width: 1.25em;
  height: 1.25em;
  fill: currentColor;
  flex: 0 0 auto;
}

/* Glassmorphism Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(42, 36, 33, 0.06);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand:hover {
  text-decoration: none;
}

.brand__logo {
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 10px rgba(26, 61, 47, 0.1);
  transition: var(--transition-smooth);
}

.brand:hover .brand__logo {
  transform: rotate(5deg) scale(1.05);
}

.brand__name {
  font-family: var(--font-serif);
  font-weight: 800;
  color: var(--green-primary);
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.main-nav {
  margin-left: auto;
}

.nav-menu {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--red-accent);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}

.nav-menu a:hover {
  color: var(--green-medium);
  text-decoration: none;
}

.nav-menu a:hover::after {
  width: 100%;
}

.header-call {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--green-primary);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* Premium Hero Section */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transform: scale(1.02);
  transition: transform 10s ease-out;
}

.hero:hover .hero__bg {
  transform: scale(1.06);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 61, 47, 0.45) 0%, rgba(13, 31, 24, 0.75) 100%);
  z-index: -1;
}

.hero__content {
  padding: 80px 24px;
  text-align: center;
  max-width: 800px;
}

.hero__badge {
  display: inline-block;
  background: rgba(201, 74, 74, 0.15);
  border: 1px solid rgba(201, 74, 74, 0.4);
  color: #FFA3A3;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
  animation: fadeIn 1s ease;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  margin-bottom: 0.3em;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero__tagline {
  font-size: clamp(1.15rem, 3.5vw, 1.6rem);
  font-family: var(--font-sans);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  max-width: 680px;
  margin: 0 auto 2.2em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  line-height: 1.5;
  animation: slideUp 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  animation: slideUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Sections Structure */
.section {
  padding: 96px 0;
}

.section--alt {
  background-color: var(--white);
}

.section__title {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  text-align: center;
  position: relative;
  margin-bottom: 1.2em;
}

.section__title::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: var(--red-accent);
  border-radius: var(--radius-full);
  margin: 18px auto 0;
  transition: width 0.3s ease;
}

.section:hover .section__title::after {
  width: 80px;
}

.section__lead {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: -0.8em auto 48px;
  font-size: 1.1rem;
}

/* About Us Section */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.4em;
}

.about-text p:first-of-type {
  font-size: 1.15rem;
  color: var(--text-main);
  font-weight: 500;
  line-height: 1.7;
}

.about-img {
  position: relative;
  margin: 0;
}

.about-img::before {
  content: "";
  position: absolute;
  inset: 15px -15px -15px 15px;
  border: 2px solid var(--green-light);
  border-radius: var(--radius-lg);
  z-index: -1;
  transition: var(--transition-smooth);
}

.about-img:hover::before {
  inset: 8px -8px -8px 8px;
  border-color: var(--red-accent);
}

.about-img img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-img:hover img {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

/* Why Choose Us Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.card {
  background: var(--bg-warm);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--green-medium);
  transition: var(--transition-smooth);
}

.card:hover {
  transform: translateY(-8px);
  background: var(--white);
  box-shadow: var(--shadow-hover);
  border-color: rgba(45, 106, 79, 0.12);
}

.card:hover::before {
  height: 100%;
}

.card h3 {
  font-family: var(--font-serif);
  color: var(--green-primary);
  font-size: 1.35rem;
  margin-bottom: 0.6em;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Luxury Facilities Grid */
.facilities {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.facilities li {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  font-weight: 700;
  color: var(--green-primary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.section--alt .facilities li {
  background: var(--bg-warm);
}

.facilities li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(45, 106, 79, 0.15);
}

.facility__icon {
  font-size: 1.4rem;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green-light);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: inset 0 2px 4px rgba(26, 61, 47, 0.05);
  transition: var(--transition-smooth);
}

.facilities li:hover .facility__icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--red-accent);
  color: var(--white);
}

/* Premium Gallery Grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.gallery__item {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  aspect-ratio: 4 / 3;
  transition: var(--transition-smooth);
}

.gallery__item::after {
  content: "🔍 View Image";
  position: absolute;
  inset: 0;
  background: rgba(26, 61, 47, 0.65);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  opacity: 0;
  transition: var(--transition-smooth);
  backdrop-filter: blur(4px);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery__item:hover::after {
  opacity: 1;
}

.gallery__item:hover img {
  transform: scale(1.08);
}

.gallery__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(13, 26, 20, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 4px solid rgba(255, 255, 255, 0.1);
  transform: scale(0.95);
  animation: zoomIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.15) forwards;
}

.lightbox__close, .lightbox__nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  cursor: pointer;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  font-size: 1.8rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  backdrop-filter: blur(4px);
}

.lightbox__close {
  top: 24px;
  right: 24px;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__prev {
  left: 24px;
}

.lightbox__next {
  right: 24px;
}

.lightbox__close:hover, .lightbox__nav:hover {
  background: var(--red-accent);
  border-color: var(--red-accent);
  box-shadow: 0 0 15px rgba(201, 74, 74, 0.4);
  transform: translateY(-50%) scale(1.08);
}

.lightbox__close:hover {
  transform: scale(1.08) rotate(90deg);
}

/* Reviews CTA (Gradient) */
.reviews-cta {
  background: linear-gradient(135deg, var(--green-primary) 0%, #11291F 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.reviews-cta::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(45, 106, 79, 0.15);
  border-radius: 50%;
  top: -150px;
  left: -150px;
}

.reviews-cta .section__title {
  color: var(--white);
}

.reviews-cta p {
  max-width: 640px;
  margin: 0 auto 36px;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
}

.reviews-cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* Map / Location */
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  margin-top: 36px;
  border: 1px solid var(--border-color);
  line-height: 0;
  transition: var(--transition-smooth);
}

.map-wrap:hover {
  box-shadow: var(--shadow-hover);
}

.map-wrap iframe {
  display: block;
  filter: grayscale(10%) contrast(102%);
}

.location__address {
  text-align: center;
  margin-top: 24px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-primary);
  font-family: var(--font-serif);
}

/* Contact & Enquiry Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  margin-top: 36px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 0.8em;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  gap: 20px;
}

.contact-list li {
  line-height: 1.6;
  font-size: 1.05rem;
}

.contact-list li strong {
  color: var(--green-primary);
  display: block;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.contact-list a {
  font-weight: 600;
  color: var(--text-main);
  border-bottom: 1.5px solid rgba(45, 106, 79, 0.15);
  padding-bottom: 1px;
}

.contact-list a:hover {
  color: var(--green-medium);
  border-color: var(--green-medium);
}

.contact-info__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Enquiry Form Styling */
.enquiry {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-premium);
  display: grid;
  gap: 20px;
  transition: var(--transition-smooth);
}

.enquiry:hover {
  box-shadow: var(--shadow-hover);
}

.enquiry label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  color: var(--green-primary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.enquiry input, .enquiry textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 14px 16px;
  border: 1.5px solid rgba(42, 36, 33, 0.12);
  border-radius: var(--radius-md);
  background: #FCFAF7;
  width: 100%;
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.enquiry input:focus, .enquiry textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--green-medium);
  box-shadow: 0 0 0 4px rgba(45, 106, 79, 0.12);
}

.enquiry__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.enquiry__status {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
  min-height: 1.5em;
  text-align: center;
}

.enquiry__status.is-ok {
  color: var(--green-medium);
}

.enquiry__status.is-err {
  color: var(--red-accent);
}

/* Footer Section */
.site-footer {
  background: #11261E; /* Very dark rich forest green */
  color: #D3E0DA;
  padding-top: 80px;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer h3, .site-footer h4 {
  color: var(--white);
}

.footer__name {
  font-size: 1.5rem;
  margin-bottom: 0.6em;
}

.footer__nap {
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
}

.footer__nap a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

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

.site-footer a {
  color: #A3C9B8;
  transition: var(--transition-fast);
}

.site-footer a:hover {
  color: var(--white);
}

.footer__social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-weight: 700;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__social:hover {
  background: var(--white);
  color: var(--green-primary);
  text-decoration: none;
}

.footer__social .ico {
  width: 1.25em;
  height: 1.25em;
  fill: currentColor;
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.footer__links a {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.footer__links a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer__bar {
  padding: 24px 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer__bar p {
  margin: 0;
}

.footer__bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
}

.footer__credit {
  color: rgba(255, 255, 255, 0.55);
}

.footer__credit a {
  color: #A3C9B8;
  font-weight: 700;
}

.footer__credit a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* Floating Actions & BTT */
.fab-group {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 10px 25px rgba(13, 26, 20, 0.2);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.fab:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 15px 30px rgba(13, 26, 20, 0.35);
  text-decoration: none;
}

.fab .ico {
  width: 30px;
  height: 30px;
  fill: var(--white);
}

.fab--whatsapp {
  background: #25D366;
}

.fab--call {
  background: var(--red-accent);
}

.back-to-top {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 200;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--green-primary);
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(13, 26, 20, 0.15);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top:hover {
  background: var(--green-medium);
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(13, 26, 20, 0.25);
}

.back-to-top[hidden] {
  display: none !important;
}

/* Scroll reveal classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Legal Pages Styling */
.legal {
  padding: 60px 0 96px;
  background-color: var(--bg-warm);
}

.legal .container {
  max-width: 800px;
}

.legal h1 {
  font-family: var(--font-serif);
  color: var(--green-primary);
  margin-bottom: 0.3em;
}

.legal h2 {
  font-family: var(--font-serif);
  color: var(--green-medium);
  font-size: 1.45rem;
  margin-top: 1.8em;
}

.legal p, .legal li {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.legal .updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--green-medium);
}

.legal-back:hover {
  color: var(--green-primary);
  transform: translateX(-4px);
}

/* Animations declarations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .section {
    padding: 80px 0;
  }
  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-img {
    max-width: 600px;
    margin: 0 auto;
  }
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 70px;
  }
  .nav-toggle {
    display: flex;
  }
  .main-nav {
    position: relative;
  }
  .nav-menu {
    position: absolute;
    right: -10px;
    top: calc(var(--header-h) - 10px);
    background: var(--white);
    flex-direction: column;
    gap: 0;
    min-width: 220px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hover);
    padding: 12px;
    display: none;
    z-index: 105;
    animation: zoomIn 0.25s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
  }
  .nav-menu.is-open {
    display: flex;
  }
  .nav-menu a {
    display: block;
    padding: 12px 16px;
    font-size: 1rem;
  }
  .nav-menu a::after {
    display: none;
  }
  .header-call {
    font-size: 0.85rem;
    padding: 8px 16px;
  }
  .hero {
    min-height: 82vh;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    padding: 0 20px;
  }
  .hero__actions .btn {
    width: 100%;
  }
  .enquiry__row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer__bar-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .enquiry {
    padding: 24px;
  }
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn, .fab, .gallery__item img, .about-img img, .brand__logo {
    transition: none;
  }
  .hero__bg, .hero:hover .hero__bg {
    transform: none;
    transition: none;
  }
  .lightbox__img {
    animation: none;
  }
  @keyframes slideUp {
    to { opacity: 1; transform: none; }
  }
}
