/* ========================================
   GoodMind AI - Styles
   Minimalist Consulting Theme
   ======================================== */

:root {
    /* Core palette - warm beige tones */
    --black: #1c1917;
    --white: #faf8f5;
    --grey-50: #f5f3f0;
    --grey-100: #e7e5e1;
    --grey-200: #d6d3ce;
    --grey-300: #b5b2ad;
    --grey-400: #8c8984;
    --grey-500: #5c5955;
    --grey-600: #403d39;
    --grey-700: #2e2b28;
    --grey-800: #1f1d1a;
    --grey-900: #141311;
    
    /* Accent - mint green */
    --accent: #4ade80;
    --accent-light: #86efac;
    --accent-dark: #22c55e;
    --accent-subtle: rgba(74, 222, 128, 0.08);
    
    /* Typography */
    --font-display: 'Instrument Serif', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 10rem;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout */
    --max-width: 1200px;
    --nav-height: 72px;
}

/* ========================================
   Reset & Base
   ======================================== */

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

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

/* Full-page scroll - handled by JavaScript */
html.scroll-snap-enabled {
    overflow: hidden;
    height: 100vh;
}

html.scroll-snap-enabled body {
    height: 100vh;
    overflow: hidden;
}

html.scroll-snap-enabled .snap-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Ensure sections have proper centering */
html.scroll-snap-enabled .snap-section .section-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    padding-top: var(--nav-height);
    padding-bottom: var(--space-lg);
}

/* Hero already has flex alignment */
html.scroll-snap-enabled .hero.snap-section {
    justify-content: center;
}

/* Services section - compact layout for full-page scroll */
html.scroll-snap-enabled .services.snap-section .section-container {
    padding-top: calc(var(--nav-height) + var(--space-md));
    padding-bottom: var(--space-md);
}

/* Disable on mobile for better UX */
@media (max-width: 768px) {
    html.scroll-snap-enabled {
        overflow: visible;
        height: auto;
    }
    
    html.scroll-snap-enabled body {
        height: auto;
        overflow: visible;
    }
    
    html.scroll-snap-enabled .snap-section {
        min-height: auto;
    }
    
    html.scroll-snap-enabled .snap-section .section-container {
        min-height: auto;
        padding-top: var(--space-xl);
    }
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

em {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--accent-dark);
}

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

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.15;
}

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

/* ========================================
   Navigation
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--grey-200);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.logo-text {
    color: var(--black);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--grey-500);
    transition: color var(--transition-fast);
}

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

.nav-cta {
    padding: 0.625rem 1.25rem;
    background: var(--black);
    color: var(--white) !important;
    border-radius: 6px;
    transition: all var(--transition-base);
}

.nav-cta:hover {
    background: var(--grey-800);
    transform: translateY(-1px);
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--grey-400);
    margin-left: var(--space-md);
    padding: 0.375rem 0.5rem;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.lang-toggle:hover {
    background: var(--grey-50);
}

.lang-option {
    padding: 0.125rem 0.25rem;
    transition: color var(--transition-fast);
    cursor: pointer;
}

.lang-option.active {
    color: var(--black);
    font-weight: 600;
}

.lang-separator {
    color: var(--grey-300);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 20px;
    height: 2px;
    background: var(--black);
    transition: all var(--transition-base);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 999;
    padding: var(--space-xl);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

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

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.mobile-nav-links a {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--black);
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }
    .mobile-menu { display: block; }
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all var(--transition-base);
}

.btn-primary {
    background: var(--black);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--grey-800);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.btn-ghost {
    background: transparent;
    color: var(--black);
    border: 1px solid var(--grey-200);
}

.btn-ghost:hover {
    border-color: var(--black);
    background: var(--grey-50);
}

.btn-large {
    padding: var(--space-md) var(--space-xl);
    font-size: 1.1rem;
}

/* Primary button on dark background */
.contact .btn-primary {
    background: var(--accent);
    color: var(--black);
}

.contact .btn-primary:hover {
    background: var(--accent-light);
    box-shadow: 0 10px 30px rgba(74, 222, 128, 0.3);
}

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

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-height) + var(--space-xl)) var(--space-lg) var(--space-xl);
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Option: Subtle gradient glow */
.hero-background::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(
        ellipse at center,
        rgba(74, 222, 128, 0.04) 0%,
        transparent 70%
    );
    filter: blur(60px);
}

.hero-background::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 50%;
    height: 60%;
    background: radial-gradient(
        ellipse at center,
        rgba(74, 222, 128, 0.03) 0%,
        transparent 70%
    );
    filter: blur(80px);
}

/* Keeping grid-lines class in case you want to switch back */
.grid-lines {
    display: none;
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-2xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-dark);
    margin-bottom: var(--space-md);
}

.hero-title {
    margin-bottom: var(--space-lg);
    line-height: 1.1;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--grey-500);
    max-width: 520px;
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.principle-card {
    background: var(--white);
    border: 1px solid var(--grey-200);
    padding: var(--space-lg);
    position: relative;
}

.principle-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
}

.principle-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--grey-400);
    display: block;
    margin-bottom: var(--space-sm);
}

.principle-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--grey-600);
}

.principle-text strong {
    color: var(--black);
}

@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-principle {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .principle-card {
        text-align: left;
    }
}

/* ========================================
   Section Base
   ======================================== */

.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-lg);
}

.section-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-dark);
    margin-bottom: var(--space-sm);
}

.section-title {
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--grey-500);
    max-width: 550px;
    line-height: 1.7;
}

/* ========================================
   Approach Section
   ======================================== */

.approach {
    background: var(--grey-50);
}

.approach-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
}

.approach-lead {
    font-size: 1.125rem;
    color: var(--grey-600);
    line-height: 1.8;
}

.approach-values {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.value-item {
    display: flex;
    gap: var(--space-md);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--grey-200);
}

.value-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.value-number {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--grey-300);
    flex-shrink: 0;
    width: 2rem;
}

.value-content h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.value-content p {
    font-size: 0.9rem;
    color: var(--grey-500);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .approach-grid {
        grid-template-columns: 1fr;
    }
}

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

.process {
    background: var(--white);
}

.process-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
}

.process-header .section-subtitle {
    margin: 0 auto;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.process-step {
    position: relative;
}

.step-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--space-md);
}

.step-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.25rem;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

.step-line {
    position: absolute;
    top: 20px;
    left: calc(50% + 20px);
    right: calc(-50% + 20px);
    height: 1px;
    background: var(--grey-200);
}

.process-step:last-child .step-line {
    display: none;
}

.step-content {
    text-align: center;
}

.step-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.625rem;
    border-radius: 3px;
    margin-bottom: var(--space-sm);
}

.step-badge.required {
    background: var(--accent-subtle);
    color: var(--accent-dark);
}

.step-badge.optional {
    background: var(--grey-100);
    color: var(--grey-500);
}

.step-content h3 {
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.step-content > p {
    font-size: 0.9rem;
    color: var(--grey-500);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.step-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.step-details li {
    font-size: 0.8rem;
    color: var(--grey-400);
}

.step-details li::before {
    content: '—';
    margin-right: 0.5rem;
    color: var(--accent);
}

@media (max-width: 968px) {
    .process-timeline {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .step-line {
        display: none;
    }
    
    .step-marker {
        flex-direction: row;
        gap: var(--space-md);
    }
    
    .step-content {
        text-align: left;
    }
}

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

.services {
    background: var(--grey-900);
    color: var(--white);
}

.services .section-label {
    color: var(--accent);
}

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

.services .section-subtitle {
    color: var(--grey-400);
}

.services-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-lg);
}

.services-header .section-subtitle {
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.service-card {
    background: var(--grey-800);
    border: 1px solid var(--grey-700);
    padding: var(--space-md) var(--space-lg);
    transition: all var(--transition-slow);
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.service-icon {
    width: 36px;
    height: 36px;
    color: var(--accent);
    margin-bottom: var(--space-sm);
}

.service-card h3 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: var(--space-xs);
    color: var(--white);
}

.service-card > p {
    font-size: 0.85rem;
    color: var(--grey-400);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.service-tags li {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    background: var(--grey-700);
    color: var(--grey-300);
    border-radius: 3px;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Target Section
   ======================================== */

.target {
    background: var(--white);
    border-top: 1px solid var(--grey-100);
}

.target-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-2xl);
    align-items: start;
}

.target-content p {
    font-size: 1.1rem;
    color: var(--grey-500);
    line-height: 1.7;
}

.target-industries {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.industry-group h4 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--grey-400);
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid var(--grey-200);
}

.industry-group ul {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.industry-group li {
    font-size: 0.9rem;
    color: var(--grey-600);
}

@media (max-width: 968px) {
    .target-grid {
        grid-template-columns: 1fr;
    }
    
    .target-industries {
        grid-template-columns: 1fr;
    }
}

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

.contact {
    background: var(--black);
    color: var(--white);
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact .section-label {
    color: var(--accent);
}

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

.contact-description {
    font-size: 1.1rem;
    color: var(--grey-400);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.contact-email {
    display: inline-block;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    color: var(--white);
    position: relative;
    margin-bottom: var(--space-lg);
}

.contact-email::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-base);
}

.contact-email:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.contact-note {
    font-size: 0.85rem;
    color: var(--grey-500);
    margin-top: 0.75em;
}

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

.footer {
    background: var(--grey-900);
    color: var(--grey-400);
    padding: var(--space-xl) 0 var(--space-lg);
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.footer-brand {
    margin-bottom: var(--space-lg);
}

.footer-brand .logo {
    display: inline-block;
    margin-bottom: var(--space-xs);
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand p {
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--grey-800);
}

.footer-links a {
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

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

.footer-bottom p {
    font-size: 0.8rem;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-label,
.hero-title,
.hero-description,
.hero-actions,
.hero-principle {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-label { animation-delay: 0.1s; }
.hero-title { animation-delay: 0.2s; }
.hero-description { animation-delay: 0.3s; }
.hero-actions { animation-delay: 0.4s; }
.hero-principle { animation-delay: 0.5s; }

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Section Navigation Dots
   ======================================== */

.section-nav {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 100;
}

.section-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--grey-300);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.section-dot::before {
    content: attr(title);
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--grey-600);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.section-dot:hover::before {
    opacity: 1;
}

.section-dot:hover {
    background: var(--grey-400);
    transform: scale(1.2);
}

.section-dot.active {
    background: var(--accent);
    border-color: var(--accent-light);
    transform: scale(1.3);
}

/* Hide on mobile */
@media (max-width: 768px) {
    .section-nav {
        display: none;
    }
}

/* Dark section mode - applied via JS */
.section-nav.dark-mode .section-dot {
    background: var(--grey-500);
}

.section-nav.dark-mode .section-dot:hover {
    background: var(--grey-400);
}

.section-nav.dark-mode .section-dot::before {
    color: var(--grey-300);
}

.section-nav.dark-mode .section-dot.active {
    background: var(--accent);
}

/* ========================================
   Scroll Indicator (Hero)
   ======================================== */

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.6;
    animation: fadeInUp 0.8s ease 0.8s forwards;
    opacity: 0;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--grey-400), transparent);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background: var(--accent);
    animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {
    0% {
        transform: translateY(-15px);
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    100% {
        transform: translateY(50px);
        opacity: 0;
    }
}

/* Hide scroll indicator on mobile */
@media (max-width: 768px) {
    .scroll-indicator {
        display: none;
    }
}
