/* ════════════════════════════════════════════════════════════════════════════
   NICOLE NAKAGAWA - PSYCHOLOGY WEBSITE STYLES
   Using the established color palette and design system
   ════════════════════════════════════════════════════════════════════════════ */

/* ────────────────────────────────────────────
   ROOT VARIABLES
   ──────────────────────────────────────────── */
:root {
    /* Color Palette */
    --cream-100: #F6F4EC;
    --cream-200: #F3E9D5;
    --cream-300: #EFE6DF;
    --wine-100: #8B3A3A;
    --wine-200: #99033D;
    --green-100: #325544;
    --green-200: #37604C;
    --green-300: #A7C4BC;
    --sage-green: #9CAF88;
    --soft-beige: #F8F6F0;
    
    /* Typography */
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Inter', system-ui, sans-serif;
    
    /* Layout */
    --max-width: 1200px;
    --section-padding: 80px 20px;
    --border-radius: 12px;
    
    /* Animations */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ────────────────────────────────────────────
   RESET & BASE STYLES
   ──────────────────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--green-100);
    background: var(--cream-100);
}

/* ────────────────────────────────────────────
   NAVIGATION
   ──────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(246, 244, 236, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(246, 244, 236, 0.98);
    box-shadow: 0 2px 20px rgba(50, 85, 68, 0.15);
    backdrop-filter: blur(15px);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-nn {
    width: 40px;
    height: 40px;
    background: var(--wine-200);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text span:first-child {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 500;
    color: var(--wine-200);
}

.logo-text span:last-child {
    font-size: 14px;
    color: var(--green-200);
    font-weight: 400;
}

.logo-image {
    height: 50px;
    width: auto;
    transition: var(--transition);
    filter: brightness(1);
}
.logo:hover .logo-image {
    filter: brightness(1.1) contrast(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--green-100);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: var(--wine-200);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--wine-200);
    transition: var(--transition);
}

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

.btn-contact {
    background: var(--sage-green) !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: var(--border-radius);
    transition: var(--transition) !important;
}

.btn-contact::after {
    display: none !important;
}

.btn-contact:hover {
    background: var(--green-200) !important;
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--green-100);
    transition: var(--transition);
}

/* ────────────────────────────────────────────
   HERO SECTION
   ──────────────────────────────────────────── */
#hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cream-100) 0%, var(--soft-beige) 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    animation: breathingTree 10s ease-in-out infinite;
    transform-origin: center center;
}

.hero-name {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-primary);
    text-align: center;
    --indent: 80px;
    z-index: 10;
}

/* Breathing animation for the tree background */
@keyframes breathingTree {
    0%, 100% {
        transform: scale(1) translateY(0px);
        opacity: 0.15;
        filter: brightness(1);
    }
    25% {
        transform: scale(1.01) translateY(-1px);
        opacity: 0.18;
        filter: brightness(1.05);
    }
    50% {
        transform: scale(1.025) translateY(0px);
        opacity: 0.2;
        filter: brightness(1.1);
    }
    75% {
        transform: scale(1.01) translateY(1px);
        opacity: 0.18;
        filter: brightness(1.05);
    }
}

/* Accessibility: Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-bg {
        animation: none;
    }
}

/* Optional: Add subtle floating animation to the hero name */
.hero-name {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-primary);
    text-align: center;
    --indent: 80px;
    z-index: 10;
    animation: heroFloat 12s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0px);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-3px);
    }
}

.name-line {
    margin: 0;
    font-size: clamp(2.4rem, 6vw, 6.5rem);
    font-weight: 400;
    line-height: 0.9;
    color: var(--green-200);
    white-space: nowrap;
    opacity: 0;
}

.first-name {
    transform: translateX(calc(-1 * var(--indent)));
}

.last-name {
    transform: translateX(var(--indent));
}

.name-divider {
    width: 85vw;
    max-width: 1200px;
    height: 1px;
    background: var(--green-200);
    margin: 0.35em auto;
    opacity: 0.7;
    transform-origin: left center;
    transform: scaleX(0);
}

.hero-subtitle {
    position: absolute;
    bottom: 25%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0;
}

.hero-subtitle p:first-child {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--wine-200);
    margin-bottom: 10px;
}

.hero-subtitle p:last-child {
    color: var(--green-100);
    font-size: 1rem;
    font-weight: 300;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 2px solid var(--green-200);
    border-bottom: 2px solid var(--green-200);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: rotate(45deg) translateY(0); }
    40% { transform: rotate(45deg) translateY(-10px); }
    60% { transform: rotate(45deg) translateY(-5px); }
}

/* ────────────────────────────────────────────
   SECTION LAYOUTS
   ──────────────────────────────────────────── */
.section {
    padding: var(--section-padding);
}

.section-alt {
    background: var(--soft-beige);
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

.section-header h2 {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--green-200);
    margin-bottom: 20px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--green-100);
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.8;
}

/* ────────────────────────────────────────────
   SERVICES SECTION
   ──────────────────────────────────────────── */
/* Updated CSS for image-based service cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.service-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(50, 85, 68, 0.08);
    border: 1px solid var(--cream-200);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 320px;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(50, 85, 68, 0.15);
    border-color: var(--sage-green);
}

.service-image {
    width: 100%;
    height: 50%;
    overflow: hidden;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--wine-100);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.service-content p {
    color: var(--green-100);
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .service-card {
        height: 280px;
    }
    
    .service-content {
        padding: 20px;
    }
    
    .service-content h3 {
        font-size: 18px;
    }
    
    .service-content p {
        font-size: 14px;
    }
}

/* Add subtle loading state for images */
.service-image {
    background: var(--cream-100);
}

.service-image img {
    opacity: 0;
    animation: fadeInImage 0.6s ease forwards;
}

@keyframes fadeInImage {
    to {
        opacity: 1;
    }
}

/* Alternative: Add overlay for better text readability if needed */
.service-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-image::after {
    opacity: 1;
}

/* ────────────────────────────────────────────
   ABOUT SECTION
   ──────────────────────────────────────────── */
.about-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
}

.about-text .section-header {
    text-align: left;
    margin-bottom: 30px;
}

.about-description p {
    margin-bottom: 20px;
    color: var(--green-100);
    opacity: 0.9;
}

.about-photo {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(50, 85, 68, 0.15);
}

.credentials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.credential {
    padding: 20px;
    background: white;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--wine-200);
}

.credential h4 {
    color: var(--wine-200);
    margin-bottom: 8px;
    font-weight: 600;
}

.credential p {
    color: var(--green-100);
    font-size: 0.9rem;
    opacity: 0.8;
}

.about-image {
    position: relative;
}

.image-placeholder {
    width: 100%;
    height: 500px;
    background: var(--green-300);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    opacity: 0.7;
}

/* ────────────────────────────────────────────
   CONTENT SECTION
   ──────────────────────────────────────────── */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.content-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(50, 85, 68, 0.08);
    transition: var(--transition);
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(50, 85, 68, 0.15);
}

.content-image .image-placeholder {
    height: 200px;
    background: var(--cream-300);
    color: var(--green-100);
}
.content-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.content-info {
    padding: 25px;
}

.content-category {
    display: inline-block;
    background: var(--sage-green);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.content-info h3 {
    font-family: var(--font-primary);
    color: var(--green-200);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.content-info p {
    color: var(--green-100);
    opacity: 0.9;
    margin-bottom: 15px;
}

.read-more {
    color: var(--wine-200);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--wine-100);
}

/* ────────────────────────────────────────────
   CONTACT SECTION
   ──────────────────────────────────────────── */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-item h4 {
    color: var(--green-200);
    font-family: var(--font-primary);
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.contact-item p {
    color: var(--green-100);
    opacity: 0.9;
    margin-bottom: 15px;
}
.social-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.social-btn svg {
    width: 22px;
    height: 22px;
}

.whatsapp-btn {
    background: #25D366;
    color: white;
}

.whatsapp-btn:hover {
    background: #22C55E;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.instagram-btn {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: white;
}

.instagram-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(225, 48, 108, 0.4);
}
.substack-btn {
    background: #FF6719;
    color: white;
}

.substack-btn:hover {
    background: #E55A17;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 103, 25, 0.4);
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(50, 85, 68, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--cream-300);
    border-radius: var(--border-radius);
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--cream-100);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--sage-green);
    background: white;
}

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

.btn-submit {
    width: 100%;
    background: var(--wine-200);
    color: white;
    padding: 15px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--wine-100);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 58, 58, 0.3);
}

/* ────────────────────────────────────────────
   FOOTER
   ──────────────────────────────────────────── */
.footer {
    background: var(--green-200);
    color: white;
    padding: 40px 0;
}

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

.footer-logo .logo-nn {
    background: var(--wine-200);
}

.footer-logo .logo-text span:first-child {
    color: white;
}

.footer-logo .logo-text span:last-child {
    color: var(--green-300);
}

.footer-info {
    text-align: right;
}

.footer-info p {
    margin-bottom: 5px;
    opacity: 0.9;
}

.footer-info p:first-child {
    font-weight: 500;
}

.footer-info p:last-child {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ────────────────────────────────────────────
   RESPONSIVE DESIGN
   ──────────────────────────────────────────── */
@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(246, 244, 236, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transition: var(--transition);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 10px 0;
    }

    .nav-toggle {
        display: flex;
    }

    /* Hero */
    .hero-name {
        --indent: 40px;
    }

    .name-line {
        font-size: clamp(2rem, 8vw, 4rem);
    }

    .hero-subtitle {
        bottom: 20%;
        padding: 0 20px;
    }

    .hero-subtitle p:first-child {
        font-size: 1.2rem;
    }

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

    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }

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

    /* Content */
    .content-grid {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form {
        padding: 30px;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-info {
        text-align: center;
    }
    
    .social-buttons {
    justify-content: center;
    margin-top: 20px;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 60px 15px;
    }

    .hero-name {
        --indent: 20px;
    }

    .services-grid {
        gap: 20px;
    }

    .service-card {
        padding: 30px 20px;
    }

    .contact-form {
        padding: 25px;
    }
}

/* ────────────────────────────────────────────
   UTILITIES & ANIMATIONS
   ──────────────────────────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Smooth scrolling for anchor links */
html {
    scroll-padding-top: 80px;
}

/* Selection styling */
::selection {
    background: var(--sage-green);
    color: white;
}

::-moz-selection {
    background: var(--sage-green);
    color: white;
}

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

/* Loading animation for images */
.image-placeholder {
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}