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

html {
    scroll-snap-type: y mandatory;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background: #fff;
    line-height: 1.6;
}

/* Header */
header {
    text-align: center;
    padding: 20px 20px 10px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.logo-icon {
    font-size: 32px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.logo-text {
    display: flex;
    flex-direction: column;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 2px;
    line-height: 1.2;
}

nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 8px 0;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-size: 15px;
    font-weight: 500;
    padding-bottom: 3px;
    position: relative;
    transition: color 0.2s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: width 0.25s ease;
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}

.nav-link.active,
.nav-link:hover {
    color: #111;
}

/* Pages */
.page {
    width: 100%;
    height: 100vh;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 70px 20px 10px;
    overflow: visible;
}

.page > * {
    max-width: 820px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* override for elements that set their own margin */
.page > .two-col,
.page > .services-grid,
.page > .contact-form,
.page > .testimonial-section {
    max-width: 820px;
}

#home {
    position: relative;
    padding-top: 90px;
    padding-bottom: 0;
    gap: 40px;
}

/* Hero */
.hero {
    text-align: center;
}

.hero-location {
    font-size: 15px;
    font-weight: 600;
    color: #1d4ed8;
    letter-spacing: 1px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

#home h1 {
    color: #444;
    margin-bottom: 16px;
}

.hero-sub {
    font-size: 20px;
    color: #555;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Home cards */
.home-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 820px;
}

.home-card {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    transition: transform 0.25s, box-shadow 0.25s;
}

.home-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

.home-card-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.home-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1d4ed8;
    margin-bottom: 8px;
}

.home-card p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

#services {
    overflow-y: auto;
}

#services h1 {
    margin-bottom: 40px;
}

.page + .page {
    border-top: 1px solid #eee;
}

h1 {
    font-size: 48px;
    text-align: center;
    margin-bottom: 48px;
    font-weight: 700;
}

h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 24px;
}

/* Divider */
.divider {
    border: none;
    border-top: 1px solid #ddd;
    width: 100%;
    margin: 10px 0;
}

/* Two Column Layout */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 56px;
}

.col-list {
    list-style: disc;
    padding-left: 20px;
    text-align: left;
}

.col-list li {
    font-size: 22px;
    color: #666;
    margin-bottom: 22px;
}

.col:first-child {
    border-right: 1px solid #ddd;
    padding-right: 24px;
}

.col:last-child {
    padding-left: 24px;
}

.col p {
    text-align: center;
    margin-bottom: 6px;
    font-size: 18px;
    color: #666;
}

.col h2 {
    text-align: center;
}

/* Scroll hint */
.scroll-hint {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    color: #555;
    margin-top: 24px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* CTA */
.cta-center {
    text-align: center;
}

.cta-text {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #444;
}

/* Button */
.btn {
    display: inline-block;
    padding: 11px 32px;
    border: 2px solid #333;
    border-radius: 50px;
    background: none;
    color: #333;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, transform 0.2s, box-shadow 0.25s;
}

.btn:hover {
    background: #333;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* About / Credentials */
.about-section {
    text-align: center;
}

.about-section h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 12px;
}

.about-intro {
    font-size: 18px;
    color: #555;
    margin-bottom: 40px;
}

.credentials {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 620px;
    margin: 0 auto;
}

.credential-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 22px 24px;
    text-align: left;
    transition: transform 0.25s, box-shadow 0.25s;
}

.credential-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.07);
}

.credential-icon {
    font-size: 32px;
    flex-shrink: 0;
    margin-top: 2px;
}

.credential-text h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1d4ed8;
    margin-bottom: 4px;
}

.credential-text p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

/* Testimonial */
.testimonial-section {
    text-align: center;
}

.testimonial-section h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 40px;
}

.testimonial {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    max-width: 780px;
    margin: 0 auto;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 24px;
    padding: 52px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.25s, box-shadow 0.25s;
}

.testimonial:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.testimonial-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

blockquote {
    font-style: italic;
    font-size: 24px;
    text-align: left;
    color: #555;
    line-height: 1.8;
}

cite {
    display: block;
    margin-top: 12px;
    font-style: normal;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

/* Services */
.services-headline {
    font-style: normal;
    font-weight: 700;
    color: #444;
}

#services .btn {
    display: block;
    width: fit-content;
    margin: 0 auto 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: 340px 340px 340px;
    gap: 28px;
}

#services .services-grid {
    width: fit-content;
    max-width: none;
    margin: 0 auto;
}

.service-card {
    padding: 22px 24px;
    border-radius: 16px;
    border: 1px solid #eee;
    background: #fafafa;
    transition: transform 0.25s, box-shadow 0.25s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.service-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.service-card h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-card ul {
    list-style: none;
    padding: 0;
}

.service-card li {
    font-size: 22px;
    color: #666;
    padding: 5px 0;
}

.service-card li::before {
    content: "· ";
    font-weight: bold;
    color: #999;
}

/* Contact Form */
.contact-form {
    max-width: 520px;
    margin: 0 auto;
}

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

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

label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #444;
}

.required {
    font-weight: 400;
    font-size: 12px;
    color: #aaa;
}

input,
textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #ddd;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

input:focus,
textarea:focus {
    border-color: #555;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

textarea {
    resize: vertical;
}

.contact-form .btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger service cards */
.services-grid .service-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.25s, border-color 0.25s;
}

.fade-in.visible .service-card {
    opacity: 1;
    transform: translateY(0);
}

.fade-in.visible .service-card:nth-child(1) { transition-delay: 0.05s; }
.fade-in.visible .service-card:nth-child(2) { transition-delay: 0.1s; }
.fade-in.visible .service-card:nth-child(3) { transition-delay: 0.15s; }
.fade-in.visible .service-card:nth-child(4) { transition-delay: 0.2s; }
.fade-in.visible .service-card:nth-child(5) { transition-delay: 0.25s; }
.fade-in.visible .service-card:nth-child(6) { transition-delay: 0.3s; }

/* Laptop / short-screen adjustments */
@media (max-height: 1080px) {
    header {
        padding: 10px 20px 6px;
    }

    .logo {
        margin-bottom: 6px;
    }

    .logo-icon {
        font-size: 24px;
    }

    .logo-text {
        font-size: 14px;
    }

    nav {
        padding: 4px 0;
        gap: 20px;
    }

    .nav-link {
        font-size: 13px;
    }

    h1 {
        font-size: 32px;
        margin-bottom: 40px;
    }

    h2 {
        font-size: 22px;
        margin-bottom: 14px;
    }

    .about-section h2,
    .testimonial-section h2 {
        font-size: 32px;
    }

    #home {
        padding-top: 70px;
        gap: 32px;
    }

    .hero-sub {
        font-size: 17px;
        margin-bottom: 24px;
    }

    .home-card {
        padding: 18px 14px;
    }

    .home-card h3 {
        font-size: 16px;
    }

    .home-card p {
        font-size: 13px;
    }

    .btn {
        font-size: 15px;
        padding: 9px 24px;
    }

    .scroll-hint {
        font-size: 16px;
        margin-top: 14px;
    }

    #services h1 {
        margin-bottom: 20px;
    }

    .services-grid {
        grid-template-columns: repeat(3, 240px);
        gap: 16px;
    }

    .service-card {
        padding: 14px 16px;
    }

    .service-icon {
        font-size: 26px;
        margin-bottom: 6px;
    }

    .service-card h3 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .service-card li {
        font-size: 15px;
        padding: 3px 0;
    }

    #contact h1 {
        margin-bottom: 20px;
    }

    .contact-form {
        max-width: 440px;
    }

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

    label {
        font-size: 13px;
        margin-bottom: 3px;
    }

    input,
    textarea {
        padding: 7px 11px;
        font-size: 13px;
    }

    textarea {
        min-height: 70px;
    }
}

/* Mobile */
@media (max-width: 600px) {

    /* Header — fixed so it never moves regardless of scroll snap or browser chrome */
    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding: 10px 16px 8px;
        transform: translateZ(0);
    }

    .logo {
        margin-bottom: 6px;
    }

    .logo-icon {
        font-size: 22px;
    }

    .logo-text {
        font-size: 13px;
        letter-spacing: 1px;
    }

    nav {
        gap: 16px;
        padding: 4px 0;
    }

    .nav-link {
        font-size: 12px;
    }

    /* Scroll snap */
    html {
        scroll-snap-type: y mandatory;
    }

    .page {
        scroll-snap-align: start;
        height: 100svh;
        overflow: hidden;
        padding: 74px 18px 20px;
        justify-content: center;
    }

    #services {
        overflow-y: auto;
    }

    /* Home */
    #home {
        padding-top: 74px;
        gap: 24px;
    }

    .hero-location {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .hero-sub {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .home-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .home-card {
        padding: 14px 10px;
    }

    .home-card-icon {
        font-size: 22px;
        margin-bottom: 6px;
    }

    .home-card h3 {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .home-card p {
        font-size: 11px;
    }

    h1 {
        font-size: 22px;
        margin-bottom: 12px;
        line-height: 1.4;
    }

    h2 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .two-col,
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 24px;
    }

    .col:first-child {
        border-right: none;
        border-bottom: 1px solid #ddd;
        padding-right: 0;
        padding-bottom: 16px;
    }

    .col:last-child {
        padding-left: 0;
    }

    .col-list li {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .cta-text {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .btn {
        font-size: 14px;
        padding: 10px 28px;
    }

    .scroll-hint {
        font-size: 14px;
        margin-top: 20px;
    }

    /* About */
    .about-section h2 {
        font-size: 26px;
        margin-bottom: 8px;
    }

    .about-intro {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .credentials {
        gap: 12px;
    }

    .credential-card {
        padding: 14px 16px;
        gap: 14px;
    }

    .credential-icon {
        font-size: 24px;
    }

    .credential-text h3 {
        font-size: 15px;
    }

    .credential-text p {
        font-size: 13px;
    }

    /* Testimonial */
    .testimonial {
        flex-direction: column;
        text-align: center;
        padding: 28px 20px;
        gap: 20px;
    }

    .testimonial-photo {
        width: 110px;
        height: 110px;
    }

    .testimonial-section h2 {
        font-size: 26px;
        margin-bottom: 24px;
    }

    blockquote {
        font-size: 16px;
        text-align: center;
        line-height: 1.7;
    }

    cite {
        font-size: 15px;
    }

    /* Services */
    #services {
        justify-content: center;
    }

    #services h1 {
        margin-bottom: 12px;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }

    #services .services-grid {
        width: 100%;
        max-width: 100%;
    }

    .service-card {
        padding: 10px 10px;
    }

    .service-icon {
        font-size: 20px;
        margin-bottom: 4px;
    }

    .service-card h3 {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .service-card li {
        font-size: 12px;
        padding: 1px 0;
    }

    /* Contact */
    #contact {
        justify-content: center;
        padding-top: 74px;
        padding-bottom: 0;
        overflow-y: auto;
    }

    #contact h1 {
        font-size: 17px;
        margin-bottom: 8px;
    }

    .contact-form {
        max-width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 0;
    }

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

    label {
        font-size: 11px;
        margin-bottom: 1px;
    }

    input,
    textarea {
        padding: 5px 10px;
        font-size: 16px;
    }

    textarea {
        min-height: 44px;
    }

    .contact-form .btn {
        margin-top: 4px;
        font-size: 12px;
        padding: 7px 22px;
    }
}
