/* ═══════════════════════════════════════════════════════════
   Andrea Rocks — Custom Styles
   ═══════════════════════════════════════════════════════════ */

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ── Geometric shapes (hero) ── */
.geo-shape {
    position: absolute;
    pointer-events: none;
}
.geo-circle-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(123,45,59,0.4) 0%, transparent 70%);
    top: -100px; left: -200px;
    border-radius: 50%;
}
.geo-circle-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,163,155,0.2) 0%, transparent 70%);
    bottom: 10%; right: 5%;
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}
.geo-circle-3 {
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(255,208,180,0.15) 0%, transparent 70%);
    top: 30%; left: 45%;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite reverse;
}
.geo-rect-1 {
    width: 120px; height: 120px;
    border: 2px solid rgba(255,163,155,0.2);
    top: 20%; right: 15%;
    transform: rotate(45deg);
    animation: spin-slow 20s linear infinite;
}
.geo-rect-2 {
    width: 80px; height: 80px;
    border: 2px solid rgba(255,208,180,0.15);
    bottom: 25%; left: 10%;
    transform: rotate(30deg);
    animation: spin-slow 15s linear infinite reverse;
}
.geo-triangle {
    width: 0; height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid rgba(255,163,155,0.08);
    top: 60%; right: 25%;
    animation: float 7s ease-in-out infinite;
}
.geo-dots {
    width: 100px; height: 100px;
    background-image: radial-gradient(circle, rgba(255,208,180,0.25) 1px, transparent 1px);
    background-size: 12px 12px;
    top: 15%; right: 35%;
    border-radius: 0;
}

/* ── CTA circles ── */
.cta-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.cta-circle-1 {
    width: 400px; height: 400px;
    border: 2px solid rgba(255,163,155,0.15);
    top: -100px; left: -100px;
}
.cta-circle-2 {
    width: 250px; height: 250px;
    border: 2px solid rgba(255,208,180,0.1);
    bottom: -60px; right: 10%;
}
.cta-circle-3 {
    width: 150px; height: 150px;
    background: rgba(255,163,155,0.08);
    top: 20%; right: 5%;
}

/* ── Animations ── */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(12deg); }
    50% { transform: translateY(-12px) rotate(12deg); }
}
@keyframes spin-slow {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.animate-float {
    animation: float-slow 4s ease-in-out infinite;
}

/* ── Hero animations ── */
.hero-badge { animation: fadeInUp 0.8s ease-out both; }
.hero-badge:nth-child(1) { animation-delay: 0.1s; }
h1 { animation: fadeInUp 0.8s ease-out 0.2s both; }
h1 p, .hero-cta { animation: fadeInUp 0.8s ease-out 0.4s both; }
h1 .hero-cta-wrapper { animation: fadeInUp 0.8s ease-out 0.5s both; }
h1 ~ p { animation: fadeInUp 0.8s ease-out 0.3s both; }
#hero > .relative.z-10 > .max-w-7xl > .grid > div:first-child > div:first-child { animation: fadeInUp 0.8s ease-out 0.1s both; }
#hero > .relative.z-10 > .max-w-7xl > .grid > div:first-child > h1 { animation: fadeInUp 0.8s ease-out 0.2s both; }
#hero > .relative.z-10 > .max-w-7xl > .grid > div:first-child > p { animation: fadeInUp 0.8s ease-out 0.35s both; }
#hero > .relative.z-10 > .max-w-7xl > .grid > div:first-child > div:first-of-type:last-of-type { animation: fadeInUp 0.8s ease-out 0.5s both; }
#hero > .relative.z-10 > .max-w-7xl > .grid > div:first-child > div:last-of-type { animation: fadeInUp 0.8s ease-out 0.65s both; }
#hero > .relative.z-10 > .max-w-7xl > .grid > div:last-child > div { animation: slideInRight 0.9s ease-out 0.3s both; }

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #FFA39B 0%, #FF7A72 100%);
    color: #fff;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 14px 28px;
    border-radius: 60px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255,122,114,0.3);
    text-decoration: none;
    font-family: 'Inter', system-ui, sans-serif;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255,122,114,0.4);
}
.btn-primary-lg {
    padding: 16px 32px;
    font-size: 1rem;
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #FFD0D0;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 14px 28px;
    border-radius: 60px;
    border: 1.5px solid rgba(255,208,208,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: 'Inter', system-ui, sans-serif;
}
.btn-secondary:hover {
    background: rgba(255,208,208,0.1);
    border-color: rgba(255,208,208,0.6);
    transform: translateY(-2px);
}
.btn-secondary-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

/* ── Service Tag ── */
.service-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #7B2D3B;
    background: linear-gradient(90deg, rgba(123,45,59,0.08) 0%, rgba(255,163,155,0.15) 100%);
    padding: 6px 16px;
    border-radius: 40px;
    border: 1px solid rgba(123,45,59,0.12);
}

/* ── Service Cards ── */
.service-card {
    position: relative;
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.service-card:hover {
    transform: translateY(-4px);
}
.service-card:nth-child(1) { animation: fadeInUp 0.6s ease-out 0.1s both; }
.service-card:nth-child(2) { animation: fadeInUp 0.6s ease-out 0.2s both; }
.service-card:nth-child(3) { animation: fadeInUp 0.6s ease-out 0.3s both; }
.service-card:nth-child(4) { animation: fadeInUp 0.6s ease-out 0.4s both; }
.service-card:nth-child(5) { animation: fadeInUp 0.6s ease-out 0.5s both; }
.service-card:nth-child(6) { animation: fadeInUp 0.6s ease-out 0.6s both; }

/* ── Gallery ── */
.gallery-item {
    cursor: pointer;
    transition: transform 0.4s ease;
}
.gallery-item:hover {
    transform: scale(1.02);
}
.gallery-item:nth-child(1) { animation: fadeInUp 0.6s ease-out 0.1s both; }
.gallery-item:nth-child(2) { animation: fadeInUp 0.6s ease-out 0.2s both; }
.gallery-item:nth-child(3) { animation: fadeInUp 0.6s ease-out 0.3s both; }
.gallery-item:nth-child(4) { animation: fadeInUp 0.6s ease-out 0.35s both; }
.gallery-item:nth-child(5) { animation: fadeInUp 0.6s ease-out 0.4s both; }
.gallery-item:nth-child(6) { animation: fadeInUp 0.6s ease-out 0.45s both; }
.gallery-item:nth-child(7) { animation: fadeInUp 0.6s ease-out 0.5s both; }

/* ── Contact Cards ── */
.contact-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(123,45,59,0.08);
}

/* ── Form ── */
.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #5e1f2b;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #EDE0D8;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-family: 'Inter', system-ui, sans-serif;
    color: #1f2937;
    background: #FFFAF7;
    transition: all 0.25s ease;
    outline: none;
    -webkit-appearance: none;
}
.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: #F4C2BC;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #7B2D3B;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(123,45,59,0.08);
}
.form-input::placeholder,
.form-textarea::placeholder {
    color: #b0a09a;
}
.form-textarea {
    resize: vertical;
    min-height: 120px;
}
.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237B2D3B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

/* ── Nav ── */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #FFA39B, #FF7A72);
    border-radius: 2px;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}
.nav-link:hover {
    color: #7B2D3B !important;
}

/* ── Mobile Menu ── */
.mobile-nav-link {
    transition: color 0.2s ease, transform 0.2s ease;
}
.mobile-nav-link:hover {
    color: #FF7A72;
    transform: scale(1.05);
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Scroll Progress Bar ── */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #7B2D3B, #FFA39B, #FF7A72);
    z-index: 9999;
    transform-origin: left;
    transform: scaleX(0);
    width: 100%;
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .geo-circle-1 { width: 300px; height: 300px; }
    .geo-circle-2 { width: 200px; height: 200px; }
    .geo-rect-1 { width: 60px; height: 60px; }
    .geo-rect-2 { width: 40px; height: 40px; }
    .geo-triangle { border-left: 30px solid transparent; border-right: 30px solid transparent; border-bottom: 52px solid rgba(255,163,155,0.08); }
    .geo-dots { width: 60px; height: 60px; background-size: 10px 10px; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}
