:root {
    --orange-700: #cc5d00;
    --orange-600: #e06c07;
    --orange-500: #f07a10;
    --orange-300: #ffc88f;
    --white: #ffffff;
    --cream: #fff7ef;
    --slate-900: #1f2937;
    --slate-700: #374151;
    --slate-500: #6b7280;
    --slate-400: #9ca3af;
    --shadow-sm: 0 2px 8px rgba(224, 108, 7, 0.08);
    --shadow: 0 12px 34px rgba(224, 108, 7, 0.14);
    --shadow-lg: 0 24px 60px rgba(224, 108, 7, 0.16);
    --radius: 16px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--slate-900);
    background: linear-gradient(165deg, #fffdfb 0%, #fff7ef 35%, #fff2e3 70%, #ffeddf 100%);
    min-height: 100vh;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes subtle-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

.section {
    padding: 72px 0;
    position: relative;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="p" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23f07a10" opacity="0.06"/></pattern></defs><rect width="100" height="100" fill="url(%23p)"/></svg>');
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    margin: 0 0 14px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.3px;
    background: linear-gradient(135deg, var(--orange-700) 0%, var(--orange-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-lead {
    margin: 0 0 28px;
    color: var(--slate-700);
    max-width: 700px;
    font-size: 1.05rem;
    line-height: 1.7;
    letter-spacing: 0.2px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(240, 122, 16, 0.12);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 78px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand strong {
    display: block;
    color: var(--orange-700);
    font-size: 1rem;
}

.brand small {
    color: var(--slate-500);
}

.brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: linear-gradient(140deg, var(--orange-600), var(--orange-500));
    box-shadow: 0 8px 20px rgba(224, 108, 7, 0.25);
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.brand:hover .brand-icon {
    transform: scale(1.05) rotate(-5deg);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.main-nav a {
    color: var(--slate-700);
    font-weight: 600;
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
}

.main-nav a.active,
.main-nav a:hover {
    color: var(--orange-700);
    border-color: var(--orange-500);
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: var(--orange-700);
    font-size: 1.8rem;
}

.btn {
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(140deg, var(--orange-600), var(--orange-500));
    color: var(--white);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 45px rgba(224, 108, 7, 0.25);
}

.btn:active {
    transform: translateY(-1px);
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-outline {
    background: var(--white);
    color: var(--orange-700);
    border: 2px solid #ffd4ac;
    box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
    border-color: var(--orange-500);
    background: #fff9f3;
}

.btn-sm {
    padding: 10px 16px;
    font-size: 0.9rem;
}

/* Tombol CTA di navbar — override border-bottom dari .main-nav a */
.main-nav .nav-cta,
.main-nav .nav-cta:hover,
.main-nav .nav-cta.active {
    border-bottom: none;
    color: var(--white);
    padding: 9px 20px;
    font-size: 0.88rem;
    letter-spacing: 0.4px;
}
.main-nav .nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(224, 108, 7, 0.3);
}

.hero {
    padding: 78px 0 56px;
    background: linear-gradient(135deg, rgba(240, 122, 16, 0.02) 0%, rgba(204, 93, 0, 0.01) 100%);
    background-image: url('/upgden/assets/images/hero-pattern.svg'), linear-gradient(135deg, rgba(240, 122, 16, 0.02) 0%, rgba(204, 93, 0, 0.01) 100%);
    background-size: cover, auto;
    background-position: center, center;
    background-repeat: no-repeat, repeat;
    border-bottom: 1px solid rgba(240, 122, 16, 0.1);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(240, 122, 16, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(204, 93, 0, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 36px;
    align-items: center;
}

.hero-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: clamp(20px, 3vw, 30px);
    box-shadow: var(--shadow-lg);
    border: 1px solid #ffe5cd;
    animation: slideInRight 0.7s ease-out 0.2s both;
    backdrop-filter: blur(4px);
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(240, 122, 16, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero h1 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 5vw, 3.3rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--orange-700) 0%, var(--orange-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.6s ease-out;
}

.hero p {
    margin: 0 0 24px;
    color: var(--slate-700);
    max-width: 680px;
    font-size: 1.1rem;
    line-height: 1.7;
    letter-spacing: 0.2px;
    animation: fadeInUp 0.7s ease-out 0.1s both;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.pill {
    background: linear-gradient(135deg, #fff2e3 0%, #fffaef 100%);
    border: 1.4px solid #ffd6b1;
    border-radius: 999px;
    padding: 9px 15px;
    font-size: 0.9rem;
    color: var(--orange-700);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
}

.pill:hover {
    border-color: #ffbf8a;
    background: linear-gradient(135deg, #fffbf5 0%, #fffef9 100%);
    transform: translateY(-2px);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.metric {
    background: linear-gradient(135deg, #fff4e7 0%, #fff0df 100%);
    border-radius: 14px;
    padding: 18px;
    border: 1.4px solid #ffdbbd;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.metric::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(240, 122, 16, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.metric:hover {
    border-color: #ffc88f;
    box-shadow: 0 6px 20px rgba(224, 108, 7, 0.12);
}

.metric strong {
    display: block;
    font-size: 1.65rem;
    color: var(--orange-700);
    margin-bottom: 6px;
    position: relative;
    z-index: 2;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.metric span {
    color: var(--slate-700);
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
    font-weight: 500;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.card {
    background: var(--white);
    border: 1.2px solid #ffe4cc;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 4px 12px rgba(224, 108, 7, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 10px;
}

.card-service,
.card-article {
    padding: 0;
    gap: 0;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(240, 122, 16, 0.05), transparent);
    transition: left 0.5s ease;
}

.card:hover {
    border-color: #ffc895;
    box-shadow: 0 12px 28px rgba(224, 108, 7, 0.14);
    transform: translateY(-8px);
}

.card:hover::before {
    left: 100%;
}

.card h3 {
    margin: 0;
    color: var(--orange-700);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.3;
}

.card p {
    margin: 0;
    color: var(--slate-700);
    line-height: 1.65;
    font-size: 0.95rem;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 10px;
}

.card-body > .btn,
.card-body > .pill-row {
    margin-top: auto;
}

.service-image,
.article-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 14px 14px 0 0;
    display: block;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8ecf1 100%);
    transition: transform 0.3s ease;
}

.card:hover .service-image,
.card:hover .article-image {
    transform: scale(1.02);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--slate-500);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.article-meta ion-icon {
    font-size: 0.9rem;
}

.icon-chip {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: linear-gradient(140deg, var(--orange-600), var(--orange-500));
    font-size: 1.5rem;
    box-shadow: 0 6px 18px rgba(224, 108, 7, 0.22);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    align-self: flex-start;
}

.icon-chip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover .icon-chip {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(224, 108, 7, 0.3);
}

.testimonial {
    position: relative;
}

.testimonial .stars {
    color: #f6a623;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.testimonial p {
    color: var(--slate-700);
    font-style: italic;
    line-height: 1.7;
    font-size: 0.97rem;
}

.testimonial h3 {
    font-size: 0.9rem;
    color: var(--slate-500);
    font-weight: 600;
    margin-top: auto;
}

/* Testimonial Slider */
.testimonial-slider {
    overflow: hidden;
    padding: 8px 0 4px;
    cursor: grab;
    user-select: none;
}

.testimonial-slider.dragging {
    cursor: grabbing;
}

.testimonial-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.testimonial-track.no-transition {
    transition: none;
}

.testimonial-slide {
    flex: 0 0 80%;
    min-width: 260px;
    flex-shrink: 0;
}

@media (max-width: 820px) {
    .testimonial-slide {
        flex: 0 0 80%;
    }
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
}

.testimonial-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #ffd5b0;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, width 0.3s ease, border-radius 0.3s ease;
}

.testimonial-dot.active {
    background: var(--orange-500);
    width: 24px;
    border-radius: 4px;
}

.section-cta {
    margin-top: 36px;
    display: flex;
    justify-content: center;
}

/* Maps section */
.section-maps .maps-embed {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.12);
    line-height: 0;
}
.section-maps .maps-embed iframe {
    display: block;
    width: 100%;
}

.band {
    background: linear-gradient(135deg, var(--orange-600) 0%, var(--orange-500) 50%, var(--orange-600) 100%);
    color: var(--white);
    border-radius: 16px;
    padding: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 20px 50px rgba(224, 108, 7, 0.3);
    position: relative;
    overflow: hidden;
}

.band .pill-row {
    margin-bottom: 0;
}

.band::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.band::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.band h2 {
    position: relative;
    z-index: 2;
    margin: 0 0 10px;
    font-size: clamp(1.5rem, 2vw, 1.9rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.band p {
    position: relative;
    z-index: 2;
    margin: 0;
    opacity: 0.95;
    font-size: 1rem;
    line-height: 1.6;
}

.list-check {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    display: grid;
    gap: 12px;
}

.list-check li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: var(--slate-700);
    font-size: 1.05rem;
    line-height: 1.6;
    letter-spacing: 0.2px;
}

.list-check ion-icon {
    color: var(--orange-500);
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 2px;
    animation: fadeInUp 0.6s ease-out;
}

.page-head {
    padding: 56px 0 0;
    border-bottom: 1px solid rgba(240, 122, 16, 0.08);
    background: linear-gradient(135deg, rgba(240, 122, 16, 0.03) 0%, transparent 100%);
}

.page-head .section-lead {
    margin-bottom: 28px;
}

.page-head h1 {
    margin: 0 0 14px;
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.3px;
    background: linear-gradient(135deg, var(--orange-700) 0%, var(--orange-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-item {
    border: 1.5px solid #ffd9b5;
    border-radius: 12px;
    background: var(--white);
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #ffbf8a;
    box-shadow: 0 8px 24px rgba(224, 108, 7, 0.1);
}

.faq-btn {
    width: 100%;
    padding: 18px 18px;
    text-align: left;
    background: var(--white);
    border: 0;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: var(--slate-900);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-item.active .faq-btn {
    background: linear-gradient(135deg, rgba(240, 122, 16, 0.08) 0%, rgba(240, 122, 16, 0.04) 100%);
    color: var(--orange-700);
}

.faq-btn ion-icon {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-btn ion-icon {
    transform: rotate(180deg);
    color: var(--orange-600);
}

.faq-content {
    display: none;
    padding: 0 18px 18px;
    color: var(--slate-700);
    line-height: 1.75;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
    animation: fadeInUp 0.3s ease-out;
}

.faq-item.active .faq-content {
    display: block;
}

.contact-wrap {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 28px;
}

.contact-card {
    background: var(--white);
    border: 1.3px solid #ffdbbd;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 12px rgba(224, 108, 7, 0.08);
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: #ffbf8a;
    box-shadow: 0 12px 28px rgba(224, 108, 7, 0.12);
}

.contact-card h2 {
    margin-top: 0;
    color: var(--orange-700);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.2px;
}

.contact-card h3 {
    color: var(--orange-700);
    margin: 20px 0 12px;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.2px;
}

form {
    display: grid;
    gap: 14px;
}

label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--slate-900);
    letter-spacing: 0.2px;
}

input,
textarea,
select {
    width: 100%;
    border: 1.4px solid #f7cfa4;
    background: linear-gradient(135deg, #fffdfb 0%, #fff9f5 100%);
    border-radius: 12px;
    padding: 13px 15px;
    font: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: 0;
    border-color: var(--orange-500);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(240, 122, 16, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.alert-success {
    background: linear-gradient(135deg, #ecfdf3 0%, #f0fdf4 100%);
    border: 1.5px solid #9de8bf;
    color: #15803d;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-weight: 500;
}

.site-footer {
    margin-top: 70px;
    background: linear-gradient(180deg, #1a1e26 0%, #0f1218 100%);
    color: #f5f7fb;
    padding: 52px 0 20px;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(240, 122, 16, 0.3), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    position: relative;
    z-index: 2;
}

.footer-grid h3 {
    margin-top: 0;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.2px;
    margin-bottom: 14px;
}

.footer-grid p,
.footer-grid li,
.footer-grid a {
    color: #d8dde6;
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-grid ul {
    margin: 0;
    padding-left: 18px;
}

.footer-grid a {
    transition: color 0.3s ease;
}

.footer-grid a:hover {
    color: var(--orange-500);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 0;
    margin-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    position: relative;
    z-index: 2;
}

.footer-bottom small {
    color: #8a93a2;
    font-size: 0.88rem;
}

.footer-icons {
    display: flex;
    align-items: center;
    gap: 18px;
}

.footer-icons a {
    color: #8a93a2;
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease, transform 0.2s ease;
}

.footer-icons a:hover {
    color: var(--orange-500);
    transform: translateY(-2px);
}

.float-cta {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 200;
    padding: 13px 22px;
    font-size: 0.95rem;
    gap: 9px;
    animation: subtle-float 3s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(224, 108, 7, 0.35) !important;
}

.float-cta ion-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Pulse ring */
.float-cta::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 999px;
    border: 2px solid rgba(240, 122, 16, 0.5);
    animation: cta-pulse 2.5s ease-out infinite;
    pointer-events: none;
}

@keyframes cta-pulse {
    0%   { opacity: 1; transform: scale(1); }
    70%  { opacity: 0; transform: scale(1.18); }
    100% { opacity: 0; transform: scale(1.18); }
}

.article-detail {
    background: var(--white);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(224, 108, 7, 0.1);
    border: 1px solid #ffe8d1;
}

.article-hero {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8ecf1 100%);
}

.article-header {
    padding: 44px;
}

.article-header h1 {
    margin: 0 0 18px;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--orange-700) 0%, var(--orange-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-header .article-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--slate-500);
    font-size: 0.9rem;
}

.article-content {
    padding: 0 44px 44px;
    color: var(--slate-700);
    line-height: 1.8;
    font-size: 1rem;
}

.article-content h3 {
    color: var(--orange-700);
    margin: 28px 0 14px;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
}

.article-content ul,
.article-content ol {
    margin: 16px 0;
    padding-left: 28px;
}

.article-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.article-footer {
    padding: 24px 44px;
    border-top: 1px solid #ffecd5;
    background: #fffbf7;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 980px) {
    .hero-grid,
    .contact-wrap,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .band {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 820px) {
    .card-grid,
    .articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .menu-toggle {
        display: inline-flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 78px;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        border-top: 1px solid #f5e3cf;
        border-bottom: 1px solid #f5e3cf;
        padding: 10px 4%;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        width: 100%;
        padding: 11px 0;
        border-bottom: 1px solid #f7ece0;
    }

    .main-nav a.btn {
        width: auto;
        margin-top: 10px;
        border-bottom: 0;
    }
}

@media (max-width: 540px) {
    .section {
        padding: 52px 0;
    }

    .hero {
        padding: 52px 0 40px;
    }

    .metric-grid {
        grid-template-columns: 1fr;
    }

    .card-grid,
    .articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-image,
    .article-image {
        height: 150px;
    }

    .card-body {
        padding: 14px;
    }

    .card-body h3 {
        font-size: 0.88rem;
    }

    .card-body p {
        font-size: 0.82rem;
    }

    .card-body .btn,
    .card-body .btn-sm {
        width: 100%;
        justify-content: center;
        font-size: 0.8rem;
        padding: 9px 10px;
    }

    .article-header,
    .article-content {
        padding-left: 24px;
        padding-right: 24px;
    }

    .article-footer {
        padding-left: 24px;
        padding-right: 24px;
    }

    .band {
        padding: 32px 24px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ── Lazy-load images: prevent layout shift ────────────────────────────── */
img[loading="lazy"] {
    content-visibility: auto;
}

/* ── Section offscreen rendering hint ─────────────────────────────────── */
.section {
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

/* ── Respect reduced motion ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ── Disable heavy effects on low-end/mobile ───────────────────────────── */
@media (max-width: 540px) {
    .site-header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.99);
    }

    .hero-card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        animation: none;
    }

    .hero h1,
    .hero p {
        animation: none;
    }

    .hero::before,
    .hero::after {
        display: none;
    }
}
