/* =============================================
   Sailor Yang's Co. - Nautical Premium Aesthetic
   ============================================= */

:root {
    /* Primary Colors - Crimson Red from Logo */
    --crimson: #a31621;
    --crimson-dark: #7d111a;
    --crimson-light: #c41e2a;
    
    /* Nautical Palette */
    --navy: #1a2634;
    --navy-deep: #0f1820;
    --navy-light: #2a3d52;
    --ocean: #1e3a5f;
    --ocean-light: #2d5a87;
    
    /* Neutrals */
    --cream: #f5f0e8;
    --cream-dark: #e8dfd2;
    --parchment: #faf7f2;
    --sand: #d4c5b0;
    --rope: #c4a77d;
    
    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Crimson Pro', Georgia, serif;
    --font-accent: 'Josefin Sans', sans-serif;
    
    /* Spacing */
    --section-padding: 120px;
    --container-width: 1200px;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--parchment);
    color: var(--navy);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--navy);
}

p {
    font-size: 1.125rem;
    color: var(--navy-light);
}

.lead {
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--navy);
}

/* Section Styling */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

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

.section-header.light h2 {
    color: var(--cream);
}

.section-header.light .section-label {
    color: var(--rope);
}

.section-label {
    font-family: var(--font-accent);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--crimson);
    display: block;
    margin-bottom: 16px;
}

/* =============================================
   Ocean Background Animation
   ============================================= */
.ocean-bg {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    overflow: hidden;
    z-index: -1;
    opacity: 0.15;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-repeat: repeat-x;
    background-size: 50% 100%;
}

.wave1 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C150,120 350,0 600,60 C850,120 1050,0 1200,60 L1200,120 L0,120 Z' fill='%231a2634'/%3E%3C/svg%3E");
    animation: wave 25s linear infinite;
    opacity: 0.8;
}

.wave2 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C150,120 350,0 600,60 C850,120 1050,0 1200,60 L1200,120 L0,120 Z' fill='%231e3a5f'/%3E%3C/svg%3E");
    animation: wave 18s linear infinite reverse;
    opacity: 0.5;
    bottom: 10px;
}

.wave3 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C150,120 350,0 600,60 C850,120 1050,0 1200,60 L1200,120 L0,120 Z' fill='%23a31621'/%3E%3C/svg%3E");
    animation: wave 22s linear infinite;
    opacity: 0.3;
    bottom: 20px;
}

@keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =============================================
   Navigation
   ============================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-smooth);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(250, 247, 242, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 40px rgba(26, 38, 52, 0.1);
    padding: 15px 0;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--crimson);
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 50px;
}

.nav-menu a {
    font-family: var(--font-accent);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--navy);
    text-decoration: none;
    position: relative;
    padding: 5px 0;
    transition: var(--transition-smooth);
}

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

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

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

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

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--navy);
    transition: var(--transition-smooth);
}

/* =============================================
   Hero Section
   ============================================= */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: linear-gradient(180deg, 
        var(--parchment) 0%, 
        var(--cream) 50%,
        var(--cream-dark) 100%);
    padding: 120px 40px 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(163, 22, 33, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(30, 58, 95, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container {
    margin-bottom: 40px;
}

.hero-logo {
    max-width: 500px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 40px rgba(163, 22, 33, 0.15));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.hero-tagline {
    font-family: var(--font-accent);
    font-size: 1.125rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--navy-light);
    margin-bottom: 20px;
}

.hero-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--navy-light);
    margin-bottom: 50px;
}

.icon-anchor {
    width: 20px;
    height: 20px;
    stroke: var(--crimson);
}

/* CTA Button */
.cta-button {
    display: inline-block;
    font-family: var(--font-accent);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 18px 45px;
    background: var(--crimson);
    color: var(--cream);
    border: 2px solid var(--crimson);
    border-radius: 0;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--navy);
    transition: var(--transition-smooth);
    z-index: -1;
}

.cta-button:hover {
    border-color: var(--navy);
}

.cta-button:hover::before {
    left: 0;
}

.cta-button.light {
    background: transparent;
    color: var(--cream);
    border-color: var(--cream);
}

.cta-button.light::before {
    background: var(--cream);
}

.cta-button.light:hover {
    color: var(--navy);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: fadeInUp 1s ease-out 0.5s both;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--navy-light);
    border-radius: 13px;
    position: relative;
    opacity: 0.6;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--crimson);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.3; transform: translateX(-50%) translateY(12px); }
}

/* =============================================
   About Section
   ============================================= */
.about-section {
    background: var(--parchment);
}

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

.about-text p {
    margin-bottom: 24px;
}

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

.stat-card {
    background: var(--cream);
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-left: 4px solid var(--crimson);
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 40px rgba(26, 38, 52, 0.1);
}

.stat-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--crimson);
}

.stat-label {
    font-family: var(--font-accent);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--navy);
}

/* =============================================
   Philosophy Section
   ============================================= */
.philosophy-section {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
    position: relative;
    overflow: hidden;
}

.philosophy-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.philosophy-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 50px 40px;
    position: relative;
    transition: var(--transition-smooth);
}

.philosophy-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
}

.card-number {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    color: var(--crimson);
    opacity: 0.3;
    position: absolute;
    top: 20px;
    right: 30px;
    line-height: 1;
}

.philosophy-card h3 {
    font-size: 1.5rem;
    color: var(--cream);
    margin-bottom: 16px;
}

.philosophy-card p {
    color: var(--sand);
    font-size: 1rem;
}

/* =============================================
   Products Section
   ============================================= */
.products-section {
    background: var(--cream);
}

.products-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.product-category {
    text-align: center;
    padding: 60px 40px;
    background: var(--parchment);
    border: 1px solid var(--cream-dark);
    transition: var(--transition-smooth);
    position: relative;
}

.product-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--crimson);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.product-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(26, 38, 52, 0.12);
}

.product-category:hover::before {
    transform: scaleX(1);
}

.product-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    padding: 20px;
    border: 2px solid var(--crimson);
    border-radius: 50%;
}

.product-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--crimson);
}

.product-category h3 {
    font-size: 1.35rem;
    color: var(--navy);
    margin-bottom: 16px;
}

.product-category p {
    font-size: 1rem;
    color: var(--navy-light);
}

/* =============================================
   Quality Section
   ============================================= */
.quality-section {
    background: var(--parchment);
    overflow: hidden;
}

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

.quality-text .section-label {
    text-align: left;
}

.quality-text h2 {
    text-align: left;
    margin-bottom: 30px;
}

.quality-text p {
    margin-bottom: 40px;
}

.certifications {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.cert-badge {
    font-family: var(--font-accent);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 12px 24px;
    background: var(--navy);
    color: var(--cream);
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-block;
}

.cert-badge:hover {
    background: var(--crimson);
    color: var(--cream);
    transform: translateY(-2px);
}

/* Compass */
.quality-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.compass {
    width: 280px;
    height: 280px;
    position: relative;
    border: 3px solid var(--navy);
    border-radius: 50%;
    background: var(--cream);
    box-shadow: 
        0 0 0 15px var(--parchment),
        0 0 0 18px var(--navy-light),
        0 20px 60px rgba(26, 38, 52, 0.2);
}

.compass-ring {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid var(--sand);
    border-radius: 50%;
}

.compass-needle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 120px;
    transform: translate(-50%, -50%);
    background: linear-gradient(to bottom, var(--crimson) 50%, var(--navy) 50%);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation: compassSway 4s ease-in-out infinite;
}

@keyframes compassSway {
    0%, 100% { transform: translate(-50%, -50%) rotate(-5deg); }
    50% { transform: translate(-50%, -50%) rotate(5deg); }
}

.compass-n, .compass-e, .compass-s, .compass-w {
    position: absolute;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
}

.compass-n { top: 30px; left: 50%; transform: translateX(-50%); color: var(--crimson); }
.compass-e { right: 30px; top: 50%; transform: translateY(-50%); }
.compass-s { bottom: 30px; left: 50%; transform: translateX(-50%); }
.compass-w { left: 30px; top: 50%; transform: translateY(-50%); }

/* =============================================
   Contact Section
   ============================================= */
.contact-section {
    background: linear-gradient(135deg, var(--ocean) 0%, var(--navy-deep) 100%);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, var(--parchment), transparent);
    pointer-events: none;
}

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

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

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

.contact-item svg {
    width: 28px;
    height: 28px;
    stroke: var(--rope);
    flex-shrink: 0;
    margin-top: 4px;
}

.contact-item h4 {
    font-family: var(--font-accent);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--rope);
    margin-bottom: 8px;
}

.contact-item p,
.contact-item a {
    color: var(--cream);
    font-size: 1.125rem;
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

.contact-cta {
    text-align: center;
    padding: 60px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-cta p {
    color: var(--cream);
    font-size: 1.25rem;
    margin-bottom: 30px;
}

/* =============================================
   Footer
   ============================================= */
.footer {
    background: var(--navy-deep);
    padding: 80px 0 40px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo-img {
    max-width: 200px;
    margin-bottom: 20px;
}

.footer-tagline {
    font-family: var(--font-accent);
    font-size: 0.875rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--sand);
    margin-bottom: 40px;
}

.footer-divider {
    width: 60px;
    height: 2px;
    background: var(--crimson);
    margin-bottom: 40px;
}

.footer-copyright {
    font-size: 0.9rem;
    color: var(--sand);
    opacity: 0.7;
    margin-bottom: 10px;
}

.footer-note {
    font-size: 0.8rem;
    color: var(--sand);
    opacity: 0.5;
    font-style: italic;
}

/* =============================================
   Responsive Design
   ============================================= */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }
    
    .about-content,
    .quality-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .philosophy-grid {
        grid-template-columns: 1fr;
    }
    
    .products-content {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .quality-visual {
        order: -1;
    }
    
    .compass {
        width: 220px;
        height: 220px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--parchment);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        box-shadow: 0 20px 40px rgba(26, 38, 52, 0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        padding: 100px 24px 60px;
    }
    
    .hero-logo {
        max-width: 320px;
    }
    
    .hero-tagline {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }
    
    .stat-card {
        padding: 24px;
    }
    
    .philosophy-card {
        padding: 40px 30px;
    }
    
    .card-number {
        font-size: 3rem;
    }
    
    .product-category {
        padding: 40px 30px;
    }
    
    .contact-cta {
        padding: 40px 30px;
    }
    
    .certifications {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 2rem;
    }
    
    .hero-logo {
        max-width: 260px;
    }
    
    .cta-button {
        padding: 15px 35px;
        font-size: 0.8rem;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .compass {
        width: 180px;
        height: 180px;
    }
    
    .compass-needle {
        height: 90px;
    }
}

/* =============================================
   Animations on Scroll
   ============================================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth section transitions */
section {
    opacity: 0;
    transform: translateY(20px);
    animation: sectionFadeIn 0.8s ease-out forwards;
}

@keyframes sectionFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

