/* ============================================================
   css/style.css  —  My Web Apps  (v2 — Refined)
   Fonts:   Playfair Display (headings) · Outfit (body/UI)
   Palette:
     --navy        : #0b1d35   deep rich navy
     --navy-mid    : #152a4a   medium navy
     --navy-light  : #1e3a60   lighter navy
     --silver      : #94a3b8   muted slate
     --off-white   : #f8fafc   page background
     --white       : #ffffff
     --accent      : #2dd4bf   bright teal CTAs
     --accent-dim  : #14b8a6   hover teal
     --gold        : #f59e0b   star ratings
   ============================================================ */

/* ── RESET & ROOT VARIABLES ─────────────────────────────────── */
:root {
    --navy        : #0b1d35;
    --navy-mid    : #152a4a;
    --navy-light  : #1e3a60;
    --silver      : #94a3b8;
    --off-white   : #f8fafc;
    --white       : #ffffff;
    --accent      : #2dd4bf;
    --accent-dim  : #14b8a6;
    --gold        : #f59e0b;
    --text-dark   : #0f172a;
    --text-body   : #475569;
    --text-light  : #94a3b8;
    --border      : rgba(0,0,0,0.08);
    --border-dark : rgba(255,255,255,0.08);
    --shadow-sm   : 0 2px 12px rgba(11,29,53,0.06);
    --shadow-md   : 0 8px 32px rgba(11,29,53,0.12);
    --shadow-lg   : 0 20px 60px rgba(11,29,53,0.18);
    --radius      : 14px;
    --navbar-h    : 76px;
    --font-head   : 'Playfair Display', Georgia, serif;
    --font-body   : 'Outfit', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-body);
    background: var(--off-white);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

/* ── GLOBAL TYPOGRAPHY ─────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.25;
    letter-spacing: -0.01em;
}

p { margin-bottom: 1rem; }

.accent { color: var(--accent); }
a       { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dim); }

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(45,212,191,0.08);
    border: 1px solid rgba(45,212,191,0.28);
    padding: 5px 16px;
    border-radius: 100px;
    margin-bottom: 18px;
}

.section-title {
    font-size: clamp(1.9rem, 3.5vw, 2.6rem);
    margin-bottom: 1.1rem;
    color: var(--text-dark);
}

.section-text {
    font-size: 1.05rem;
    color: var(--text-body);
    line-height: 1.85;
    max-width: 600px;
}

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: var(--navy) !important;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.2px;
    border: 2px solid var(--accent);
    border-radius: 10px;
    padding: 13px 30px;
    transition: all 0.22s ease;
    box-shadow: 0 4px 20px rgba(45,212,191,0.28);
}

.btn-cta:hover {
    background: var(--accent-dim);
    border-color: var(--accent-dim);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(45,212,191,0.38);
}

.btn-cta:active { transform: translateY(0); box-shadow: none; }

.btn-outline-light {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    border-radius: 10px;
    padding: 13px 30px;
    transition: all 0.22s ease;
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-2px);
}

/* ── NAVBAR ────────────────────────────────────────────────── */
#mainNav {
    height: var(--navbar-h);
    background: rgba(11, 29, 53, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    transition: box-shadow 0.3s ease;
}

#mainNav.scrolled {
    box-shadow: 0 4px 40px rgba(0,0,0,0.45);
}

.logo {
    height: 38px;
    width: auto;
    margin-right: 10px;
    vertical-align: middle;
}

.brand-text {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--white);
    letter-spacing: 0.01em;
    vertical-align: middle;
}

.brand-text .accent { color: var(--accent); }

.nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 15px;
    color: rgba(255,255,255,0.72) !important;
    padding: 8px 18px !important;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
    letter-spacing: 0.1px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white) !important;
    background: rgba(255,255,255,0.08);
}

/* Mobile collapsed menu — solid background so content beneath isn't visible */
@media (max-width: 991px) {
    #navMenu {
        background: var(--navy);
        border-top: 1px solid rgba(255,255,255,0.08);
        margin-top: 8px;
        border-radius: 0 0 12px 12px;
        padding: 12px 8px 16px;
    }

    #navMenu .navbar-nav {
        margin-bottom: 12px;
    }

    #navMenu .nav-socials {
        padding: 12px 10px 0;
        border-top: 1px solid rgba(255,255,255,0.08);
        justify-content: center;
    }

    #navMenu .nav-socials .btn-cta {
        display: inline-flex !important;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
        margin-left: 0 !important;
    }
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.65);
    font-size: 14px;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.social-icon:hover {
    background: var(--accent);
    color: var(--navy);
    transform: translateY(-2px);
}

/* ── HERO ──────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    background: var(--navy) center/cover no-repeat;
    position: relative;
    padding-top: var(--navbar-h);
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(45,212,191,0.10) 0%, transparent 60%),
        linear-gradient(160deg, rgba(11,29,53,0.97) 0%, rgba(11,29,53,0.82) 55%, rgba(21,42,74,0.90) 100%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(45,212,191,0.10);
    border: 1px solid rgba(45,212,191,0.35);
    color: var(--accent);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 7px 18px;
    border-radius: 100px;
}

.hero-headline {
    font-family: var(--font-head);
    font-size: clamp(2.6rem, 6vw, 4.8rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 1.4rem;
}

.hero-sub {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 400;
    color: rgba(255,255,255,0.60);
    letter-spacing: 1.5px;
    margin-bottom: 0;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.28);
    font-size: 18px;
    animation: bounce 2.2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(9px); }
}

/* ── PAGE HERO (inner pages) ───────────────────────────────── */
.page-hero {
    min-height: 360px;
    background: var(--navy);
    position: relative;
    padding-top: var(--navbar-h);
    display: flex;
    align-items: center;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 80% at 80% 50%, rgba(45,212,191,0.12) 0%, transparent 60%),
        linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);
}

.page-hero .hero-headline {
    font-size: clamp(2rem, 5vw, 3.4rem);
}

/* ── STATS STRIP ───────────────────────────────────────────── */
.stats-strip {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 36px 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.stat-num {
    font-family: var(--font-head);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
}

.stat-label {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

/* ── ABOUT SECTION ─────────────────────────────────────────── */
.section-about {
    background: var(--white);
    padding: 90px 0;
}

.about-img-wrap {
    position: relative;
    display: inline-block;
    width: 100%;
}

.about-img-wrap img { border-radius: var(--radius); }

.about-badge {
    position: absolute;
    bottom: -22px;
    right: -18px;
    background: var(--navy);
    color: var(--white);
    padding: 20px 24px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(45,212,191,0.25);
}

.about-badge i { font-size: 26px; color: var(--accent); }

.about-list { list-style: none; padding: 0; margin: 0; }

.about-list li {
    padding: 8px 0;
    font-size: 15.5px;
    color: var(--text-body);
    border-bottom: 1px solid var(--border);
}

.about-list li:last-child { border-bottom: none; }

/* ── SERVICE CARDS (homepage) ──────────────────────────────── */
.section-services-overview {
    background: var(--off-white);
    padding: 90px 0;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 30px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.service-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-md);
    border-color: rgba(45,212,191,0.30);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(45,212,191,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--accent);
    margin-bottom: 20px;
    transition: background 0.22s, color 0.22s;
}

.service-card:hover .service-icon {
    background: var(--accent);
    color: var(--navy);
}

.service-card h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    letter-spacing: 0;
}

.service-card p {
    font-size: 14.5px;
    color: var(--text-body);
    margin-bottom: 18px;
    line-height: 1.75;
}

.service-link {
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s, color 0.2s;
}

.service-link:hover { color: var(--accent-dim); gap: 8px; }

.service-card--cta {
    background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 100%);
    border-color: rgba(45,212,191,0.18);
}

.service-card--cta h3 { color: var(--white); }
.service-card--cta p  { color: rgba(255,255,255,0.58); }
.service-card--cta:hover { border-color: rgba(45,212,191,0.45); }

/* ── TESTIMONIALS ──────────────────────────────────────────── */
.section-testimonials {
    background: var(--white);
    padding: 90px 0;
}

.testimonial-card {
    background: var(--off-white);
    border-radius: var(--radius);
    padding: 32px 28px;
    border: 1px solid var(--border);
    height: 100%;
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    font-family: var(--font-head);
    font-size: 80px;
    color: var(--accent);
    opacity: 0.18;
    position: absolute;
    top: 12px;
    left: 22px;
    line-height: 1;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-body);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.testimonial-author strong {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    color: var(--text-dark);
}

.testimonial-author span { font-size: 13px; color: var(--text-light); }

.stars { color: var(--gold); font-size: 13px; letter-spacing: 1px; }

/* ── CTA BLOCK ─────────────────────────────────────────────── */
.section-cta {
    background: linear-gradient(150deg, var(--navy) 0%, var(--navy-mid) 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 70% at 80% 50%, rgba(45,212,191,0.12) 0%, transparent 65%);
    pointer-events: none;
}

.cta-block h2 {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4.5vw, 2.9rem);
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.cta-block p {
    color: rgba(255,255,255,0.60);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.85;
}

/* ── SERVICES DETAIL PAGE ──────────────────────────────────── */
.service-detail {
    background: var(--white);
    padding: 90px 0;
}

.service-detail--alt { background: var(--off-white); }

.service-img {
    width: 100%;
    min-height: 320px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.service-icon-sm {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(45,212,191,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--accent);
    margin-bottom: 18px;
    border: 1px solid rgba(45,212,191,0.20);
}

.service-detail-list { list-style: none; padding: 0; margin: 0; }

.service-detail-list li {
    padding: 9px 0;
    font-family: var(--font-body);
    font-size: 15.5px;
    color: var(--text-body);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
}

.service-detail-list li:last-child { border-bottom: none; }

/* ── CONTACT PAGE ──────────────────────────────────────────── */
.section-contact {
    background: var(--white);
    padding: 90px 0;
}

.contact-form-wrap {
    background: var(--off-white);
    border-radius: var(--radius);
    padding: 44px 48px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.form-label {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 7px;
    letter-spacing: 0.1px;
}

.required { color: var(--accent); }

.custom-input {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-dark);
    background: var(--white);
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 13px 18px;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.custom-input::placeholder { color: #a0aec0; }

.custom-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(45,212,191,0.12);
    outline: none;
}

textarea.custom-input { resize: vertical; min-height: 150px; }

.form-alert {
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 14.5px;
}

.form-alert--error {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #be123c;
}

.alert-success-custom {
    background: rgba(45,212,191,0.05);
    border: 1px solid rgba(45,212,191,0.28);
    border-radius: var(--radius);
    padding: 40px;
}

.alert-success-custom h3 { color: var(--text-dark); }
.alert-success-custom p  { color: var(--text-body); }

.contact-info { padding-top: 10px; }

.contact-info h3 {
    font-family: var(--font-head);
    font-size: 1.4rem;
    color: var(--text-dark);
    padding-bottom: 14px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    margin-bottom: 28px;
}

.contact-info-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 26px;
}

.contact-info-item i {
    font-size: 20px;
    color: var(--accent);
    flex-shrink: 0;
    width: 24px;
    margin-top: 3px;
    text-align: center;
}

.contact-info-item strong {
    display: block;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.contact-info-item p {
    margin: 0;
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.6;
}

/* ── FOOTER ────────────────────────────────────────────────── */
.site-footer { background: var(--navy); }

.footer-top {
    padding: 64px 0 44px;
    border-bottom: 1px solid var(--border-dark);
}

.footer-brand .brand-text { font-size: 1.4rem; color: var(--white); }

.footer-tagline {
    font-family: var(--font-body);
    color: rgba(255,255,255,0.42);
    font-size: 14px;
    line-height: 1.75;
    max-width: 260px;
    margin-top: 10px;
}

.footer-heading {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-bottom: 16px;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }

.footer-links a {
    font-family: var(--font-body);
    color: rgba(255,255,255,0.50);
    font-size: 14.5px;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }

.footer-bottom {
    padding: 22px 0;
    color: rgba(255,255,255,0.30);
    font-family: var(--font-body);
    font-size: 13px;
}

.footer-bottom a { color: rgba(255,255,255,0.40); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--accent); }

.footer-socials .social-icon { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.55); }
.footer-socials .social-icon:hover { background: var(--accent); color: var(--navy); }

/* ── UTILITY ───────────────────────────────────────────────── */
.py-6  { padding-top: 90px !important; padding-bottom: 90px !important; }
.z-1   { z-index: 1; }

.fade-up {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 991px) {
    .about-badge    { right: 0; bottom: -18px; }
    .about-img-wrap { margin-bottom: 44px; }
    .contact-form-wrap { padding: 32px 24px; }
    .section-about,
    .section-services-overview,
    .section-testimonials,
    .service-detail { padding: 60px 0; }
}

@media (max-width: 767px) {
    .hero-headline          { font-size: 2.4rem; }
    .section-title          { font-size: 1.8rem; }
    .about-badge            { display: none; }
    .stat-num               { font-size: 2rem; }
    .service-card           { padding: 26px 22px; }
    .cta-block h2           { font-size: 2rem; }
    .section-cta            { padding: 70px 0; }
    .footer-top             { padding: 48px 0 32px; }
}

@media (max-width: 576px) {
    .nav-socials .btn-cta   { display: none; }
    .hero-headline          { font-size: 2rem; letter-spacing: -0.01em; }
    .contact-form-wrap      { padding: 24px 18px; }
}