/* 
    Ivy Assignment California - Sophisticated Minimalist Style
    Palette: Ivy Charcoal (#1a1a1a), Academic Gold (#c5a059), Cream Background (#fcfbf7)
*/

:root {
    --primary: #1a1a1a;
    --accent: #c5a059;
    --bg-cream: #fcfbf7;
    --bg-warm: #f4f1ea;
    --text: #333333;
    --text-light: #777777;
    --white: #ffffff;
    --shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
    --transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Jost', sans-serif;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg-cream);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Bodoni Moda', serif;
    color: var(--primary);
    line-height: 1.2;
}

/* Accessibility: prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

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

.section-padding {
    padding: 120px 0;
}

.bg-warm {
    background-color: var(--bg-warm);
}

.text-center {
    text-align: center;
}

.section-label {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.section-heading {
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 18px 36px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent);
    transform: translateY(-5px);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-header {
    padding: 12px 24px;
    font-size: 0.75rem;
    background-color: var(--accent);
    color: var(--white);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 0;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

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

.logo {
    font-family: 'Bodoni Moda', serif;
    font-size: 1.6rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--white);
}

.header.scrolled .logo {
    color: var(--primary);
}

.logo-ivy {
    color: var(--accent);
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
}

.header.scrolled .nav-menu a {
    color: var(--primary);
}

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

.menu-toggle {
    display: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--white);
    margin: 6px 0;
    transition: var(--transition);
}

.header.scrolled .menu-toggle span {
    background: var(--primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
    overflow: hidden;
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: slowZoom 20s infinite alternate;
}

@keyframes slowZoom {
    to { transform: scale(1.15); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
    max-width: 750px;
}

.hero-title {
    color: var(--white);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 4rem;
}

.hero-trust-indicators {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.trust-item i {
    color: var(--accent);
}

/* About Section */
.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.image-frame {
    position: relative;
    padding: 20px;
}

.about-img {
    width: 100%;
    display: block;
    position: relative;
    z-index: 2;
}

.frame-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 80%;
    background-color: var(--bg-warm);
    z-index: 1;
}

.about-features {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.about-feat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    font-size: 0.9rem;
}

.about-feat-item i {
    color: var(--accent);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--white);
    padding: 60px 40px;
    position: relative;
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.service-num {
    font-family: 'Bodoni Moda', serif;
    font-size: 3rem;
    color: var(--bg-warm);
    position: absolute;
    top: 20px;
    right: 30px;
    font-weight: 900;
    line-height: 1;
}

.service-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
}

/* How It Works */
.process-editorial {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 100px;
}

.process-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.process-item {
    display: flex;
    gap: 30px;
}

.process-step {
    font-family: 'Bodoni Moda', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    width: 50px;
    height: 50px;
    border: 1px solid var(--accent);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.process-content h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* Reviews Section */
.reviews-editorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.review-editorial-item {
    border-top: 1px solid #ddd;
    padding-top: 30px;
}

.review-quote {
    font-family: 'Bodoni Moda', serif;
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.review-author {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--accent);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-detail-item {
    margin-bottom: 2rem;
}

.detail-label {
    display: block;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 5px;
}

.contact-detail-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.map-container {
    margin-top: 3rem;
    filter: grayscale(1);
    transition: var(--transition);
}

.map-container:hover {
    filter: grayscale(0);
}

.form-wrapper {
    background: var(--white);
    padding: 60px;
    box-shadow: var(--shadow);
}

.form-wrapper h3 {
    margin-bottom: 1rem;
}

.form-wrapper p {
    margin-bottom: 2.5rem;
    color: var(--text-light);
}

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

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #eeeeee;
    background-color: #fafafa;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

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

.form-status {
    text-align: center;
    padding: 40px 0;
}

.form-status i {
    font-size: 3rem;
    color: #27ae60;
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background: var(--primary);
    color: var(--white);
    padding: 100px 0 40px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 100px;
    margin-bottom: 80px;
}

.footer-brand h3 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    opacity: 0.7;
    max-width: 450px;
}

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

.footer-nav ul {
    list-style: none;
}

.footer-nav ul li {
    margin-bottom: 15px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--accent);
}

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

.footer-legal {
    opacity: 0.5;
    font-size: 0.85rem;
}

.footer-contact-summary {
    text-align: right;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-contact-summary a {
    color: var(--white);
    text-decoration: none;
}

/* Animations */
.reveal-fade {
    opacity: 0;
    transition: all 1s ease-out;
}

.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease-out;
}

.reveal-slide-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 1s ease-out;
}

.reveal-slide-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 1s ease-out;
}

.active {
    opacity: 1;
    transform: translate(0);
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .header {
        padding: 20px 0;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--primary);
        padding: 100px 40px;
        transition: var(--transition);
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 30px;
    }
    
    .nav-menu a {
        font-size: 1.2rem;
    }
    
    .header-cta {
        display: none;
    }
    
    .menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    .hero-grid, .about-split, .process-editorial, .contact-grid, .footer-top {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .hero {
        text-align: center;
        padding-top: 120px;
    }
    
    .hero-actions, .hero-trust-indicators {
        justify-content: center;
    }
    
    .footer-nav {
        gap: 40px;
    }
    
    .footer-contact-summary {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .form-wrapper {
        padding: 40px 20px;
    }
}
