/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors */
    --deep-navy: #0a0f14;
    --midnight-blue: #121B35;
    --copper: #a37646;
    --copper-dark: #93633b;
    --copper-light: #d7b389;
    --text-light: #e9ecf1;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--deep-navy);
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Grid System */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(10, 15, 20, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(163, 118, 70, 0.2);
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

/* Logo */
.celmaris-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.celmaris-mark {
    width: 40px;
    height: 40px;
    flex: none;
}

.celmaris-word {
    line-height: 1;
    display: none;
}

@media (min-width: 640px) {
    .celmaris-word {
        display: block;
    }
}

.celmaris-word .brand {
    display: block;
    font-family: "Playfair Display", serif;
    font-weight: 700;
    letter-spacing: 0.06em;
    font-size: 20px;
    color: var(--text-light);
}

.celmaris-word .sub {
    display: block;
    font-family: Inter, system-ui, sans-serif;
    font-weight: 600;
    letter-spacing: 0.30em;
    font-size: 11px;
    color: var(--copper-light);
    margin-top: 2px;
}

/* Navigation */
.nav {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .nav {
        display: flex;
    }
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--copper);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--copper);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid;
    cursor: pointer;
}

.btn-solid {
    background-color: var(--copper);
    color: var(--deep-navy);
    border-color: var(--copper);
}

.btn-solid:hover {
    background-color: var(--copper-dark);
    border-color: var(--copper-dark);
    transform: translateY(-1px);
}

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

.btn-outline:hover {
    background-color: var(--copper);
    color: var(--deep-navy);
    transform: translateY(-1px);
}

.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--deep-navy) 0%, var(--midnight-blue) 100%);
    padding: 2rem 1rem;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 10;
    position: relative;
}

.hero-kicker {
    color: var(--copper);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    margin-bottom: 1rem;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(233, 236, 241, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* Features Strip */
.features-strip {
    padding: 4rem 0;
    background-color: rgba(18, 27, 53, 0.3);
}

/* Main Content */
.main-content {
    padding-top: 70px;
    min-height: calc(100vh - 140px);
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 4rem 1rem 2rem;
}

.page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    color: var(--text-light);
}

.page-subtitle {
    font-size: 1.125rem;
    color: rgba(233, 236, 241, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* Content Sections */
.content-section {
    padding: 2rem 1rem 4rem;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.lead-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(233, 236, 241, 0.9);
}

.section-title {
    font-size: 1.5rem;
    color: var(--copper);
    margin-bottom: 2rem;
}

/* Cards */
.card {
    background-color: rgba(18, 27, 53, 0.5);
    border-radius: 1rem;
    border-top: 2px solid var(--copper);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(163, 118, 70, 0.15);
}

.card-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(163, 118, 70, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--copper);
}

.card-title {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.card-text {
    color: rgba(233, 236, 241, 0.8);
    font-size: 0.875rem;
}

/* Feature Cards */
.feature-card {
    display: block;
    background-color: rgba(18, 27, 53, 0.5);
    border-radius: 1rem;
    border-top: 2px solid var(--copper);
    padding: 2rem;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: inherit;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(163, 118, 70, 0.15);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(163, 118, 70, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--copper);
}

.feature-title {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    text-align: center;
}

.feature-text {
    color: rgba(233, 236, 241, 0.8);
    font-size: 0.875rem;
    text-align: center;
}

/* Badges */
.badges-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.badge {
    background-color: rgba(163, 118, 70, 0.2);
    color: var(--copper);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    border: 1px solid rgba(163, 118, 70, 0.3);
    font-size: 0.875rem;
}

.note {
    font-size: 0.875rem;
    color: rgba(233, 236, 241, 0.6);
    font-style: italic;
}

/* Project Cards */
.project-card {
    background-color: rgba(18, 27, 53, 0.5);
    border-radius: 1rem;
    border: 1px solid rgba(163, 118, 70, 0.2);
    padding: 2rem;
}

.project-title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.project-stage {
    font-size: 0.875rem;
    color: var(--copper);
    margin-bottom: 0.25rem;
}

.project-commodity {
    font-size: 0.875rem;
    color: rgba(233, 236, 241, 0.7);
    margin-bottom: 1.5rem;
}

/* Approach Page */
.principles-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.principle-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.principle-bullet {
    width: 8px;
    height: 8px;
    background-color: var(--copper);
    border-radius: 50%;
    flex-shrink: 0;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.timeline-number {
    width: 32px;
    height: 32px;
    background-color: rgba(163, 118, 70, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--copper);
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
}

.timeline-text {
    color: var(--text-light);
}

.timeline-arrow {
    color: rgba(163, 118, 70, 0.5);
    font-size: 1.25rem;
}

/* Vision Page */
.vision-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.quote-block {
    border-left: 4px solid var(--copper);
    padding-left: 2rem;
    margin-bottom: 3rem;
}

.main-quote {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.pull-quote {
    margin-top: 2rem;
}

.pull-quote-text {
    font-size: 1.125rem;
    color: var(--copper);
    font-weight: 500;
    font-style: italic;
}

/* Contact Page */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    text-align: left;
}

.contact-label {
    font-size: 0.875rem;
    color: rgba(233, 236, 241, 0.6);
    margin-bottom: 0.25rem;
}

.contact-value {
    color: var(--copper);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value:hover {
    color: var(--copper-light);
}

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

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

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

.form-input,
.form-textarea {
    background-color: rgba(18, 27, 53, 0.5);
    border: 1px solid rgba(163, 118, 70, 0.3);
    color: var(--text-light);
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-family: var(--font-body);
    transition: border-color 0.3s ease;
}

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

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Error Page */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.error-content {
    text-align: center;
    max-width: 500px;
}

.error-title {
    font-size: 6rem;
    font-weight: 700;
    color: var(--copper);
    margin-bottom: 1rem;
}

.error-subtitle {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.error-text {
    font-size: 1.125rem;
    color: rgba(233, 236, 241, 0.8);
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    padding: 22px;
    text-align: center;
    color: rgba(233, 236, 241, 0.6);
    border-top: 1px solid rgba(163, 118, 70, 0.18);
    background: rgba(10, 15, 20, 0.6);
}

.footer .dot { 
    margin: 0 8px; 
}

.footer .legal {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.5;
    color: #bfc6d1;
}

@media (max-width: 640px) {
    .footer .legal { 
        padding: 0 16px; 
        display: block; 
    }
}

/* Mobile Menu */
@media (max-width: 1023px) {
    .nav-link {
        display: none;
    }
    
    .nav .btn {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Responsive Design */
@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
    
    .hero {
        padding: 4rem 2rem;
    }
    
    .timeline {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .timeline-item:last-child .timeline-arrow {
        display: none;
    }
}

@media (min-width: 1024px) {
    .header-container {
        padding: 0 2rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus states */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--copper);
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--deep-navy);
}

::-webkit-scrollbar-thumb {
    background: var(--copper);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--copper-dark);
}