/* ========================================
   Paulies Gunsmithing — Styles
   Clean Minimalist | Midnight Blue + Mint
======================================== */

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

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

body {
    line-height: 1.6;
    color: #0a1f33;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* ---- Navigation ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(10, 31, 51, 0.06);
    transition: box-shadow 0.3s ease;
}

.nav.scrolled {
    box-shadow: 0 1px 20px rgba(10, 31, 51, 0.06);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    color: #0a1f33;
}

.nav-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #0a1f33;
    color: #3da86a;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 8px;
}

.nav-logo-text {
    font-weight: 400;
}

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

.nav-link {
    font-size: 0.875rem;
    font-weight: 400;
    color: #143a58;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #3da86a;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #0a1f33;
}

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

.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: #0a1f33;
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: 6px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
    background: #143a58;
    transform: translateY(-1px);
}

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

.nav-toggle-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background: #0a1f33;
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-toggle.active .nav-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle.active .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* ---- Hero ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #0a1f33;
    overflow: hidden;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(5, 14, 23, 0.92) 0%,
        rgba(10, 31, 51, 0.85) 50%,
        rgba(14, 58, 88, 0.78) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 120px 24px 80px;
}

.hero-eyebrow {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #97dbb0;
    margin-bottom: 24px;
}

.hero-headline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.hero-headline-accent {
    font-style: italic;
    font-weight: 400;
    color: #c3ebd3;
}

.hero-sub {
    font-size: 1.0625rem;
    font-weight: 300;
    line-height: 1.7;
    color: #a8bdd4;
    max-width: 560px;
    margin: 0 auto 40px;
}

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

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-primary {
    background: #3da86a;
    color: #ffffff;
}

.btn-primary:hover {
    background: #268a50;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(61, 168, 106, 0.25);
}

.btn-ghost {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 0.9375rem;
}

.btn-full {
    width: 100%;
}

/* ---- 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(168, 189, 212, 0.6);
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(151, 219, 176, 0.6), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

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

/* ---- Divider ---- */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
}

.divider-line {
    width: 100%;
    max-width: 1200px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(10, 31, 51, 0.12), transparent);
}

/* ---- Sections ---- */
.section {
    padding: 100px 0;
}

.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #3da86a;
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 400;
    line-height: 1.2;
    color: #0a1f33;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 1.0625rem;
    font-weight: 300;
    line-height: 1.7;
    color: #143a58;
    max-width: 560px;
    margin-bottom: 56px;
}

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

.service-card {
    padding: 36px 28px;
    border: 1px solid rgba(10, 31, 51, 0.08);
    border-radius: 10px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.service-card:hover {
    border-color: rgba(61, 168, 106, 0.3);
    box-shadow: 0 8px 32px rgba(10, 31, 51, 0.06);
    transform: translateY(-4px);
}

.service-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(10, 31, 51, 0.04);
    color: #0a1f33;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: #0a1f33;
    color: #3da86a;
}

.service-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1875rem;
    font-weight: 600;
    color: #0a1f33;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.service-desc {
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.7;
    color: #143a58;
}

/* ---- About ---- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4/5;
}

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

.about-image:hover img {
    transform: scale(1.03);
}

.about-text {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    color: #143a58;
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(10, 31, 51, 0.08);
}

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

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #0a1f33;
}

.stat-label {
    font-size: 0.8125rem;
    font-weight: 400;
    color: #5281b0;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(10, 31, 51, 0.1);
}

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

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

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

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

/* ---- CTA ---- */
.cta {
    padding: 100px 0;
    background: #0a1f33;
}

.cta-card {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 400;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.cta-sub {
    font-size: 1.0625rem;
    font-weight: 300;
    line-height: 1.7;
    color: #a8bdd4;
    margin-bottom: 40px;
}

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

/* ---- Contact ---- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(10, 31, 51, 0.04);
    color: #0a1f33;
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #5281b0;
    margin-bottom: 4px;
}

.contact-value {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    color: #0a1f33;
}

.contact-value:hover {
    color: #3da86a;
}

/* ---- Form ---- */
.contact-form-wrapper {
    background: #ffffff;
    border: 1px solid rgba(10, 31, 51, 0.08);
    border-radius: 12px;
    padding: 40px;
}

.form-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #0a1f33;
    margin-bottom: 28px;
}

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

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #143a58;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 300;
    color: #0a1f33;
    background: #f8fafc;
    border: 1px solid rgba(10, 31, 51, 0.12);
    border-radius: 6px;
    outline: none;
    transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
    border-color: #3da86a;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(61, 168, 106, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #a8bdd4;
}

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

.form-note {
    font-size: 0.8125rem;
    color: #5281b0;
    margin-top: 12px;
    text-align: center;
}

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
}

.form-success svg {
    color: #3da86a;
    margin-bottom: 16px;
}

.form-success h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #0a1f33;
    margin-bottom: 8px;
}

.form-success p {
    font-size: 0.9375rem;
    color: #143a58;
    font-weight: 300;
}

/* ---- Footer ---- */
.footer {
    background: #050e17;
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: #ffffff;
    margin-bottom: 16px;
}

.footer-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(61, 168, 106, 0.15);
    color: #97dbb0;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 8px;
}

.footer-tagline {
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.7;
    color: #7e9fc2;
    max-width: 280px;
}

.footer-heading {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #97dbb0;
    margin-bottom: 20px;
}

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

.footer-link {
    font-size: 0.9375rem;
    font-weight: 300;
    color: #a8bdd4;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #ffffff;
}

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

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    font-weight: 300;
    color: #a8bdd4;
    transition: color 0.2s ease;
}

.footer-contact-item:hover {
    color: #ffffff;
}

.footer-contact-item svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 24px 0;
}

.footer-bottom p {
    font-size: 0.8125rem;
    font-weight: 300;
    color: #5281b0;
}

/* ---- Reveal Animations (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);
    }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 20px;
        border-bottom: 1px solid rgba(10, 31, 51, 0.06);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content {
        padding: 100px 24px 60px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

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

    .section {
        padding: 72px 0;
    }

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

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

    .about-image {
        aspect-ratio: 16/10;
    }

    .about-stats {
        flex-wrap: wrap;
    }

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

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

    .contact-form-wrapper {
        padding: 28px;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-actions .btn {
        width: 100%;
    }

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

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .hero-scroll {
        display: none;
    }
}
