/* ============================================
   JPC&CO — Jen Phillips Consulting
   One-Page Site Stylesheet
   ============================================ */

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

:root {
    --charcoal: #5C5C5C;
    --charcoal-deep: #3D3D3D;
    --charcoal-light: #666666;
    --copper: #B5603A;
    --copper-light: #C8785A;
    --copper-dark: #9A4E2E;
    --cream: #F5F0EB;
    --cream-dark: #EDE6DE;
    --white: #FFFFFF;
    --off-white: #FAFAF8;
    --text-dark: #2E2E2E;
    --text-body: #5C5C5C;
    --text-light: #999999;

    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Cormorant Garamond', Garamond, 'Times New Roman', serif;

    --nav-height: 72px;
    --container-width: 1140px;
    --container-padding: 24px;

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-body);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
    color: var(--text-dark);
}


/* --- Container --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}


/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav--scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

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

.nav-logo {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--white);
    text-decoration: none;
    transition: color 0.4s ease;
}

.nav--scrolled .nav-logo {
    color: var(--text-dark);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

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

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

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

.nav--scrolled .nav-links a {
    color: var(--text-light);
}

.nav--scrolled .nav-links a:hover {
    color: var(--text-dark);
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    position: relative;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.nav--scrolled .nav-toggle span {
    background: var(--text-dark);
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 9px; }
.nav-toggle span:nth-child(3) { top: 18px; }

.nav--open .nav-toggle span:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
}
.nav--open .nav-toggle span:nth-child(2) {
    opacity: 0;
}
.nav--open .nav-toggle span:nth-child(3) {
    top: 9px;
    transform: rotate(-45deg);
}


/* ============================================
   Hero
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--charcoal-deep);
    overflow: hidden;
}

/* Warm, painterly gradient overlay for texture */
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(181, 96, 58, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 30%, rgba(181, 96, 58, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(245, 240, 235, 0.04) 0%, transparent 50%),
        linear-gradient(160deg, #3D3D3D 0%, #4A4540 30%, #5C5550 60%, #4A4540 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 var(--container-padding);
}

.hero-logo {
    max-width: 480px;
    width: 70vw;
    margin: 0 auto;
    opacity: 0.92;
}

.hero-divider {
    width: 60px;
    height: 1px;
    background: var(--copper);
    margin: 32px auto;
    opacity: 0.7;
}

.hero-name {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 6px;
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.3);
    animation: gentle-bounce 2.5s ease-in-out infinite;
    transition: color 0.3s ease;
}

.scroll-indicator:hover {
    color: rgba(255, 255, 255, 0.6);
}

@keyframes gentle-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}


/* ============================================
   Sections (shared)
   ============================================ */
.section {
    padding: 120px 0;
}

.section--cream {
    background: var(--cream);
}

.section--dark {
    background: var(--charcoal-deep);
}

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

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-header--light h2,
.section-header--light .section-label,
.section-header--light .section-subtitle {
    color: var(--white);
}

.section-header--light .section-label::after {
    background: var(--copper);
}

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--copper);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 16px;
}

.section-label::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 1px;
    background: var(--copper);
}

.section-header h2 {
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 500;
    margin-bottom: 16px;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 19px;
    color: var(--text-light);
    max-width: 540px;
    margin: 0 auto;
}


/* ============================================
   About
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 80px;
    align-items: start;
}

.about-text .lead {
    font-size: 21px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.65;
    margin-bottom: 24px;
}

.about-text p {
    margin-bottom: 20px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-aside {
    position: relative;
}

.about-logo-mark {
    position: sticky;
    top: calc(var(--nav-height) + 40px);
}

.about-logo-img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.08);
}


/* ============================================
   Services
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.service-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 48px 40px;
    transition: background 0.4s ease, border-color 0.4s ease;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(181, 96, 58, 0.2);
}

.service-number {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--copper);
    display: block;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 24px;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 16px;
}

.service-card p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
}


/* ============================================
   Approach
   ============================================ */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    text-align: center;
}

.approach-step-number {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 400;
    color: var(--copper);
    margin-bottom: 24px;
    letter-spacing: 0.05em;
}

.approach-step h3 {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 16px;
}

.approach-step p {
    font-size: 17px;
    line-height: 1.75;
}


/* ============================================
   Contact
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 80px;
    align-items: start;
}

.contact-item {
    margin-bottom: 36px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item h3 {
    font-size: 13px;
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--copper);
    margin-bottom: 8px;
}

.contact-item a,
.contact-item p {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--text-body);
}

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

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 17px;
    color: var(--text-dark);
    background: var(--cream);
    border: 1px solid var(--cream-dark);
    border-radius: 4px;
    padding: 14px 18px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--copper);
    box-shadow: 0 0 0 3px rgba(181, 96, 58, 0.08);
}

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

.btn {
    display: inline-block;
    align-self: flex-start;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--copper);
    border: none;
    border-radius: 4px;
    padding: 16px 40px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

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

.btn:active {
    transform: translateY(0);
}


/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--charcoal-deep);
    padding: 48px 0;
    text-align: center;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.6);
}

.footer-copy {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.3);
}


/* ============================================
   Fade-in Animation
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================
   Responsive
   ============================================ */
@media (max-width: 960px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-aside {
        order: -1;
        max-width: 300px;
        margin: 0 auto;
    }

    .about-logo-mark {
        position: static;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
        --container-padding: 20px;
    }

    .section {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 48px;
    }

    /* Mobile nav */
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 20px 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.4s var(--ease-out), opacity 0.3s ease;
    }

    .nav--open .nav-links {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links a {
        color: var(--text-body) !important;
        padding: 14px 0;
        font-size: 14px;
    }

    .nav-links a:hover {
        color: var(--copper) !important;
    }

    /* Force nav background on mobile when menu is open */
    .nav--open {
        background: rgba(255, 255, 255, 0.97);
    }

    .nav--open .nav-logo {
        color: var(--text-dark);
    }

    .nav--open .nav-toggle span {
        background: var(--text-dark);
    }

    .hero-logo {
        max-width: 320px;
    }

    .hero-tagline {
        font-size: 13px;
        letter-spacing: 0.2em;
    }

    .service-card {
        padding: 36px 28px;
    }

    .approach-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .hero-logo {
        max-width: 240px;
    }
}

/* Centered contact info (no form) */
.contact-info-centered {
    display: flex;
    justify-content: center;
    gap: 6rem;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

@media (max-width: 600px) {
    .contact-info-centered {
        flex-direction: column;
        gap: 2.5rem;
    }
}

/* About portrait photo */
.about-photo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-portrait {
    width: 100%;
    max-width: 280px;
    border-radius: 4px;
    filter: grayscale(20%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
