/* ===========================================
   Maverick Metrics - Main Stylesheet
   =========================================== */

/* -----------------------------
   Variables & Reset
   ----------------------------- */
:root {
    --black: #0d0d0d;
    --white: #ffffff;
    --gray-100: #f7f7f7;
    --gray-200: #ebebeb;
    --gray-400: #a0a0a0;
    --gray-600: #5a5a5a;
    
    --font-serif: 'Fraunces', Georgia, serif;
    --font-sans: 'DM Sans', sans-serif;
    
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: var(--font-sans);
    background: var(--white);
    color: var(--black);
    line-height: 1.5;
    overflow-x: hidden;
}

::selection {
    background: var(--black);
    color: var(--white);
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

/* -----------------------------
   Animations
   ----------------------------- */
@keyframes reveal {
    from { opacity: 0; transform: translateY(60px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.anim {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s var(--ease);
}

.anim.in {
    opacity: 1;
    transform: none;
}

/* -----------------------------
   Header
   ----------------------------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    mix-blend-mode: difference;
    padding: 32px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.02em;
    color: var(--white);
}

.logo img {
    height: 46px;
    filter: brightness(0) invert(1);
}

.nav {
    display: flex;
    gap: 48px;
}

.nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--white);
    transition: opacity 0.3s;
}

.nav a:hover { opacity: 0.5; }

.header-cta {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    padding: 12px 24px;
    border: 1px solid var(--white);
    border-radius: 100px;
    transition: all 0.3s var(--ease);
}

.header-cta:hover {
    background: var(--white);
    color: var(--black);
}

/* -----------------------------
   Hero
   ----------------------------- */
.hero {
    min-height: 100vh;
    background: var(--black);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 0 80px;
    position: relative;
}

.hero-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-serif);
    font-size: 28vw;
    font-weight: 400;
    color: rgba(255,255,255,0.03);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-top {
    padding: 180px 60px 100px;
}

.hero-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 32px;
    opacity: 0;
    animation: reveal 1s var(--ease) 0.2s forwards;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(4rem, 10vw, 9rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.03em;
    max-width: 1100px;
    opacity: 0;
    animation: reveal 1s var(--ease) 0.4s forwards;
}

.hero h1 em {
    font-style: italic;
}

.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 60px;
    opacity: 0;
    animation: reveal 1s var(--ease) 0.6s forwards;
}

.hero-text {
    max-width: 400px;
    font-size: 1.1rem;
    color: var(--gray-400);
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 600;
    font-size: 15px;
    padding: 20px 36px;
    background: var(--white);
    color: var(--black);
    border-radius: 100px;
    transition: all 0.4s var(--ease);
}

.hero-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(255,255,255,0.15);
}

.hero-cta svg {
    transition: transform 0.3s var(--ease);
}

.hero-cta:hover svg {
    transform: translateX(4px);
}

/* -----------------------------
   Stats Bar
   ----------------------------- */
.stats-bar {
    background: var(--gray-100);
    padding: 64px 0;
    border-bottom: 1px solid var(--gray-200);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
}

.stat {
    text-align: center;
}

.stat-value {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 12px;
}

.stat-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* -----------------------------
   Services
   ----------------------------- */
.services {
    padding: 160px 0;
}

.services-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 100px;
    align-items: end;
}

.services-header h2 {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 400;
    line-height: 1.05;
}

.services-header p {
    font-size: 1.15rem;
    color: var(--gray-600);
    line-height: 1.8;
    max-width: 480px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--gray-200);
}

.service-item {
    background: var(--white);
    padding: 56px 40px;
    transition: all 0.5s var(--ease);
    position: relative;
    cursor: default;
}

.service-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 40px;
    right: 40px;
    height: 2px;
    background: var(--black);
    transform: scaleX(0);
    transition: transform 0.5s var(--ease);
}

.service-item:hover {
    background: var(--gray-100);
}

.service-item:hover::after {
    transform: scaleX(1);
}

.service-num {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--gray-400);
    margin-bottom: 32px;
}

.service-item h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 16px;
}

.service-item p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* -----------------------------
   About
   ----------------------------- */
.about {
    padding: 160px 0;
    background: var(--black);
    color: var(--white);
}

.about-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 120px;
    align-items: center;
}

.about-content h2 {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 40px;
}

.about-content h2 em {
    font-style: italic;
    color: var(--gray-400);
}

.about-content p {
    font-size: 1.1rem;
    color: var(--gray-400);
    line-height: 1.8;
    margin-bottom: 24px;
}

.about-content strong {
    color: var(--white);
}

.founder-block {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 56px;
}

.founder-block-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 24px;
}

.founder-block h3 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 8px;
}

.founder-block-title {
    color: var(--gray-400);
    margin-bottom: 40px;
}

.founder-stats {
    display: flex;
    gap: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.founder-stat-val {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 8px;
}

.founder-stat-label {
    font-size: 12px;
    color: var(--gray-400);
}

/* -----------------------------
   Testimonials
   ----------------------------- */
.testimonials {
    padding: 160px 0;
    background: var(--gray-100);
}

.testimonials-header {
    text-align: center;
    margin-bottom: 80px;
}

.testimonials-header h2 {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 400;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.testimonial {
    background: var(--white);
    padding: 56px;
    position: relative;
}

.testimonial-mark {
    font-family: var(--font-serif);
    font-size: 10rem;
    line-height: 0;
    color: var(--gray-200);
    position: absolute;
    top: 72px;
    left: 48px;
}

.testimonial-text {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    background: var(--black);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.testimonial-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.testimonial-role {
    font-size: 14px;
    color: var(--gray-600);
}

/* -----------------------------
   Contact
   ----------------------------- */
.contact {
    padding: 160px 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 100px;
}

.contact-info h2 {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 24px;
}

.contact-info > p {
    font-size: 1.1rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 56px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    background: var(--gray-100);
    transition: all 0.4s var(--ease);
}

.contact-link:hover {
    background: var(--black);
    color: var(--white);
}

.contact-link-icon {
    width: 48px;
    height: 48px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-link-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--black);
    stroke-width: 1.5;
    fill: none;
}

.contact-link-text {
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-form-wrap {
    background: var(--gray-100);
    padding: 56px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-field label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-field input,
.form-field select,
.form-field textarea {
    padding: 16px 20px;
    font-family: var(--font-sans);
    font-size: 15px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    transition: border-color 0.3s;
}

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

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

.form-submit button {
    width: 100%;
    padding: 20px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    background: var(--black);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: all 0.4s var(--ease);
}

.form-submit button:hover {
    background: var(--gray-600);
}

.form-submit button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-success {
    display: none;
    text-align: center;
    padding: 80px 40px;
}

.form-success.show {
    display: block;
}

.form-success h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 12px;
}

.form-success p {
    color: var(--gray-600);
}

.form-error {
    color: #c00;
    font-size: 14px;
    margin-top: 8px;
    display: none;
}

.form-error.show {
    display: block;
}

/* -----------------------------
   Footer
   ----------------------------- */
footer {
    background: var(--black);
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 40px;
}

.footer-brand img {
    height: 40px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--gray-400);
    font-size: 14px;
    max-width: 300px;
    line-height: 1.7;
}

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

.footer-col h4 {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    font-size: 15px;
    color: var(--white);
    margin-bottom: 12px;
    transition: opacity 0.3s;
}

.footer-col a:hover {
    opacity: 0.5;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy {
    font-size: 14px;
    color: var(--gray-400);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease);
}

.footer-social a:hover {
    background: var(--white);
}

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: var(--white);
    transition: fill 0.3s;
}

.footer-social a:hover svg {
    fill: var(--black);
}

/* -----------------------------
   Responsive
   ----------------------------- */
@media (max-width: 1024px) {
    .container { padding: 0 40px; }
    .hero-top, .hero-bottom { padding-left: 40px; padding-right: 40px; }
    
    .services-header,
    .about-layout,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .hero-top, .hero-bottom { padding-left: 20px; padding-right: 20px; }
    
    .header-inner { padding: 0 20px; }
    
    .hero-bg-text { display: none; }
    
    .nav { display: none; }
    
    .hero-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }
    
    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat {
        padding: 24px 0;
        border-bottom: 1px solid var(--gray-200);
    }
    
    .stat:last-child {
        border-bottom: none;
    }
    
    .contact-form-wrap,
    .testimonial,
    .founder-block {
        padding: 32px;
    }
}
