/* =====================================================
   KAISHA DINAMIK — Custom CSS
   Supplements Tailwind; do not duplicate Tailwind utilities here.
===================================================== */

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ----------------------------------------------------
   SECTION SPACING
---------------------------------------------------- */
.section-padding { padding: 80px 0; }

/* ----------------------------------------------------
   SECTION TITLES
---------------------------------------------------- */
.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: #1a3a5c;
    position: relative;
    padding-bottom: 16px;
    line-height: 1.2;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #f59e0b;
    border-radius: 2px;
}

.section-title.centered { text-align: center; }
.section-title.centered::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-title.light { color: #ffffff; }
.section-title.light::after { background: #f59e0b; }

.section-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #64748b;
    line-height: 1.75;
    margin-top: 12px;
}

/* ----------------------------------------------------
   SERVICE / FEATURE CARDS
---------------------------------------------------- */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(26, 58, 92, 0.15);
    border-color: #2563eb !important;
}

/* ----------------------------------------------------
   HERO OVERLAY PATTERN (geometric grid — no external image)
---------------------------------------------------- */
.hero-pattern {
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ----------------------------------------------------
   PAGE HERO (inner pages)
---------------------------------------------------- */
.page-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1a3a5c 60%, #234f7d 100%);
    padding: 72px 0 56px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* ----------------------------------------------------
   BREADCRUMB
---------------------------------------------------- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.breadcrumb a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover { color: #f59e0b; }

.breadcrumb .separator { color: rgba(255,255,255,0.35); }

.breadcrumb .current { color: #f59e0b; font-weight: 500; }

/* ----------------------------------------------------
   AMBER ACCENT BAR (solution pages)
---------------------------------------------------- */
.accent-bar {
    width: 56px;
    height: 4px;
    background: #f59e0b;
    border-radius: 2px;
    margin: 12px 0 24px;
}

/* ----------------------------------------------------
   STAT COUNTER ITEMS
---------------------------------------------------- */
.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 2.75rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    margin-top: 4px;
    letter-spacing: 0.025em;
}

/* ----------------------------------------------------
   FLOATING STATS BAR (hero bottom)
---------------------------------------------------- */
.stats-bar {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
}

/* ----------------------------------------------------
   FORM STYLES
---------------------------------------------------- */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    color: #1e293b;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #94a3b8;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.form-label .required {
    color: #ef4444;
    margin-left: 3px;
}

/* Alert messages */
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* ----------------------------------------------------
   CUSTOM SCROLLBAR
---------------------------------------------------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #1a3a5c; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #2563eb; }

/* ----------------------------------------------------
   BACK TO TOP BUTTON
---------------------------------------------------- */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: #f59e0b;
    color: white;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 999;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45);
}

#back-to-top:hover {
    background: #1a3a5c;
    transform: translateY(-2px);
}

#back-to-top.visible {
    display: flex;
}

/* ----------------------------------------------------
   UTILITY HELPERS
---------------------------------------------------- */

/* Image placeholder blocks */
.img-placeholder {
    width: 100%;
    background: linear-gradient(135deg, #1a3a5c 0%, #2563eb 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.2);
}

/* Vertical accent line (About page) */
.accent-line {
    width: 4px;
    background: linear-gradient(to bottom, #f59e0b, #2563eb);
    border-radius: 2px;
    flex-shrink: 0;
}

/* Hover underline links */
.hover-underline {
    position: relative;
    text-decoration: none;
}
.hover-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #f59e0b;
    transition: width 0.25s ease;
}
.hover-underline:hover::after { width: 100%; }

/* Numbered step circles */
.step-circle {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1a3a5c, #2563eb);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Icon badge */
.icon-badge {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-badge-navy  { background: rgba(26, 58, 92, 0.1); color: #1a3a5c; }
.icon-badge-royal { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
.icon-badge-amber { background: rgba(245, 158, 11, 0.12); color: #d97706; }

/* ----------------------------------------------------
   RESPONSIVE ADJUSTMENTS
---------------------------------------------------- */
@media (max-width: 768px) {
    .section-padding { padding: 56px 0; }

    .section-title { font-size: 1.75rem; }

    .stat-number { font-size: 2rem; }

    .page-hero { padding: 52px 0 40px; }
}

@media (max-width: 480px) {
    .section-title { font-size: 1.5rem; }

    #back-to-top {
        bottom: 20px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}
