:root {
    --bg-cream: #FFFFFF;
    --text-charcoal: #1A1A1A;
    --accent-sage: rgb(93, 147, 199);
    --accent-sage-dark: rgb(73, 127, 179);
    --font-heading: 'Fraunces', serif;
    --font-body: 'DM Sans', sans-serif;
    --transition-smooth: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-cream);
    color: var(--text-charcoal);
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
    letter-spacing: 0.02em;
    cursor: url('../assets/cursor.svg'), auto;
}

::selection {
    background-color: var(--accent-sage);
    color: #FFFFFF;
}

/* Heavy Grain Overlay */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--text-charcoal);
    line-height: 1.1;
}

h1 { font-size: 4.5rem; letter-spacing: -0.03em; }
h2.section-title { font-size: 3.5rem; margin-bottom: 3rem; letter-spacing: -0.02em; }
h3 { font-size: 2rem; margin-bottom: 0.5rem; }

p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #333333;
}

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

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

ul { list-style: none; }

.section-padding {
    padding: 8rem 0;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.mb-4 { margin-bottom: 2rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 100px; /* Pill shape for human feel */
}

.btn-primary {
    background-color: var(--accent-sage);
    color: #FFFFFF;
    border: 1px solid var(--accent-sage);
}

.btn-primary:hover {
    background-color: var(--text-charcoal);
    border-color: var(--text-charcoal);
    color: #FFFFFF;
}

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

.btn-outline:hover {
    background-color: var(--text-charcoal);
    color: #FFFFFF;
}

/* Organic Shapes for Images */
.organic-shape-1 { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
.organic-shape-2 { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
.organic-shape-3 { border-radius: 50% 50% 20% 80% / 25% 80% 20% 75%; }
.organic-shape-4 { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
.organic-shape-5 { border-radius: 80% 20% 40% 60% / 60% 40% 60% 40%; }

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: padding 0.4s ease, background 0.4s ease, backdrop-filter 0.4s ease;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(26, 26, 26, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.nav-logo {
    max-height: 160px;
    width: auto;
    object-fit: contain;
    transition: max-height 0.4s ease;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-toggle span {
    display: block;
    width: 30px;
    height: 1px;
    background: var(--text-charcoal);
}

.mobile-menu {
    display: none;
}

@media (max-width: 900px) {
    .nav-links, .nav-cta { display: none; }
    .mobile-toggle { display: flex; }
    .nav-logo { max-height: 100px; }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 14rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 4rem;
    padding-right: 4rem;
}

.hero-content h1 {
    margin-bottom: 2rem;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.hero-image-wrapper {
    height: 80vh;
    padding: 2rem;
}

.hero-image-wrapper img {
    height: 100%;
    filter: contrast(1.1) sepia(0.1);
}

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 12rem;
        text-align: center;
    }
    .hero-content p { margin: 0 auto 3rem; }
    .hero-actions { justify-content: center; }
    .hero-image-wrapper { height: 60vh; }
}

/* About Section */
.about-editorial-grid {
    display: flex;
    flex-direction: column;
    gap: 8rem;
}

.editorial-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.editorial-block.reverse {
    direction: rtl;
}
.editorial-block.reverse > * {
    direction: ltr;
}

.editorial-img-container {
    padding: 1rem;
}

.editorial-img-container img {
    max-height: 600px;
    filter: contrast(1.15) grayscale(0.2);
    transition: transform 0.5s ease;
}

/* Expertise Hover Overlay */
.expertise-hover {
    position: relative;
    overflow: hidden;
}

.expertise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(93, 147, 199, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 2rem;
}

.expertise-hover:hover .expertise-overlay {
    opacity: 1;
}

.expertise-overlay ul {
    text-align: center;
}

.expertise-overlay ul li {
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.expertise-hover:hover .expertise-overlay ul li {
    transform: translateY(0);
}

.package-divider {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    color: var(--brand-blue);
    margin: 1.5rem 0 0.5rem 0;
    border-bottom: 1px solid var(--brand-blue);
    padding-bottom: 0.25rem;
}

.membership-note {
    font-size: 0.85rem;
    font-style: italic;
    opacity: 0.8;
    margin-top: 1rem;
}

.memberships p {
    margin-bottom: 0.5rem;
}

.not-available {
    font-style: italic;
    opacity: 0.6;
}

.subtitle {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--accent-sage-dark);
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    .editorial-block { grid-template-columns: 1fr; gap: 3rem; }
    .editorial-block.reverse { direction: ltr; }
}

/* Services */
.services-editorial-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
}

.service-item {
    margin-bottom: 4rem;
    border-top: 1px solid rgba(26, 26, 26, 0.2);
    padding-top: 2rem;
}

.service-img-column img {
    height: 400px;
    filter: grayscale(1) contrast(1.2);
}

@media (max-width: 900px) {
    .services-editorial-layout { grid-template-columns: 1fr; }
}

/* Rates */
.rates-subtitle {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 5rem;
}

.rates-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.rate-location {
    background-color: transparent;
    border: 1px solid var(--text-charcoal);
    padding: 4rem 3rem;
    border-radius: 4px;
}

.rate-location h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--text-charcoal);
    padding-bottom: 1rem;
}

.rate-list { margin-bottom: 3rem; }
.rate-list h4 { font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.9rem; margin-bottom: 1.5rem; }

.rate-list ul li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed rgba(26, 26, 26, 0.3);
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
}

.memberships {
    background-color: var(--accent-sage);
    color: #FFFFFF;
    padding: 2rem;
    border-radius: 4px;
}
.memberships h4 { color: #FFFFFF; margin-bottom: 1rem; }
.memberships p { color: #FFFFFF; margin-bottom: 0.5rem; font-size: 1rem; }

@media (max-width: 900px) {
    .rates-columns { grid-template-columns: 1fr; }
}

/* FAQs */
.accordion-editorial {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid var(--text-charcoal);
}

.accordion-header {
    padding: 2rem 0;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header::after {
    content: '+';
    font-family: var(--font-body);
    font-weight: 300;
}

.accordion-item.active .accordion-header::after {
    content: '−';
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-smooth);
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    padding-bottom: 2rem;
}

/* Contact */
.contact-editorial {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.large-text a {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: var(--accent-sage-dark);
}

.locations-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.loc-card {
    border-left: 2px solid var(--accent-sage);
    padding-left: 2rem;
}

.loc-btn {
    margin-top: 1rem;
    display: inline-block;
}

@media (max-width: 900px) {
    .contact-editorial { grid-template-columns: 1fr; }
    .large-text a { font-size: 1.8rem; }
}

/* Footer */
.editorial-footer {
    padding: 4rem 0;
    border-top: 1px solid rgba(26, 26, 26, 0.2);
    margin-top: 4rem;
}

/* Testimonial Strip */
.testimonial-strip {
    background-color: var(--text-charcoal);
    color: #FFFFFF;
    padding: 3rem 0;
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
}

.marquee-content {
    display: flex;
    animation: scroll 40s linear infinite;
}

.marquee-content span {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-style: italic;
    margin: 0 4rem;
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (max-width: 900px) {
    body { cursor: auto; }
}

/* Animations */
/* 1. Fade In Up */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

/* 2. Slide In Right */
.slide-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.slide-in-right.visible { opacity: 1; transform: translateX(0); }

/* 3. Slide In Left */
.slide-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.slide-in-left.visible { opacity: 1; transform: translateX(0); }

/* 4. Zoom In */
.zoom-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.zoom-in.visible { opacity: 1; transform: scale(1); }

/* 5. Pulse Button */
@keyframes pulse-btn {
    0% { box-shadow: 0 0 0 0 rgba(93, 147, 199, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(93, 147, 199, 0); }
    100% { box-shadow: 0 0 0 0 rgba(93, 147, 199, 0); }
}
.btn-primary:hover {
    animation: pulse-btn 1.5s infinite;
}

/* 6. Image Float */
@keyframes float-img {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
.float-img { animation: float-img 6s ease-in-out infinite; }

/* 7. Link Underline Grow */
.link-grow {
    position: relative;
    display: inline-block;
}
.link-grow::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent-sage);
    transition: width 0.3s ease;
}
.link-grow:hover::after { width: 100%; }

/* 8. Text Shimmer */
@keyframes shimmer-text {
    0% { background-position: -100% 0; }
    100% { background-position: 100% 0; }
}
.shimmer {
    background: linear-gradient(90deg, var(--text-charcoal) 0%, var(--accent-sage) 50%, var(--text-charcoal) 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmer-text 5s linear infinite;
}

/* 9. Navbar Blur Shrink */
.navbar {
    transition: padding 0.4s ease, background 0.4s ease, backdrop-filter 0.4s ease;
}
.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(26, 26, 26, 0.1);
}
.navbar.scrolled .nav-logo {
    max-height: 70px;
}

/* 10. Accordion Bounce */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Bouncy transition */
}
.accordion-item.active .accordion-content {
    max-height: 500px;
    padding-bottom: 2rem;
}

/* Delay classes */
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
