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

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #1a2c3e;
    line-height: 1.5;
    scroll-behavior: smooth;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* header & nav */
header {
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo img {
    max-height: 95px;
    width: auto;
    object-fit: contain;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 1rem 0;
}

.logo h1 {
    font-size: 1.7rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0b5e7e, #1e88a8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo p {
    font-size: 0.75rem;
    color: #2c7da0;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    font-weight: 600;
    color: #1e2f3e;
    transition: 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    color: #1e88a8;
}

.mobile-menu {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}

/* buttons */
.btn {
    display: inline-block;
    background-color: #1e88a8;
    color: white;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    text-align: center;
}

.btn-outline {
    background: transparent;
    border: 2px solid #1e88a8;
    color: #1e88a8;
}

.btn-outline:hover {
    background: #1e88a8;
    color: white;
}

.btn:hover {
    background-color: #0f5e78;
    transform: translateY(-2px);
}

.btn-small {
    padding: 8px 18px;
    font-size: 0.8rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(110deg, #f0f9ff 0%, #e8f0f5 100%);
    padding: 4rem 0;
    border-radius: 0 0 40px 40px;
}

.hero-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
}

.hero-content {
    flex: 1.2;
}

.hero-badge {
    background: #d4eaf3;
    color: #0b5e7e;
    display: inline-block;
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.2rem;
}

.hero-highlight {
    color: #1e88a8;
}

.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0 1rem;
}

.trust-badge {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    align-items: center;
    margin-top: 1.5rem;
}

.trust-badge span {
    background: white;
    padding: 6px 14px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.8rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Phone input validation styles */
input[type="tel"]:valid {
    border-color: #28a745;
    background-color: #f0fff4;
}

input[type="tel"]:invalid {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.phone-error {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Info Card (Hero right panel) */
.info-card {
    background: #fff;
    border-radius: 32px;
    padding: 1.5rem;
    box-shadow: 0 20px 35px rgba(0,0,0,0.1);
}

.info-card i {
    color: #1e88a8;
}

.info-card hr {
    margin: 1rem 0;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    position: relative;
}

.section-title:after {
    content: "";
    width: 70px;
    height: 4px;
    background: #1e88a8;
    display: block;
    margin-top: 10px;
}

/* About Section */
.about-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.about-main {
    flex: 2;
}

.about-main h3 {
    margin-top: 1.5rem;
}

.cert-card {
    flex: 1;
    background: #f0f7fb;
    border-radius: 28px;
    padding: 1.5rem;
}

.cert-card i {
    font-size: 2rem;
}

/* Cards Grid */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: #fff;
    border-radius: 24px;
    padding: 1.8rem;
    box-shadow: 0 12px 28px rgba(0,0,0,0.05);
    transition: 0.2s;
    border: 1px solid #eef2f5;
}

.card i {
    font-size: 2.5rem;
    color: #1e88a8;
    margin-bottom: 1rem;
}

/* Price Cards */
.price-card {
    background: #fff;
    border-radius: 28px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid #e2edf2;
}

.price-card i {
    font-size: 2rem;
    color: #1e88a8;
}

/* Certification image styling */
.cert-image {
    margin-top: 1.5rem;
    text-align: center;
    border-top: 1px solid #e0e8f0;
    padding-top: 1.5rem;
}

.cert-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.cert-image img:hover {
    transform: scale(1.02);
}



/* FAQ */
.faq-item {
    background: #f8fafc;
    margin-bottom: 1rem;
    border-radius: 20px;
    padding: 1rem 1.5rem;
    cursor: pointer;
}

.faq-question {
    font-weight: 700;
    display: flex;
    justify-content: space-between;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: 0.3s;
    color: #2c3e44;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    margin-top: 12px;
}

/* Contact Section */
.contact-details {
    margin-bottom: 2rem;
}

/* Additional styles for select dropdown */
.modal-content select {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border-radius: 16px;
    border: 1px solid #ccc;
    font-family: 'Inter', sans-serif;
    background-color: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg  xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.modal-content select:focus {
    outline: none;
    border-color: #1e88a8;
}

.map-full {
    width: 100%;
    border-radius: 0;
    overflow: hidden;
    height: 400px;
}

.map-full iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Footer */
footer {
    background: #0a1c2a;
    color: #cddfe7;
    padding: 3rem 0 2rem;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.contact-info i {
    margin-right: 8px;
    width: 24px;
}

.legal-links {
    margin-top: 1rem;
}

.legal-links a {
    color: #cddfe7;
    margin-right: 1.5rem;
    text-decoration: none;
}

.footer hr {
    margin: 2rem 0 1rem;
    opacity: 0.3;
}

.footer-copyright {
    text-align: center;
    font-size: 0.8rem;
}

/* MODAL / POPUP STYLES */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    border-radius: 28px;
    position: relative;
    animation: slideDown 0.3s ease;
}

/* Alternative styling for smaller certification badges */
.cert-badge {
    max-width: 80%;
    margin: 0 auto;
    display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cert-image img {
        max-width: 90%;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.close-modal:hover {
    color: #1e88a8;
}

.modal-content h3 {
    margin-bottom: 1.5rem;
    color: #1a2c3e;
}

.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border-radius: 16px;
    border: 1px solid #ccc;
    font-family: 'Inter', sans-serif;
}

.modal-content button {
    margin-top: 1rem;
    width: 100%;
}

.form-message {
    margin-top: 1rem;
    padding: 10px;
    border-radius: 12px;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

.modal-footer-note {
    font-size: 0.75rem;
    margin-top: 1rem;
    text-align: center;
    color: #666;
}

/* Responsive */
@media (max-width: 900px) {
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1rem 0;
    }
    .nav-links.show {
        display: flex;
    }
    .mobile-menu {
        display: block;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
}

/* Background utilities */
.bg-light-blue {
    background: #fafeff;
}

.bg-gray-light {
    background: #f8fbfd;
}

.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 1rem;
}

/* ============================================ */
/* MOBILE DEVICES: 375px to 280px 
   Images display in column & increased size */
/* ============================================ */

/* Target all mobile devices up to 375px */
@media (max-width: 375px) {
    /* Base body text */
    body {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .container {
        padding: 0 16px;
    }
    
    /* Logo adjustments */
    .logo img {
        max-height: 55px;
    }
    
    .logo-text h1 {
        font-size: 1rem !important;
    }
    
    .logo-text p {
        font-size: 0.55rem !important;
    }
    
    /* Hero section text */
    .hero {
        padding: 2rem 0;
    }
    
    .hero-grid {
        gap: 1.5rem;
        flex-direction: column;
    }
    
    .hero-badge {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
    
    .hero-content h1 {
        font-size: 1.6rem !important;
        line-height: 1.25;
    }
    
    .hero-content p {
        font-size: 0.85rem;
    }
    
    /* Buttons */
    .btn {
        padding: 8px 16px;
        font-size: 0.75rem;
    }
    
    .btn-small {
        padding: 6px 12px;
        font-size: 0.7rem;
    }
    
    .cta-group {
        gap: 0.75rem;
        margin: 1.5rem 0 0.8rem;
    }
    
    /* Trust badges */
    .trust-badge {
        gap: 0.6rem;
    }
    
    .trust-badge span {
        padding: 4px 10px;
        font-size: 0.65rem;
    }
    
    /* Info card */
    .info-card {
        padding: 1rem;
    }
    
    .info-card i {
        font-size: 0.85rem;
    }
    
    /* Section titles */
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.6rem !important;
        margin-bottom: 1.5rem;
    }
    
    .section-title:after {
        width: 50px;
        height: 3px;
    }
    
    /* About section - COLUMN LAYOUT */
    .about-wrapper {
        gap: 1.5rem;
        flex-direction: column;
    }
    
    .about-main {
        flex: auto;
        order: 1;
    }
    
    .cert-card {
        flex: auto;
        order: 2;
        width: 100%;
    }
    
    .about-main h3 {
        font-size: 1.15rem;
        margin-top: 1rem;
    }
    
    .about-main p {
        font-size: 0.85rem;
    }
    
    .cert-card {
        padding: 1rem;
    }
    
    .cert-card p {
        font-size: 0.8rem;
    }
    
    /* Certification image - INCREASED SIZE */
    .cert-image {
        margin-top: 1.5rem;
        text-align: center;
        border-top: 1px solid #e0e8f0;
        padding-top: 1.5rem;
    }
    
    .cert-image img {
        max-width: 85%;
        width: auto;
        height: auto;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    
    /* Cards Grid - COLUMN LAYOUT */
    .cards {
        gap: 1rem;
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 1.2rem;
        width: 100%;
    }
    
    .card i {
        font-size: 2rem;
    }
    
    .card h3 {
        font-size: 1.1rem;
    }
    
    .card p {
        font-size: 0.8rem;
    }
    
    /* Price cards - COLUMN LAYOUT */
    .price-card {
        padding: 1rem;
        width: 100%;
    }
    
    .price-card i {
        font-size: 1.8rem;
    }
    
    .price-card h3 {
        font-size: 1rem;
    }
    
    .price-card p {
        font-size: 0.75rem;
    }
    
    /* FAQ text */
    .faq-item {
        padding: 0.8rem 1rem;
    }
    
    .faq-question {
        font-size: 0.85rem;
    }
    
    .faq-answer {
        font-size: 0.8rem;
    }
    
    /* Contact section */
    .contact-details p {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .map-full {
        height: 250px;
    }
    
    /* Footer text */
    .footer-grid {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-grid h3 {
        font-size: 1rem;
    }
    
    .footer-grid p {
        font-size: 0.75rem;
    }
    
    .legal-links a {
        font-size: 0.7rem;
        margin-right: 1rem;
    }
    
    .footer-copyright {
        font-size: 0.65rem;
    }
    
    /* Modal popup */
    .modal-content {
        margin: 20% auto;
        padding: 1.2rem;
        width: 95%;
    }
    
    .modal-content h3 {
        font-size: 1.2rem;
    }
    
    .modal-content input,
    .modal-content textarea,
    .modal-content select {
        padding: 8px;
        font-size: 0.8rem;
    }
}

/* ============================================ */
/* EXTRA SMALL: 320px to 280px 
   Images slightly larger for clarity */
/* ============================================ */

@media (max-width: 320px) {
    body {
        font-size: 13px;
    }
    
    .container {
        padding: 0 12px;
    }
    
    .logo img {
        max-height: 45px;
    }
    
    .logo-text h1 {
        font-size: 0.85rem !important;
    }
    
    .logo-text p {
        font-size: 0.45rem !important;
    }
    
    .hero-content h1 {
        font-size: 1.4rem !important;
    }
    
    .hero-content p {
        font-size: 0.75rem;
    }
    
    .btn {
        padding: 6px 12px;
        font-size: 0.7rem;
    }
    
    .section-title {
        font-size: 1.4rem !important;
    }
    
    /* About section - column maintained */
    .about-wrapper {
        flex-direction: column;
    }
    
    .about-main h3 {
        font-size: 1rem;
    }
    
    .about-main p {
        font-size: 0.75rem;
    }
    
    /* Certification image - INCREASED SIZE for clarity */
    .cert-image img {
        max-width: 90%;
    }
    
    /* Cards - column maintained */
    .cards {
        grid-template-columns: 1fr;
    }
    
    .card h3 {
        font-size: 1rem;
    }
    
    .card p {
        font-size: 0.7rem;
    }
    
    .trust-badge span {
        font-size: 0.6rem;
        padding: 3px 8px;
    }
    
    .faq-question {
        font-size: 0.75rem;
    }
    
    .faq-answer {
        font-size: 0.7rem;
    }
}

/* ============================================ */
/* TINY DEVICES: 280px and below 
   Maximum image size for clarity */
/* ============================================ */

@media (max-width: 280px) {
    body {
        font-size: 12px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .logo img {
        max-height: 38px;
    }
    
    .logo-text h1 {
        font-size: 0.7rem !important;
    }
    
    .logo-text p {
        font-size: 0.4rem !important;
    }
    
    .hero-content h1 {
        font-size: 1.2rem !important;
    }
    
    .hero-content p {
        font-size: 0.7rem;
    }
    
    .btn {
        padding: 5px 10px;
        font-size: 0.65rem;
    }
    
    .section-title {
        font-size: 1.2rem !important;
    }
    
    /* Certification image - MAXIMUM SIZE for tiny screens */
    .cert-image img {
        max-width: 95%;
    }
    
    .card h3 {
        font-size: 0.9rem;
    }
    
    .card p {
        font-size: 0.65rem;
    }
    
    .price-card h3 {
        font-size: 0.9rem;
    }
    
    .price-card p {
        font-size: 0.65rem;
    }
    
    /* Prevent text overflow */
    .card p, 
    .about-main p,
    .faq-question,
    .trust-badge span {
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

/* ============================================ */
/* MEDIUM MOBILE: 376px to 480px 
   Partial column layout for smoother transition */
/* ============================================ */

@media (min-width: 376px) and (max-width: 480px) {
    /* About section - column on medium mobile */
    .about-wrapper {
        flex-direction: column;
    }
    
    .about-main {
        flex: auto;
    }
    
    .cert-card {
        flex: auto;
        width: 100%;
    }
    
    /* Cards - 2 columns on larger mobile, fallback to 1 if needed */
    .cards {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.25rem;
    }
    
    /* Certification image - good size */
    .cert-image img {
        max-width: 80%;
    }
}

/* ============================================ */
/* LANDSCAPE MODE FOR SMALL PHONES 
   Prevents excessive vertical space */
/* ============================================ */

@media (max-width: 850px) and (orientation: landscape) {
    .hero {
        padding: 1.5rem 0;
    }
    
    .hero-grid {
        gap: 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.3rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .modal-content {
        margin: 5% auto;
        max-height: 85vh;
        overflow-y: auto;
    }
    
    /* Keep columns in landscape if enough width */
    .cards {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

/* ============================================ */
/* FIX FOR ANY TEXT OVERFLOW ON ALL MOBILE */
/* ============================================ */

@media (max-width: 480px) {
    /* Ensure no horizontal scroll */
    body {
        overflow-x: hidden;
        width: 100%;
    }
    
    /* Fix any overflowing containers */
    .container,
    .hero-grid,
    .about-wrapper,
    .cards,
    .footer-grid {
        overflow-x: hidden;
    }
    
    /* Make all text wrap properly */
    p, h1, h2, h3, h4, li, a, span, div {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Fix any potential button text wrapping issues */
    .btn, .btn-outline, .btn-small {
        white-space: normal;
        line-height: 1.3;
    }
}
