/* style.css - global styles for NGM BUSINESS ACCOUNTANTS */

/* ---------- VARIABLES ---------- */
:root {
    --navy: #0A2342;       /* deep navy */
    --white: #FFFFFF;
    --gold: #C5A028;        /* muted gold */
    --gold-light: #E0C15C;
    --gold-dark: #A68B1E;
    --gray-light: #F5F7FA;
    --gray: #4A5568;
    --gray-dark: #2D3748;
    --shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 40px -10px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

/* ---------- RESET & BASE ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--gray-dark);
    line-height: 1.7;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 100%);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- CONTAINER ---------- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--navy);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.section-title {
    position: relative;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
    border-radius: 2px;
}
.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}
.section-subtitle {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    color: var(--navy);
    font-weight: 600;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}
.btn:hover::before {
    left: 100%;
}
.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--navy);
    border-color: var(--gold);
    box-shadow: 0 8px 25px rgba(197, 160, 40, 0.3);
}
.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(197, 160, 40, 0.4);
}
.btn-outline {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
    backdrop-filter: blur(10px);
    background: var(--glass-bg);
    border-color: var(--glass-border);
}
.btn-outline:hover {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}
.btn-large {
    padding: 1.2rem 3.5rem;
    font-size: 1.2rem;
    font-weight: 700;
}

/* ---------- HEADER & NAV (sticky) ---------- */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.5px;
    text-decoration: none;
    background: linear-gradient(135deg, var(--navy) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links a {
    text-decoration: none;
    color: var(--navy);
    font-weight: 600;
    padding: 0.5rem 0;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
    transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--navy);
    transform: translateY(-2px);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
}
.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--navy);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}
.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* ---------- FOOTER ---------- */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.8);
    padding: 3rem 0 0;
    margin-top: 3rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}
.site-footer h4 {
    color: var(--white);
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
}
.site-footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}
.site-footer a:hover {
    color: var(--gold);
}
.site-footer ul {
    list-style: none;
}
.site-footer li {
    margin-bottom: 0.5rem;
}
.social-links {
    display: flex;
    gap: 1.2rem;
    font-size: 1.4rem;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}

/* ---------- WHATSAPP FLOAT ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    transition: var(--transition);
    z-index: 99;
}
.whatsapp-float:hover {
    background: #20B859;
    transform: scale(1.1);
}

/* ---------- HOME PAGE SPECIFIC ---------- */
.hero {
    background: linear-gradient(135deg, rgba(10, 35, 66, 0.9) 0%, rgba(10, 35, 66, 0.7) 100%),
                url('https://images.unsplash.com/photo-1554224155-6726b3ff858f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    padding: 8rem 0 6rem;
    position: relative;
    color: var(--white);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(197, 160, 40, 0.1) 0%, transparent 100%);
    pointer-events: none;
}
.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
    text-align: center;
}
.hero h1 {
    margin-bottom: 2rem;
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 900;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, var(--white) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subhead {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    font-weight: 400;
    line-height: 1.6;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}
.service-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 3rem 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.service-card:hover::before {
    transform: scaleX(1);
}
.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}
.service-card:hover .service-icon {
    transform: scale(1.1);
    color: var(--gold-light);
}
.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}
.service-card p {
    margin-bottom: 2rem;
    color: var(--gray);
    line-height: 1.7;
}
.card-link {
    color: var(--navy);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    position: relative;
}
.card-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}
.card-link:hover::after {
    width: 100%;
}
.card-link:hover {
    color: var(--gold);
    transform: translateX(5px);
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}
.animate-on-scroll.slide-in-left {
    transform: translateX(-50px);
}
.animate-on-scroll.slide-in-left.animate {
    transform: translateX(0);
}
.animate-on-scroll.slide-in-right {
    transform: translateX(50px);
}
.animate-on-scroll.slide-in-right.animate {
    transform: translateX(0);
}
.animate-on-scroll.fade-in-up {
    transform: translateY(30px);
}
.animate-on-scroll.fade-in-up.animate {
    transform: translateY(0);
}

.bg-light {
    background: linear-gradient(135deg, var(--gray-light) 0%, rgba(245, 247, 250, 0.8) 100%);
    padding: 4rem 0;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 4rem;
    align-items: start;
}
.check-list {
    list-style: none;
}
.check-list li {
    margin-bottom: 0.8rem;
}
.gold-icon {
    color: var(--gold);
    margin-right: 0.6rem;
    width: 1.5rem;
}
.certification-bar {
    background: linear-gradient(135deg, var(--navy) 0%, #0d1b2a 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.certification-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(197, 160, 40, 0.1) 0%, transparent 100%);
    pointer-events: none;
}
.certification-bar i {
    font-size: 2.5rem;
    margin-right: 1rem;
    color: var(--gold);
    vertical-align: middle;
    animation: pulse 2s infinite;
}
.certification-bar p {
    display: inline-block;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}
.cta-section {
    text-align: center;
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 100%);
    position: relative;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23C5A028" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="%23C5A028" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}
.cta-section > * {
    position: relative;
    z-index: 1;
}
.lead {
    font-size: 1.5rem;
    margin: 2rem 0;
    color: var(--gray);
    font-weight: 400;
}

/* ---------- ABOUT / SERVICES / CONTACT SHARED ---------- */
.page-header {
    background: linear-gradient(135deg, var(--navy) 0%, #0d1b2a 100%);
    color: white;
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(197, 160, 40, 0.1) 0%, transparent 100%);
    pointer-events: none;
}
.page-header h1 {
    color: white;
    margin-bottom: 1rem;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}
.page-header p {
    color: rgba(255,255,255,0.9);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.service-detail-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 6px solid var(--gold);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out 0.2s forwards;
}
.service-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
}
.service-detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.service-icon-large {
    font-size: 2.8rem;
    color: var(--gold);
}
.service-list {
    list-style: none;
    columns: 1;
}
.service-list li {
    margin-bottom: 0.6rem;
    font-size: 1.1rem;
}

/* ---------- CONTACT FORM ---------- */
.contact-form .form-group {
    margin-bottom: 1.5rem;
}
.contact-form label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
    color: var(--navy);
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-family: inherit;
    transition: var(--transition);
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(197,160,40,0.2);
}
.contact-details p {
    margin-bottom: 1rem;
}
.map-placeholder {
    background: #e2e8f0;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
    border: 2px dashed var(--navy);
}

/* ---------- RESPONSIVE (mobile / tablet) ---------- */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    .nav-links {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    .nav-links li:last-child {
        border-bottom: none;
    }
    .nav-links a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
    }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero { padding: 4rem 0 3rem; }
    .grid-2, .grid-3 { gap: 2rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .whatsapp-float { width: 60px; height: 60px; font-size: 2.2rem; bottom: 20px; right: 20px; }
    .certification-bar p { font-size: 1.1rem; }
    .certification-bar i { font-size: 1.8rem; }
    .service-detail-card { padding: 2rem; }
}

@media (max-width: 480px) {
    .nav-links { flex-direction: column; align-items: center; gap: 0.5rem; }
    .service-detail-header { flex-direction: column; text-align: center; }
}
