/* style.css */

/* --- GENERAL UTILITIES --- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--edge-spacing); }
.content-squeeze { padding: 0 5%; }
@media (max-width: 1024px) { .content-squeeze { padding: 0 1rem; } }

.text-section { font-size: clamp(2rem, 4vw, 3rem); color: var(--c-charcoal); }
.text-body { font-size: clamp(1rem, 1.2vw, 1.1rem); color: var(--c-graphite); line-height: 1.7; }
.big-num { font-family: var(--f-sans); font-size: 3rem; font-weight: 300; color: var(--c-accent); display: inline-block; margin-bottom: 1rem; }

.divider-top {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 4rem;
}

.label-small { text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; color: var(--c-charcoal); }
.mb-3 { margin-bottom: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.text-white { color: #fff; }
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }
.max-w-600 { max-width: 600px; }
.max-w-500 { max-width: 500px; }
.font-1-5 { font-size: 1.5rem; }
.font-1 { font-size: 1rem; }
.font-09 { font-size: 0.9rem; }
.text-center { text-align: center; }

/* --- PROBLEM SECTION --- */
.section-problem { padding: 8rem 0; background: var(--c-bone); }
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 3rem; }
.problem-col h3 { font-size: 1.25rem; margin-bottom: 1.5rem; color: var(--c-charcoal); }
.problem-list li { position: relative; padding-left: 1.5rem; margin-bottom: 1rem; color: var(--c-graphite); }
.problem-list li::before { content: "✕"; position: absolute; left: 0; top: 0; color: var(--c-error); font-weight: 700; font-size: 0.8rem; }
.problem-summary {
    grid-column: span 2;
    margin-top: 3rem; padding: 2rem; background: #fff;
    border-left: 4px solid var(--c-accent); font-family: var(--f-serif);
    font-size: 1.25rem; color: var(--c-charcoal);
}
@media (max-width: 768px) {
    .problem-grid { grid-template-columns: 1fr; gap: 2rem; }
    .problem-summary { grid-column: span 1; }
}

/* --- SYSTEM SECTION --- */
.section-system { padding: 0 0 8rem; }
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; margin-bottom: 4rem; }
.pillar-card h4 { margin-bottom: 1rem; font-size: 1.5rem; }
.pillar-card ul { margin-top: 1rem; }
.pillar-card li { font-size: 0.9rem; color: var(--c-graphite); margin-bottom: 0.5rem; padding-left: 1rem; border-left: 2px solid var(--c-line); }

.stats-banner { background: var(--c-charcoal); color: #fff; padding: 3rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.stat-item h5 { font-family: var(--f-sans); font-size: 2.5rem; color: var(--c-accent); margin-bottom: 0.5rem; }
.stat-item p { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.8; }
@media (max-width: 768px) { .pillars-grid, .stats-banner { grid-template-columns: 1fr; } }


/* --- NEW RESULTS SECTION (Refactored) --- */
.section-results {
    background-color: var(--c-charcoal);
    padding: 8rem 0;
    color: #fff;
    position: relative;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.results-header-content h2 {
    font-family: var(--f-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    color: #fff;
    margin-bottom: 15px;
    font-weight: 400;
}

.results-header-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    max-width: 500px;
    font-family: var(--f-sans);
}

/* See More Button */
.see-more-btn {
    background-color: transparent;
    color: #fff;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.see-more-btn:hover {
    background-color: #fff;
    color: var(--c-charcoal);
    transform: translateY(-2px);
    border-color: #fff;
}

.see-more-btn svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
}

/* Grid Layout */
.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Project Card Styling */
.project-card {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; 
    border-radius: 30px;
    overflow: hidden;
    isolation: isolate;
    background-color: #222;
}

.image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 0;
    transition: transform 0.6s var(--ease-out);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Gradient Overlay */
.project-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 10%, rgba(0,0,0,0.4) 50%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.project-card:hover .image-wrapper {
    transform: scale(1.06);
}

/* Inner Text Content */
.card-inner-text {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    z-index: 2;
    pointer-events: none;
}

.card-inner-text h5 {
    font-family: var(--f-serif);
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 0.3rem;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.card-inner-text span {
    font-family: var(--f-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--c-accent);
    font-weight: 600;
}

/* Floating Corner Button */
.card-btn {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 70px;
    height: 70px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
    border: 8px solid var(--c-charcoal);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.card-btn svg {
    width: 22px;
    height: 22px;
    stroke: var(--c-charcoal);
    transition: stroke 0.3s ease;
}

/* Hover State for Button */
.project-card:hover .card-btn {
    background-color: var(--c-accent);
    transform: scale(1.05);
}

.project-card:hover .card-btn svg {
    stroke: #fff;
}

@media (max-width: 900px) {
    .work-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .results-header { flex-direction: column; align-items: flex-start; gap: 20px; }
    .work-grid { grid-template-columns: 1fr; }
    .card-inner-text h5 { font-size: 1.25rem; }
}


/* --- FOUNDER SECTION --- */
.section-founder { padding: 8rem 0; background: #fff; border-bottom: 1px solid var(--c-line); }
.founder-layout { display: grid; grid-template-columns: 300px 1fr; gap: 4rem; align-items: center; }
.founder-img { height: 350px; width: 100%; filter: grayscale(100%); }
.founder-text h3 { font-size: 2rem; margin-bottom: 1.5rem; }
.founder-quote { font-size: 1.2rem; font-family: var(--f-serif); font-style: italic; color: var(--c-charcoal); border-left: 3px solid var(--c-accent); padding-left: 1.5rem; margin: 1.5rem 0; }
.founder-label { color: var(--c-charcoal); }

@media (max-width: 768px) {
    .founder-layout { grid-template-columns: 1fr; }
    .founder-img { height: 300px; }
}

/* --- FAQ SECTION --- */
.section-faq { padding: 6rem 0; background: var(--c-bone); }
.faq-grid { max-width: 800px; margin: 0 auto; }
details { margin-bottom: 1rem; border-bottom: 1px solid var(--c-line); padding-bottom: 1rem; }
summary { font-size: 1.2rem; font-family: var(--f-serif); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::after { content: "+"; font-size: 1.5rem; font-weight: 300; }
details[open] summary::after { content: "-"; }
details p { margin-top: 1rem; font-size: 0.95rem; color: var(--c-graphite); line-height: 1.6; }

/* --- FOOTER --- */
.footer-split { display: flex; min-height: 70vh; }
.footer-col { flex: 1; position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 4rem var(--edge-spacing); color: #fff; overflow: hidden; border-right: 1px solid rgba(255, 255, 255, 0.2); }
.footer-col-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; transition: transform 0.7s; }
.footer-col:hover .footer-col-bg { transform: scale(1.05); }
.overlay { background: rgba(0, 0, 0, 0.7); position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.overlay-dark { background: rgba(0, 0, 0, 0.6); }
.footer-content { position: relative; z-index: 1;display: flex;flex-flow: column; gap: 1rem; }
.footer-h { color: var(--c-accent); }
.audit-list li { margin-bottom: 0.5rem; font-size: 0.9rem; opacity: 0.9; padding-left: 1rem; border-left: 2px solid #fff; }

@media (max-width: 768px) {
    .footer-split { flex-direction: column; height: auto; }
    .footer-col { height: 60vh; width: 100%; border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
}

/* --- SIDE MENU & FORMS --- */
.side-menu-wrapper { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1000; pointer-events: none; }
.side-menu-backdrop { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(5px); opacity: 0; transition: opacity 0.5s ease; }
.side-menu-panel {
    position: absolute;
    top: 0; left: 0; width: 50vw; height: 100%;
    background: #fff; padding: 5rem var(--edge-spacing);
    display: flex; flex-direction: column; justify-content: center;
    transform: translateX(-100%); will-change: transform; overflow-y: auto;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
}
@media (max-width: 1024px) { .side-menu-panel { width: 100vw; padding: 2rem 1.5rem; } }

.menu-open { pointer-events: all; }
.menu-open .side-menu-backdrop { opacity: 1; }
.close-btn { position: absolute; top: 2rem; right: 2rem; font-size: 1.5rem; background: none; border: none; }

/* Buttons Generic (Side Menu) */
.btn-dark-solid { background: var(--c-charcoal); color: #fff; border-color: var(--c-charcoal); }
.btn-dark-solid:hover { background: transparent; color: var(--c-charcoal); }
.btn-close-modal { color: #000; border-color: #ccc; margin-top: 1rem; }

/* Forms */
.form-title { font-size: 2rem; font-family: var(--f-serif); margin-bottom: 1rem; }
.form-desc { color: var(--c-graphite); margin-bottom: 2rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-size: 0.8rem; text-transform: uppercase; margin-bottom: 0.5rem; font-weight: 600; }
.form-input { width: 100%; padding: 1rem; border: 1px solid #ccc; font-family: inherit; font-size: 1rem; transition: 0.3s; }
.form-input:focus { border-color: var(--c-charcoal); background: #fafafa; outline: none; }
.form-privacy { font-size: 0.75rem; color: #888; margin-top: 1rem; text-align: center; }
.success-message { display: none; text-align: center; padding: 2rem; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 4px; }
.success-title { color: var(--c-success); font-family: var(--f-serif); font-size: 1.5rem; margin-bottom: 0.5rem; }
.success-desc { font-size: 0.9rem; color: #166534; }