/* ============================================
   Cryptic Tattoo Society — Custom Styles
   Deep Navy + Warm Gold | Fresh & Airy
   ============================================ */

/* CSS Custom Properties */
:root {
    --navy: #1A2744;
    --navy-light: #2A3F6B;
    --navy-dark: #0F1829;
    --gold: #C5A065;
    --gold-light: #D4B87A;
    --gold-dark: #A8864D;
    --cream: #FAF8F5;
    --cream-dark: #F0EDE8;
    --white: #FFFFFF;
    --text-dark: #1A1A2E;
    --text-medium: #4A4A5A;
    --text-light: #7A7A8A;
    --border: #E8E4DF;
    --shadow-sm: 0 2px 8px rgba(26, 39, 68, 0.06);
    --shadow-md: 0 8px 30px rgba(26, 39, 68, 0.1);
    --shadow-lg: 0 20px 60px rgba(26, 39, 68, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--cream);
    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;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
}

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

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

.navbar.scrolled {
    background: rgba(250, 248, 245, 0.98);
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 3px;
    color: var(--navy);
}

.logo-icon {
    color: var(--gold);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-menu a {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-medium);
    position: relative;
}

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

.nav-menu a:hover {
    color: var(--navy);
}

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

.nav-cta {
    background: var(--navy);
    color: var(--white) !important;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 12px !important;
    letter-spacing: 2px !important;
}

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

.nav-cta:hover {
    background: var(--navy-light);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    transition: var(--transition);
    transform-origin: center;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 24, 41, 0.82) 0%,
        rgba(26, 39, 68, 0.75) 50%,
        rgba(42, 63, 107, 0.68) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding-top: 80px;
}

.hero-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(42px, 8vw, 80px);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.05;
}

.hero-title .text-gold {
    color: var(--gold);
    font-style: italic;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 36px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gold);
    color: var(--navy-dark);
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(197, 160, 101, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.btn-full {
    width: 100%;
}

/* Hero Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

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

/* ============================================
   SECTION COMMON
   ============================================ */
section {
    padding: 120px 0;
}

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

.section-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(32px, 5vw, 52px);
    color: var(--navy);
    margin-bottom: 24px;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    margin: 0 auto;
    border-radius: 2px;
}

.section-divider.start {
    margin: 0;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    background: var(--white);
}

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

.service-card {
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: 48px 36px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border);
    background: var(--white);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: var(--gold);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--navy);
}

.service-card p {
    font-size: 15px;
    color: var(--text-medium);
    line-height: 1.8;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    background: var(--cream);
    overflow: hidden;
}

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

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-lg);
    width: 100%;
    height: 600px;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

.about-badge {
    position: absolute;
    bottom: -24px;
    right: -24px;
    background: var(--navy);
    color: var(--white);
    padding: 28px 32px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.about-badge .badge-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.about-badge .badge-text {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}

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

.about-text {
    font-size: 16px;
    color: var(--text-medium);
    line-height: 1.9;
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    gap: 48px;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery {
    background: var(--white);
}

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

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 24, 41, 0.85) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 28px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay span {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: var(--white);
    transform: translateY(10px);
    transition: var(--transition);
}

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

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

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
    position: relative;
}

.testimonials .section-eyebrow {
    color: var(--gold);
}

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

.testimonials .section-divider {
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

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

.testimonial-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 44px 36px;
    transition: var(--transition);
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
}

.testimonial-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 28px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-name {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
}

.author-location {
    font-size: 13px;
    color: var(--gold);
    letter-spacing: 1px;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    background: var(--cream);
}

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

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

.contact-text {
    font-size: 16px;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 40px;
}

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

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

.contact-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 4px;
}

.contact-value {
    display: block;
    font-size: 16px;
    color: var(--navy);
    font-weight: 500;
}

.contact-value:hover {
    color: var(--gold);
}

.contact-hours {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.contact-hours h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--navy);
}

.hours-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.hours-row:last-child {
    border-bottom: none;
}

.hours-row span:first-child {
    color: var(--text-medium);
}

.hours-row span:last-child {
    color: var(--navy);
    font-weight: 500;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-md);
}

.contact-form h3 {
    font-size: 28px;
    margin-bottom: 32px;
    color: var(--navy);
}

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

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-medium);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    color: var(--text-dark);
    background: var(--cream);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(197, 160, 101, 0.1);
}

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

.form-group 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='%237A7A8A' 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 16px center;
    padding-right: 40px;
}

.form-success {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #E8F5E9, #F1F8E9);
    border-radius: var(--radius-sm);
    margin-top: 20px;
    color: #2E7D32;
    font-size: 14px;
    font-weight: 500;
}

.form-success svg {
    flex-shrink: 0;
}

/* ============================================
   MAP SECTION
   ============================================ */
.map-section {
    height: 400px;
    background: var(--cream-dark);
}

.map-section iframe {
    filter: grayscale(30%) contrast(1.05);
    transition: var(--transition);
}

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

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

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 3px;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
}

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

.footer-links a {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 8px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-contact p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact a {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
}

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

.footer-bottom {
    padding: 28px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 1px;
}

/* ============================================
   ANIMATIONS (Progressive Enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    [data-aos] {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }

    [data-aos].aos-visible {
        opacity: 1;
        transform: translateY(0);
    }

    [data-aos].aos-delay-1 { transition-delay: 0.1s; }
    [data-aos].aos-delay-2 { transition-delay: 0.2s; }
    [data-aos].aos-delay-3 { transition-delay: 0.3s; }
    [data-aos].aos-delay-4 { transition-delay: 0.4s; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .about-grid,
    .contact-grid {
        gap: 48px;
    }

    .about-image img {
        height: 450px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 360px;
        height: 100vh;
        background: var(--cream);
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        padding: 40px;
        box-shadow: var(--shadow-lg);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-menu a {
        font-size: 16px;
    }

    .nav-cta {
        padding: 16px 36px;
    }

    /* Mobile overlay */
    .nav-menu::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        left: 80%;
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }

    .nav-menu.open::before {
        opacity: 1;
        left: 0;
        pointer-events: all;
    }

    .hero-content {
        padding-top: 100px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

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

    .about-image {
        order: -1;
    }

    .about-image img {
        height: 400px;
    }

    .about-badge {
        right: 16px;
        bottom: -16px;
    }

    .about-stats {
        gap: 24px;
    }

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

    .gallery-item:nth-child(1),
    .gallery-item:nth-child(3) {
        grid-row: span 1;
    }

    .gallery-item img {
        height: 280px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-form-wrapper {
        padding: 32px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .hero-scroll {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

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

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

    .gallery-item img {
        height: 320px;
    }

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

    .about-stats {
        flex-direction: column;
        gap: 32px;
    }
}
