/* ========================================
   Styles-N-Smiles — Custom Styles
   ======================================== */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; }

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #0d9488;
    color: #fff;
    padding: 8px 16px;
    z-index: 100;
    font-size: 14px;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ---------- Header ---------- */
.header { will-change: transform; }
.header.scrolled {
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 4px;
    right: 4px;
    height: 2px;
    background: #0d9488;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

/* Mobile menu */
.mobile-menu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}
.menu-line:nth-child(3) { width: 50%; }
body.menu-open { overflow: hidden; }

/* ---------- Buttons ---------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0d9488;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
    background: #0f766e;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13,148,136,0.3);
}
.btn-primary-arrow { transition: transform 0.2s; }
.btn-primary:hover .btn-primary-arrow { transform: translateX(3px); }

.btn-primary-full {
    width: 100%;
    justify-content: center;
    padding: 16px 28px;
    font-size: 16px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #1e293b;
    font-weight: 600;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: 10px;
    border: 2px solid #cbd5e1;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.btn-secondary:hover {
    border-color: #0d9488;
    background: #f0fdfa;
    transform: translateY(-2px);
}

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #0d9488;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-white:hover {
    background: #f0fdfa;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.btn-outline-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.4);
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.btn-outline-white:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* ---------- Section shared ---------- */
.section { padding: 80px 0; }
@media (min-width: 1024px) { .section { padding: 100px 0; } }

.section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #0d9488;
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #0f172a;
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 17px;
    color: #64748b;
    line-height: 1.7;
}

/* ---------- Hero ---------- */
.hero {
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}
.hero-inner { padding-top: 40px; padding-bottom: 80px; }
@media (min-width: 1024px) { .hero-inner { padding-top: 60px; padding-bottom: 120px; } }

/* Badge */
.hero-badge { animation: fadeInDown 0.6s ease both; }

/* Headline */
.hero-headline { animation: fadeInUp 0.6s ease 0.1s both; }

/* Subtitle */
.hero-subtitle { animation: fadeInUp 0.6s ease 0.2s both; }

/* CTA */
.hero-cta { animation: fadeInUp 0.6s ease 0.3s both; }

/* Trust */
.hero-trust { animation: fadeInUp 0.6s ease 0.4s both; }

/* Scroll indicator */
.hero-scroll { animation: fadeInUp 0.6s ease 0.6s both; }
.hero-scroll-line { animation: scrollLine 1.8s ease-in-out infinite; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes scrollLine {
    0%, 100% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

/* Hero image grid */
.hero-img-grid {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 1024px) {
    .hero-img-grid { margin-left: 0; }
}

.hero-img-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}
.hero-img-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-img-card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.hero-img-card--1 {
    width: 75%;
    height: 420px;
    margin-bottom: 16px;
}
@media (min-width: 768px) {
    .hero-img-card--1 { height: 500px; }
}

.hero-img-card--2 {
    position: absolute;
    bottom: 380px;
    right: -20px;
    width: 55%;
    height: 200px;
    z-index: 2;
    border: 4px solid #f8fafc;
}
@media (min-width: 1024px) {
    .hero-img-card--2 { bottom: 460px; height: 240px; }
}

.hero-img-card--3 {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 160px;
    z-index: 2;
    border: 4px solid #f8fafc;
}
@media (min-width: 768px) {
    .hero-img-card--3 { height: 200px; }
}

/* Floating card */
.hero-float-card {
    position: absolute;
    bottom: 30px;
    left: -10px;
    background: #fff;
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    z-index: 3;
    animation: floatCard 3s ease-in-out infinite;
}
@media (min-width: 1024px) {
    .hero-float-card { left: -30px; bottom: 40px; }
}
@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.hero-float-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #fef2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    flex-shrink: 0;
}

/* ---------- Services ---------- */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px 28px;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.service-card:hover {
    border-color: #99f6e4;
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(13,148,136,0.08);
}

.service-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f0fdfa, #ccfbf1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d9488;
    margin-bottom: 20px;
    transition: background 0.25s, transform 0.25s;
}
.service-card:hover .service-card-icon {
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    color: #fff;
    transform: scale(1.05);
}

.service-card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.service-card-desc {
    font-size: 15px;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #0d9488;
    text-decoration: none;
    transition: gap 0.2s;
}
.service-card-link:hover { gap: 10px; }
.service-card-link svg { transition: transform 0.2s; }
.service-card-link:hover svg { transform: translateX(2px); }

/* ---------- About ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}
@media (min-width: 1024px) { .about-grid { gap: 64px; } }

.about-images {
    position: relative;
}
.about-img-main {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}
.about-img-main img { display: block; width: 100%; height: 100%; object-fit: cover; }

.about-img-secondary {
    position: absolute;
    bottom: -24px;
    right: -16px;
    width: 55%;
    border-radius: 16px;
    overflow: hidden;
    border: 5px solid #fff;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.about-img-secondary img { display: block; width: 100%; height: 100%; object-fit: cover; }

.about-experience-badge {
    position: absolute;
    top: -20px;
    right: 20px;
    background: #0d9488;
    color: #fff;
    border-radius: 14px;
    padding: 16px 20px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(13,148,136,0.3);
}
.about-exp-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}
.about-exp-text {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.85;
    margin-top: 4px;
}

.about-content { max-width: 560px; }
.about-text {
    font-size: 16px;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 15px;
    color: #334155;
    font-weight: 500;
}
.about-feature-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #f0fdfa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d9488;
    flex-shrink: 0;
}

/* ---------- Gallery ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    .gallery-item--1 { grid-row: span 2; }
}
@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: 260px 320px;
    }
    .gallery-item--1 { grid-row: span 2; }
}

.gallery-item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
}
.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay span {
    color: #fff;
    font-weight: 600;
    font-size: 15px;
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }

.testimonial-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px;
    border: 1px solid #e2e8f0;
    position: relative;
    transition: transform 0.25s, box-shadow 0.25s;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}

.testimonial-quote-mark {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 4rem;
    line-height: 1;
    color: #ccfbf1;
    position: absolute;
    top: 16px;
    right: 24px;
}

.testimonial-text {
    font-size: 15px;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.testimonial-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}
.testimonial-author-name {
    font-weight: 600;
    font-size: 14px;
    color: #0f172a;
}
.testimonial-author-location {
    font-size: 13px;
    color: #94a3b8;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 50%, #14b8a6 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.cta-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image: radial-gradient(circle, #fff 1px, transparent 1px);
    background-size: 24px 24px;
}
.cta-title { animation: none; }
.cta-desc { animation: none; }
.cta-buttons { animation: none; }

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 64px; } }

.contact-info { display: flex; flex-direction: column; gap: 16px; }

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #f8fafc;
    border-radius: 14px;
    padding: 24px;
    transition: background 0.2s, transform 0.2s;
}
.contact-info-card:hover {
    background: #f0fdfa;
    transform: translateX(4px);
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d9488;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.contact-info-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    margin-bottom: 4px;
}

.contact-info-value {
    font-size: 15px;
    color: #334155;
    line-height: 1.6;
}

/* Form */
.contact-form-wrapper {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 639px) { .form-row { grid-template-columns: 1fr; } }

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

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: #1e293b;
    background: #f8fafc;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    outline: none;
}
.form-input:focus {
    border-color: #0d9488;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(13,148,136,0.1);
}
.form-input::placeholder { color: #94a3b8; }

.form-select {
    appearance: none;
    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='%2394a3b8' stroke-width='2' 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;
}

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

.form-success {
    text-align: center;
    padding: 40px 20px;
}
.form-success.hidden { display: none; }
.form-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f0fdfa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d9488;
    margin: 0 auto 20px;
}
.form-success-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}
.form-success-text {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
}

/* ---------- Footer ---------- */
.footer { padding: 64px 0 0; }
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }

.footer-heading { margin-bottom: 16px; }

.footer-link {
    font-size: 14px;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-link:hover { color: #5eead4; }

.footer-social-link {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #1e293b;
    border: 1px solid #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.footer-social-link:hover {
    background: #0d9488;
    border-color: #0d9488;
    color: #fff;
}

.footer-bottom { }

/* ---------- Scroll Reveal (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* ---------- Mobile responsive ---------- */
@media (max-width: 767px) {
    .hero-img-card--2 { bottom: 300px; right: -8px; width: 60%; height: 160px; }
    .hero-img-card--3 { width: 55%; height: 140px; }
    .hero-float-card { left: 0; bottom: 20px; }
}

/* ---------- Utility ---------- */
.hidden { display: none !important; }
