/* ========================================
   DULCE IMAGEN — CSS
   Charcoal + Coral · Clean Minimalist
   ======================================== */

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

:root {
    --charcoal: #1a1a1a;
    --charcoal-light: #2d2d2d;
    --charcoal-mid: #3d3d3d;
    --coral: #e87461;
    --coral-light: #f09080;
    --coral-dark: #d4594a;
    --white: #ffffff;
    --off-white: #faf9f7;
    --cream: #f5f3f0;
    --gray-100: #f7f7f7;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-400: #bdbdbd;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    --transition: 0.3s ease;
    --transition-slow: 0.6s ease;
}

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

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--charcoal);
    background-color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    color: var(--charcoal);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
    font-size: 0.9375rem;
    color: var(--gray-700);
}

/* ---------- SECTION HEADERS ---------- */
.section-tag {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--charcoal);
}

.section-line {
    width: 60px;
    height: 1px;
    background: var(--coral);
    margin-bottom: 32px;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--coral-dark);
    border-color: var(--coral-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 116, 97, 0.3);
}

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

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

.btn-ghost {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-ghost:hover {
    background: var(--white);
    color: var(--charcoal);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 0.875rem;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.75rem;
}

.btn-full {
    width: 100%;
}

/* ---------- NAVBAR ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--gray-200);
    transition: all var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

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

.logo-icon {
    font-size: 1.25rem;
    color: var(--coral);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--charcoal);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gray-700);
    position: relative;
}

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

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

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

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--charcoal);
    transition: all var(--transition);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

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

.close-menu-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--charcoal);
    padding: 8px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.mobile-nav-links a {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--charcoal);
}

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

.mobile-nav-links .btn {
    margin-top: 16px;
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--charcoal);
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.pexels.com/photos/7195801/pexels-photo-7195801.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center center / cover no-repeat;
    opacity: 0.35;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.92) 0%,
        rgba(26, 26, 26, 0.75) 50%,
        rgba(26, 26, 26, 0.6) 100%
    );
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 40px;
}

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

.hero-tag {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 24px;
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 24px;
}

.hero-headline em {
    font-style: italic;
    color: var(--coral-light);
}

.hero-subtitle {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray-400);
    margin-bottom: 40px;
    max-width: 480px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Floating stat cards */
.hero-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 28px 32px;
    transition: all var(--transition);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(232, 116, 97, 0.4);
    transform: translateX(-4px);
}

.stat-card--1 { border-left: 2px solid var(--coral); }
.stat-card--2 { border-left: 2px solid var(--coral-light); margin-left: 20px; }
.stat-card--3 { border-left: 2px solid var(--white); margin-left: 40px; }

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--white);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.8125rem;
    font-weight: 300;
    letter-spacing: 0.06em;
    color: var(--gray-400);
}

.hero-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--coral), transparent);
}

/* ---------- SERVICES ---------- */
.services {
    padding: 120px 0;
    background: var(--white);
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    padding: 40px 32px;
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--coral);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.service-card:hover {
    border-color: var(--coral);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-300);
    margin-bottom: 24px;
    color: var(--coral);
    transition: all var(--transition);
}

.service-card:hover .service-icon {
    background: var(--coral);
    border-color: var(--coral);
    color: var(--white);
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 400;
    margin-bottom: 12px;
    color: var(--charcoal);
}

.service-desc {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--gray-600);
}

/* ---------- ABOUT ---------- */
.about {
    padding: 120px 0;
    background: var(--cream);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}

.about-image-accent {
    position: absolute;
    bottom: -24px;
    right: -24px;
    width: 200px;
    height: 200px;
    border: 1px solid var(--coral);
    z-index: -1;
}

.about-content {
    max-width: 480px;
}

.about-text {
    font-size: 0.9375rem;
    line-height: 1.85;
    color: var(--gray-700);
    margin-bottom: 20px;
}

.about-features {
    margin: 32px 0 40px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 16px;
}

.feature-line {
    width: 32px;
    height: 1px;
    background: var(--coral);
    flex-shrink: 0;
}

.about-feature span {
    font-size: 0.875rem;
    color: var(--charcoal);
    font-weight: 400;
}

/* ---------- GALLERY ---------- */
.gallery {
    padding: 120px 0;
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

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

.gallery-item:nth-child(1) { grid-row: span 2; }
.gallery-item:nth-child(1) img { height: 100%; }
.gallery-item:nth-child(4) { grid-row: span 2; }
.gallery-item:nth-child(4) img { height: 100%; }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 26, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-overlay span {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--white);
    letter-spacing: 0.05em;
}

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

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

/* ---------- TESTIMONIALS ---------- */
.testimonials {
    padding: 120px 0;
    background: var(--charcoal);
}

.testimonials .section-title {
    color: var(--white);
}

.testimonials .section-header {
    margin-bottom: 64px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    padding: 40px 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all var(--transition);
    position: relative;
}

.testimonial-card:hover {
    border-color: rgba(232, 116, 97, 0.4);
    background: rgba(255, 255, 255, 0.03);
}

.testimonial-quote {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1;
    color: var(--coral);
    margin-bottom: 8px;
}

.testimonial-text {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--gray-400);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--white);
}

/* ---------- CONTACT ---------- */
.contact {
    padding: 120px 0;
    background: var(--off-white);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-intro {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--gray-600);
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 40px;
}

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

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-300);
    color: var(--coral);
    flex-shrink: 0;
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-500);
}

.contact-text a,
.contact-text span {
    font-size: 0.9375rem;
    color: var(--charcoal);
    line-height: 1.6;
}

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

/* Contact form */
.contact-form-wrapper {
    max-width: 520px;
}

.contact-form-card {
    background: var(--white);
    padding: 48px;
    border: 1px solid var(--gray-200);
}

.contact-form-card h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 32px;
}

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

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--charcoal);
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    outline: none;
    transition: all var(--transition);
    -webkit-appearance: none;
    border-radius: 0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--coral);
    background: var(--white);
}

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

/* Form success */
.form-success {
    display: none;
    text-align: center;
    padding: 48px 24px;
}

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

.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--coral);
    color: var(--coral);
}

.form-success h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.form-success p {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* ---------- MAP ---------- */
.map-section {
    border-top: 1px solid var(--gray-200);
}

.map-container iframe {
    display: block;
    filter: grayscale(80%) contrast(1.1);
    transition: filter var(--transition);
}

.map-container:hover iframe {
    filter: grayscale(30%) contrast(1);
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--charcoal);
    padding: 80px 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-top: 16px;
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--gray-500);
}

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

.footer-contact p {
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.8;
}

.footer-contact a {
    color: var(--coral);
}

.footer-contact a:hover {
    color: var(--coral-light);
}

.footer-bottom {
    padding: 24px 0;
}

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

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--gray-600);
}

/* ---------- SCROLL TO TOP ---------- */
.scroll-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--coral);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 100;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--coral-dark);
    transform: translateY(-4px);
}

/* ---------- REVEAL ANIMATIONS ---------- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal[data-delay="0"] { transition-delay: 0ms; }
.reveal[data-delay="100"] { transition-delay: 100ms; }
.reveal[data-delay="150"] { transition-delay: 150ms; }
.reveal[data-delay="200"] { transition-delay: 200ms; }
.reveal[data-delay="300"] { transition-delay: 300ms; }
.reveal[data-delay="400"] { transition-delay: 400ms; }
.reveal[data-delay="500"] { transition-delay: 500ms; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
    }
    
    .hero-cards {
        display: none;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-image img {
        height: 450px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }
    
    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-ctas {
        flex-direction: column;
    }
    
    .hero-ctas .btn {
        width: 100%;
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .gallery-item:nth-child(1),
    .gallery-item:nth-child(4) {
        grid-row: span 1;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-card {
        padding: 32px 24px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .section-header {
        margin-bottom: 48px;
    }
    
    .services,
    .about,
    .gallery,
    .testimonials,
    .contact {
        padding: 80px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-cards {
        display: none;
    }
}
