/* ============================================
   Cariello Consulting - Styles
   ============================================ */

:root {
    --navy-900: #0a1628;
    --navy-800: #0f2140;
    --navy-700: #152d54;
    --navy-600: #1b3a6b;
    --slate-700: #374151;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --gold-500: #d4a843;
    --gold-400: #e0ba5a;
    --gold-300: #ebd07e;
    --white: #ffffff;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --shadow-sm: 0 1px 3px rgba(10, 22, 40, 0.06);
    --shadow-md: 0 4px 16px rgba(10, 22, 40, 0.08);
    --shadow-lg: 0 12px 40px rgba(10, 22, 40, 0.12);
    --shadow-xl: 0 20px 60px rgba(10, 22, 40, 0.15);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-sans);
    color: var(--slate-700);
    line-height: 1.7;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3 {
    font-family: var(--font-display);
    color: var(--navy-900);
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
}

h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

.text-accent {
    color: var(--gold-500);
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gold-500);
    color: var(--navy-900);
    border-color: var(--gold-500);
}

.btn-primary:hover {
    background: var(--gold-400);
    border-color: var(--gold-400);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 168, 67, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--white);
    color: var(--navy-900);
    border-color: var(--white);
    font-weight: 600;
}

.btn-white:hover {
    background: var(--slate-50);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ============================================
   Navbar
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gold-500);
    color: var(--navy-900);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--white);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition);
    letter-spacing: 0.01em;
}

.nav-links a:hover {
    color: var(--white);
}

.nav-cta {
    background: var(--gold-500);
    color: var(--navy-900) !important;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-weight: 600 !important;
    transition: all var(--transition) !important;
}

.nav-cta:hover {
    background: var(--gold-400) !important;
    transform: translateY(-1px);
}

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

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Hero
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 50%, var(--navy-700) 100%);
    padding: 180px 0 120px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(212, 168, 67, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(212, 168, 67, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-tagline {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold-500);
    margin-bottom: 20px;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--slate-400);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 44px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ============================================
   Section Shared Styles
   ============================================ */

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold-500);
    margin-bottom: 12px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--slate-500);
    line-height: 1.8;
}

/* ============================================
   About
   ============================================ */

.about {
    padding: 120px 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--slate-700);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.stat {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    text-align: center;
    transition: all var(--transition);
}

.stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold-500);
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 4px;
}

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

/* ============================================
   Why Us
   ============================================ */

.why-us {
    padding: 120px 0;
    background: var(--slate-50);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.why-us-card {
    padding: 40px 32px;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.why-us-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.why-us-number {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--gold-500);
    opacity: 0.4;
    margin-bottom: 16px;
    line-height: 1;
}

.why-us-card h3 {
    margin-bottom: 12px;
    font-size: 1.15rem;
}

.why-us-card p {
    font-size: 0.95rem;
    color: var(--slate-500);
    line-height: 1.7;
}

/* ============================================
   Services
   ============================================ */

.services {
    padding: 120px 0;
    background: var(--slate-50);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 44px 36px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold-500);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
    border-radius: 12px;
    color: var(--gold-500);
    margin-bottom: 24px;
}

.service-card h3 {
    margin-bottom: 16px;
    font-size: 1.35rem;
}

.service-card > p {
    color: var(--slate-500);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.7;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-list li {
    font-size: 0.9rem;
    color: var(--slate-700);
    padding-left: 20px;
    position: relative;
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--gold-500);
    border-radius: 50%;
}

/* ============================================
   Process
   ============================================ */

.process {
    padding: 120px 0;
    background: var(--white);
}

.process-grid {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.process-grid::before {
    content: '';
    position: absolute;
    left: 36px;
    top: 36px;
    bottom: 36px;
    width: 2px;
    background: var(--slate-200);
}

.process-step {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    padding: 28px 0;
    position: relative;
}

.process-step-number {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-900);
    color: var(--gold-500);
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

.process-step-content {
    padding-top: 14px;
}

.process-step-content h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

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

/* ============================================
   Industries
   ============================================ */

.industries {
    padding: 120px 0;
    background: var(--slate-50);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.industry-card {
    padding: 36px 28px;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.industry-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold-500);
}

.industry-card svg {
    color: var(--gold-500);
    margin-bottom: 16px;
}

.industry-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.industry-card p {
    font-size: 0.9rem;
    color: var(--slate-500);
    line-height: 1.7;
}

/* ============================================
   Subsidiary Banner
   ============================================ */

.subsidiary {
    background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
    padding: 72px 0;
    position: relative;
    overflow: hidden;
}

.subsidiary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(212, 168, 67, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.subsidiary-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
}

.subsidiary-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold-500);
    margin-bottom: 8px;
}

.subsidiary h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.subsidiary p {
    color: var(--slate-400);
    font-size: 1rem;
}

/* ============================================
   Contact
   ============================================ */

.contact {
    padding: 120px 0;
    background: var(--slate-50);
}

.contact-cta-block {
    text-align: center;
    margin-bottom: 48px;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.05rem;
    font-weight: 600;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px 24px;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition);
    cursor: default;
}

a.contact-card {
    cursor: pointer;
}

a.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold-500);
}

.contact-card svg {
    color: var(--gold-500);
}

.contact-card-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate-500);
}

.contact-card-value {
    font-size: 0.95rem;
    color: var(--navy-900);
    font-weight: 500;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--navy-900);
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand .logo-mark {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
}

.footer-brand .logo-text {
    font-size: 1rem;
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--slate-500);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--slate-400);
    transition: color var(--transition);
}

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

/* ============================================
   Animations
   ============================================ */

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.why-us-card.fade-in:nth-child(2) { transition-delay: 0.1s; }
.why-us-card.fade-in:nth-child(3) { transition-delay: 0.2s; }
.service-card.fade-in:nth-child(2) { transition-delay: 0.1s; }
.service-card.fade-in:nth-child(3) { transition-delay: 0.2s; }
.process-step.fade-in:nth-child(2) { transition-delay: 0.1s; }
.process-step.fade-in:nth-child(3) { transition-delay: 0.2s; }
.process-step.fade-in:nth-child(4) { transition-delay: 0.3s; }
.process-step.fade-in:nth-child(5) { transition-delay: 0.4s; }
.industry-card.fade-in:nth-child(2) { transition-delay: 0.05s; }
.industry-card.fade-in:nth-child(3) { transition-delay: 0.1s; }
.industry-card.fade-in:nth-child(4) { transition-delay: 0.15s; }
.industry-card.fade-in:nth-child(5) { transition-delay: 0.2s; }
.industry-card.fade-in:nth-child(6) { transition-delay: 0.25s; }
.contact-card.fade-in:nth-child(2) { transition-delay: 0.1s; }

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .services-grid,
    .why-us-grid,
    .industries-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--navy-900);
        flex-direction: column;
        padding: 100px 40px 40px;
        gap: 24px;
        transition: right var(--transition);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1rem;
    }

    .nav-cta {
        text-align: center;
        width: 100%;
        justify-content: center;
    }

    .hero {
        padding: 140px 0 80px;
    }

    .services-grid,
    .why-us-grid,
    .industries-grid,
    .contact-cards {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    .process-grid::before {
        left: 28px;
    }

    .process-step-number {
        width: 56px;
        height: 56px;
        font-size: 1rem;
    }

    .process-step {
        gap: 24px;
    }

    .subsidiary-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .about-stats {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 12px 24px;
        width: 100%;
        justify-content: center;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
}
