/* ============================================================
   PT. TPI – Custom Stylesheet
   teknik-perumahsakitan-indonesia.com
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
    --blue-dark:   #0A3D62;
    --blue-mid:    #1565a7;
    --blue-light:  #e8f0fa;
    --gold:        #D4AF37;
    --gold-light:  #f5e9b0;
    --white:       #ffffff;
    --gray-50:     #f8f9fb;
    --gray-100:    #eef1f5;
    --gray-400:    #9aa3b2;
    --gray-700:    #4a5568;
    --text:        #1a202c;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'DM Sans', sans-serif;
    --shadow-sm:    0 2px 8px rgba(10,61,98,.08);
    --shadow-md:    0 6px 24px rgba(10,61,98,.12);
    --shadow-lg:    0 16px 48px rgba(10,61,98,.15);
    --radius:       14px;
    --radius-sm:    8px;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.py-6 { padding-top: 5rem; padding-bottom: 5rem; }

.text-gold { color: var(--gold); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar-tpi {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    box-shadow: none;
    transition: box-shadow .3s, border-color .3s;
    padding: .9rem 0;
}

.navbar-tpi.scrolled {
    box-shadow: var(--shadow-sm);
    border-color: var(--gray-100);
}

.brand-icon svg { display: block; }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }

.brand-main {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--blue-dark);
    letter-spacing: .02em;
}

.brand-sub {
    font-size: .62rem;
    color: var(--gray-400);
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.navbar-tpi .nav-link {
    font-size: .9rem;
    font-weight: 500;
    color: var(--gray-700);
    padding: .45rem .75rem;
    border-radius: 6px;
    transition: color .2s, background .2s;
}

.navbar-tpi .nav-link:hover,
.navbar-tpi .nav-link.active {
    color: var(--blue-dark);
    background: var(--blue-light);
}

.btn-nav-cta {
    background: var(--blue-dark) !important;
    color: var(--white) !important;
    padding: .45rem 1.25rem !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    transition: background .2s, box-shadow .2s !important;
}

.btn-nav-cta:hover {
    background: var(--blue-mid) !important;
    box-shadow: 0 4px 12px rgba(10,61,98,.25) !important;
}

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #051d30 0%, #0a3d62 55%, #1a5986 100%);
    min-height: 100vh;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(212,175,55,.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,.04) 0%, transparent 40%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(212,175,55,.15);
    border: 1px solid rgba(212,175,55,.4);
    color: var(--gold);
    font-size: .8rem;
    font-weight: 600;
    padding: .35rem 1rem;
    border-radius: 50px;
    letter-spacing: .04em;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -.01em;
}

.hero-title-accent {
    color: var(--gold);
    position: relative;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,.78);
    max-width: 540px;
    margin-top: .75rem;
}

.btn-hero-primary {
    background: var(--gold);
    color: var(--blue-dark);
    font-weight: 700;
    font-size: .9rem;
    padding: .75rem 1.75rem;
    border-radius: 50px;
    border: 2px solid transparent;
    transition: all .25s;
}

.btn-hero-primary:hover {
    background: #c9a227;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212,175,55,.35);
}

.btn-hero-outline {
    background: transparent;
    color: var(--white);
    font-weight: 600;
    font-size: .9rem;
    padding: .73rem 1.75rem;
    border-radius: 50px;
    border: 1.5px solid rgba(255,255,255,.4);
    transition: all .25s;
}

.btn-hero-outline:hover {
    border-color: var(--white);
    background: rgba(255,255,255,.08);
    color: var(--white);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    width: 380px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-circle-bg {
    width: 300px;
    height: 300px;
    animation: rotate-slow 40s linear infinite;
}

@keyframes rotate-slow { to { transform: rotate(360deg); } }

.hero-card-float {
    position: absolute;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    backdrop-filter: blur(10px);
    color: var(--white);
    border-radius: 12px;
    padding: .65rem 1rem;
    font-size: .8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: .5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
    animation: float-card 4s ease-in-out infinite;
}

.hero-card-float i { font-size: 1.1rem; color: var(--gold); }

.card-1 { top: 15%; left: -10%; animation-delay: 0s; }
.card-2 { bottom: 20%; right: -12%; animation-delay: 1.3s; }
.card-3 { top: 55%; left: -15%; animation-delay: 2.6s; }

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

.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll-hint a {
    color: rgba(255,255,255,.5);
    font-size: 1.5rem;
    animation: bounce-down 1.8s ease-in-out infinite;
    display: block;
}

@keyframes bounce-down {
    0%, 100% { transform: translateY(0); opacity: .5; }
    50%       { transform: translateY(6px); opacity: 1; }
}

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip {
    background: var(--blue-dark);
    padding: 2.5rem 0;
}

.stats-row { border-radius: var(--radius); overflow: hidden; }

.stat-item {
    text-align: center;
    padding: 1.75rem 1rem;
    border-right: 1px solid rgba(255,255,255,.1);
}

.stat-item:last-child { border-right: none; }

.stat-num {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--gold);
    line-height: 1.1;
}

.stat-label {
    font-size: .8rem;
    color: rgba(255,255,255,.6);
    font-weight: 500;
    margin-top: .35rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* ============================================================
   SECTION COMMONS
   ============================================================ */
.section-label {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.5vw, 2.7rem);
    font-weight: 700;
    color: var(--blue-dark);
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--gray-400);
    max-width: 480px;
    margin: 0 auto;
}

.section-body {
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.8;
}

/* ============================================================
   TENTANG KAMI
   ============================================================ */
.section-tentang { background: var(--gray-50); }

.tentang-visual-wrap {
    position: relative;
    padding: 2rem;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tentang-bg-block {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--blue-light) 0%, rgba(212,175,55,.1) 100%);
    border-radius: 24px;
}

.tentang-img-card {
    position: relative;
    z-index: 2;
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 340px;
}

.tentang-icon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
}

.tg-item {
    aspect-ratio: 1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.tg-blue  { background: var(--blue-light); color: var(--blue-dark); }
.tg-gold  { background: var(--gold-light); color: #8b6914; }
.tg-center {
    background: var(--blue-dark);
    color: var(--gold);
    font-family: var(--font-display);
    font-size: .75rem;
    font-weight: 700;
    text-align: center;
    grid-column: 2;
    grid-row: 2;
}

.tentang-badge-kan {
    position: absolute;
    bottom: 1.5rem;
    right: 1rem;
    z-index: 3;
    background: var(--blue-dark);
    color: var(--gold);
    font-size: .78rem;
    font-weight: 700;
    padding: .5rem 1rem;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
}

/* SMART Badges */
.smart-pillars .smart-label { font-size: .85rem; color: var(--gray-700); }

.smart-badge {
    display: inline-flex;
    align-items: center;
    background: var(--blue-light);
    color: var(--blue-dark);
    border: 1px solid rgba(10,61,98,.15);
    font-size: .8rem;
    font-weight: 600;
    padding: .35rem .85rem;
    border-radius: 50px;
    transition: background .2s;
}

.smart-badge:hover {
    background: var(--blue-dark);
    color: var(--white);
}

/* ============================================================
   LAYANAN
   ============================================================ */
.section-layanan { background: var(--white); }

.layanan-card {
    background: var(--gray-50);
    border: 1.5px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 2rem;
    height: 100%;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}

.layanan-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(10,61,98,.15);
}

.layanan-featured {
    background: linear-gradient(140deg, #0f4a7a 0%, #0a3d62 100%);
    border-color: transparent;
    color: var(--white);
}

.layanan-gold {
    background: linear-gradient(140deg, #a07c1a 0%, #7a5c10 100%);
}

.layanan-card-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.layanan-tag {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: rgba(255,255,255,.6);
    margin-bottom: .4rem;
}

.layanan-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: .75rem;
}

.layanan-desc { font-size: .9rem; color: rgba(255,255,255,.8); line-height: 1.7; }

.btn-layanan-link {
    display: inline-flex;
    align-items: center;
    margin-top: 1.25rem;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    color: var(--white);
    font-size: .85rem;
    font-weight: 600;
    padding: .5rem 1.1rem;
    border-radius: 50px;
    text-decoration: none;
    transition: background .2s;
}

.btn-layanan-link:hover { background: rgba(255,255,255,.25); color: var(--white); }

/* Non-featured cards */
.layanan-card-icon-sm {
    font-size: 2rem;
    color: var(--blue-dark);
    background: var(--blue-light);
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.layanan-title-sm {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: .75rem;
}

.layanan-list { list-style: none; padding: 0; margin: 0; }

.layanan-list li {
    font-size: .875rem;
    color: var(--gray-700);
    padding: .3rem 0;
    display: flex;
    align-items: flex-start;
    gap: .4rem;
}

.layanan-list li i { color: var(--blue-mid); margin-top: .15rem; flex-shrink: 0; }

.layanan-desc-sm { font-size: .875rem; color: var(--gray-700); }

.layanan-konsultasi .layanan-card-icon-sm { margin: 0 auto 1rem; }

.btn-konsultasi {
    background: var(--blue-dark);
    color: var(--white);
    font-size: .85rem;
    font-weight: 600;
    padding: .55rem 1.3rem;
    border-radius: 50px;
    border: none;
    text-decoration: none;
    transition: background .2s;
    display: inline-flex;
    align-items: center;
}

.btn-konsultasi:hover { background: var(--blue-mid); color: var(--white); }

/* ============================================================
   WHY SECTION
   ============================================================ */
.section-why { background: var(--blue-dark); }

.section-why .section-label { color: var(--gold); }
.section-why .section-title { color: var(--white); }

.why-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    height: 100%;
    transition: background .25s, border-color .25s;
}

.why-card:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(212,175,55,.3);
}

.why-icon {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.why-card h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: .5rem;
}

.why-card p { font-size: .875rem; color: rgba(255,255,255,.65); }

/* ============================================================
   HUBUNGI KAMI
   ============================================================ */
.section-hubungi { background: var(--gray-50); }

.contact-info-list { display: flex; flex-direction: column; gap: 1.25rem; }

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    background: var(--blue-light);
    color: var(--blue-dark);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.contact-label { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gray-400); }
.contact-value { font-size: .9rem; color: var(--gray-700); margin-top: .15rem; }
.contact-value a { color: var(--blue-mid); text-decoration: none; font-weight: 500; }
.contact-value a:hover { color: var(--blue-dark); text-decoration: underline; }

/* Form Card */
.contact-form-card {
    background: var(--white);
    border: 1.5px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.contact-form-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--blue-dark);
}

.form-label { font-size: .82rem; font-weight: 600; color: var(--gray-700); margin-bottom: .4rem; }

.form-control-tpi {
    border: 1.5px solid var(--gray-100);
    border-radius: var(--radius-sm);
    padding: .65rem 1rem;
    font-size: .9rem;
    color: var(--text);
    background: var(--gray-50);
    transition: border-color .2s, box-shadow .2s;
}

.form-control-tpi:focus {
    border-color: var(--blue-mid);
    box-shadow: 0 0 0 3px rgba(21,101,167,.12);
    background: var(--white);
    outline: none;
}

.btn-submit-form {
    background: var(--blue-dark);
    color: var(--white);
    font-weight: 700;
    font-size: .95rem;
    padding: .85rem;
    border-radius: var(--radius-sm);
    border: none;
    transition: background .2s, transform .15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-submit-form:hover {
    background: var(--blue-mid);
    transform: translateY(-1px);
    color: var(--white);
}

/* Maps */
.maps-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.maps-iframe { display: block; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
    background: linear-gradient(110deg, var(--gold) 0%, #c9a227 50%, #a07c1a 100%);
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--blue-dark);
}

.cta-title span { color: #fff; }

.cta-sub { font-size: 1rem; color: rgba(10,61,98,.75); font-weight: 500; }

.btn-cta-white {
    background: var(--blue-dark);
    color: var(--white);
    font-weight: 700;
    padding: .8rem 2rem;
    border-radius: 50px;
    border: none;
    font-size: .95rem;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: all .25s;
}

.btn-cta-white:hover {
    background: var(--white);
    color: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer-tpi {
    background: #050e1a;
    color: rgba(255,255,255,.7);
    padding: 4rem 0 2rem;
}

.footer-brand-main {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
}

.footer-brand-sub {
    font-size: .6rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.footer-desc { font-size: .85rem; color: rgba(255,255,255,.55); line-height: 1.7; }
.footer-desc strong { color: var(--gold); }

.badge-kan {
    display: inline-flex;
    align-items: center;
    background: rgba(212,175,55,.12);
    border: 1px solid rgba(212,175,55,.3);
    color: var(--gold);
    font-size: .75rem;
    font-weight: 600;
    padding: .35rem .85rem;
    border-radius: 50px;
}

.footer-heading {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.4);
    margin-bottom: 1rem;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: rgba(255,255,255,.65); text-decoration: none; font-size: .875rem; transition: color .2s; }
.footer-links a:hover { color: var(--gold); }

.footer-address p { font-size: .84rem; color: rgba(255,255,255,.6); margin-bottom: .6rem; display: flex; gap: .4rem; align-items: flex-start; }
.footer-address i { color: var(--gold); margin-top: .15rem; flex-shrink: 0; }
.footer-address a { color: rgba(255,255,255,.65); text-decoration: none; }
.footer-address a:hover { color: var(--gold); }

.footer-divider { border-color: rgba(255,255,255,.08); margin: 2rem 0 1.5rem; }

.footer-bottom { font-size: .8rem; color: rgba(255,255,255,.35); }
.footer-domain { font-weight: 600; color: rgba(212,175,55,.5); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .hero-visual { display: none; }
    .py-6 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
}

@media (max-width: 575px) {
    .brand-sub { display: none; }
    .tentang-icon-grid { grid-template-columns: repeat(3, 1fr); }
    .contact-form-card { padding: 1.5rem; }
}

/* ============================================================
   SUCCESS / ALERT
   ============================================================ */
.alert-tpi {
    border-radius: var(--radius-sm);
    border: none;
    font-size: .9rem;
    font-weight: 500;
}
