/* ======================
   CSS Reset & Base Styles
   ====================== */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  :root {
    /* Color System */
    --color-primary: #00717A;    /* Darker teal for better contrast with light text */
    --color-secondary: #005F66;  /* Slightly darker variant for depth */
    --color-tertiary: #004A50;   /* Even deeper teal for strong contrast needs */
    
    /* Text Colors */
    --text-on-dark: #FFFFFF;     /* Pure white for maximum contrast on dark backgrounds */
    --text-on-light: #1A2A2D;    /* Very dark teal-gray for light backgrounds */
    --color-text-secondary: #B8E2E6;  /* Much lighter teal for secondary text on dark */
    
    /* Accent Colors */
    --color-accent-high: #FF8C66;     /* Brighter coral for better visibility */
    --color-accent-medium: #FFA987;   /* Keeping this the same */
    --color-accent-low: #FFD4C8;      /* Keeping this the same */
    --color-accent-minimal: #F2F2F2;  /* Keeping this the same */
    
    /* Status Colors */
    --color-success: #2EB62C;     /* Slightly darker green for better contrast */
    --color-error: #CF2E2E;       /* Slightly darker red for better contrast */
    
    /* UI Colors */
    --color-bg-surface: #F5F9FA;  /* Slightly warmer white for surfaces */
    --color-border: #88C3C8;      /* Keeping this the same */
    --color-white: #FFFFFF;       /* Keeping this the same */
    --color-black: #000000;       /* Keeping the same */
  
    /* Typography */
    --font-heading: "Playfair Display", serif;
    --font-body: "Crimson Text", serif;
    --font-size-xs: 0.75rem;   /* 12px */
    --font-size-sm: 0.875rem;  /* 14px */
    --font-size-base: 1rem;    /* 16px */
    --font-size-lg: 1.125rem;  /* 18px */
    --font-size-xl: 1.25rem;   /* 20px */
    --font-size-2xl: 1.5rem;   /* 24px */
    --font-size-3xl: 1.875rem; /* 30px */
    --font-size-4xl: 2.25rem;  /* 36px */
    --font-size-5xl: 3rem;     /* 48px */
  
    /* Spacing */
    --spacing-xs: 0.25rem;     /* 4px */
    --spacing-sm: 0.5rem;      /* 8px */
    --spacing-md: 1rem;        /* 16px */
    --spacing-lg: 1.5rem;      /* 24px */
    --spacing-xl: 2rem;        /* 32px */
    --spacing-2xl: 2.5rem;     /* 40px */
    --spacing-3xl: 3rem;       /* 48px */
    --spacing-4xl: 4rem;       /* 64px */
    --spacing-5xl: 5rem;       /* 80px */
  
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  }
  
  /* ======================
     Global Styles
     ====================== */
  body {
    font-family: var(--font-body);
    background-color: var(--color-primary);
    color: var(--text-on-dark); /* Light text on dark background */
    line-height: 1.6;
    font-size: var(--font-size-lg); /* Increased base font size for better readability */
  }
  
  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: var(--spacing-md);
    font-weight: 700; /* Increased font weight for better visibility */
  }
  
  h1 {
    font-size: var(--font-size-5xl);
    letter-spacing: -0.5px;
  }
  
  h2 {
    font-size: var(--font-size-4xl);
    font-weight: 600;
    color: var(--text-on-dark); /* Ensure heading visibility on dark backgrounds */
  }
  
  h3 {
    font-size: var(--font-size-2xl);
    font-weight: 500;
  }
  
  a {
    color: inherit; /* Inherit from parent element */
    text-decoration: none;
    transition: color var(--transition-normal);
  }
  
  a:hover {
    color: var(--color-accent-high); /* Brighter accent color for better visibility */
    text-decoration: underline; /* Added underline for better usability */
  }
  
  p {
    margin-bottom: var(--spacing-md);
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    width: 100%;
  }
  
  .section-padding {
    padding-top: var(--spacing-5xl);
    padding-bottom: var(--spacing-5xl);
  }
  
  .section-title {
    text-align: center;
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-3xl);
    color: var(--text-on-dark); /* Ensuring all section titles are clearly visible */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* Added subtle shadow for better contrast */
  }
  
  /* ======================
     Utility Classes
     ====================== */
  .btn {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-xl);
    background: var(--color-accent-high); /* Brighter accent color */
    color: var(--color-white);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background var(--transition-normal);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Added subtle shadow for depth */
  }
  
  .btn:hover {
    background: var(--color-accent-medium);
    color: var(--color-white);
    transform: translateY(-2px); /* Subtle lift effect */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  .card {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    transition: box-shadow var(--transition-normal);
    color: var(--text-on-light); /* Dark text for light backgrounds */
    box-shadow: var(--shadow-md);
  }
  
  .card:hover {
    box-shadow: var(--shadow-lg);
  }
  
  /* Card specific heading styles */
  .card h3 {
    color: var(--color-tertiary); /* Dark teal color that works on light backgrounds */
    font-weight: 600; /* Make card headings bolder */
  }
  
  /* ======================
     Header/Nav
     ====================== */
  .site-header {
    width: 100%;
    background-color: var(--color-tertiary); /* Darker teal for header */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  .site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xl) var(--spacing-lg);
  }
  
  .logo {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-on-dark);
  }
  
  .logo span {
    color: var(--color-accent-high); /* Brighter accent for logo */
  }
  
  .main-nav a {
    margin-left: var(--spacing-xl);
    font-weight: 500;
    transition: color var(--transition-normal), transform var(--transition-fast);
    display: inline-block;
  }
  
  .main-nav a:hover {
    color: var(--color-accent-high);
    transform: scale(1.08);
  }
  
  #contact-btn {
    background: var(--color-accent-high);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    color: var(--color-white);
  }
  
  #contact-btn:hover {
    background: var(--color-accent-medium);
    text-decoration: none;
  }
  
  .mobile-menu-btn,
  .close-menu {
    display: none;
    background: none;
    border: none;
    color: var(--text-on-dark);
    font-size: var(--font-size-2xl);
    cursor: pointer;
  }
  
  /* Overlay */
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 90;
    display: none;
  }
  
  /* ======================
     Hero Section
     ====================== */
  .hero {
    background: url("./images/hero-bg.png") center/cover no-repeat;
    padding: var(--spacing-5xl) 0;
    height: 75vh;
    display: flex;
    align-items: center;
    position: relative;
    text-align: center;
    color: var(--text-on-dark);
  }
  
  .hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Darker overlay for better text contrast */
    z-index: 1;
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .hero h1 {
    color: var(--text-on-dark); /* Switched to white text for better visibility */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Added text shadow for better readability */
    margin-bottom: var(--spacing-md);
  }
  
  .tagline {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-xl);
    color: var(--text-on-dark); /* White text instead of secondary color */
    font-weight: 500; /* Slightly bolder for better visibility */
  }
  
  .cta-button {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-lg); /* Larger text for CTA button */
  }
  
  /* ======================
     About Section
     ====================== */
  .about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-3xl);
  }
  
  .about-text {
    flex: 1;
    font-size: var(--font-size-lg);
    line-height: 1.7;
  }
  
  .about-text p:first-of-type {
    font-weight: 500;
    font-size: calc(var(--font-size-lg) + 0.125rem);
  }
  
  .about-text p:last-of-type {
    font-style: italic;
    color: var(--color-text-secondary);
    font-weight: 400;
  }
  
  .about-image {
    flex: 1;
    text-align: center;
  }
  
  .about-image img {
    max-width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
  }
  
  /* ======================
     Services & Advantages
     ====================== */
  .services {
    background-color: var(--color-secondary);
  }
  
  .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
  }
  
  .feature-card {
    text-align: center;
  }
  
  .feature-icon {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--spacing-md);
  }
  
  .feature-title {
    margin-bottom: var(--spacing-md);
    color: var(--color-tertiary); /* Specific color for card headings */
  }
  
  /* ======================
     Contact Section
     ====================== */
  .contact {
    background-color: var(--color-primary);
  }
  
  .contact .section-title {
    color: var(--text-on-dark);
  }
  
  .contact-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
  }
  
  .contact-info {
    color: var(--text-on-dark);
  }
  
  .contact-info h3 {
    color: var(--text-on-dark); /* Ensure headings are visible on dark background */
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
  }
  
  .contact-details {
    margin: var(--spacing-xl) 0;
  }
  
  .contact-details p {
    margin-bottom: var(--spacing-md);
  }
  
  .map-container {
    margin-top: var(--spacing-xl);
  }
  
  .contact-form {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    color: var(--text-on-light); /* Dark text for the white form background */
    box-shadow: var(--shadow-md);
  }
  
  .form-group {
    margin-bottom: var(--spacing-lg);
  }
  
  .form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--color-tertiary);
    font-weight: 600;
  }
  
  .form-control {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
  }
  
  .form-control:focus {
    border-color: var(--color-accent-high);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 140, 102, 0.2); /* Subtle focus ring */
  }
  
  .submit-btn {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: var(--font-size-lg);
    font-weight: 600;
    background-color: var(--color-accent-high);
  }
  
  .form-message {
    margin-top: var(--spacing-md);
    text-align: center;
  }
  
  .form-message.success {
    color: var(--color-success);
  }
  
  .form-message.error {
    color: var(--color-error);
  }
  
  /* ======================
     Footer
     ====================== */
  .site-footer {
    padding: var(--spacing-3xl) 0;
    text-align: center;
    background: var(--color-tertiary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .copyright {
    color: var(--text-on-dark); /* Changed to white for better visibility */
    font-size: var(--font-size-sm);
  }
  
  /* ======================
     Media Queries
     ====================== */
  @media (max-width: 768px) {
    /* Typography adjustments for mobile */
    h1 {
      font-size: var(--font-size-3xl);
      line-height: 1.3;
    }
    
    h2 {
      font-size: var(--font-size-2xl);
    }
    
    .tagline {
      font-size: var(--font-size-base);
    }
    
    /* Navigation for mobile */
    .main-nav {
      position: fixed;
      top: 0;
      right: -280px;
      width: 280px;
      height: 100vh;
      background: var(--color-tertiary);
      flex-direction: column;
      padding: var(--spacing-5xl) var(--spacing-xl);
      transition: right var(--transition-normal);
      z-index: 100;
      box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
      align-items: flex-start;
    }
  
    .main-nav a {
      display: block;
      margin: 0 0 var(--spacing-lg) 0;
      font-size: var(--font-size-lg);
      width: 100%;
    }
  
    .main-nav.active {
      right: 0;
    }
  
    .mobile-menu-btn {
      display: block;
    }
    
    .close-menu {
      display: block;
      position: absolute;
      top: var(--spacing-lg);
      right: var(--spacing-lg);
    }
  
    /* Hero section adjustments */
    .hero {
      height: auto;
      padding: var(--spacing-5xl) 0 var(--spacing-4xl);
    }
  
    .hero-content {
      max-width: 90%;
    }
  
    /* About section adjustments */
    .about-content {
      flex-direction: column;
    }
  
    .about-image {
      order: -1;
      margin-bottom: var(--spacing-xl);
    }
    
    /* Reduce paddings */
    .section-padding {
      padding-top: var(--spacing-4xl);
      padding-bottom: var(--spacing-4xl);
    }
  
    /* Buttons and form elements */
    .btn, .submit-btn {
      font-size: var(--font-size-sm);
      padding: var(--spacing-md) var(--spacing-lg);
    }
  }
  
  /* For very small screens */
  @media (max-width: 480px) {
    .container {
      padding: 0 var(--spacing-md);
    }
    
    .section-padding {
      padding-top: var(--spacing-3xl);
      padding-bottom: var(--spacing-3xl);
    }
    
    .hero h1 {
      font-size: var(--font-size-2xl);
    }
    
    .section-title {
      font-size: var(--font-size-2xl);
      margin-bottom: var(--spacing-xl);
    }
  }