/* ===================================
   Glow Up Nutrition - Custom Styles
   Teal & Slate Grey Palette
=================================== */

/* CSS Custom Properties */
:root {
    --color-teal-50: #f0fdfa;
    --color-teal-100: #ccfbf1;
    --color-teal-200: #99f6e4;
    --color-teal-300: #5eead4;
    --color-teal-400: #2dd4bf;
    --color-teal-500: #14b8a6;
    --color-teal-600: #0d9488;
    --color-teal-700: #0f766e;
    --color-teal-800: #115e59;
    --color-teal-900: #134e4a;

    --color-slate-50: #f8fafc;
    --color-slate-100: #f1f5f9;
    --color-slate-200: #e2e8f0;
    --color-slate-300: #cbd5e1;
    --color-slate-400: #94a3b8;
    --color-slate-500: #64748b;
    --color-slate-600: #475569;
    --color-slate-700: #334155;
    --color-slate-800: #1e293b;
    --color-slate-900: #0f172a;

    --color-cream: #faf9f6;
    --color-warm-white: #fefdf8;
    --color-accent: #f59e0b;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --shadow-sm: 0 1px 2px 0 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: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 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);
    color: var(--color-slate-700);
    background-color: var(--color-cream);
    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;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-slate-800);
    line-height: 1.2;
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-teal-500), var(--color-teal-600));
    color: white;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-teal-600), var(--color-teal-700));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--color-slate-700);
    border: 2px solid var(--color-slate-200);
}

.btn-secondary:hover {
    border-color: var(--color-teal-400);
    color: var(--color-teal-700);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.btn-full {
    width: 100%;
}

/* Section Tags */
.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-teal-600);
    background: var(--color-teal-50);
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    color: var(--color-slate-800);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-slate-500);
    max-width: 600px;
    line-height: 1.7;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

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

/* ===================================
   Header / Navigation
=================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-slate-100);
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-slate-800);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--color-teal-400), var(--color-teal-600));
    border-radius: var(--radius-sm);
    color: white;
}

.logo-text .dot {
    color: var(--color-teal-500);
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.main-nav a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-slate-600);
    transition: var(--transition);
    position: relative;
}

.main-nav a:hover {
    color: var(--color-teal-600);
}

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

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

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-slate-700);
    transition: var(--transition);
}

.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);
}

/* ===================================
   Hero Section
=================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-teal-50) 50%, var(--color-slate-50) 100%);
    position: relative;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(20, 184, 166, 0.08) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(148, 163, 184, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    padding: 2rem 0;
}

.badge {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-teal-700);
    background: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    border: 1px solid var(--color-teal-100);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    color: var(--color-slate-800);
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    color: var(--color-teal-600);
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.1875rem;
    color: var(--color-slate-500);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Floating Stat Cards */
.hero-stats {
    position: relative;
    height: 500px;
}

.stat-card {
    position: absolute;
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 6s ease-in-out infinite;
}

.stat-card--1 {
    top: 0;
    right: 0;
    animation-delay: 0s;
}

.stat-card--2 {
    top: 45%;
    left: 0;
    animation-delay: 2s;
}

.stat-card--3 {
    bottom: 0;
    right: 10%;
    animation-delay: 4s;
}

.stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-teal-100), var(--color-teal-200));
    border-radius: var(--radius-md);
    color: var(--color-teal-700);
    flex-shrink: 0;
}

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

.stat-label {
    font-size: 0.8125rem;
    color: var(--color-slate-500);
}

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

/* Hero Image */
.hero-image-wrapper {
    position: relative;
    height: 600px;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.hero-image-overlay {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background: linear-gradient(to top, rgba(15, 23, 42, 0.2), transparent 50%);
}

/* ===================================
   Philosophy Section
=================================== */
.philosophy {
    padding: 8rem 0;
    background: white;
}

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

.philosophy-card {
    background: var(--color-cream);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: var(--transition);
    border: 1px solid transparent;
}

.philosophy-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-teal-100);
}

.philosophy-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-teal-500), var(--color-teal-600));
    border-radius: var(--radius-md);
    color: white;
    margin-bottom: 1.5rem;
}

.philosophy-card h3 {
    font-size: 1.375rem;
    margin-bottom: 0.75rem;
    color: var(--color-slate-800);
}

.philosophy-card p {
    color: var(--color-slate-500);
    line-height: 1.7;
}

/* ===================================
   Offerings Section
=================================== */
.offerings {
    padding: 8rem 0;
    background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-teal-50) 100%);
}

.offerings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.offering-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.offering-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.offering-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

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

.offering-card:hover .offering-image img {
    transform: scale(1.05);
}

.offering-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, var(--color-teal-500), var(--color-teal-600));
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
}

.offering-content {
    padding: 1.75rem;
}

.offering-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--color-slate-800);
}

.offering-content p {
    color: var(--color-slate-500);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ===================================
   Process Section
=================================== */
.process {
    padding: 8rem 0;
    background: white;
}

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

.process-content .section-tag {
    text-align: left;
}

.process-content .section-title {
    text-align: left;
}

.process-text {
    color: var(--color-slate-500);
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.process-step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-teal-200);
    line-height: 1;
    flex-shrink: 0;
    width: 48px;
}

.step-content h4 {
    font-size: 1.125rem;
    margin-bottom: 0.375rem;
    color: var(--color-slate-800);
}

.step-content p {
    color: var(--color-slate-500);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.process-image {
    position: relative;
}

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

.process-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--color-teal-200), var(--color-teal-300));
    border-radius: var(--radius-lg);
    z-index: -1;
}

/* ===================================
   Community Section
=================================== */
.community {
    padding: 8rem 0;
    background: linear-gradient(180deg, var(--color-teal-50) 0%, var(--color-cream) 100%);
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.community-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.community-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.community-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.community-card-content {
    padding: 1.75rem;
}

.community-card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--color-slate-800);
}

.community-card-content p {
    color: var(--color-slate-500);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ===================================
   Visit Section
=================================== */
.visit {
    padding: 8rem 0;
    background: white;
}

.visit-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.visit-info .section-tag {
    text-align: left;
}

.visit-info .section-title {
    text-align: left;
}

.visit-text {
    color: var(--color-slate-500);
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

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

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

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

.contact-item strong {
    display: block;
    color: var(--color-slate-800);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

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

.contact-item a {
    color: var(--color-teal-600);
    transition: var(--transition);
}

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

/* Contact Form */
.visit-form-wrapper {
    background: var(--color-cream);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid var(--color-slate-100);
}

.visit-form-wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-slate-800);
}

.visit-form-wrapper > p {
    color: var(--color-slate-500);
    margin-bottom: 2rem;
    font-size: 0.9375rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-slate-700);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--color-slate-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--color-slate-700);
    background: white;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-teal-400);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

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

.form-success {
    display: none;
    text-align: center;
    padding: 2rem;
}

.form-success svg {
    color: var(--color-teal-500);
    margin-bottom: 1rem;
}

.form-success h4 {
    font-size: 1.375rem;
    margin-bottom: 0.5rem;
    color: var(--color-slate-800);
}

.form-success p {
    color: var(--color-slate-500);
}

/* ===================================
   Footer
=================================== */
.footer {
    background: var(--color-slate-800);
    color: var(--color-slate-300);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-slate-400);
}

.footer-links h4 {
    color: white;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.9375rem;
    color: var(--color-slate-400);
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid var(--color-slate-700);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--color-slate-500);
}

/* ===================================
   Responsive Design
=================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-image-wrapper {
        order: 0;
        height: 400px;
    }

    .hero-subtitle {
        margin: 0 auto 2rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        display: none;
    }

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

    .process-wrapper,
    .visit-wrapper {
        grid-template-columns: 1fr;
    }

    .process-image {
        order: -1;
    }

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

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

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 1.5rem;
    }

    .philosophy-grid,
    .offerings-grid,
    .community-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

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

    .hero-image-wrapper {
        height: 300px;
    }

    .process-image-accent {
        display: none;
    }
}

/* ===================================
   Accessibility & Reduced Motion
=================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-teal-500);
    outline-offset: 2px;
}
