/* ========================================
   NURMI CPA - Modern Marketing Website
   Color Palette: Midnight Blue + Mint
======================================== */

:root {
    --midnight: #0F172A;
    --midnight-light: #1E293B;
    --midnight-dark: #020617;
    --mint: #38BDF8;
    --mint-light: #7DD3FC;
    --mint-dark: #0284C7;
    --mint-pale: #E0F2FE;
    --white: #FFFFFF;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    
    --font-heading: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -1px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========================================
   TYPOGRAPHY
======================================== */

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
    color: var(--midnight);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

.text-gradient {
    background: linear-gradient(135deg, var(--mint) 0%, var(--mint-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   BUTTONS
======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary {
    background: var(--mint);
    color: var(--midnight);
    border-color: var(--mint);
}

.btn-primary:hover {
    background: var(--mint-light);
    border-color: var(--mint-light);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--midnight);
}

.btn-outline {
    background: transparent;
    color: var(--midnight);
    border-color: var(--midnight);
}

.btn-outline:hover {
    background: var(--midnight);
    color: var(--white);
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.btn-full {
    width: 100%;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ========================================
   HEADER / NAVIGATION
======================================== */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--midnight);
}

.logo-mark {
    width: 40px;
    height: 40px;
    background: var(--midnight);
    color: var(--mint);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.logo .accent {
    color: var(--mint-dark);
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav a {
    font-weight: 500;
    color: var(--gray-600);
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--midnight);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--midnight);
    transition: all 0.3s ease;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: var(--midnight);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
}

.mobile-menu-overlay nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
}

.mobile-link:hover {
    color: var(--mint);
}

/* ========================================
   HERO SECTION
======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--midnight);
    overflow: hidden;
    padding-top: 80px;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--mint);
    top: -200px;
    right: -100px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--mint-dark);
    bottom: -100px;
    left: -100px;
}

.blob-3 {
    width: 200px;
    height: 200px;
    background: var(--mint-light);
    top: 50%;
    left: 40%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(56, 189, 248, 0.15);
    color: var(--mint);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.hero-title {
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-title .highlight {
    color: var(--mint);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-300);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
}

.hero-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-card img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.hero-card-accent {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.3) 0%, transparent 60%);
}

.stat-card {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: var(--white);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--mint-dark);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* ========================================
   SECTION COMMONS
======================================== */

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--mint-dark);
    margin-bottom: 1rem;
}

.section-title {
    margin-bottom: 1rem;
}

/* ========================================
   SERVICES SECTION
======================================== */

.services {
    padding: 8rem 0;
    background: var(--gray-50);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--mint) 0%, var(--mint-dark) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-100);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--mint);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--mint-pale);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mint-dark);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========================================
   ABOUT SECTION
======================================== */

.about {
    padding: 8rem 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: 700px;
    object-fit: cover;
}

.image-pattern {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(56, 189, 248, 0.05) 20px,
        rgba(56, 189, 248, 0.05) 40px
    );
}

.about-float-card {
    position: absolute;
    bottom: 2rem;
    right: -1rem;
    background: var(--midnight);
    color: var(--white);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-xl);
}

.about-float-card .float-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--mint);
}

.about-float-card .float-text {
    font-size: 0.875rem;
    line-height: 1.4;
}

.about-content .section-tag {
    margin-bottom: 1rem;
}

.about-content .section-title {
    margin-bottom: 1.5rem;
}

.about-text {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-item .stat-label {
    font-size: 0.875rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-item .stat-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--midnight);
}

/* ========================================
   PROCESS SECTION
======================================== */

.process {
    padding: 8rem 0;
    background: var(--midnight);
    position: relative;
    overflow: hidden;
}

.process::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: var(--mint);
    border-radius: 50%;
    opacity: 0.05;
    filter: blur(100px);
}

.process .section-tag {
    color: var(--mint);
}

.process .section-title {
    color: var(--white);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 16.66%;
    right: 16.66%;
    height: 2px;
    background: linear-gradient(90deg, var(--mint) 0%, var(--mint-dark) 100%);
    opacity: 0.3;
}

.process-step {
    position: relative;
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--midnight-light);
    border: 2px solid var(--mint);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--mint);
    position: relative;
    z-index: 1;
}

.step-content h3 {
    color: var(--white);
    margin-bottom: 0.75rem;
}

.step-content p {
    color: var(--gray-400);
    font-size: 0.95rem;
    line-height: 1.7;
}

.step-content a {
    color: var(--mint);
}

.step-content a:hover {
    text-decoration: underline;
}

/* ========================================
   CTA SECTION
======================================== */

.cta-section {
    padding: 6rem 0;
    background: var(--mint-pale);
}

.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap;
}

.cta-content {
    flex: 1;
    min-width: 280px;
}

.cta-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--gray-600);
    font-size: 1.125rem;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ========================================
   CONTACT SECTION
======================================== */

.contact {
    padding: 8rem 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info .section-tag {
    margin-bottom: 1rem;
}

.contact-info .section-title {
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

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

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--mint-pale);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mint-dark);
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.contact-value {
    display: block;
    color: var(--midnight);
    font-weight: 500;
    line-height: 1.6;
}

.contact-link {
    color: var(--mint-dark);
    font-weight: 600;
}

.contact-link:hover {
    color: var(--midnight);
}

.map-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.contact-form-wrapper {
    background: var(--gray-50);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--midnight);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--gray-800);
    background: var(--white);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--mint);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

.form-success {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #dcfce7;
    color: #166534;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.form-success.show {
    display: flex;
}

.form-success svg {
    flex-shrink: 0;
}

/* ========================================
   FOOTER
======================================== */

.footer {
    background: var(--midnight-dark);
    color: var(--gray-300);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--gray-400);
    font-size: 0.95rem;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--mint);
}

.footer-contact p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.footer-contact a {
    color: var(--mint);
}

.footer-contact a:hover {
    color: var(--mint-light);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--midnight-light);
}

.footer-bottom p {
    text-align: center;
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* ========================================
   ANIMATIONS
======================================== */

.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 1024px) {
    .hero-grid {
        gap: 3rem;
    }
    
    .about-grid {
        gap: 3rem;
    }
    
    .contact-grid {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .hero-card img {
        height: 400px;
    }
    
    .stat-card {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .image-wrapper img {
        height: 400px;
    }
    
    .process-timeline {
        grid-template-columns: 1fr;
    }
    
    .process-timeline::before {
        display: none;
    }
    
    .process-step {
        text-align: left;
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }
    
    .step-number {
        margin: 0;
        flex-shrink: 0;
    }
    
    .cta-box {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-actions {
        justify-content: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .about-float-card {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 1rem;
    }
}
