/* ========================================
   T&T Nails — Classic & Elegant Styles
   Palette: Midnight Blue + Mint
   Fonts: Lora (serif) + Montserrat (sans)
======================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    color: #1a2e3d;
    background-color: #faf8f6;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #0f2b4c;
    color: #a8d5ba;
    padding: 0.5rem 1rem;
    border-radius: 0 0 6px 6px;
    z-index: 1000;
    font-size: 0.875rem;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---- HEADER ---- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 248, 246, 0.0);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.site-header.scrolled {
    background: rgba(250, 248, 246, 0.97);
    box-shadow: 0 1px 20px rgba(15, 43, 76, 0.08);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.logo-mark {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #0f2b4c;
    letter-spacing: 0.02em;
    border: 1.5px solid #0f2b4c;
    padding: 0.2rem 0.45rem;
    border-radius: 3px;
}

.logo-wordmark {
    font-family: 'Lora', serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: #0f2b4c;
    letter-spacing: 0.01em;
}

/* ---- NAV ---- */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav-link {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1a2e3d;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.nav-link:hover,
.nav-link:focus {
    background: rgba(15, 43, 76, 0.06);
    color: #0f2b4c;
}

.nav-cta {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0f2b4c;
    padding: 0.5rem 1.1rem;
    border: 1.5px solid #0f2b4c;
    border-radius: 4px;
    margin-left: 0.5rem;
    transition: background 0.25s, color 0.25s;
}

.nav-cta:hover,
.nav-cta:focus {
    background: #0f2b4c;
    color: #faf8f6;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
}

.nav-toggle-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background: #0f2b4c;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ---- HERO ---- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        #0f2b4c 0%,
        #143a64 20%,
        #1a4a6e 35%,
        #1d5a6e 50%,
        #2a7a7a 65%,
        #3a9a88 80%,
        #a8d5ba 100%
    );
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(168, 213, 186, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(15, 43, 76, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(30, 80, 100, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 21, 38, 0.35);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    padding: 2rem 1.5rem;
    color: #faf8f6;
}

.hero-ornament {
    color: #a8d5ba;
    opacity: 0.5;
    margin-bottom: 1.5rem;
}

.hero-greeting {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #a8d5ba;
    margin-bottom: 1rem;
}

.hero-headline {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: #faf8f6;
}

.hero-headline .accent {
    color: #a8d5ba;
    font-style: italic;
}

.hero-sub {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: rgba(250, 248, 246, 0.85);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.9rem 1.75rem;
    border-radius: 4px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.2s, box-shadow 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: #a8d5ba;
    color: #0f2b4c;
    border-color: #a8d5ba;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #93c9a5;
    border-color: #93c9a5;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(168, 213, 186, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #faf8f6;
    border-color: rgba(250, 248, 246, 0.5);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: rgba(250, 248, 246, 0.1);
    border-color: #faf8f6;
    transform: translateY(-2px);
}

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

.hero-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-detail {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 400;
    color: rgba(250, 248, 246, 0.75);
    letter-spacing: 0.03em;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(250, 248, 246, 0.5);
}

.scroll-line {
    display: block;
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(250, 248, 246, 0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ---- SECTION COMMON ---- */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #2a7a7a;
    margin-bottom: 0.75rem;
    position: relative;
}

.section-tag::before,
.section-tag::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1px;
    background: #2a7a7a;
    vertical-align: middle;
    margin: 0 0.75rem;
    opacity: 0.5;
}

.section-title {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #0f2b4c;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1rem;
    color: #4a6274;
    line-height: 1.8;
    font-weight: 300;
}

/* ---- SERVICES ---- */
.services {
    padding: 7rem 0;
    background: #faf8f6;
}

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

.service-card {
    background: #ffffff;
    border: 1px solid rgba(15, 43, 76, 0.07);
    border-radius: 8px;
    padding: 2.25rem 1.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(15, 43, 76, 0.1);
    border-color: rgba(168, 213, 186, 0.4);
}

.service-icon {
    color: #2a7a7a;
    margin-bottom: 1.25rem;
    width: 48px;
    height: 48px;
}

.service-name {
    font-family: 'Lora', serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: #0f2b4c;
    margin-bottom: 0.6rem;
}

.service-desc {
    font-size: 0.9rem;
    color: #4a6274;
    line-height: 1.75;
    font-weight: 300;
}

/* ---- GALLERY ---- */
.gallery {
    padding: 7rem 0;
    background: #f3f0ec;
}

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

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 43, 76, 0.15), transparent 40%);
    pointer-events: none;
    border-radius: 8px;
}

/* ---- ABOUT ---- */
.about {
    padding: 7rem 0;
    background: #faf8f6;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.about-image-accent {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    width: 60%;
    height: 40%;
    background: linear-gradient(135deg, #a8d5ba, #2a7a7a);
    border-radius: 8px;
    z-index: -1;
    opacity: 0.3;
}

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

.about-text {
    font-size: 1rem;
    color: #4a6274;
    line-height: 1.85;
    margin-bottom: 1.25rem;
    font-weight: 300;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.875rem;
    color: #1a2e3d;
    font-weight: 500;
}

.about-feature svg {
    color: #2a7a7a;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ---- REVIEWS ---- */
.reviews {
    padding: 7rem 0;
    background: linear-gradient(135deg, #0f2b4c 0%, #143a64 50%, #1a4a6e 100%);
    color: #faf8f6;
}

.reviews .section-tag {
    color: #a8d5ba;
}

.reviews .section-tag::before,
.reviews .section-tag::after {
    background: #a8d5ba;
}

.reviews .section-title {
    color: #faf8f6;
}

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

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.review-card {
    background: rgba(250, 248, 246, 0.06);
    border: 1px solid rgba(168, 213, 186, 0.15);
    border-radius: 8px;
    padding: 2rem 1.75rem;
    position: relative;
    transition: transform 0.3s ease, background 0.3s ease;
}

.review-card:hover {
    transform: translateY(-4px);
    background: rgba(250, 248, 246, 0.1);
}

.review-quote {
    font-family: 'Lora', serif;
    font-size: 4rem;
    line-height: 1;
    color: #a8d5ba;
    opacity: 0.4;
    position: absolute;
    top: 0.5rem;
    left: 1.25rem;
}

.review-text {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: rgba(250, 248, 246, 0.88);
    font-weight: 300;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    padding-top: 1.5rem;
}

.review-author {
    font-style: normal;
}

.review-name {
    font-family: 'Lora', serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #a8d5ba;
}

/* ---- CONTACT ---- */
.contact {
    padding: 7rem 0;
    background: #faf8f6;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    max-width: 520px;
}

.contact-desc {
    font-size: 1rem;
    color: #4a6274;
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 2.5rem;
}

.contact-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-bottom: 2.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    color: #2a7a7a;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(42, 122, 122, 0.08);
    border-radius: 8px;
}

.contact-item strong {
    display: block;
    font-family: 'Lora', serif;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #0f2b4c;
    margin-bottom: 0.2rem;
}

.contact-item p {
    font-size: 0.9rem;
    color: #4a6274;
    line-height: 1.6;
    font-weight: 300;
}

.contact-item a {
    color: #2a7a7a;
    transition: color 0.2s;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.contact-item a:hover,
.contact-item a:focus {
    color: #0f2b4c;
    border-bottom-color: #0f2b4c;
}

.contact-map {
    border-radius: 8px;
    overflow: hidden;
}

.map-link {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
}

.map-link img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.map-link:hover img {
    transform: scale(1.03);
}

.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: linear-gradient(to top, rgba(15, 43, 76, 0.8), transparent);
    color: #faf8f6;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* ---- FORM ---- */
.contact-form-wrap {
    background: #ffffff;
    border: 1px solid rgba(15, 43, 76, 0.07);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(15, 43, 76, 0.06);
}

.form-title {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #0f2b4c;
    margin-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #1a2e3d;
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9375rem;
    color: #1a2e3d;
    background: #faf8f6;
    border: 1px solid rgba(15, 43, 76, 0.15);
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #8a9bab;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #2a7a7a;
    box-shadow: 0 0 0 3px rgba(42, 122, 122, 0.1);
}

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

.form-note {
    font-size: 0.8125rem;
    color: #8a9bab;
    text-align: center;
    margin-top: 0.75rem;
    font-weight: 300;
}

.form-success {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    color: #2a7a7a;
    margin-bottom: 1rem;
}

.success-title {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #0f2b4c;
    margin-bottom: 0.5rem;
}

.form-success p {
    color: #4a6274;
    font-weight: 300;
}

/* ---- FOOTER ---- */
.site-footer {
    background: #061526;
    color: rgba(250, 248, 246, 0.6);
    padding: 4rem 0 2rem;
}

.footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-brand .logo-mark,
.footer-brand .logo-wordmark {
    color: #faf8f6;
}

.footer-brand .logo-mark {
    border-color: #a8d5ba;
    color: #a8d5ba;
}

.footer-tagline {
    font-size: 0.875rem;
    font-weight: 300;
    color: rgba(250, 248, 246, 0.5);
    max-width: 280px;
    line-height: 1.7;
}

.footer-nav {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.footer-nav a {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(250, 248, 246, 0.6);
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.footer-nav a:hover,
.footer-nav a:focus {
    color: #a8d5ba;
    background: rgba(168, 213, 186, 0.08);
}

.footer-divider {
    height: 1px;
    background: rgba(250, 248, 246, 0.08);
    margin-bottom: 2rem;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 300;
}

/* ---- BACK TO TOP ---- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: #0f2b4c;
    color: #a8d5ba;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
    z-index: 50;
    box-shadow: 0 4px 16px rgba(15, 43, 76, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #143a64;
}

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

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

/* Default state for reduced motion — content always visible */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(20px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- MOBILE RESPONSIVE ---- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .reviews-grid .review-card:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        height: 100dvh;
        background: #faf8f6;
        box-shadow: -8px 0 32px rgba(15, 43, 76, 0.15);
        padding: 5rem 2rem 2rem;
        transform: translateX(100%);
        transition: transform 0.35s ease;
        z-index: 99;
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }

    .nav-link {
        padding: 0.75rem 0.5rem;
        font-size: 0.9375rem;
    }

    .nav-cta {
        margin: 1rem 0 0;
        text-align: center;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(6, 21, 38, 0.4);
        z-index: 98;
    }

    .nav-overlay.visible {
        display: block;
    }

    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-image-accent {
        display: none;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .reviews-grid .review-card:last-child {
        grid-column: auto;
        max-width: 100%;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-form-wrap {
        padding: 1.75rem;
    }

    .footer-top {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .about-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

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

    .hero-details {
        flex-direction: column;
        gap: 0.75rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
