/*
  Stylesheet for the static "Garten Pflege" website.
  The design is inspired by the original React/Tailwind project but rebuilt
  using plain CSS variables and responsive layouts. Colours are defined
  centrally for easy customisation. Media queries adjust the layout on
  smaller screens. A simple chat widget is also styled here.
  
  MOBILE-OPTIMIZED VERSION - Enhanced for better mobile responsiveness
*/

/* Variables for colours and fonts */
:root {
  /* Greens */
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-800: #166534;
  --green-900: #14532d;
  /* Earth tones */
  --earth-100: #f5f5f4;
  --earth-600: #57534e;
  --earth-800: #44403c;
  --earth-900: #292524;
  /* Font families */
  --font-sans: 'Inter', sans-serif;
  --font-serif: 'Playfair Display', serif;
}

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

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  background: var(--earth-100);
  color: var(--earth-900);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* Container helper */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navigation bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 4vw, 1.5rem);
  font-weight: 700;
  color: var(--green-900);
  white-space: nowrap;
}

.navbar .logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.navbar .logo span.icon {
  font-size: 1.5rem;
  background: var(--green-800);
  color: white;
  padding: 0.4rem;
  border-radius: 50%;
}

.navbar .menu-button {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  color: var(--green-800);
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.navbar .nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.navbar .nav-links li a {
  font-weight: 500;
  color: var(--earth-800);
  transition: color 0.2s ease;
}

.navbar .nav-links li a:hover {
  color: var(--green-800);
}

.navbar .nav-links li .cta {
  background: var(--green-800);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 600;
  transition: background 0.2s ease;
}

.navbar .nav-links li .cta:hover {
  background: var(--green-900);
}

/* Mobile navigation - ENHANCED */
@media (max-width: 768px) {
  .navbar {
    padding: 0 12px;
    height: 65px;
  }
  
  .navbar .logo {
    font-size: 1.1rem;
    gap: 0.4rem;
  }
  
  .navbar .logo-img {
    width: 32px;
    height: 32px;
  }
  
  .navbar .menu-button {
    display: block;
  }
  
  .navbar .nav-links {
    position: fixed;
    top: 65px;
    right: 0;
    flex-direction: column;
    background: white;
    border: 1px solid #e5e7eb;
    border-top: none;
    width: 100%;
    max-width: 280px;
    padding: 1rem 0;
    display: none;
    box-shadow: -2px 4px 10px rgba(0, 0, 0, 0.1);
  }
  
  .navbar .nav-links.open {
    display: flex;
  }
  
  .navbar .nav-links li {
    width: 100%;
    text-align: left;
    padding: 0.75rem 1.5rem;
  }
  
  .navbar .nav-links li a {
    display: block;
    font-size: 1rem;
  }
  
  .navbar .nav-links li .cta {
    display: block;
    text-align: center;
    margin-top: 0.5rem;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .navbar {
    height: 56px;
    padding: 0 10px;
  }
  
  .navbar .logo {
    font-size: 0.95rem;
    gap: 0.35rem;
  }
  
  .navbar .logo-img {
    width: 28px;
    height: 28px;
  }
  
  .navbar .nav-links {
    top: 56px;
    max-width: 100%;
  }
}

/* Very small screens (iPhone SE, etc.) */
@media (max-width: 375px) {
  .navbar {
    height: 52px;
    padding: 0 8px;
  }
  
  .navbar .logo {
    font-size: 0.85rem;
    gap: 0.3rem;
  }
  
  .navbar .logo-img {
    width: 26px;
    height: 26px;
  }
  
  .navbar .nav-links {
    top: 52px;
  }
}

/* Hero section - ENHANCED */
.hero {
  position: relative;
  height: 100vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  background-image: url('images/hero.webp');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 1.5rem;
}

.hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw + 1rem, 4.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.hero-content p {
  font-size: clamp(1rem, 3vw, 1.25rem);
  font-weight: 300;
  margin-bottom: 2rem;
  color: #f5f5f5;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    gap: 1.5rem;
  }
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
  width: 100%;
  max-width: 280px;
}

@media (min-width: 640px) {
  .btn-primary, .btn-secondary {
    width: auto;
  }
}

.btn-primary {
  background: white;
  color: var(--green-900);
  border: 1px solid transparent;
}

.btn-primary:hover {
  background: #f9fafb;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  border: 2px solid white;
  color: white;
  background: transparent;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Mobile hero adjustments */
@media (max-width: 768px) {
  .hero {
    min-height: 85vh;
    height: auto;
    margin-top: 65px;
  }
  
  .hero-content {
    padding: 2rem 1rem;
  }
  
  .hero-content h1 {
    margin-bottom: 1rem;
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }
  
  .hero-content p {
    margin-bottom: 1.5rem;
    font-size: clamp(0.9rem, 3vw, 1.1rem);
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 80vh;
    margin-top: 56px;
  }
  
  .hero-content {
    padding: 1.5rem 0.75rem;
  }
  
  .hero-content h1 {
    font-size: clamp(1.5rem, 7vw, 2rem);
    line-height: 1.3;
  }
  
  .btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    width: 100%;
    max-width: 260px;
  }
  
  .hero-buttons {
    gap: 0.75rem;
  }
}

@media (max-width: 375px) {
  .hero {
    min-height: 75vh;
    margin-top: 52px;
  }
  
  .hero-content h1 {
    font-size: 1.4rem;
  }
  
  .hero-content p {
    font-size: 0.85rem;
  }
  
  .btn-primary, .btn-secondary {
    padding: 0.7rem 1.25rem;
    font-size: 0.85rem;
  }
}

/* Sections - ENHANCED */
section {
  padding: 4rem 0;
}

@media (max-width: 768px) {
  section {
    padding: 3rem 0;
  }
}

@media (max-width: 480px) {
  section {
    padding: 2.5rem 0;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .section-header {
    margin-bottom: 2rem;
  }
}

.section-header h2 {
  text-transform: uppercase;
  color: var(--green-800);
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  letter-spacing: 0.1em;
  font-weight: 700;
}

.section-header h3 {
  margin-top: 0.5rem;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--earth-900);
  padding: 0 1rem;
}

.section-header p {
  margin-top: 1rem;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: var(--earth-600);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

.section-header .divider {
  width: 6rem;
  height: 0.25rem;
  background: var(--green-600);
  margin: 1.5rem auto 0;
  border-radius: 9999px;
}

@media (max-width: 480px) {
  .section-header .divider {
    width: 4rem;
    height: 0.2rem;
  }
}

/* Philosophy section */
.philosophy {
  background: var(--green-50);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .philosophy-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.philosophy-grid .card {
  background: white;
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

@media (max-width: 480px) {
  .philosophy-grid .card {
    padding: 1.5rem 1rem;
  }
}

.philosophy-grid .card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.philosophy-grid .card .icon {
  font-size: clamp(2rem, 5vw, 2.5rem);
  margin-bottom: 1.5rem;
  color: var(--green-700);
}

.philosophy-grid .card h4 {
  font-size: clamp(1.1rem, 3vw, 1.25rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--earth-900);
}

.philosophy-grid .card p {
  color: var(--earth-600);
  font-size: clamp(0.9rem, 2vw, 0.95rem);
  line-height: 1.6;
}

/* Services section - ENHANCED */
.services {
  background: white;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 576px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0.5rem 1rem;
  border: 1px solid var(--green-200);
  border-radius: 0.75rem;
  padding: 1rem;
  background: var(--green-50);
  transition: all 0.3s ease;
}

@media (max-width: 480px) {
  .service {
    padding: 0.875rem;
    gap: 0.4rem 0.75rem;
  }
}

.service:hover {
  border-color: var(--green-300);
  background: var(--green-100);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.service .service-icon {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  grid-row: span 2;
}

.service .service-icon img {
  width: clamp(2.5rem, 6vw, 3rem);
  height: clamp(2.5rem, 6vw, 3rem);
  object-fit: contain;
}

.service h4 {
  margin: 0;
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  font-weight: 600;
  color: var(--earth-900);
  overflow-wrap: anywhere;
  line-height: 1.3;
}

.service p {
  margin: 0;
  font-size: clamp(0.8rem, 2vw, 0.875rem);
  color: var(--earth-600);
  line-height: 1.4;
  grid-column: 2;
}

/* Extra Services (Renovation & Relocation) - ENHANCED */
.extra-services {
  padding: 4rem 0;
}

@media (max-width: 768px) {
  .extra-services {
    padding: 3rem 0;
  }
}

@media (max-width: 480px) {
  .extra-services {
    padding: 2.5rem 0;
  }
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.feature-card {
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  text-align: center;
  border: 1px solid var(--green-200);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 768px) {
  .feature-card {
    padding: 1.25rem 1rem;
  }
}

@media (max-width: 480px) {
  .feature-card {
    padding: 1rem 0.75rem;
  }
}

.feature-card:hover {
  border-color: var(--green-300);
  background: var(--green-50);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.feature-icon {
  width: clamp(4rem, 10vw, 5rem);
  height: clamp(4rem, 10vw, 5rem);
  background: linear-gradient(135deg, var(--green-100), var(--green-50));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-800);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.15);
  padding: 1rem;
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: invert(26%) sepia(89%) saturate(1583%) hue-rotate(95deg) brightness(96%) contrast(106%);
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--green-200), var(--green-100));
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}

.feature-card:hover .feature-icon img {
  filter: invert(15%) sepia(99%) saturate(2371%) hue-rotate(95deg) brightness(96%) contrast(108%);
}

.feature-card h4 {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  font-weight: 600;
  color: var(--earth-900);
  margin: 0;
  overflow-wrap: anywhere;
  line-height: 1.3;
}

/* Background images and gradient overlay for renovation and relocation sections */
#renovation-overview,
#relocation-overview {
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: visible;
}

#renovation-overview {
  background-image: url('images/planning.webp');
}

#relocation-overview {
  background-image: url('images/tree.webp');
}

#renovation-overview::before,
#relocation-overview::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.85));
  z-index: 0;
}

@media (max-width: 768px) {
  #renovation-overview::before,
  #relocation-overview::before {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.88));
  }
}

#renovation-overview .container,
#relocation-overview .container {
  position: relative;
  z-index: 1;
}

.check-list {
  list-style: none;
  padding-left: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.5rem;
  font-size: clamp(0.875rem, 2vw, 0.95rem);
  color: var(--earth-700, #444);
}

.check-list li::before {
  content: '\2714';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green-600, #16a34a);
  font-size: 1rem;
  line-height: 1.2;
}

/* Detailed sections - ENHANCED */
.detailed {
  background: var(--earth-100);
}

.detail-section {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .detail-section {
    border-radius: 1rem;
    margin-bottom: 1.5rem;
  }
}

.detail-section:last-child {
  margin-bottom: 0;
}

.detail-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

@media (min-width: 768px) {
  .detail-image {
    height: 300px;
  }
}

.detail-content {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 768px) {
  .detail-content {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 480px) {
  .detail-content {
    padding: 1.25rem 1rem;
  }
}

.detail-content h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 700;
  color: var(--earth-900);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-wrap: anywhere;
  line-height: 1.3;
}

.detail-content h3 .icon {
  font-size: clamp(1.25rem, 3.5vw, 1.5rem);
  flex-shrink: 0;
}

.detail-content p {
  color: var(--earth-600);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.detail-content .detail-btn,
.detail-content .btn-whatsapp {
  align-self: flex-start;
  color: white;
  background: var(--green-700);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}

@media (max-width: 480px) {
  .detail-content .detail-btn,
  .detail-content .btn-whatsapp {
    padding: 0.65rem 1.25rem;
    font-size: 0.95rem;
    width: 100%;
  }
}

.detail-content .detail-btn:hover,
.detail-content .btn-whatsapp:hover {
  background: var(--green-800);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (min-width: 992px) {
  .detail-section {
    flex-direction: row;
    min-height: 400px;
  }
  
  .detail-section.reverse {
    flex-direction: row-reverse;
  }
  
  .detail-image {
    width: 50%;
    height: auto;
    min-height: 400px;
  }
  
  .detail-content {
    width: 50%;
    padding: 2.5rem 2rem;
  }
}

/* Contact Highlight Section - ENHANCED */
.contact-highlight {
  background: var(--green-800);
  color: white;
  text-align: center;
  padding: 4rem 1.5rem;
}

@media (max-width: 768px) {
  .contact-highlight {
    padding: 3rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .contact-highlight {
    padding: 2.5rem 1rem;
  }
}

.contact-highlight h2 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-family: var(--font-serif);
  margin-bottom: 1rem;
}

.contact-highlight p {
  font-size: clamp(1rem, 3vw, 1.2rem);
  margin-bottom: 2rem;
  opacity: 0.95;
}

.contact-highlight .btn-whatsapp {
  background: white;
  color: var(--green-800);
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  display: inline-block;
  transition: all 0.2s ease;
}

@media (max-width: 480px) {
  .contact-highlight .btn-whatsapp {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    width: 100%;
    max-width: 280px;
  }
}

.contact-highlight .btn-whatsapp:hover {
  background: var(--green-50);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Footer - ENHANCED */
.footer {
  background: var(--earth-900);
  color: white;
  padding: 3rem 0 2rem;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .footer {
    padding: 2.5rem 0 1.5rem;
  }
}

.footer .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer .logo-img {
  width: 35px;
  height: 35px;
}

.footer .logo span.icon {
  background: var(--green-800);
  color: white;
  padding: 0.4rem;
  border-radius: 50%;
  font-size: 1.2rem;
}

.footer p {
  color: #d1d5db;
  line-height: 1.5;
  font-size: clamp(0.85rem, 2vw, 0.9rem);
}

.footer h4 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--green-200);
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.75rem;
  color: #d1d5db;
  font-size: clamp(0.85rem, 2vw, 0.9rem);
}

.footer ul li a {
  color: #d1d5db;
  transition: color 0.2s ease;
}

.footer ul li a:hover {
  color: white;
}

.footer ul li .icon {
  margin-right: 0.5rem;
  color: var(--green-500, #10b981);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
  color: #9ca3af;
  font-size: clamp(0.75rem, 2vw, 0.8rem);
}

/* WhatsApp floating button - ENHANCED */
.whatsapp-button {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: transform 0.2s ease;
}

@media (max-width: 768px) {
  .whatsapp-button {
    width: 3rem;
    height: 3rem;
    bottom: 1.25rem;
    left: 1.25rem;
  }
}

@media (max-width: 480px) {
  .whatsapp-button {
    width: 2.75rem;
    height: 2.75rem;
    bottom: 1rem;
    left: 1rem;
  }
}

.whatsapp-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.75rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.whatsapp-button:hover {
  transform: scale(1.1);
}

@media (max-width: 480px) {
  .whatsapp-button:hover {
    transform: scale(1.05);
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Fix for mobile viewport height - Updated */
@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: calc(100vh - 65px);
    min-height: calc(100dvh - 65px); /* Dynamic viewport height for mobile */
    margin-top: 65px;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: calc(100vh - 56px);
    min-height: calc(100dvh - 56px);
    margin-top: 56px;
  }
}

@media (max-width: 375px) {
  .hero {
    min-height: calc(100vh - 52px);
    min-height: calc(100dvh - 52px);
    margin-top: 52px;
  }
}

/* Animations for better mobile experience */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service,
.feature-card,
.philosophy-grid .card {
  animation: fadeIn 0.5s ease-out;
}

/* Prevent horizontal scroll on mobile */
body {
  overflow-x: hidden;
  width: 100%;
}

.container {
  max-width: 100%;
}

/* Better touch targets for mobile */
@media (max-width: 768px) {
  a, button {
    min-height: 44px;
  }
}

/* Additional mobile optimizations */
@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .section-header {
    margin-bottom: 1.5rem;
  }
  
  .section-header h2 {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
  }
  
  .section-header h3 {
    font-size: 1.35rem;
    padding: 0 0.5rem;
  }
  
  .section-header p {
    font-size: 0.9rem;
    padding: 0 0.5rem;
  }
}

@media (max-width: 375px) {
  .container {
    padding: 0 0.5rem;
  }
  
  section {
    padding: 2rem 0;
  }
  
  .section-header h3 {
    font-size: 1.2rem;
  }
  
  .philosophy-grid .card {
    padding: 1.25rem 1rem;
  }
  
  .philosophy-grid .card .icon {
    font-size: 2rem;
  }
  
  .philosophy-grid .card h4 {
    font-size: 1rem;
  }
  
  .philosophy-grid .card p {
    font-size: 0.85rem;
  }
  
  .service {
    padding: 0.75rem;
    gap: 0.35rem 0.6rem;
  }
  
  .service .service-icon img {
    width: 2.25rem;
    height: 2.25rem;
  }
  
  .service h4 {
    font-size: 0.9rem;
  }
  
  .service p {
    font-size: 0.75rem;
  }
  
  .feature-card {
    padding: 0.875rem;
    gap: 0.75rem;
  }
  
  .feature-icon {
    width: 50px;
    height: 50px;
  }
  
  .feature-card h4 {
    font-size: 0.9rem;
  }
  
  .contact-highlight {
    padding: 2rem 0.75rem;
  }
  
  .contact-highlight h2 {
    font-size: 1.5rem;
  }
  
  .contact-highlight p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
  
  .footer {
    padding: 2rem 0 1.25rem;
  }
  
  .footer .logo {
    font-size: 1.1rem;
  }
  
  .footer .logo-img {
    width: 30px;
    height: 30px;
  }
  
  .footer ul li {
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
  }
  
  .footer-bottom {
    font-size: 0.7rem;
    margin-top: 1.5rem;
  }
}

/* Safe area for notched phones */
@supports (padding-top: env(safe-area-inset-top)) {
  .navbar {
    padding-top: env(safe-area-inset-top);
  }
  
  .footer {
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  }
  
  .whatsapp-button {
    bottom: calc(1rem + env(safe-area-inset-bottom));
    left: calc(1rem + env(safe-area-inset-left));
  }
}

/* تكبير عناوين أقسام الخدمات الإضافية */
.extra-services .section-header h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--green-900);
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .extra-services .section-header h2 {
    font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  }
}

/* Additional Services Buttons Section */
.additional-services-section {
  background: var(--green-50);
  padding: 4rem 0;
}

@media (max-width: 768px) {
  .additional-services-section {
    padding: 3rem 0;
  }
}

.services-buttons {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.service-link-btn {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: white;
  padding: 2rem;
  border-radius: 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  border: 2px solid transparent;
  overflow: hidden;
  position: relative;
}

.service-link-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border-color: var(--green-600);
}

.service-link-img {
  width: 120px;
  height: 120px;
  min-width: 120px;
  border-radius: 1rem;
  object-fit: cover;
}

.service-link-content {
  flex: 1;
}

.service-link-content h4 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green-900);
  margin-bottom: 0.5rem;
}

.service-link-content p {
  font-size: 1rem;
  color: var(--earth-600);
  line-height: 1.5;
}

.service-link-btn i {
  color: var(--green-700);
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.service-link-btn:hover i {
  transform: translateX(6px);
}

@media (max-width: 768px) {
  .service-link-btn {
    padding: 1.5rem;
    gap: 1rem;
  }
  
  .service-link-img {
    width: 100px;
    height: 100px;
    min-width: 100px;
  }
  
  .service-link-content h4 {
    font-size: 1.15rem;
  }
  
  .service-link-content p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .service-link-btn {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem;
    gap: 1rem;
  }
  
  .service-link-img {
    width: 100%;
    height: 140px;
    min-width: unset;
    border-radius: 0.75rem;
  }
  
  .service-link-content h4 {
    font-size: 1.1rem;
  }
  
  .service-link-content p {
    font-size: 0.85rem;
  }
  
  .service-link-btn i {
    display: none;
  }
}

@media (max-width: 375px) {
  .additional-services-section {
    padding: 2rem 0;
  }
  
  .services-buttons {
    gap: 1.5rem;
  }
  
  .service-link-btn {
    padding: 1rem;
  }
  
  .service-link-img {
    height: 120px;
  }
  
  .service-link-content h4 {
    font-size: 1rem;
  }
  
  .service-link-content p {
    font-size: 0.8rem;
  }
}

/* Page Hero for subpages */
.page-hero {
  position: relative;
  height: 50vh;
  min-height: 300px;
  max-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  background-size: cover;
  background-position: center;
  margin-top: 70px;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
  z-index: 0;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 1.5rem;
}

.page-hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.page-hero-content p {
  font-size: clamp(0.9rem, 3vw, 1.25rem);
  font-weight: 300;
  color: #f5f5f5;
}

@media (max-width: 768px) {
  .page-hero {
    margin-top: 65px;
    min-height: 220px;
    height: 40vh;
  }
  
  .page-hero-content {
    padding: 0 1rem;
  }
  
  .page-hero-content h1 {
    font-size: clamp(1.35rem, 5vw, 2rem);
  }
}

@media (max-width: 480px) {
  .page-hero {
    margin-top: 56px;
    min-height: 180px;
    height: 35vh;
  }
  
  .page-hero-content h1 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }
  
  .page-hero-content p {
    font-size: 0.85rem;
  }
}

@media (max-width: 375px) {
  .page-hero {
    margin-top: 52px;
    min-height: 150px;
  }
  
  .page-hero-content h1 {
    font-size: 1.1rem;
  }
}
