/*
Theme Name: KeralaTour
Theme URI: https://braincybersolutions.com/
Author: Syam K S
Author URI: https://braincybersolutions.com/
*/
:root {
      /* Kerala-inspired Color Palette */
      --primary: #0B7A5F;
      --primary-light: #0E9B78;
      --primary-dark: #065842;
      --accent: #D4A574;
      --accent-gold: #C9962D;
      --bg-cream: #FAF8F5;
      --bg-white: #FFFFFF;
      --text-primary: #1A2332;
      --text-secondary: #5A6B7D;
      --text-muted: #8B98A8;
      --border: #E5E9EF;
      --shadow-sm: 0 2px 8px rgba(11, 122, 95, 0.06);
      --shadow-md: 0 4px 16px rgba(11, 122, 95, 0.08);
      --shadow-lg: 0 12px 40px rgba(11, 122, 95, 0.12);
      --shadow-xl: 0 20px 60px rgba(11, 122, 95, 0.15);
      --radius-sm: 8px;
      --radius-md: 12px;
      --radius-lg: 16px;
      --radius-xl: 24px;
      --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      --max-width: 1280px;
    }

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

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      background: var(--bg-cream);
      color: var(--text-primary);
      line-height: 1.7;
      font-size: 16px;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    h1, h2, h3, h4 {
      font-family: 'Playfair Display', Georgia, serif;
      font-weight: 700;
      line-height: 1.3;
      color: var(--text-primary);
    }
.gaptxt
{
	font-family: 'Playfair Display', Georgia, serif;
	font-weight: 900;
    line-height: 1.5;
    color: var(--primary);
	font-size:1.2rem;
	
}
    h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
    h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
    h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

    a {
      color: var(--primary);
      text-decoration: none;
      transition: var(--transition);
    }

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

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

    .container {
      max-width: var(--max-width);
      margin: 0 auto;
      padding: 0 24px;
    }

    /* Announcement Bar */
    .announcement {
      background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
      color: white;
      padding: 12px 0;
      text-align: center;
      font-size: 14px;
      font-weight: 500;
      position: relative;
      overflow: hidden;
    }

    .announcement::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
      animation: shimmer 3s infinite;
    }

    @keyframes shimmer {
      to { left: 100%; }
    }

    .announcement-content {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 20px;
      flex-wrap: wrap;
    }

    .announcement a {
      color: var(--accent);
      font-weight: 600;
      text-decoration: underline;
    }

    /* Navigation */
    .header {
      background: var(--bg-white);
      position: sticky;
      top: 0;
      z-index: 1000;
      box-shadow: var(--shadow-sm);
      transition: var(--transition);
    }

    .header.scrolled {
      box-shadow: var(--shadow-md);
    }

    .nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 20px 0;
      gap: 32px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 16px;
      flex-shrink: 0;
    }

    .logo {
      width: 56px;
      height: 56px;
      background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
      border-radius: var(--radius-md);
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-weight: 800;
      font-size: 24px;
      box-shadow: var(--shadow-md);
    }

    .brand-text h1 {
      font-size: 20px;
      margin-bottom: 2px;
      color: var(--text-primary);
    }

    .brand-tagline {
      font-size: 13px;
      color: var(--text-muted);
      font-weight: 500;
    }

    .nav-menu {
      display: flex;
      list-style: none;
      gap: 32px;
      align-items: center;
      margin: 0;
    }

    .nav-menu a {
      font-weight: 600;
      font-size: 15px;
      color: var(--text-primary);
      position: relative;
      padding: 8px 0;
    }

    .nav-menu a::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 0;
      height: 2px;
      background: var(--primary);
      transition: width 0.3s ease;
    }

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

    .nav-cta {
      background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
      color: white !important;
      padding: 12px 28px;
      border-radius: var(--radius-lg);
      font-weight: 600;
      box-shadow: var(--shadow-md);
      transition: var(--transition);
    }

    .nav-cta:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-lg);
    }

    .nav-cta::after {
      display: none;
    }

    .mobile-toggle {
      display: none;
      background: none;
      border: none;
      font-size: 28px;
      cursor: pointer;
      color: var(--text-primary);
    }

    /* Hero Section */
    .hero {
      position: relative;
      padding: 80px 0 100px;
      overflow: hidden;
    }

    .hero::before {
      content: '';
      position: absolute;
      top: 0;
      right: 0;
      width: 50%;
      height: 100%;
      background: linear-gradient(135deg, rgba(11, 122, 95, 0.03) 0%, rgba(212, 165, 116, 0.05) 100%);
      border-radius: 0 0 0 100px;
      z-index: 0;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 60px;
      align-items: center;
      position: relative;
      z-index: 1;
    }

    .hero-content {
      max-width: 600px;
    }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: linear-gradient(135deg, rgba(11, 122, 95, 0.1), rgba(11, 122, 95, 0.05));
      padding: 8px 20px;
      border-radius: 50px;
      font-size: 14px;
      font-weight: 600;
      color: var(--primary-dark);
      margin-bottom: 24px;
      border: 1px solid rgba(11, 122, 95, 0.15);
    }

    .hero-badge::before {
      content: '✦';
      color: var(--accent-gold);
    }

    .hero h1 {
      margin-bottom: 24px;
      background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-dark) 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .hero-description {
      font-size: 18px;
      color: var(--text-secondary);
      margin-bottom: 32px;
      line-height: 1.8;
    }

    .hero-actions {
      display: flex;
      gap: 16px;
      margin-bottom: 40px;
      flex-wrap: wrap;
    }

    .btn-primary {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
      color: white;
      padding: 16px 32px;
      border-radius: var(--radius-lg);
      font-weight: 600;
      font-size: 16px;
      border: none;
      cursor: pointer;
      box-shadow: var(--shadow-md);
      transition: var(--transition);
    }

    .btn-primary:hover {
      transform: translateY(-3px);
      box-shadow: var(--shadow-lg);
      color: white;
    }

    .btn-secondary {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: white;
      color: var(--primary);
      padding: 16px 32px;
      border-radius: var(--radius-lg);
      font-weight: 600;
      font-size: 16px;
      border: 2px solid var(--primary);
      cursor: pointer;
      transition: var(--transition);
    }

    .btn-secondary:hover {
      background: var(--primary);
      color: white;
      transform: translateY(-3px);
      box-shadow: var(--shadow-lg);
    }

    .hero-features {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      gap: 16px;
    }

    .hero-feature {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 16px;
      background: white;
      border-radius: var(--radius-md);
      box-shadow: var(--shadow-sm);
      font-size: 14px;
      font-weight: 600;
      color: var(--text-primary);
    }

    .hero-feature-icon {
      width: 32px;
      height: 32px;
      background: linear-gradient(135deg, rgba(11, 122, 95, 0.1), rgba(11, 122, 95, 0.05));
      border-radius: var(--radius-sm);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
    }

    .hero-image {
      position: relative;
      height: 600px;
      border-radius: var(--radius-xl);
      overflow: hidden;
      box-shadow: var(--shadow-xl);
    }

    .hero-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .hero-image::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 40%;
      background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
    }

    .hero-overlay-badge {
      position: absolute;
      bottom: 30px;
      left: 30px;
      background: white;
      padding: 16px 24px;
      border-radius: var(--radius-md);
      box-shadow: var(--shadow-lg);
      z-index: 10;
    }

    .hero-overlay-badge strong {
      display: block;
      font-size: 24px;
      color: var(--primary);
      font-family: 'Playfair Display', serif;
    }

    .hero-overlay-badge span {
      font-size: 14px;
      color: var(--text-muted);
    }

    /* Section Styles */
    .section {
      padding: 80px 0;
    }

    .section-header {
      text-align: center;
      max-width: 800px;
      margin: 0 auto 60px;
    }

    .section-badge {
      display: inline-block;
      background: linear-gradient(135deg, rgba(11, 122, 95, 0.1), rgba(212, 165, 116, 0.1));
      padding: 8px 20px;
      border-radius: 50px;
      font-size: 14px;
      font-weight: 600;
      color: var(--primary-dark);
      margin-bottom: 16px;
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    .section-title {
      margin-bottom: 16px;
    }

    .section-description {
      font-size: 18px;
      color: var(--text-secondary);
      line-height: 1.8;
    }

    /* Card Grid */
    .card-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
      gap: 32px;
    }

    .card {
      background: white;
      border-radius: var(--radius-lg);
      overflow: hidden;
      box-shadow: var(--shadow-sm);
      transition: var(--transition);
      display: flex;
      flex-direction: column;
    }

    .card:hover {
      transform: translateY(-8px);
      box-shadow: var(--shadow-xl);
    }

    .card-image {
      width: 100%;
      height: 260px;
      overflow: hidden;
      position: relative;
    }

    .card-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s ease;
    }

    .card:hover .card-image img {
      transform: scale(1.1);
    }

    .card-badge {
      position: absolute;
      top: 16px;
      right: 16px;
      background: white;
      padding: 6px 14px;
      border-radius: 50px;
      font-size: 13px;
      font-weight: 700;
      color: var(--primary);
      box-shadow: var(--shadow-md);
    }

    .card-content {
      padding: 28px;
      flex: 1;
      display: flex;
      flex-direction: column;
    }

    .card-title {
      margin-bottom: 12px;
      color: var(--text-primary);
    }

    .card-description {
      color: var(--text-secondary);
      margin-bottom: 20px;
      font-size: 15px;
      flex: 1;
    }

    .card-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-top: 20px;
      border-top: 1px solid var(--border);
    }

    .card-price {
      font-size: 24px;
      font-weight: 700;
      color: var(--primary);
      font-family: 'Playfair Display', serif;
    }

    .card-price span {
      font-size: 14px;
      color: var(--text-muted);
      font-family: 'Inter', sans-serif;
      font-weight: 500;
    }

    .card-link {
      color: var(--primary);
      font-weight: 600;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .card-link:hover {
      gap: 10px;
    }

    /* Pricing Table */
    .pricing-card {
      background: white;
      border-radius: var(--radius-lg);
      padding: 40px;
      box-shadow: var(--shadow-md);
    }

    .pricing-table {
      width: 100%;
      border-collapse: separate;
      border-spacing: 0;
      margin: 24px 0;
    }

    .pricing-table thead {
      background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
      color: white;
    }

    .pricing-table th {
      padding: 16px 20px;
      text-align: left;
      font-weight: 600;
      font-size: 15px;
    }

    .pricing-table th:first-child {
      border-radius: var(--radius-md) 0 0 0;
    }

    .pricing-table th:last-child {
      border-radius: 0 var(--radius-md) 0 0;
    }

    .pricing-table td {
      padding: 20px;
      border-bottom: 1px solid var(--border);
      color: var(--text-secondary);
    }

    .pricing-table tr:last-child td {
      border-bottom: none;
    }

    .pricing-table tr:nth-child(even) {
      background: rgba(11, 122, 95, 0.02);
    }

    .pricing-table .price-cell {
      font-weight: 700;
      color: var(--primary);
      font-size: 18px;
    }

    /* Features Grid */
    .features-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 24px;
    }

    .feature-card {
      background: white;
      padding: 32px;
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-sm);
      transition: var(--transition);
      border: 2px solid transparent;
    }

    .feature-card:hover {
      border-color: var(--primary);
      box-shadow: var(--shadow-md);
      transform: translateY(-4px);
    }

    .feature-icon {
      width: 56px;
      height: 56px;
      background: linear-gradient(135deg, rgba(11, 122, 95, 0.1), rgba(212, 165, 116, 0.1));
      border-radius: var(--radius-md);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 28px;
      margin-bottom: 20px;
    }

    .feature-card h3 {
      margin-bottom: 12px;
      font-size: 20px;
    }

    .feature-card p {
      color: var(--text-secondary);
      font-size: 15px;
      line-height: 1.7;
    }

    /* Testimonials */
    .testimonial-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 28px;
    }

    .testimonial {
      background: white;
      padding: 32px;
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-sm);
      position: relative;
    }

    .testimonial::before {
      content: '"';
      position: absolute;
      top: 16px;
      left: 24px;
      font-size: 80px;
      color: rgba(11, 122, 95, 0.1);
      font-family: Georgia, serif;
      line-height: 1;
    }

    .testimonial-content {
      position: relative;
      z-index: 1;
      font-style: italic;
      color: var(--text-secondary);
      margin-bottom: 20px;
      font-size: 15px;
      line-height: 1.8;
    }

    .testimonial-author {
      display: flex;
      align-items: center;
      gap: 12px;
      padding-top: 16px;
      border-top: 1px solid var(--border);
    }

    .testimonial-avatar {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--primary), var(--accent));
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-weight: 700;
      font-size: 18px;
    }

    .testimonial-info strong {
      display: block;
      color: var(--text-primary);
      font-weight: 600;
      margin-bottom: 2px;
    }

    .testimonial-info span {
      font-size: 13px;
      color: var(--text-muted);
    }

    .rating {
      color: var(--accent-gold);
      margin-top: 4px;
    }

    /* CTA Section */
    .cta-section {
      background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
      border-radius: var(--radius-xl);
      padding: 80px 60px;
      text-align: center;
      color: white;
      position: relative;
      overflow: hidden;
    }

    .cta-section::before {
      content: '';
      position: absolute;
      top: -50%;
      right: -10%;
      width: 400px;
      height: 400px;
      background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
      border-radius: 50%;
    }

    .cta-section h2 {
      color: white;
      margin-bottom: 20px;
      position: relative;
      z-index: 1;
    }

    .cta-section p {
      font-size: 18px;
      opacity: 0.9;
      margin-bottom: 32px;
      max-width: 600px;
      margin-left: auto;
      margin-right: auto;
      position: relative;
      z-index: 1;
    }

    .cta-section .btn-primary {
      background: white;
      color: var(--primary);
      position: relative;
      z-index: 1;
    }

    .cta-section .btn-primary:hover {
      background: var(--accent);
      color: white;
    }

    /* FAQ */
    .faq-container {
      max-width: 900px;
      margin: 0 auto;
    }

    .faq-item {
      background: white;
      border-radius: var(--radius-md);
      margin-bottom: 16px;
      box-shadow: var(--shadow-sm);
      overflow: hidden;
    }

    .faq-item summary {
      padding: 24px 28px;
      cursor: pointer;
      font-weight: 600;
      color: var(--text-primary);
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      transition: var(--transition);
    }

    .faq-item summary:hover {
      background: rgba(11, 122, 95, 0.03);
      color: var(--primary);
    }

    .faq-item summary::after {
      content: '+';
      font-size: 24px;
      font-weight: 300;
      color: var(--primary);
      flex-shrink: 0;
      transition: transform 0.3s ease;
    }

    .faq-item[open] summary::after {
      transform: rotate(45deg);
    }

    .faq-content {
      padding: 0 28px 24px;
      color: var(--text-secondary);
      line-height: 1.8;
    }

    /* Contact Form */
    .contact-grid {
      display: grid;
      grid-template-columns: 1.5fr 1fr;
      gap: 40px;
    }

    .form-card {
      background: white;
      padding: 40px;
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-md);
    }

    .form-group {
      margin-bottom: 20px;
    }

    .form-group label {
      display: block;
      font-weight: 600;
      margin-bottom: 8px;
      color: var(--text-primary);
    }

    .form-control {
      width: 100%;
      padding: 14px 16px;
      border: 2px solid var(--border);
      border-radius: var(--radius-md);
      font-size: 15px;
      font-family: inherit;
      transition: var(--transition);
      background: var(--bg-cream);
    }

    .form-control:focus {
      outline: none;
      border-color: var(--primary);
      background: white;
    }

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

    textarea.form-control {
      resize: vertical;
      min-height: 120px;
    }

    .info-card {
      background: white;
      padding: 32px;
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-sm);
      height: fit-content;
    }

    .info-item {
      display: flex;
      align-items: flex-start;
      gap: 16px;
      margin-bottom: 24px;
      padding-bottom: 24px;
      border-bottom: 1px solid var(--border);
    }

    .info-item:last-child {
      margin-bottom: 0;
      padding-bottom: 0;
      border-bottom: none;
    }

    .info-icon {
      width: 44px;
      height: 44px;
      background: linear-gradient(135deg, rgba(11, 122, 95, 0.1), rgba(212, 165, 116, 0.1));
      border-radius: var(--radius-sm);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      flex-shrink: 0;
    }

    .info-content h4 {
      font-size: 16px;
      margin-bottom: 4px;
    }

    .info-content p {
      color: var(--text-secondary);
      font-size: 14px;
      margin: 0;
    }

    /* Footer */
    .footer {
      background: var(--text-primary);
      color: rgba(255, 255, 255, 0.8);
      padding: 60px 0 30px;
      margin-top: 80px;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr 1fr;
      gap: 60px;
      margin-bottom: 40px;
    }

    .footer-brand h3 {
      color: white;
      margin-bottom: 16px;
      font-size: 24px;
    }

    .footer-brand p {
      margin-bottom: 20px;
      line-height: 1.8;
    }

    .footer-heading {
      color: white;
      font-size: 16px;
      font-weight: 700;
      margin-bottom: 20px;
    }

    .footer-links {
      list-style: none;
    }

    .footer-links li {
      margin-bottom: 12px;
    }

    .footer-links a {
      color: rgba(255, 255, 255, 0.7);
      transition: var(--transition);
    }

    .footer-links a:hover {
      color: var(--accent);
      padding-left: 4px;
    }

    .footer-bottom {
      padding-top: 30px;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      text-align: center;
      font-size: 14px;
    }

    .social-links {
      display: flex;
      gap: 12px;
      margin-top: 20px;
    }

    .social-link {
      width: 40px;
      height: 40px;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      transition: var(--transition);
    }

    .social-link:hover {
      background: var(--primary);
      transform: translateY(-3px);
    }

    /* Responsive Design */
    @media (max-width: 1024px) {
      .hero-grid {
        gap: 40px;
      }

      .hero-image {
        height: 500px;
      }

      .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
      }
    }

    @media (max-width: 768px) {
      .container {
        padding: 0 20px;
      }

      .nav {
        padding: 16px 0;
      }

      .nav-menu {
        position: fixed;
        top: 96px;
        right: -100%;
        width: 280px;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
        box-shadow: var(--shadow-xl);
        border-radius: var(--radius-lg) 0 0 var(--radius-lg);
        transition: right 0.3s ease;
        gap: 20px;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
      }

      .nav-menu.active {
        right: 0;
      }

      .mobile-toggle {
        display: block;
      }

      .hero {
        padding: 40px 0 60px;
      }

      .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
      }

      .hero-image {
        height: 400px;
        order: -1;
      }

      .section {
        padding: 60px 0;
      }

      .section-header {
        margin-bottom: 40px;
      }

      .card-grid {
        grid-template-columns: 1fr;
        gap: 24px;
      }

      .contact-grid {
        grid-template-columns: 1fr;
      }

      .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
      }

      .form-row {
        grid-template-columns: 1fr;
      }

      .cta-section {
        padding: 60px 32px;
      }

      h1 { font-size: 2rem; }
      h2 { font-size: 1.75rem; }
      
      .pricing-card {
        padding: 24px;
        overflow-x: auto;
      }
    }

    /* Utility Classes */
    .text-center { text-align: center; }
    .mb-0 { margin-bottom: 0; }
    .mt-1 { margin-top: 8px; }
    .mt-2 { margin-top: 16px; }
    .mt-3 { margin-top: 24px; }

/* ---- dropdown additions (keep with your existing theme) ---- */
.nav-item { position: relative; }
.has-dropdown > .nav-link { display: inline-flex; align-items: center; gap: 6px; }

/* desktop dropdown panel */
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  background: var(--bg-white, #fff); /* fallback */
  border-radius: 10px;
  padding: 8px;
  border: 1px solid var(--border, #E5E9EF);
  box-shadow: 0 12px 30px rgba(6,88,66,0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.18s ease;
  z-index: 1100;
}
.dropdown a {
  display: block;
  padding: 9px 12px;
  color: var(--text-primary, #1A2332);
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
}
.dropdown a:hover { background: rgba(11,122,95,0.04); }

/* show on hover (desktop) */
@media (hover: hover) and (min-width: 769px) {
  .nav-item:hover > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
  .submenu-toggle { display: none; } /* hide mobile toggle on desktop */
}

/* mobile behaviour */
.submenu-toggle {
  display: none;
  background: transparent;
  border: 0;
  font-size: 16px;
  padding: 6px 8px;
  cursor: pointer;
  margin-left: 6px;
  color: var(--text-primary, #1A2332);
}

/* slide-in mobile menu (your .nav-menu already gets .active in toggleMenu()) */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 88px; /* adjust if your header height differs */
    right: -100%;
    width: 300px;
    height: calc(100vh - 88px);
    background: var(--bg-white, #fff);
    flex-direction: column;
    padding: 18px;
    gap: 8px;
    box-shadow: 0 30px 80px rgba(6,88,66,0.12);
    transition: right 0.28s ease;
    border-radius: 12px 0 0 12px;
    overflow-y: auto;
  }
  .nav-menu.active { right: 0; }

  /* make submenu toggles visible on mobile */
  .submenu-toggle { display: inline-block; position: absolute; right: 12px; top: 10px; }

  /* convert dropdown panel to inline collapsible block on mobile */
  .dropdown {
    position: relative;
    top: 0;
    left: 0;
    box-shadow: none;
    border: none;
    padding: 0;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none; /* default closed on mobile */
  }
  .dropdown.open { display: block; }
  .dropdown a { padding-left: 18px; padding-right: 18px; }
}

/* ensure mobile dropdown panels can be toggled visible */
@media (max-width: 768px) {
  .nav-item .dropdown { display: none; }
  .nav-item .dropdown.open { display: block; }
  /* small padding tweak so child links are indented on mobile */
  .nav-item .dropdown a { padding-left: 18px; padding-right: 18px; }
}