/*
 * Ultimate Sport CSS Stylesheet (Dynamic Precision)
 * Path: 04_landing_pages/company_profile_ultimatesport/style.css
 */

:root {
    --navy: #073258;
    --navy-dark: #042240;
    --green-turf: #166147;
    --green-light: #1d7a58;
    --blue-tagline: #4D6A8C;
    --white: #FFFFFF;
    --off-white: #F3F3F3;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-600: #4D6A8C;
    --gray-800: #1f2937;
    --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --max-width: 1200px;
    --radius: 12px;
}

/* Base Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 48px 0;
    }
}

/* Headings */
h1, h2, h3, h4 {
    color: var(--navy);
    font-weight: 700;
    line-height: 1.25;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    text-align: center;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    color: var(--blue-tagline);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
    font-weight: 400;
}

/* Navigation Header */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(7, 50, 88, 0.08);
    height: 70px;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo svg,
.logo img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text .top {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: 1.5px;
}

.logo-text .bottom {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--green-turf);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a:not(.btn) {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
    position: relative;
    padding: 6px 0;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green-turf);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover {
    color: var(--green-turf);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    width: 24px;
    height: 3px;
    background: var(--navy);
    border-radius: 3px;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 24px;
        transform: translateY(-120%);
        opacity: 0;
        border-bottom: 1px solid rgba(7, 50, 88, 0.08);
        box-shadow: 0 10px 30px rgba(7, 50, 88, 0.05);
        transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    }
    
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Button & Interactions */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--navy);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(7, 50, 88, 0.15);
}

/* Diagonal Hover Slide Effect */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--green-turf);
    transition: var(--transition);
    z-index: -1;
    transform: skewX(-20deg);
    transform-origin: top left;
}

.btn-primary:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 97, 71, 0.25);
}

.btn-primary:hover::before {
    left: 0;
}

.btn-secondary {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
}

.btn-secondary:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
}

/* Hero Section Specific Button Contrast */
.hero-section .btn-primary {
    background: var(--green-turf);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(22, 97, 71, 0.25);
}

.hero-section .btn-primary::before {
    background: var(--navy-dark);
}

.hero-section .btn-primary:hover {
    color: var(--white);
    box-shadow: 0 6px 20px rgba(4, 34, 64, 0.4);
}

.hero-section .hero-actions .btn-secondary,
.hero-section .btn-secondary {
    border: 2px solid var(--white) !important;
    color: var(--white) !important;
    background: transparent !important;
}

.hero-section .hero-actions .btn-secondary:hover,
.hero-section .btn-secondary:hover {
    background: var(--white) !important;
    color: var(--navy) !important;
}

/* Diagonal Background Pattern */
.bg-diagonal {
    position: relative;
}

.bg-diagonal::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(7, 50, 88, 0.015) 40px, rgba(7, 50, 88, 0.015) 41px);
    pointer-events: none;
    z-index: 1;
}

/* Sticky Float WA Button */
.wa-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.wa-float:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
}

.wa-float svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

/* Hero Section Layout */
.hero-section {
    padding-top: 130px;
    padding-bottom: 180px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -10%;
    width: 120%;
    height: 300px;
    background: var(--white);
    transform: rotate(-3deg);
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    color: var(--white);
}

.hero-badge {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.hero-text h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-text h1 span {
    color: #4ade80; /* turf light */
}

.hero-text p {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 36px;
    max-width: 580px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-wrapper {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1;
}

.emblem-card {
    width: 100%;
    height: 100%;
    background: var(--white);
    border: 1px solid rgba(7, 50, 88, 0.08);
    border-radius: 50%;
    padding: 48px;
    box-shadow: 0 20px 50px rgba(7, 50, 88, 0.18);
    animation: float 6s ease-in-out infinite;
}

.emblem-card svg,
.emblem-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@media (max-width: 900px) {
    .hero-section {
        padding-bottom: 120px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-visual {
        margin-top: 32px;
    }
    
    .visual-wrapper {
        max-width: 220px;
    }
    
    .hero-section::after {
        bottom: -200px;
    }
}

/* Services / Silo Link Cards Section */
.services-section {
    background: var(--white);
    position: relative;
    z-index: 3;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 16px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 12px rgba(7, 50, 88, 0.02);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image {
    transform: scale(1.08);
}

.service-card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.85rem;
    color: var(--blue-tagline);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--green-turf);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--green-turf);
    box-shadow: 0 10px 24px rgba(7, 50, 88, 0.08);
}

.service-card:hover .card-link {
    color: var(--navy);
}

/* Why Us Section */
.why-section {
    background: var(--off-white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.why-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 36px 28px;
}

.why-card .num {
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(7, 50, 88, 0.08);
    line-height: 1;
    margin-bottom: 16px;
}

.why-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}

.why-card p {
    font-size: 0.85rem;
    color: var(--blue-tagline);
    line-height: 1.6;
}

.why-card:hover {
    border-color: var(--blue-tagline);
    box-shadow: 0 8px 20px rgba(7, 50, 88, 0.05);
}

/* Process Section */
.process-section {
    background: var(--white);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.process-step {
    flex: 1;
    min-width: 180px;
    text-align: center;
    position: relative;
    padding: 0 12px;
}

.process-step .step-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.15rem;
    margin: 0 auto 20px;
    box-shadow: 0 4px 10px rgba(7, 50, 88, 0.15);
    z-index: 2;
    position: relative;
}

.process-step h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.process-step p {
    font-size: 0.8rem;
    color: var(--blue-tagline);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .process-steps {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }
    
    .process-step {
        max-width: 280px;
    }
}

/* Contact Section & Form */
.contact-section {
    background: var(--off-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.contact-info p {
    font-size: 0.95rem;
    color: var(--blue-tagline);
    margin-bottom: 32px;
}

.contact-details li {
    margin-bottom: 16px;
    font-size: 0.88rem;
    color: var(--gray-800);
}

.contact-details li strong {
    color: var(--navy);
}

.contact-form-wrapper {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: 0 10px 30px rgba(7, 50, 88, 0.03);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.88rem;
    outline: none;
    transition: var(--transition);
    color: var(--gray-800);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(7, 50, 88, 0.08);
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .contact-form-wrapper {
        padding: 24px;
    }
}

/* Footer Styles */
.footer {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 0;
    border-top: 4px solid var(--green-turf);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 48px;
}

.footer-brand p {
    font-size: 0.85rem;
    line-height: 1.7;
    margin-top: 16px;
    max-width: 320px;
}

.footer h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}

.footer-links ul li a:hover {
    color: #4ade80;
    padding-left: 4px;
}

.footer-contact-info ul li {
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    margin-top: 48px;
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Appended SEO Article Styles */
.appended-seo-section {
    background: #f8fafc;
    border-top: 1px solid var(--gray-200);
    padding: 40px 0;
    position: relative;
}
.seo-article-container {
    max-height: 380px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.6s ease;
}
.seo-article-container.expanded {
    max-height: 4000px;
}
.seo-article-content {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--blue-tagline);
}
.seo-article-content h2, .seo-article-content h3 {
    color: var(--navy);
    margin-top: 24px;
    margin-bottom: 12px;
}
.seo-article-content h2 {
    font-size: 1.25rem;
    border-bottom: 2px solid var(--gray-200);
    padding-bottom: 8px;
}
.seo-article-content p {
    margin-bottom: 16px;
}
.seo-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.seo-article-content th, .seo-article-content td {
    border: 1px solid var(--gray-200);
    padding: 10px 14px;
    text-align: left;
}
.seo-article-content th {
    background: #f1f5f9;
    font-weight: 600;
}
.seo-article-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to bottom, rgba(248, 250, 252, 0), rgba(248, 250, 252, 1));
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.seo-article-container.expanded .seo-article-fade {
    opacity: 0;
    pointer-events: none;
}
.seo-article-toggle-btn {
    display: inline-block;
    background: var(--navy);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    margin: 20px auto 0;
    display: block;
    box-shadow: 0 4px 12px rgba(7, 50, 88, 0.15);
    transition: background 0.3s, transform 0.2s;
}
.seo-article-toggle-btn:hover {
    background: var(--green-turf);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .wa-float {
        bottom: 16px !important;
        right: 16px !important;
        width: 48px !important;
        height: 48px !important;
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3) !important;
    }
    .wa-float svg {
        width: 24px !important;
        height: 24px !important;
    }
}

/* Responsive Table Wrapper to prevent overflow-x layout break */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
}
.table-responsive table {
    margin: 0 !important;
    min-width: 600px; /* Memaksa tabel bergulir secara internal pada layar kecil */
}

/* WordPress Admin Bar Compatibility */
body.admin-bar .navbar {
    top: 32px;
}
@media screen and (max-width: 782px) {
    body.admin-bar .navbar {
        top: 46px;
    }
}

