:root {
    --cream: #FFF8F0;
    --rose-gold: #D4A574;
    --deep-green: #2C4A3E;
    --charcoal: #2A2A2A;
    --light-gold: #F4E4D0;
    --accent: #B8956A;
    --light-blue: #0a93b3;
    --theme-color: var(--light-blue);
}

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

body {
    font-family: 'Raleway', sans-serif;
    color: var(--charcoal);
    background: var(--cream);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 248, 240, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    line-height: 1;
    gap: 0.25rem;
}

.logo-saltwater {
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    font-size: 1.7rem;
    letter-spacing: 1px;
    color: var(--charcoal);
}

.logo-beauty-bar {
    font-family: 'Antonio', sans-serif;
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: var(--charcoal);
    text-transform: uppercase;
    padding-left: 2px;
}

.logo-text--hero {
    align-items: center;
    margin-bottom: 1.5rem;
}

.logo-text--hero .logo-saltwater {
    font-size: clamp(2.8rem, 10vw, 5.5rem);
    color: var(--cream);
}

.logo-text--hero .logo-beauty-bar {
    font-size: clamp(0.6rem, 1.6vw, 0.85rem);
    letter-spacing: 6px;
    color: var(--cream);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--charcoal);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--cream);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--theme-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--theme-color) 0%, #0caacc 50%, var(--theme-color) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(212, 165, 116, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(244, 228, 208, 0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hero-content {
    text-align: center;
    color: var(--cream);
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
    padding: 2rem;
}

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

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: 3px;
    color: var(--cream);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--cream);
    margin-bottom: 3rem;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--rose-gold);
    color: white;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(212, 165, 116, 0.3);
}

.cta-button:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(212, 165, 116, 0.4);
}

.cta-products {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--theme-color);
    color: white;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(10, 147, 179, 0.3);
}

.cta-products:hover {
    background: #0882a0;
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(10, 147, 179, 0.4);
}

/* Section Styling */
section {
    padding: 3.5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-align: center;
    margin-bottom: 1rem;
    color: var(--theme-color);
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.section-subtitle {
    text-align: center;
    color: var(--rose-gold);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

/* Services Section */
.services {
    background: linear-gradient(180deg, var(--cream) 0%, var(--light-gold) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 1rem;
}

.service-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--cream), var(--accent));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--theme-color);
}

.service-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Products Section */
.products-intro {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 2.5rem;
    color: #555;
    font-size: 1rem;
    line-height: 1.8;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.product-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.product-img {
    aspect-ratio: 4 / 3;
    width: 100%;
    display: block;
}

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

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.product-card {
    position: relative;
}

.product-card:hover .product-overlay,
.product-card:hover .product-list {
    opacity: 1;
}

.product-list {
    position: absolute;
    inset: 0;
    list-style: none;
    padding: 1.5rem;
    margin: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.product-list li {
    color: var(--charcoal);
    font-size: 0.9rem;
    line-height: 1.6;
    padding: 0.3rem 0;
}

.product-list li::before {
    content: '— ';
    color: var(--rose-gold);
}

.product-info {
    text-align: center;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.product-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--theme-color);
}

.product-tagline {
    font-size: 0.82rem;
    color: var(--rose-gold);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.product-cta {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.6rem 1.8rem;
    background: var(--theme-color);
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.product-cta:hover {
    background: #0882a0;
    transform: translateY(-2px);
}

/* About Section */
.about {
    background: var(--cream);
}

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

.about-text {
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

.about-image {
    background: linear-gradient(135deg, var(--cream), var(--accent));
    height: 500px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.about-image::after {
    content: '✨';
    position: absolute;
    font-size: 4rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
}

/* Team Subsection */
.team {
    margin-top: 4rem;
}

.team-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 400;
    text-align: center;
    color: var(--theme-color);
    letter-spacing: 1px;
    margin-bottom: 2.5rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.team-photo-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.team-photo {
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, var(--cream), var(--accent));
    width: 100%;
}

.team-bio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.team-bio-overlay p {
    color: var(--charcoal);
    font-size: 0.9rem;
    line-height: 1.6;
}

.team-card:hover .team-bio-overlay {
    opacity: 1;
}

.team-info {
    text-align: center;
    padding: 1rem 0;
}

.team-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--theme-color);
    margin-bottom: 0.25rem;
}

.team-position {
    font-size: 0.85rem;
    color: var(--cream);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Gallery Section */
.gallery {
    background: var(--light-gold);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--theme-color), var(--cream));
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.gallery-item::after {
    content: '♦';
    position: absolute;
    font-size: 3rem;
    color: white;
    opacity: 0.2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Contact Section */
.contact {
    background: var(--theme-color);
    color: var(--cream);
    border-radius: 12px;
    margin: 4rem 2rem;
    padding: 5rem 3rem !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.contact .section-title {
    color: var(--cream);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--cream);
}

.contact-details h4 {
    color: var(--cream);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-details p {
    color: var(--cream);
    font-size: 1.1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 4px;
    color: var(--cream);
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 248, 240, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cream);
    background: rgba(255, 255, 255, 0.15);
}

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

.submit-btn {
    padding: 1.2rem;
    background: var(--cream);
    color: var(--theme-color);
    border: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: var(--charcoal);
    color: var(--cream);
    text-align: center;
    padding: 3rem 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-links a {
    color: var(--cream);
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent);
}

footer p {
    color: rgba(255, 248, 240, 0.7);
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 248, 240, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

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

    .about-image {
        height: 300px;
    }

    section {
        padding: 2.5rem 1.5rem;
    }

    .services-grid {
        gap: 2rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

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

    /* ── Team cards: sticky name/position on mobile ── */
    .team-card {
        display: flex;
        flex-direction: column;
    }

    .team-photo-wrapper {
        order: 1;
    }

    .team-info {
        order: 0;
        position: sticky;
        top: 90px;
        background: var(--cream);
        z-index: 5;
        padding: 0.5rem 0;
    }

    .team-bio-overlay {
        opacity: 1;
    }

    /* ── Product cards: sticky name/tagline on mobile ── */
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        display: flex;
        flex-direction: column;
    }

    .product-img-wrapper {
        order: 1;
    }

    .product-info {
        order: 0;
        position: sticky;
        top: 90px;
        background: var(--cream);
        z-index: 5;
        padding: 0.5rem 0;
    }

    .product-overlay {
        display: none;
    }

    .product-list {
        position: static;
        inset: unset;
        opacity: 1;
        text-align: left;
        padding: 1rem 0.5rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

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

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

/* ── Active nav link ──────────────────────────────── */
.nav-active {
    color: var(--theme-color) !important;
    font-weight: 500;
}

/* ── Page top padding (non-hero pages) ────────────── */
.page-section-top {
    padding-top: 120px;
}

/* ── Blog ─────────────────────────────────────────── */
.blog-listing {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.blog-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
}

.blog-date {
    font-size: 0.8rem;
    color: var(--rose-gold);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.blog-card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 400;
    margin: 0.5rem 0;
}

.blog-card-title a {
    color: var(--theme-color);
    text-decoration: none;
}

.blog-card-title a:hover {
    color: var(--accent);
}

.blog-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Blog post body (rendered from Markdown) */
.post-content {
    max-width: 720px;
    margin: 0 auto;
}

.post-content h2,
.post-content h3 {
    color: var(--theme-color);
    margin: 2rem 0 1rem;
}

.post-content p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.post-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.post-content a {
    color: var(--theme-color);
    text-decoration: underline;
}

.post-content ul,
.post-content ol {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.post-meta {
    text-align: center;
    margin-bottom: 2rem;
}

.post-back {
    display: inline-block;
    margin-top: 2rem;
    color: var(--theme-color);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.post-back:hover {
    color: var(--accent);
}
