/* ================================================
   The Kinsey Company - Website Styles
   ================================================ */

/* CSS Variables - Brand Colors */
:root {
    --steel-blue: #5B8BA0;
    --copper: #C17F4E;
    --sage: #9EAB8C;
    --black: #231F20;
    --dark-gray: #3D3935;
    --medium-gray: #6B6560;
    --light-gray: #E8E4E0;
    --off-white: #F7F5F3;
    --white: #FFFFFF;
    
    /* Typography */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    
    /* Transitions */
    --transition: 0.3s ease;
    --transition-slow: 0.6s ease;
}

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

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

body {
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.7;
    color: var(--dark-gray);
    background-color: var(--off-white);
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
    color: var(--black);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-md);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

p {
    margin-bottom: 1.5rem;
}

p.lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--black);
}

a {
    color: var(--steel-blue);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--copper);
}

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-xl) 0;
}

.section-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--copper);
    margin-bottom: var(--space-md);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(247, 245, 243, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-sm) var(--space-md);
}

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

.logo-mark {
    height: 50px;
    width: auto;
}

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

.nav-links a {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--dark-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: var(--space-xs) 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--copper);
    transition: width var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

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

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

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

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--off-white);
    padding: var(--space-md);
    flex-direction: column;
    gap: var(--space-sm);
    z-index: 999;
    border-bottom: 1px solid var(--light-gray);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    font-size: 1.125rem;
    color: var(--dark-gray);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--light-gray);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    background: linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%);
    position: relative;
}

.hero-content {
    max-width: 900px;
}

.hero h1 {
    margin-bottom: var(--space-md);
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--medium-gray);
    font-weight: 300;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.scroll-indicator span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--medium-gray);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--copper), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* Approach Section */
.approach {
    background: var(--white);
}

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

.approach-text p {
    max-width: 600px;
}

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

.value {
    position: relative;
    padding-left: var(--space-lg);
}

.value-number {
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--font-serif);
    font-size: 0.875rem;
    color: var(--copper);
}

.value h3 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xs);
}

.value p {
    font-size: 0.9375rem;
    color: var(--medium-gray);
    margin-bottom: 0;
}

/* Projects Section */
.projects {
    background: var(--off-white);
}

.projects h2 {
    margin-bottom: var(--space-lg);
}

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

.project-card {
    display: block;
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    color: inherit;
}

.project-image {
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-placeholder {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.project-info {
    padding: var(--space-md);
}

.project-type {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--copper);
    margin-bottom: var(--space-xs);
    display: block;
}

.project-info h3 {
    margin-bottom: var(--space-xs);
    transition: color var(--transition);
}

.project-card:hover .project-info h3 {
    color: var(--steel-blue);
}

.project-info p {
    font-size: 0.9375rem;
    color: var(--medium-gray);
    margin-bottom: var(--space-sm);
}

.project-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--steel-blue);
}

/* About Section */
.about {
    background: var(--white);
}

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

.about-image {
    position: relative;
}

.image-placeholder {
    aspect-ratio: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: var(--medium-gray);
    font-size: 0.875rem;
}

.about-content .lead {
    margin-bottom: var(--space-md);
}

.credentials {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--light-gray);
}

.credentials h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--medium-gray);
    margin-bottom: var(--space-sm);
}

.credentials ul {
    list-style: none;
}

.credentials li {
    font-size: 0.9375rem;
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--light-gray);
}

.credentials li:last-child {
    border-bottom: none;
}

/* Contact Section */
.contact {
    background: var(--black);
    color: var(--white);
}

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

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

.contact p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.contact-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.5);
}

.contact-item a,
.contact-item span {
    font-size: 1.125rem;
    color: var(--white);
}

.contact-item a:hover {
    color: var(--copper);
}

/* Footer */
.footer {
    background: var(--dark-gray);
    padding: var(--space-lg) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--space-md);
}

.footer-logo {
    height: 60px;
    width: auto;
    opacity: 0.8;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
}

.footer-nav a {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

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

.footer-legal p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .approach-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .about-image {
        order: -1;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-md);
    }
    
    .footer-nav {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    :root {
        --space-xl: 5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        min-height: 90vh;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}

/* Utility Classes */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
