/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color System */
    /* --primary: #27cfc6; */
    --primary: #38C6BA;
    --primary-foreground: #ffffff;
    --background: #ffffff;
    --foreground: #23262a;
    --muted: #f5f7fa;
    --muted-foreground: #7a8599;
    --border: #e6eaf0;
    --section-bg: #f8f9fb;
    --hero-overlay: #3a4a66cc;
    
    /* Typography */
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semi-bold: 600;
    --font-weight-bold: 700;
    --font-weight-extra-bold: 800;
    --font-weight-black: 900;

    /* Typography Scale */
    --font-size-text: 16px;          /* normal body text */
    --font-size-heading: 18px;       /* small/normal heading */
    --font-size-section-heading: 32px; /* section heading */
    --font-size-title: 48px;         /* big page title */

    /* Spacing */
    --container-padding: 1rem;
    --section-padding: 4rem 0;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Header */
.header {
    background-color: var(--background);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 800;
}

.header .container {
  max-width: none;   /* cancel out the default */
  width: 94.6%;       /* 100% - (2.7% left + 2.7% right) */
  margin: 0 auto;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 162px;/* adjust size as needed */ 
    height: auto;  /* keeps aspect ratio */
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--muted-foreground);
    transition: var(--transition);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-text);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.mobile-menu-btn {
  display: none; /* hidden on desktop */
  cursor: pointer;
  z-index: 1000;
}


/* Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: var(--font-weight-semi-bold);
    font-size: var(--font-size-text);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    background-color: hsl(174, 56%, 42%);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-full {
    width: 100%;
}

/* Section Styles */
.section-subtitle {
    color: var(--primary);
    font-weight: var(--font-weight-semi-bold);
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: var(--font-size-section-heading);
    font-weight: var(--font-weight-bold);
    color: var(--foreground);
    margin-bottom: 1rem;
}


/* Hero Section */
.hero-section {
    position: relative;
    /* height: 200px; */
    height: 25vh;
    /* background-image: url('hero-healthcare.jpg'); */
    /* background-size: cover;
    background-position: center;
    background-repeat: no-repeat; */
    overflow: hidden;
    color: white;
    background-color: var(--background);

    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section .container {
    max-width: none;
    width: 94.6%;
    height: 100%;
    margin: 0 auto;
    position: relative;
    border-radius: 24px;
    z-index: 10;

    background-image: url("../images/contact1.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    border-radius: 24px;
    inset: 0;
    /* background: linear-gradient(135deg, var(--hero-overlay), var(--hero-overlay)); */
    background: linear-gradient(14deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.4) 100%);
    /* background: none; */
}

.hero-content {
    position: relative;
    text-align: center;
    color: white;
    z-index: 10;
}

.hero-content h1 {
    font-size: var(--font-size-section-heading);
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.5rem;
}

.hero-content p {
    font-size: 20px;
    font-weight: var(--font-weight-medium);
}


/* ---------------------------------------------- */

/* Contact Section */
.contact-section {
    padding: var(--section-padding);
    background-color: #f8f9fa;

    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-section .container {
    max-width: none;
    width: 83.3%;
    margin: 0 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.contact-text {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.contact-details {
    margin-top: 2rem;
}

.contacts {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.contacts .contact-icon {
    max-height: 28px;
    margin-bottom: 0;
}

.contacts .contact-icon img{
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* --------------------------------------------------- */

/* Overlay style */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 900;
  justify-content: center;
  align-items: center;
}

/* Popup form container */
.popupForm {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  position: relative;
}

/* Close button */
.closeBtn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

/* -------------------------------------------------- */

/* Form Styles */
.contact-form {
    background-color: var(--background);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.contact-form .btn-primary {
    padding: 1rem 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--background);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}



/* --------------------------------------------- */

/* FAQ Section */
.faq-section {
    padding: var(--section-padding);
    background-color: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
}


.faq-section .container {
    max-width: none;
    width: 83.3%;
    margin: 0 0;
}


.faq-section .section-title {
    text-align: left;
    font-size: var(--font-size-section-heading);
    font-weight: var(--font-weight-semi-bold);
    margin-bottom: 28px;
}

.faq-container {
    /* max-width: 800px; */
    max-width: 100%;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: var(--font-size-text);
    /* font-size: 18px; */
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
    line-height: 1.7;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    width: 20px;
    height: 20px;
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 1.5rem 1.5rem;
    color: var(--muted-foreground);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    display: block;
}


/* --------------------------------------------- */

/* Footer */
.footer {
    background: var(--foreground);
    padding: 80px 0 30px;
}

.footer .container {
    max-width: none;
    width: 94.6%;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 5%;
    /* gap: 40px; */
    margin-bottom: 60px;
    color: white;
}

.footer-logo {
    margin-bottom: 5%;
}

.footer-logo .footer-logo-icon {
    width: 180px;
    height: auto;
    object-fit: contain;
}

.footer-description {
    /* color: white; */
    line-height: 1.6;
    font-size: 14px;
    font-weight: var(--font-weight-light);
}

.footer-heading {
    font-size: var(--font-size-text);
    font-weight: var(--font-weight-bold);
    /* color: white; */
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #4ECDC4;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 0;
}

.contact-detail {
    display: flex;
    align-items: center;
    /* color: white; */
}

.contact-detail .contact-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.footer-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-btn {
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid #E0E0E0;
    background: white;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-btn.enquiry {
    background: #4ECDC4;
    color: black;
    border-color: #4ECDC4;
}

.footer-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 0.5px solid #E0E0E0;
    color: white;
    font-size: 0.9rem;
}

/* --------------------------------------------- */

/* Animation for smooth transitions */
.faq-answer {
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Form validation styles */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}


/* --------------------------------------------- */

/* Responsive Design */
@media (width < 1024px) {
    .support-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .support-image {
        order: -1;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        display: flex;
        justify-content: space-between; /* pushes sections apart */
        gap: 20px; /* equal gap between items */
    }

    .company-section {
        display: none;
    }
}

@media (width < 820px) {
    .logo-icon {
        width: 140px;
    }

    /* Mobile styles */
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 50%; /* wider like in the screenshot */
        height: 100%;
        background-color: #2ec4b6; /* teal background */
        flex-direction: column;
        align-items: flex-start; /* align text to left */
        padding: 80px 30px 20px; /* space for close button */
        gap: 1.5rem;
        transform: translateX(100%); /* hidden off-screen */
        transition: transform 0.3s ease;
        z-index: 999;
    }

    /* Show menu when active */
    .nav-links.active {
        transform: translateX(0);
    }

    .nav-link {
        color: #fff;
        font-size: 1.2rem;
        text-decoration: none;
        width: 100%;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* separators like in pic */
    }

    .btn-primary {
        width: 100%;
        font-size: 1.1rem;
        padding: 0.7rem 1.5rem;
        margin-top: 1rem;
        background: #000; /* dark button for contrast */
        color: #fff;
        border: none;
        border-radius: 8px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu-btn img {
        width: 28px;
        height: 28px;
        display: none;
    }

    /* Show burger by default */
    .mobile-menu-btn .menu-icon {
        display: block;
    }

    /* When active, hide burger and show close */
    .mobile-menu-btn.active .menu-icon {
        display: none;
    }
    .mobile-menu-btn.active .close-icon {
        display: block;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    /* --------------------- */
    
    .form-section {
        padding: 30px 20px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    /* --------------------- */

    .faq-title {
        font-size: 2rem;
    }
    
    /* --------------------- */

    .footer-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .footer-description {
        display: none;
    }

    .company-section {
        display: none;
    }

    .company-contact .contact-details {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 150px;
    }
    
    .logo-icon {
        width: 101px;
    }

    .hero-section {
        height: 20vh;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .main-content {
        padding: 40px 0;
    }
    
    .faq-section {
        padding: 40px 0;
    }
    
    .faq-question {
        padding: 20px;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 24px;
    }

    /* --------------------- */
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .footer-buttons {
        flex-direction: column;
    }
}
