/* ===================================
   Rhythm In Ink — Custom Styles
   Charcoal + Coral Editorial Design
   =================================== */

/* --- CSS Custom Properties --- */
:root {
    --color-charcoal: #1A1A1A;
    --color-charcoal-light: #2D2D2D;
    --color-charcoal-mid: #3A3A3A;
    --color-coral: #E86A50;
    --color-coral-light: #F0826A;
    --color-coral-dark: #D4553A;
    --color-cream: #FAF8F6;
    --color-cream-dark: #F0EDE8;
    --color-text: #1A1A1A;
    --color-text-light: #6B6B6B;
    --color-text-inverse: #FAF8F6;
    --color-border: #E0DCD7;
    
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

ul {
    list-style: none;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

em {
    font-style: italic;
    font-family: var(--font-serif);
}

/* --- Section Headers --- */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-coral);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--color-charcoal);
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 560px;
    line-height: 1.7;
}

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

.section-header--center .section-subtitle {
    margin: 0 auto;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 50px;
    transition: var(--transition);
    white-space: nowrap;
}

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

.btn--primary:hover {
    background: var(--color-coral-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(232, 106, 80, 0.35);
}

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

.btn--outline:hover {
    background: var(--color-charcoal);
    color: white;
    transform: translateY(-2px);
}

.btn--large {
    padding: 1.1rem 2.25rem;
    font-size: 1rem;
}

.btn--full {
    width: 100%;
    justify-content: center;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 248, 246, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.nav.scrolled {
    border-bottom-color: var(--color-border);
    box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

.nav__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--color-charcoal);
}

.nav__logo-text {
    letter-spacing: -0.01em;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-light);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--color-coral);
    transition: var(--transition);
}

.nav__link:hover {
    color: var(--color-charcoal);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link--cta {
    background: var(--color-charcoal);
    color: white !important;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-weight: 500;
}

.nav__link--cta::after {
    display: none;
}

.nav__link--cta:hover {
    background: var(--color-coral);
    color: white !important;
    transform: translateY(-1px);
}

.nav__menu-btn {
    display: none;
    padding: 0.5rem;
}

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: var(--color-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu__list {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.mobile-menu__link {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-charcoal);
    transition: var(--transition);
}

.mobile-menu__link:hover {
    color: var(--color-coral);
}

.mobile-menu__link--cta {
    font-family: var(--font-sans);
    font-size: 1rem;
    margin-top: var(--space-sm);
    padding: 0.875rem 2.5rem;
    background: var(--color-coral);
    color: white;
    border-radius: 50px;
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 72px;
    background: var(--color-cream);
    position: relative;
    overflow: hidden;
}

.hero__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-md);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    flex: 1;
}

.hero__eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-coral);
    margin-bottom: var(--space-md);
}

.hero__headline {
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    line-height: 1.05;
    color: var(--color-charcoal);
    margin-bottom: var(--space-md);
}

.hero__accent {
    color: var(--color-coral);
    font-style: italic;
}

.hero__description {
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.75;
    max-width: 480px;
    margin-bottom: var(--space-lg);
}

.hero__actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--space-xl);
}

.hero__stats {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.hero__stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.hero__stat-number {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-charcoal);
}

.hero__stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-light);
}

.hero__stat-divider {
    width: 1px;
    height: 40px;
    background: var(--color-border);
}

.hero__image {
    position: relative;
}

.hero__image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.hero__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.hero__image-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--color-coral);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.2;
}

.hero__image-badge {
    position: absolute;
    bottom: var(--space-md);
    left: var(--space-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.hero__scroll {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-light);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(6px); }
    60% { transform: translateX(-50%) translateY(3px); }
}

/* --- Services --- */
.services {
    padding: var(--space-3xl) 0;
    background: white;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.service-card {
    padding: var(--space-lg);
    background: var(--color-cream);
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-coral);
    box-shadow: 0 12px 40px rgba(232, 106, 80, 0.1);
}

.service-card__icon {
    margin-bottom: var(--space-md);
}

.service-card__title {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
    color: var(--color-charcoal);
}

.service-card__description {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* --- Gallery --- */
.gallery {
    padding: var(--space-3xl) 0;
    background: var(--color-cream);
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 280px);
    gap: var(--space-sm);
    margin-top: var(--space-xl);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item--large {
    grid-column: span 5;
}

.gallery-item:nth-child(2) {
    grid-column: 6 / span 3;
}

.gallery-item:nth-child(3) {
    grid-column: 9 / span 4;
}

.gallery-item:nth-child(4) {
    grid-column: 1 / span 3;
}

.gallery-item:nth-child(5) {
    grid-column: 4 / span 5;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,26,26,0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: var(--space-md);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-item__overlay {
    opacity: 1;
}

.gallery-item__overlay span {
    color: white;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
}

.gallery__cta {
    margin-top: var(--space-xl);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.gallery__cta p {
    font-size: 1.05rem;
    color: var(--color-text-light);
    max-width: 500px;
}

/* --- About --- */
.about {
    padding: var(--space-3xl) 0;
    background: white;
}

.about__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.about__image {
    position: relative;
}

.about__image-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about__image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about__image-secondary {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 200px;
    height: 200px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 5px solid white;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.about__experience-badge {
    position: absolute;
    top: -20px;
    left: -20px;
    background: var(--color-charcoal);
    color: white;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: 0 8px 30px rgba(26,26,26,0.3);
}

.about__experience-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-coral);
}

.about__experience-text {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.2rem;
}

.about__content {
    padding-left: var(--space-md);
}

.about__text {
    font-size: 1.05rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.about__values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.about__value {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-charcoal);
}

.about__value svg {
    flex-shrink: 0;
}

/* --- Testimonials --- */
.testimonials {
    padding: var(--space-3xl) 0;
    background: var(--color-charcoal);
}

.testimonials .section-title {
    color: white;
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.testimonial-card {
    background: var(--color-charcoal-light);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-charcoal-mid);
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: var(--color-coral);
    transform: translateY(-4px);
}

.testimonial-card__stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: var(--space-md);
}

.testimonial-card__text {
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(250, 248, 246, 0.8);
    margin-bottom: var(--space-md);
    font-style: italic;
}

.testimonial-card__author {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-coral);
}

/* --- CTA --- */
.cta {
    padding: var(--space-3xl) 0;
    background: var(--color-coral);
    text-align: center;
}

.cta__content {
    max-width: 700px;
    margin: 0 auto;
}

.cta__content .section-eyebrow {
    color: rgba(250, 248, 246, 0.7);
}

.cta__headline {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: white;
    margin-bottom: var(--space-md);
}

.cta__description {
    font-size: 1.1rem;
    color: rgba(250, 248, 246, 0.85);
    line-height: 1.75;
    margin-bottom: var(--space-lg);
}

.cta__actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.cta__actions .btn--outline {
    border-color: white;
    color: white;
}

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

/* --- Contact --- */
.contact {
    padding: var(--space-3xl) 0;
    background: var(--color-cream);
}

.contact__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.contact__description {
    font-size: 1.05rem;
    color: var(--color-text-light);
    line-height: 1.75;
    margin-bottom: var(--space-lg);
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.contact__detail {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.contact__detail-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.contact__detail-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-light);
    margin-bottom: 0.15rem;
}

.contact__detail-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-charcoal);
}

.contact__link:hover {
    color: var(--color-coral);
}

.contact__map {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.contact__form-wrapper {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 30px rgba(0,0,0,0.06);
}

.contact__form-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
    color: var(--color-charcoal);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-light);
    margin-bottom: 0.4rem;
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--color-charcoal);
    background: var(--color-cream);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--color-coral);
    background: white;
    box-shadow: 0 0 0 3px rgba(232, 106, 80, 0.1);
}

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

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-xl);
    gap: var(--space-sm);
}

.form-success.active {
    display: flex;
}

.form-success h4 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-charcoal);
}

.form-success p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* --- Footer --- */
.footer {
    background: var(--color-charcoal);
    color: var(--color-text-inverse);
    padding: var(--space-2xl) 0 var(--space-md);
}

.footer__top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-xl);
    align-items: start;
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--color-charcoal-light);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.15rem;
    color: white;
    margin-bottom: var(--space-sm);
}

.footer__tagline {
    font-size: 0.9rem;
    color: rgba(250, 248, 246, 0.5);
    max-width: 250px;
    line-height: 1.6;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    text-align: center;
}

.footer__links a {
    font-size: 0.9rem;
    color: rgba(250, 248, 246, 0.6);
}

.footer__links a:hover {
    color: var(--color-coral);
}

.footer__contact {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer__phone,
.footer__email {
    font-size: 0.9rem;
    color: rgba(250, 248, 246, 0.6);
}

.footer__phone:hover,
.footer__email:hover {
    color: var(--color-coral);
}

.footer__address {
    font-size: 0.85rem;
    color: rgba(250, 248, 246, 0.4);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    font-size: 0.8rem;
    color: rgba(250, 248, 246, 0.35);
}

/* --- Scroll Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    
    .gallery-item,
    .gallery-item--large,
    .gallery-item:nth-child(2),
    .gallery-item:nth-child(3),
    .gallery-item:nth-child(4),
    .gallery-item:nth-child(5) {
        grid-column: span 1;
    }
    
    .gallery-item {
        height: 250px;
    }
    
    .testimonials__grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .nav__links {
        display: none;
    }
    
    .nav__menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: var(--space-xl);
        padding-bottom: var(--space-2xl);
    }
    
    .hero__description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero__actions {
        justify-content: center;
    }
    
    .hero__stats {
        justify-content: center;
    }
    
    .hero__image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .services__grid {
        grid-template-columns: 1fr;
    }
    
    .about__layout {
        grid-template-columns: 1fr;
    }
    
    .about__content {
        padding-left: 0;
    }
    
    .about__image-secondary {
        width: 150px;
        height: 150px;
        right: -10px;
        bottom: -15px;
    }
    
    .contact__layout {
        grid-template-columns: 1fr;
    }
    
    .footer__top {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer__links {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--space-sm);
    }
    
    .footer__contact {
        text-align: center;
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: 0.4rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }
    
    .hero__stats {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .hero__stat-divider {
        width: 40px;
        height: 1px;
    }
    
    .about__values {
        grid-template-columns: 1fr;
    }
    
    .contact__form-wrapper {
        padding: var(--space-md);
    }
}
