/* =========================
   CSS CUSTOM PROPERTIES (VARIABLES)
========================= */
:root {
  /* Colors */
  --color-primary-green: #1b5e20;
  --color-light-green: #a5d6a7;
  --color-white: #fff;
  --color-text-dark: #222;
  --color-text-gray: #333;
  --color-text-light: #555;
  --color-bg-light: #f6f6f6;
  --color-bg-lighter: #f4f4f4;
  --color-bg-dark: #111;
  --color-bg-overlay: rgba(0, 0, 0, 0.55);
  --color-bg-overlay-dark: rgba(0, 0, 0, 0.7);
  --color-border: #eee;
  --color-text-muted: #aaa;

  /* Shadows */
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.12);

  /* Border Radius */
  --radius-sm: 14px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-full: 30px;

  /* Transitions */
  --transition-fast: 0.35s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.3s ease;

  /* Spacing */
  --spacing-xs: 15px;
  --spacing-sm: 20px;
  --spacing-md: 30px;
  --spacing-lg: 50px;
  --spacing-xl: 60px;
  --spacing-xxl: 80px;

  /* Container */
  --container-max: 1200px;
  --container-wide: 1400px;
  --header-height: 100px;
}

/* =========================
   RESET & GLOBAL
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  color: var(--color-text-dark);
  line-height: 1.6;
  padding-bottom: 140px;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: var(--container-max);
  margin: auto;
  padding: 0 var(--spacing-sm);
}

.wide-container {
  max-width: var(--container-wide);
  margin: auto;
  padding: 0 var(--spacing-sm);
}

/* =========================
   HEADER & NAV (DESKTOP)
========================= */
.header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.logo img {
  height: 70px;
}

.logo-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: transform var(--transition-fast);
}

.logo-link:hover {
  transform: scale(1.05);
}

/* Desktop Nav */
.nav {
  display: flex;
  flex-direction: row;
  gap: 35px;
}

.nav ul {
  display: flex;
  flex-direction: row;
  gap: 35px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav li {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-block;
}

.nav a {
  font-weight: 600;
  font-size: 25px;
  color: var(--color-text-gray);
  transition: color var(--transition-fast);
  padding: 8px 12px;
  border-radius: 6px;
}

.nav a:hover {
  color: var(--color-primary-green);
  background: rgba(27, 94, 32, 0.1);
}

.nav a.active,
.nav .current-menu-item a {
  color: var(--color-primary-green);
  font-weight: 700;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

/* =========================
   HERO
========================= */
.hero {
  position: relative;
  height: 90vh;
  background-image: url("../../images/hero.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero h1 {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 15px;
}

.hero h2 {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 30px;
}

/* =========================
   BUTTONS
========================= */
.btn {
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.btn.primary {
  background: #fff;
  color: #1b5e20;
}

.btn.primary:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.btn.outline {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
}

.btn.outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 15px;
}

.hero-buttons .btn {
  font-size: 20px;
}

/* =========================
   SECTIONS
========================= */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
}

.section-subtitle {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 70px;
  font-size: 18px;
  color: #555;
}

.section-light {
  background: #f6f6f6;
}

/* =========================
   SERVICES GRID (HOME PAGE)
========================= */
.services-container {
  max-width: 1400px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.service-card-link {
  text-decoration: none;
  display: block;
  color: inherit;
}

.service-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-image-mainpage {
  height: 200px;
  overflow: hidden;
}

.service-image-mainpage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image-mainpage img {
  transform: scale(1.08);
}

.service-card h3 {
  padding: 22px 20px 28px;
  font-size: 18px;
  font-weight: 600;
  color: #1b5e20;
}

/* =========================
   SERVICES DETAILED PAGE
========================= */
.services-detailed {
  background: #f4f4f4;
}

.service-row {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  padding: 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 60px;
}

.service-row.reverse {
  direction: rtl;
}

.service-row.reverse > * {
  direction: ltr;
}

.service-image {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-square {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 20px;
  display: flex;
}

.image-square img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform var(--transition-medium);
}

.service-row:hover .image-square img {
  transform: scale(1.08);
}

.service-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 10px;
}

.service-content h3 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #1b5e20;
  position: relative;
}

.service-content h3::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #a5d6a7;
  margin: 12px auto 0;
  border-radius: 2px;
}

.service-content p {
  font-size: 17px;
  line-height: 1.8;
  color: #555;
  max-width: 480px;
  margin: 0 auto;
}

/* =========================
   BEFORE / AFTER SLIDER
========================= */
.before-after {
  position: relative;
  width: 100%;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.before-after.visible {
  opacity: 1;
  transform: translateY(0);
}

.img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.after-img {
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
}

.label {
  position: absolute;
  top: 15px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 14px;
  border-radius: 20px;
  z-index: 5;
}

.before-label {
  left: 15px;
}

.after-label {
  right: 15px;
}

.slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 10;
}

.slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: #fff;
  z-index: 6;
  pointer-events: none;
}

.slider-handle::before {
  content: "⇆";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #1b5e20;
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================
   CTA (FLOATING BOTTOM BAR)
========================= */
.cta {
  background: #1b5e20;
  color: #fff;
  padding: 30px 0;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.cta-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  font-size: 20px;
}

/* =========================
   FOOTER
========================= */
.footer {
  background: #111;
  color: #aaa;
}

.footer-flex {
  padding: 30px 20px;
  text-align: center;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-socials {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #333;
  border-radius: 50%;
  color: #aaa;
  transition: all var(--transition-fast);
}

.footer-socials a:hover {
  background: var(--color-primary-green);
  color: #fff;
}

/* =========================
   ABOUT PAGE
========================= */
#page-intro h1 {
  text-align: center;
  font-size: 42px;
  margin-bottom: 15px;
  color: var(--color-text-dark);
}

.experience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
}

.experience-cards {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.experience-card {
  background: var(--color-bg-light);
  padding: 40px;
  border-radius: 16px;
  text-align: center;
}

.experience-card p:first-child {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-primary-green);
  margin: 0;
}

.experience-card p:last-child {
  font-size: 18px;
  color: var(--color-text-gray);
  margin: 10px 0 0 0;
}

.experience-image {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  max-width: 1100px;
  margin: 0 auto;
}

.process-card {
  background: var(--color-white);
  padding: 40px;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}

.process-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary-green);
  margin-bottom: 14px;
}

.process-card h3 i {
  margin-right: 12px;
}

.process-card p {
  color: var(--color-text-gray);
  line-height: 1.9;
  margin: 0;
  font-size: 16px;
}

.service-countys {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  color: var(--color-text-gray);
  font-size: 20px;
}

.gallery-intro-text,
.gallery-section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 32px;
  color: var(--color-text-light);
}

.gallery-intro-text {
  font-size: 18px;
  margin-bottom: 40px;
}

/* ===== GALLERY PAGE ===== */
.gallery-follow-button {
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.gallery-follow-button .btn i {
  margin-right: 8px;
}

.instagram-grid,
.reels-grid,
.tiktok-grid,
.facebook-grid {
  margin-top: var(--spacing-sm);
}

/* Video aspect ratio for reels */
.reels-grid .image-square,
.tiktok-grid .image-square {
  aspect-ratio: 9 / 16;
  max-height: 400px;
}

.reels-grid .service-card,
.tiktok-grid .service-card {
  max-width: 280px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .reels-grid,
  .tiktok-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reels-grid .image-square,
  .tiktok-grid .image-square {
    max-height: 300px;
  }
}

/* =========================
   TABLET (900px and below)
========================= */
@media (max-width: 900px) {
  /* Services Grid - 3 columns to 2 */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Navigation - Mobile Menu */
  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--color-white);
    display: none;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .nav.nav-open {
    display: flex;
  }

  .nav ul {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .nav li {
    width: 100%;
  }

  .nav a {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid var(--color-border);
    width: 100%;
    font-size: 18px;
  }

  /* Hero adjustments */
  .hero {
    height: 75vh;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero h2 {
    font-size: 20px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  /* Services Detailed Page */
  .service-row,
  .service-row.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 30px;
    padding: 30px;
    margin-bottom: 50px;
  }

  .image-square {
    border-radius: 14px;
    max-width: 100%;
  }

  .service-content h3 {
    font-size: 24px;
  }

  .service-content p {
    font-size: 16px;
  }

  /* About Page */
  .experience-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .experience-card p:first-child {
    font-size: 40px;
  }

  .experience-card p:last-child {
    font-size: 16px;
  }

  /* CTA adjustments */
  .cta-flex {
    flex-direction: column;
    text-align: center;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* =========================
   MOBILE (600px and below)
========================= */
@media (max-width: 600px) {
  /* Body padding for CTA */
  body {
    padding-bottom: 0;
  }

  /* Services Grid - Single column */
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-image-mainpage {
    height: 180px;
  }

  .service-card h3 {
    font-size: 16px;
    padding: 18px 15px 22px;
  }

  /* Hero */
  .hero {
    height: 70vh;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero h2 {
    font-size: 16px;
  }

  /* About Page Cards */
  .experience-card {
    padding: 25px;
  }

  .experience-card p:first-child {
    font-size: 32px;
  }

  .experience-card p:last-child {
    font-size: 14px;
  }

  .process-card {
    padding: 20px;
  }

  .process-card h3 {
    font-size: 18px;
  }

  .process-card p {
    font-size: 14px;
  }

  .service-countys {
    font-size: 16px;
  }

  /* CTA - Static on mobile */
  .cta {
    position: relative;
    box-shadow: none;
    padding: 60px 0;
  }

  /* Section padding */
  .section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
}
