/* ==========================================================================
   Ala-Rõuge Guesthouse - Core Stylesheet
   ========================================================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* Design Tokens & CSS Variables */
:root {
  --primary: #4d7c3b;
  --primary-hover: #3d632f;
  --primary-light: #eef5eb;
  --primary-rgb: 77, 124, 59;
  --dark: #222826;
  --dark-rgb: 34, 40, 38;
  --text-dark: #2c3531;
  --text-light: #555d59;
  --white: #ffffff;
  --light: #f7f9f6;
  --light-gray: #eef1ed;
  
  /* Fonts */
  --font-title: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Layout & Animations */
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --border-radius: 12px;
  --border-radius-sm: 6px;
  
  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
  --glass: rgba(255, 255, 255, 0.85);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--dark);
  font-weight: 500;
  line-height: 1.2;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

p {
  color: var(--text-light);
  font-weight: 400;
  font-size: 0.95rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Common Layout Components */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 60px 0;
}

@media (min-width: 768px) {
  .section-padding {
    padding: 100px 0;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  border: 1px solid var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(77, 124, 59, 0.25);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--white);
  border: 1.5px solid var(--white);
}

.btn-outline-white:hover {
  background-color: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
}

.btn-outline-green {
  background-color: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline-green:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* Headers & Icons */
.leaf-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}

.leaf-divider::before,
.leaf-divider::after {
  content: '';
  height: 1px;
  background-color: rgba(77, 124, 59, 0.2);
  flex-grow: 1;
}

.leaf-divider.align-left::before {
  display: none;
}

.leaf-divider.align-left {
  justify-content: flex-start;
}

.leaf-divider.align-left::after {
  max-width: 100px;
}

.leaf-icon-svg {
  width: 24px;
  height: 24px;
  fill: var(--primary);
}

/* Header & Navbar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 18px 0;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid rgba(77, 124, 59, 0.08);
}

header.scrolled {
  padding: 12px 0;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}

.logo-icon {
  width: 44px;
  height: 44px;
  fill: var(--primary);
  transition: var(--transition);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text-title {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--primary);
  line-height: 1.1;
  transition: var(--transition);
}

.logo-text-sub {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* Nav links */
.nav-links {
  display: none;
  align-items: center;
  gap: 20px;
  list-style: none;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-dark);
  padding: 6px 0;
  letter-spacing: 0.02em;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Right Nav Controls */
.nav-right-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language selector */
.lang-selector {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-btn {
  width: 20px;
  height: 14px;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 2px;
  overflow: hidden;
  transition: var(--transition);
  opacity: 0.75;
  display: block;
}

.lang-btn:hover,
.lang-btn.active {
  opacity: 1;
  transform: scale(1.15);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  border-color: var(--primary);
}

.lang-btn svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Search Icon */
.search-trigger-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.search-trigger-btn svg {
  width: 18px;
  height: 18px;
  fill: var(--text-dark);
  transition: var(--transition);
}

.search-trigger-btn:hover {
  background-color: rgba(77, 124, 59, 0.1);
}

/* Mobile Menu Toggle */
.mobile-nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 30px;
  z-index: 1001;
}

@media (min-width: 1024px) {
  .mobile-nav-toggle {
    display: none;
  }
}

.mobile-nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-dark);
  transition: var(--transition);
  border-radius: 2px;
}

.mobile-nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Drawer Menu */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background-color: var(--white);
  z-index: 999;
  padding: 100px 32px 40px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mobile-drawer.open {
  right: 0;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-nav-links a {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--dark);
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  color: var(--primary);
  padding-left: 8px;
}

.mobile-drawer-bottom {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-drawer-langs {
  display: flex;
  gap: 12px;
  border-top: 1px solid var(--light-gray);
  padding-top: 20px;
}

.mobile-drawer-langs .lang-btn {
  width: 28px;
  height: 20px;
  opacity: 0.8;
}

/* Hero Section */
.hero {
  position: relative;
  height: 80vh;
  min-height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 1;
}

.hero-slider-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  animation: zoom-fade 8s infinite alternate;
}

@keyframes zoom-fade {
  0% { transform: scale(1.0); }
  100% { transform: scale(1.06); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 24px;
}

.hero-content h1 {
  font-size: 2.8rem;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

@media (min-width: 768px) {
  .hero-content h1 {
    font-size: 4rem;
  }
}

.hero-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

@media (min-width: 480px) {
  .hero-btns {
    flex-direction: row;
  }
}

/* Subpage Hero */
.sub-hero {
  position: relative;
  height: 45vh;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background-size: cover;
  background-position: center;
  padding-bottom: 50px;
}

.sub-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 65%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 1;
}

.sub-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.breadcrumbs {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  opacity: 0.85;
}

.breadcrumbs a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

.sub-hero-content h1 {
  font-size: 3rem;
  color: var(--white);
}

@media (min-width: 768px) {
  .sub-hero-content h1 {
    font-size: 4rem;
  }
}

.sub-hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 8px;
}

/* Overlapping Feature Cards */
.features-overlap-section {
  position: relative;
  z-index: 10;
  padding: 0 0 60px 0;
}

.features-overlap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: -60px; /* Overlap Hero */
}

@media (min-width: 768px) {
  .features-overlap-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feat-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(77, 124, 59, 0.05);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(77, 124, 59, 0.2);
}

.feat-icon-wrapper {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-light);
  border-radius: 50%;
  margin-bottom: 24px;
  transition: var(--transition);
}

.feat-card:hover .feat-icon-wrapper {
  background-color: var(--primary);
}

.feat-card:hover .feat-icon-wrapper svg {
  fill: var(--white);
}

.feat-icon-wrapper svg {
  width: 32px;
  height: 32px;
  fill: var(--primary);
  transition: var(--transition);
}

.feat-card h3 {
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.feat-card p {
  margin-bottom: 24px;
  flex-grow: 1;
}

.feat-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.feat-link:hover {
  color: var(--primary-hover);
}

/* History / Welcome Section */
.welcome-section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .welcome-section-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
  }
}

.welcome-content {
  text-align: left;
}

.section-badge {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: inline-block;
}

.welcome-content h2 {
  font-size: 2.8rem;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .welcome-content h2 {
    font-size: 3.4rem;
  }
}

.welcome-content p {
  margin-bottom: 20px;
}

.welcome-content p:last-of-type {
  margin-bottom: 36px;
}

/* Overlapping Photos Component */
.image-overlap-wrapper {
  position: relative;
  height: 380px;
  width: 100%;
}

@media (min-width: 480px) {
  .image-overlap-wrapper {
    height: 480px;
  }
}

.overlap-img {
  position: absolute;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 4px solid var(--white);
  transition: var(--transition);
}

.overlap-img:hover {
  transform: scale(1.02);
  z-index: 5 !important;
  box-shadow: var(--shadow-lg);
}

.overlap-img-1 {
  width: 70%;
  height: 65%;
  top: 0;
  left: 0;
  z-index: 1;
}

.overlap-img-2 {
  width: 65%;
  height: 60%;
  bottom: 0;
  right: 0;
  z-index: 2;
}

.overlap-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Why Choose Us Section */
.why-section {
  background-color: var(--light);
  border-top: 1px solid rgba(77, 124, 59, 0.05);
  border-bottom: 1px solid rgba(77, 124, 59, 0.05);
}

.why-section h2 {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 50px;
}

@media (min-width: 768px) {
  .why-section h2 {
    font-size: 3rem;
  }
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 1080px;
  margin: 0 auto;
}

@media (min-width: 480px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

.why-item {
  background: var(--white);
  padding: 30px 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(77, 124, 59, 0.02);
  text-align: center;
  transition: var(--transition);
}

.why-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(77, 124, 59, 0.1);
}

.why-icon-svg {
  width: 44px;
  height: 44px;
  fill: var(--primary);
  margin-bottom: 16px;
}

.why-item h4 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.why-item p {
  font-size: 0.85rem;
}

/* Subpage Main Details (Two Column Layout) */
.sub-details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .sub-details-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
  }
}

.sub-details-content {
  text-align: left;
}

.sub-details-content h2 {
  font-size: 2.8rem;
  margin-bottom: 24px;
}

.sub-details-content p {
  margin-bottom: 24px;
}

.sub-details-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sub-details-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 500;
  color: var(--text-dark);
}

.sub-details-list li svg {
  width: 24px;
  height: 24px;
  fill: var(--primary);
  flex-shrink: 0;
}

.sub-details-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.sub-details-image img {
  width: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.sub-details-image img:hover {
  transform: scale(1.03);
}

/* Subpage Highlights / Features Grid */
.subpage-features-section {
  background-color: var(--light);
}

.subpage-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 480px) {
  .subpage-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .subpage-features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.sub-feat-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 36px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(77, 124, 59, 0.02);
  transition: var(--transition);
  text-align: center;
}

.sub-feat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(77, 124, 59, 0.15);
}

.sub-feat-icon-svg {
  width: 48px;
  height: 48px;
  fill: var(--primary);
  margin-bottom: 20px;
}

.sub-feat-card h4 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.sub-feat-card p {
  font-size: 0.9rem;
}

/* Subpage Callouts */
.subpage-callout-section {
  text-align: center;
  padding: 60px 0;
}

.subpage-callout-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.subpage-callout-title {
  font-size: 2.2rem;
  max-width: 800px;
  margin: 16px 0;
}

.subpage-callout-title span {
  color: var(--primary);
  font-weight: 600;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

.subpage-callout-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
}

/* Gallery Page Layout */
.gallery-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-btn {
  background-color: var(--light);
  border: 1px solid var(--light-gray);
  color: var(--text-light);
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background-color: var(--light-gray);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(34, 40, 38, 0.4);
  z-index: 1;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item-hover {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  z-index: 2;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--white);
  padding: 10px 20px;
  border-radius: 4px;
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-item:hover .gallery-item-hover {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(34, 40, 38, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content-wrapper {
  position: relative;
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
  color: var(--primary-light);
}

.lightbox-prev {
  left: -64px;
}

.lightbox-next {
  right: -64px;
}

@media (max-width: 768px) {
  .lightbox-prev {
    left: 10px;
    background: rgba(0,0,0,0.5);
  }
  .lightbox-next {
    right: 10px;
    background: rgba(0,0,0,0.5);
  }
  .lightbox-close {
    right: 10px;
    top: -50px;
  }
}

/* Pricing Page Styles */
.pricing-section h2 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 50px;
}

.pricing-table-wrapper {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--light-gray);
  overflow-x: auto;
  margin-bottom: 40px;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 600px;
}

.pricing-table th, 
.pricing-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--light-gray);
}

.pricing-table th {
  background-color: var(--light);
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-table tbody tr:hover {
  background-color: rgba(77, 124, 59, 0.02);
}

.pricing-table tr:last-child td {
  border-bottom: none;
}

.price-tag {
  font-weight: 600;
  color: var(--primary);
}

/* Contact Page Section */
.contact-section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 1024px) {
  .contact-section-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
  }
}

.contact-info-col {
  text-align: left;
}

.contact-info-col h2 {
  font-size: 2.8rem;
  margin-bottom: 24px;
}

.contact-details-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 32px 0 40px;
}

.contact-details-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info-icon-svg {
  width: 24px;
  height: 24px;
  fill: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-details-list li div h5 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 4px;
  font-family: var(--font-body);
}

.contact-details-list li div p {
  font-size: 1.1rem;
  color: var(--dark);
  font-weight: 500;
}

.contact-callout-box {
  background-color: var(--light);
  border-left: 4px solid var(--primary);
  padding: 24px 30px;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--dark);
  line-height: 1.4;
}

/* Contact Form Card */
.contact-form-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  padding: 30px 24px;
  border: 1px solid rgba(77, 124, 59, 0.05);
}

@media (min-width: 480px) {
  .contact-form-card {
    padding: 40px;
  }
}

.form-grid-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (min-width: 600px) {
  .form-grid-2col {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group.full-width {
  grid-column: 1 / -1;
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-group label span {
  color: #c94b4b;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid var(--light-gray);
  background-color: var(--light);
  border-radius: 4px;
  color: var(--text-dark);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  background-color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(77, 124, 59, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-submit-btn {
  width: 100%;
  border: none;
}

/* Map Embed */
.map-section {
  height: 400px;
  position: relative;
  background-color: var(--light-gray);
  border-top: 1px solid rgba(77, 124, 59, 0.05);
  border-bottom: 1px solid rgba(77, 124, 59, 0.05);
}

.map-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--light);
  color: var(--text-light);
  text-align: center;
}

#map {
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Footer styling */
footer {
  background-color: var(--dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

@media (min-width: 600px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.2fr 0.9fr 0.9fr;
    gap: 60px;
  }
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-title);
  font-size: 1.6rem;
  margin-bottom: 24px;
}

/* Footer Col 1 */
.footer-col .logo-text-title {
  color: var(--white);
}

.footer-col .logo-icon {
  fill: var(--white);
}

.footer-about-text {
  margin-top: 20px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 300px;
}

/* Footer Col 2 */
.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
}

.footer-contact-list li svg {
  width: 18px;
  height: 18px;
  fill: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Footer Col 3 */
.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  list-style: none;
}

.footer-links-grid a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-links-grid a:hover {
  color: var(--white);
  padding-left: 4px;
}

/* Social Icon Box */
.footer-social-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-icon-btn {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition);
}

.social-icon-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.social-icon-btn:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Bottom Bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Success Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(34, 40, 38, 0.6);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-icon-success {
  width: 64px;
  height: 64px;
  fill: var(--primary);
  margin-bottom: 20px;
}

.modal-box h3 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.modal-box p {
  margin-bottom: 28px;
}
