:root {
    --brand-teal: #1f7f94;
    --brand-dark: #1c2a33;
    --text-main: #333333;
    --text-muted: #555555;
    --bg-light: #f5f7fa;
    --card-bg: #ffffff;
    --border-soft: #dde3ea;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 500;
    background: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
}

/* ================= LAYOUT ================= */

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* ================= HEADER ================= */

header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-soft);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s ease;
}

header:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-wrap img {
    height: auto;
    width: 320px;
    max-width: 100%;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-wrap:hover img {
    transform: scale(1.02);
}

/* ================= HERO ================= */

.hero {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7f9 50%, #ffffff 100%);
    border-bottom: 1px solid var(--border-soft);
}

.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 56px 20px 48px;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 36px;
    align-items: center;
}

.hero-main h1 {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 16px;
    color: var(--brand-dark);
}

.hero-main p {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.7;
    color: var(--text-main);
}

.hero-highlight {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
}

.hero-highlight span {
    padding-left: 12px;
    border-left: 4px solid var(--brand-teal);
    transition: all 0.3s ease;
}

.hero-highlight span:hover {
    padding-left: 18px;
    color: var(--brand-teal);
}

.hero-cta {
    margin-top: 28px;
}

.hero-side {
    background: #ffffff;
    border-radius: 12px;
    padding: 22px 22px 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-soft);
    font-size: 16px;
    transition: all 0.3s ease;
}

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

.hero-side h2 {
    margin: 0 0 14px;
    font-size: 22px;
    font-weight: 700;
    color: var(--brand-dark);
}

.hero-side p {
    margin: 0 0 12px;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 500;
}

.hero-side ul {
    padding-left: 20px;
    margin: 10px 0 14px;
    color: var(--text-main);
}

.hero-side ul li {
    padding: 4px 0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-side ul li:hover {
    color: var(--brand-teal);
    transform: translateX(5px);
}

/* ================= BUTTONS ================= */

.btn-primary {
    display: inline-block;
    padding: 14px 28px;
    border: none;
    border-radius: 999px;
    background: var(--brand-teal);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover {
    background: #156a7a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(31, 127, 148, 0.3);
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary.full-width {
    width: 100%;
    margin-top: 14px;
}

/* ================= SECTIONS ================= */

.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 90px 20px 50px;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section:nth-child(1) { animation-delay: 0.1s; }
.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.3s; }
.section:nth-child(4) { animation-delay: 0.4s; }

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

.section-label {
    font-size: 28px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-teal);
    font-weight: 800;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--brand-dark);
    margin-top: 6px;
}

.section-text {
    max-width: 780px;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.8;
    color: var(--text-main);
}

/* ================= CARDS GRID ================= */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    margin-top: 26px;
    background: #ffffff;
    padding: 28px;
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.cards-grid:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.service-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 20px 20px 18px;
    border: 1px solid var(--border-soft);
    cursor: default;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(31, 127, 148, 0.05), transparent);
    transition: left 0.5s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(31, 127, 148, 0.15);
    border-color: var(--brand-teal);
}

.service-card:hover::before {
    left: 100%;
}

.service-card h3 {
    margin: 0 0 10px;
    font-size: 19px;
    font-weight: 700;
    color: var(--brand-dark);
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--brand-teal);
}

.service-card p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ================= CONTACT MODERN ================= */

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

.contact-modern-header h2 {
    font-size: 34px;
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 10px;
}

.contact-modern-sub {
    max-width: 600px;
    margin: 0 auto 44px;
    font-size: 17px;
    font-weight: 500;
    color: var(--text-muted);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    margin-bottom: 56px;
}

.contact-info-card {
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 26px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.contact-info-card h4 {
    margin: 14px 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-dark);
}

.contact-info-card p {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

.icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(31, 127, 148, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 22px;
}

/* ================= CONTACT FORM ================= */

.contact-modern-form {
    max-width: 720px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px 18px;
    font-size: 16px;
    font-weight: 500;
    font-family: inherit;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-main);
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--brand-teal);
    box-shadow: 0 0 0 3px rgba(31, 127, 148, 0.15);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
    font-weight: 500;
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-note {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 10px;
}

/* ================= LINKS ================= */

a {
    color: var(--brand-teal);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
}

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

a:not(.btn-primary):hover::after {
    width: 100%;
}

a:not(.btn-primary):hover {
    color: #156a7a;
}

/* ================= FOOTER ================= */

footer {
    border-top: 1px solid var(--border-soft);
    background: #ffffff;
    text-align: center;
    padding: 22px 20px;
    margin-top: 50px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

footer:hover {
    background: var(--bg-light);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 800px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-main h1 {
        font-size: 32px;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-label {
        font-size: 24px;
    }

    .contact-modern-header h2 {
        font-size: 28px;
    }
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-main h1 {
        font-size: 28px;
    }

    .section-label {
        font-size: 20px;
    }
}

/* ================= NAVIGATION ================= */

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

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

.nav-link:hover {
    color: var(--brand-teal);
    background: rgba(31, 127, 148, 0.08);
}

.nav-link.active {
    color: var(--brand-teal);
    background: rgba(31, 127, 148, 0.12);
    font-weight: 700;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(31, 127, 148, 0.08);
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--brand-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Menu Active State */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ================= RESPONSIVE NAVIGATION ================= */

@media (max-width: 800px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: #ffffff;
        padding: 16px 20px;
        gap: 4px;
        border-bottom: 1px solid var(--border-soft);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    }

    .main-nav.active {
        display: flex;
    }

    .nav-link {
        width: 100%;
        padding: 14px 18px;
        text-align: left;
        border-radius: 8px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .header-inner {
        position: relative;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
.hero {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7f9 50%, #ffffff 100%);
    border-bottom: 1px solid var(--border-soft);
    scroll-margin-top: 80px; /* ADD THIS LINE */
}
/* ================= SCROLL OFFSET FOR STICKY HEADER ================= */

section[id] {
    scroll-margin-top: 100px;
}