/* HERO SECTION – Full Screen */
.hero-section {
    background: #f8f9fc;
    /* Always fit the viewport height minus the header */
    height: calc(100vh - var(--header-height));
    min-height: 420px; /* keep a reasonable minimum for small viewports */
    display: flex;
    align-items: center;
    padding: 0 40px;
    box-sizing: border-box;
}


/* Content Layout */
.section-content {
    max-width: var(--site-max-width);
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

/* Services: ensure title and intro take the full width of the grid
   so the intro sits below the title instead of beside it. */
.services-section .section-title,
.services-section .section-intro {
    grid-column: 1 / -1;
    justify-self: center;
}

/* Slider fills available height */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 420px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Slides */
.hero-slider img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: slideShow 16s infinite;
}

/* Timing for each image */
.hero-slider img:nth-child(1) { animation-delay: 0s; }
.hero-slider img:nth-child(2) { animation-delay: 4s; }
.hero-slider img:nth-child(3) { animation-delay: 8s; }
.hero-slider img:nth-child(4) { animation-delay: 12s; }

@keyframes slideShow {
    0% { opacity: 0; }
    5% { opacity: 1; }
    25% { opacity: 1; }
    30% { opacity: 0; }
    100% { opacity: 0; }
}

/* HERO BUTTONS */
.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.hero-btn {
    padding: 12px 26px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Primary */
.hero-btn.primary {
    background: var(--secondary-color);
    color: #000;
}

.hero-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Secondary */
.hero-btn.secondary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.hero-btn.secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Responsive Design */
@media (max-width: 900px) {
    .section-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: auto;              /* override 100vh */
        min-height: unset;         /* remove desktop min-height */
        padding: 40px 20px;        /* tighter mobile padding */
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 240px;
        min-height: unset;
    }
}

@media (max-width: 768px) {
    .section-content {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 240px;
        min-height: unset;
        border-radius: 12px;
    }
}

@media (max-width: 768px) {
    .hero-details {
        text-align: center;
    }

    .hero-description {
        max-width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero-title::after {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-btn {
        width: 100%;
        max-width: 260px;
    }
}


/*Hero text styling*/
.hero-title {
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    font-weight: var(--font-weight-bold);
    line-height: 1.15;
    color: var(--dark-color);
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.hero-description {
    font-size: 1.05rem;
    font-weight: var(--font-weight-normal);
    line-height: 1.7;
    color: #555;
    max-width: 520px;
}

.hero-title::after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    background-color: var(--secondary-color);
    margin-top: 14px;
    border-radius: 2px;
}

.hero-details {
    animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: "Montserrat", sans-serif;
}

.section {
    padding: 90px 40px;
}

/*about snippet*/
.about-snippet {
    padding: 80px 40px;
    background: #f3f6fb;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.about-text p {
    max-width: 600px;
    line-height: 1.7;
    color: #555;
}

.section-link {
    display: inline-block;
    margin-top: 20px;
    font-weight: 600;
    color: var(--primary-color);
}

.section-link:hover {
    text-decoration: underline;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.about-text {
    margin-bottom: 18px;
    line-height: 1.7;
    color: #555;
}

.text-link {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

/* Certifications grid */
.certifications {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.certifications img {
    width: 100%;
    max-width: 120px;
    margin: auto;
    opacity: 0.85;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.certifications img:hover {
    opacity: 1;
    transform: scale(1.05);
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .certifications {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 30px;
    }
}
/* Services intro */
.section-intro {
    max-width: 720px;
    margin: 15px auto 60px;
    text-align: center;
    color: #555;
    line-height: 1.6;
}

/* Services link (call-to-action) placed beneath the grid */
.services-link {
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
    margin-top: 28px;
}

.services-link .text-link {
    display: inline-block;
    padding: 10px 18px;
    background: transparent;
    border-radius: 30px;
    color: var(--primary-color);
    font-weight: 600;
}

/* Services grid */
.services-grid {
    max-width: var(--site-max-width);
    margin: 0 auto;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 30px;
    justify-content: center;
}

/* Service card */
.service-card {
    width: 340px; /* keeps current visual size */
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 45px rgba(0,0,0,0.12);
}

/* Image */
.service-card img {
    width: 100%;
    /* slightly taller image for wider cards */
    height: 220px;
    object-fit: cover;
    flex-shrink: 0;
    flex: 0 0 220px;
}

/* Title */
.service-card h3 {
    padding: 20px 20px 10px;
    font-size: 1.1rem;
}

/* Description */
.service-card p {
    padding: 0 20px 25px;
    color: #555;
    line-height: 1.6;
    flex-grow: 1;
}

@media (max-width: 768px) {
    .services-grid {
        grid-auto-flow: row;          /* switch to vertical flow */
        grid-template-columns: 1fr;   /* single column */
        justify-items: center;
    }
}

@media (max-width: 768px) {
    .service-card {
        width: 100%;
        max-width: 420px; /* keeps nice proportions */
    }
}

@media (max-width: 768px) {
    .section-intro {
        margin-bottom: 40px;
        padding: 0 10px;
    }

    .services-link {
        margin-top: 35px;
    }
}

.services-link {
    text-align: center;
    margin-top: 45px;
}

.text-link {
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    position: relative;
}

.text-link::after {
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.text-link:hover::after {
    transform: translateX(4px);
}

/* Text overlay */
.service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.7),
        rgba(0,0,0,0.2)
    );
    display: flex;
    align-items: flex-end;
    padding: 20px;
    color: white;
    font-weight: 600;
    font-size: 1.05rem;
}

/*footer*/
.site-footer {
    background: var(--primary-color);
    color: var(--white-color);
    padding: 20px 32px; /* reduced height */
    font-size: 0.95rem;
}

/* Top Section */
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr 1fr;
    gap: 32px;
    max-width: var(--site-max-width);
    margin: 0 auto;
    align-items: start;
}
/* Columns */
.footer-col {
    min-width: 0; /* prevents flex/grid overflow */
}

.footer-brand h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.footer-brand p {
    line-height: 1.6;
    opacity: 0.9;
}

/* Quick Links */
.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links a {
    color: var(--white-color);
    display: block;
    margin-bottom: 8px;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Contact */
.footer-contact p {
    margin-bottom: 8px;
    opacity: 0.9;
}

/* Social Icons */
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: #fff;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: #1877f2; /* Facebook blue */
    color: #fff;
}

.social-icons a:last-child:hover {
    background: #e1306c; /* Instagram pink */
}

/* Bottom Bar */
.footer-bottom {
    margin-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.85rem;
}

.footer-policy a {
    margin: 0 12px;
    color: var(--white-color);
    opacity: 0.85;
    text-decoration: none;
}

.footer-policy a:hover {
    opacity: 1;
    text-decoration: underline;
}

@media (max-width: 768px) {

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    /* Hide unwanted sections */
    .footer-links,
    .footer-policy {
        display: none;
    }

    .footer-brand p {
        max-width: 320px;
        margin: 0 auto;
    }

    .footer-contact p {
        margin-bottom: 6px;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-bottom {
        margin-top: 12px;
        padding-top: 8px;
    }
}


/* Overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 999;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: #fff;
    width: 90%;
    max-width: 420px;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.25);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 1000;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal h2 {
    margin-bottom: 20px;
    text-align: center;
}

/* Inputs */
.modal input,
.modal textarea {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 14px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
}

/* Button */
.modal button {
    width: 100%;
    padding: 14px;
    background: var(--secondary-color);
    border: none;
    color: #000;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
}

.modal button:hover {
    background: #ffd600;
}

/* Close */
/* ===============================
   POPUP OVERLAY
================================ */

.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75); /* deeper, premium overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease;
    z-index: 9999;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===============================
   POPUP BOX
================================ */

.popup-box {
    background: #ffffff;
    width: 90%;
    max-width: 560px;        /* FIXED MAX WIDTH */
    max-height: 85vh;        /* FIXED MAX HEIGHT */
    padding: 45px 42px;
    border-radius: 22px;
    box-shadow: 0 40px 90px rgba(0,0,0,0.25);
    position: relative;
    overflow-y: auto;        /* scroll INSIDE if needed */
    animation: popupScale 0.35s ease;
}

/* Subtle entrance animation */
@keyframes popupScale {
    from {
        transform: scale(0.92) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* ===============================
   POPUP HEADER
================================ */

.popup-box h2 {
    font-size: 1.9rem;
    margin-bottom: 20px;
    color: var(--dark-color);
    position: relative;
}

.popup-box h2::after {
    content: "";
    width: 55px;
    height: 4px;
    background: var(--secondary-color);
    display: block;
    margin-top: 12px;
    border-radius: 3px;
}

/* ===============================
   FORM ELEMENTS
================================ */

.popup-box form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.popup-box input,
.popup-box textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 0.95rem;
    border-radius: 12px;
    border: 1px solid #d6dbe4;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.popup-box textarea {
    resize: none;
    min-height: 120px;
}

.popup-box input:focus,
.popup-box textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(10,99,207,0.12);
}

/* ===============================
   SUBMIT BUTTON
================================ */

.popup-box button {
    margin-top: 10px;
    padding: 14px;
    border-radius: 14px;
    border: none;
    background: var(--primary-color);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.popup-box button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* ===============================
   CLOSE BUTTON
================================ */

.popup-close {
    position: absolute;
    top: 22px;
    right: 26px;
    font-size: 30px;
    color: #777;
    cursor: pointer;
    transition: color 0.25s ease, transform 0.25s ease;
}

.popup-close:hover {
    color: #000;
    transform: rotate(90deg);
}

/* ===============================
   MOBILE TUNING
================================ */

@media (max-width: 600px) {
    .popup-box {
        padding: 35px 26px;
        max-width: 92%;
    }

    .popup-box h2 {
        font-size: 1.6rem;
    }
}