/* ========================================
   Southern Ink Co. — Custom Styles
   Deep Navy + Warm Gold Palette
======================================== */

/* CSS Custom Properties */
:root {
    --navy-900: #0a0f1e;
    --navy-800: #0f172a;
    --navy-700: #1e293b;
    --navy-600: #334155;
    --gold-500: #D4AF37;
    --gold-400: #e6c54b;
    --gold-300: #f0d678;
    --gold-600: #b8941f;
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-300: #d4d4d4;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;
    
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

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

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

body {
    font-family: var(--font-body);
    color: var(--neutral-800);
    background-color: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

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

/* ========================================
   Buttons
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--gold-500);
    color: var(--navy-900);
    border-color: var(--gold-500);
}

.btn-primary:hover {
    background-color: var(--gold-400);
    border-color: var(--gold-400);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-gold {
    background-color: var(--gold-500);
    color: var(--navy-900);
    border-color: var(--gold-500);
    padding: 10px 20px;
    font-size: 0.875rem;
}

.btn-gold:hover {
    background-color: var(--gold-400);
    border-color: var(--gold-400);
}

.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border-color: rgba(255,255,255,0.4);
}

.btn-outline:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: #ffffff;
}

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

/* ========================================
   Section Shared
======================================== */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-600);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--navy-800);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.0625rem;
    color: var(--neutral-600);
    max-width: 560px;
    line-height: 1.7;
}

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

.section-header .section-desc {
    margin: 0 auto;
}

/* ========================================
   Header
======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    width: 36px;
    height: 36px;
    background-color: var(--gold-500);
    color: var(--navy-900);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.02em;
}

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

.main-nav a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--gold-400);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    width: 22px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background-color: var(--navy-900);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.mobile-nav-overlay.active {
    display: flex;
}

.mobile-nav-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 8px;
}

.mobile-nav-overlay ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.mobile-nav-overlay a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    transition: color 0.2s ease;
}

.mobile-nav-overlay a:hover {
    color: var(--gold-400);
}

/* ========================================
   Hero Section
======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--navy-800);
    padding-top: 72px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    width: 100%;
}

.hero-content {
    padding: 40px 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gold-400);
    letter-spacing: 0.05em;
    margin-bottom: 28px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--gold-500);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 24px;
}

.text-gold {
    color: var(--gold-500);
}

.hero-sub {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-trust {
    display: flex;
    gap: 32px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
    font-weight: 500;
}

.trust-item svg {
    flex-shrink: 0;
}

/* Hero Image */
.hero-image {
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    border: 3px solid var(--gold-500);
    border-radius: var(--radius-lg);
    z-index: -1;
}

/* ========================================
   Services Section
======================================== */
.services {
    padding: 100px 0;
    background-color: var(--neutral-50);
}

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

.service-card {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    border: 1px solid var(--neutral-200);
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--gold-500);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 56px;
    height: 56px;
    background-color: rgba(212, 175, 55, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-600);
    margin-bottom: 20px;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy-800);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--neutral-600);
    line-height: 1.65;
}

/* ========================================
   About Section
======================================== */
.about {
    padding: 100px 0;
    background-color: #ffffff;
}

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

.about-image {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-img-accent {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 55%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 4px solid #ffffff;
}

.about-img-accent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-content .section-label {
    margin-bottom: 12px;
}

.about-content .section-title {
    margin-bottom: 24px;
}

.about-text {
    font-size: 1.0625rem;
    color: var(--neutral-600);
    line-height: 1.75;
    margin-bottom: 16px;
}

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

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

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--navy-800);
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--neutral-600);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

/* ========================================
   Gallery Section
======================================== */
.gallery {
    padding: 100px 0;
    background-color: var(--navy-800);
}

.gallery .section-label {
    color: var(--gold-400);
}

.gallery .section-title {
    color: #ffffff;
}

.gallery .section-desc {
    color: rgba(255,255,255,0.6);
}

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

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/5;
}

.gallery-item:nth-child(even) {
    aspect-ratio: 4/3.5;
    margin-top: 32px;
}

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

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

/* ========================================
   Contact Section
======================================== */
.contact {
    padding: 100px 0;
    background-color: var(--neutral-50);
}

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

.contact-info .section-title {
    margin-bottom: 16px;
}

.contact-desc {
    font-size: 1.0625rem;
    color: var(--neutral-600);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 480px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

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

.contact-icon {
    width: 48px;
    height: 48px;
    background-color: var(--navy-800);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-500);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--navy-800);
    margin-bottom: 4px;
    font-weight: 600;
}

.contact-item p {
    font-size: 0.9375rem;
    color: var(--neutral-600);
    line-height: 1.6;
}

.contact-item a {
    color: var(--navy-800);
    transition: color 0.2s ease;
}

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

/* Contact Form */
.contact-form-wrapper {
    background-color: #ffffff;
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--neutral-200);
}

.contact-form h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy-800);
    margin-bottom: 28px;
}

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--neutral-700);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--neutral-800);
    background-color: var(--neutral-50);
    transition: all 0.2s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold-500);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--neutral-300);
}

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

.form-success {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background-color: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-sm);
    color: var(--gold-600);
    font-weight: 500;
    font-size: 0.9375rem;
    margin-top: 16px;
}

.form-success.visible {
    display: flex;
}

/* ========================================
   Footer
======================================== */
.footer {
    background-color: var(--navy-900);
    padding: 64px 0 0;
}

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

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}

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

.footer-links a {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.55);
    transition: color 0.2s ease;
}

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

.footer-contact p {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
    margin-bottom: 4px;
}

.footer-contact a {
    color: rgba(255,255,255,0.55);
    transition: color 0.2s ease;
}

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

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

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.35);
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 1024px) {
    .hero-grid {
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item:nth-child(even) {
        margin-top: 0;
        aspect-ratio: 4/5;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero {
        padding-top: 72px;
        padding-bottom: 60px;
    }
    
    .hero-content {
        text-align: center;
        padding: 20px 0;
    }
    
    .hero-sub {
        margin: 0 auto 32px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-trust {
        justify-content: center;
    }
    
    .hero-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .image-accent {
        display: none;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-img-accent {
        position: relative;
        bottom: auto;
        right: auto;
        width: 60%;
        margin-top: -60px;
        margin-left: auto;
    }
    
    .about-stats {
        gap: 24px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-headline {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .services, .about, .gallery, .contact {
        padding: 64px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .contact-form-wrapper {
        padding: 24px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item,
    .gallery-item:nth-child(even) {
        aspect-ratio: 4/3;
        margin-top: 0;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
