/* ============================================================
   GLOBAL.CSS — Base resets, typography, shared utilities
   Dr. Sarfaraz Sheikh — Premium Nutrition Specialist Website
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Inter:wght@300;400;500;600;700&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

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

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

body {
    font-family: 'DM Sans', 'Inter', sans-serif;
    color: #2F3A2F;
    background-color: #F8F6F1;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ── Typography ─────────────────────────────────────────── */

h1, h2, h3, h4, h5 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: #2F3A2F;
    line-height: 1.2;
    font-weight: 600;
}

h1 { font-size: clamp(2.8rem, 5vw, 5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }

p {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    color: #5A6B5A;
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

section {
    position: relative;
    overflow: hidden;
}

/* ── Shared Section Labels ──────────────────────────────── */

.global-section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #6D8A63;
    margin-bottom: 16px;
}

.global-section-label::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 2px;
    background-color: #6D8A63;
    border-radius: 2px;
}

/* ── Shared Buttons ─────────────────────────────────────── */

.global-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #6D8A63;
    color: #FFFFFF;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 14px 32px;
    border-radius: 50px;
    border: 2px solid #6D8A63;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.global-btn-primary:hover {
    background-color: #4D6845;
    border-color: #4D6845;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(109, 138, 99, 0.35);
}

.global-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    color: #6D8A63;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 13px 30px;
    border-radius: 50px;
    border: 2px solid #6D8A63;
    cursor: pointer;
    transition: all 0.3s ease;
}

.global-btn-outline:hover {
    background-color: #6D8A63;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(109, 138, 99, 0.25);
}

/* ── Shared Card Base ───────────────────────────────────── */

.global-card {
    background: #FFFFFF;
    border-radius: 24px;
    border: 1px solid #E6E6E6;
    padding: 32px;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.global-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(47, 58, 47, 0.08);
}

/* ── Ripple Effect ──────────────────────────────────────── */

.global-btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0);
    border-radius: 50px;
    transition: transform 0.5s ease;
}

.global-btn-primary:active::after {
    transform: scale(1.5);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

/* ── Scrollbar ──────────────────────────────────────────── */

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #F8F6F1;
}
::-webkit-scrollbar-thumb {
    background: #6D8A63;
    border-radius: 10px;
}

/* ── Utility ────────────────────────────────────────────── */

.global-cream-bg {
    background-color: #F8F6F1;
}
.global-sage-bg {
    background-color: #DDE6D5;
}
.global-beige-bg {
    background-color: #F2EEE8;
}
.global-white-bg {
    background-color: #FFFFFF;
}

/* ============================================================
   FLOATING SOCIAL MEDIA SIDEBAR (RIGHT)
   ============================================================ */

.floating-social-sidebar {
    position: fixed;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 998;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
}

.floating-social-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-social-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #FFFFFF !important;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease, filter 0.25s ease;
}

.floating-social-btn:hover {
    transform: translateX(-5px) scale(1.1);
    color: #FFFFFF !important;
}

/* Individual Platform Colors */
.floating-social-youtube {
    background: #FF0000;
    box-shadow: 0 6px 18px rgba(255, 0, 0, 0.35);
}
.floating-social-youtube:hover {
    box-shadow: 0 8px 24px rgba(255, 0, 0, 0.55);
}

.floating-social-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    box-shadow: 0 6px 18px rgba(214, 36, 159, 0.35);
}
.floating-social-instagram:hover {
    box-shadow: 0 8px 24px rgba(214, 36, 159, 0.55);
}

.floating-social-facebook {
    background: #1877F2;
    box-shadow: 0 6px 18px rgba(24, 119, 242, 0.35);
}
.floating-social-facebook:hover {
    box-shadow: 0 8px 24px rgba(24, 119, 242, 0.55);
}

.floating-social-linkedin {
    background: #0A66C2;
    box-shadow: 0 6px 18px rgba(10, 102, 194, 0.35);
}
.floating-social-linkedin:hover {
    box-shadow: 0 8px 24px rgba(10, 102, 194, 0.55);
}

.floating-social-twitter {
    background: #111111;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.floating-social-twitter:hover {
    background: #000000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

/* Tooltip on Hover */
.floating-social-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    background: #2F3A2F;
    color: #FFFFFF;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.floating-social-tooltip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 5px 0 5px 5px;
    border-style: solid;
    border-color: transparent transparent transparent #2F3A2F;
}

.floating-social-btn:hover .floating-social-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* ============================================================
   SCROLL TO TOP BUTTON (BOTTOM RIGHT CORNER)
   ============================================================ */

.scroll-to-top-btn {
    position: fixed;
    right: 20px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6D8A63 0%, #3E5437 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 24px rgba(47, 58, 47, 0.35);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease, background 0.3s ease;
    padding: 0;
    outline: none;
}

.scroll-to-top-btn:hover {
    transform: translateY(-4px) scale(1.08);
    background: linear-gradient(135deg, #7C9A72 0%, #4D6845 100%);
    box-shadow: 0 12px 30px rgba(109, 138, 99, 0.6);
}

.scroll-to-top-btn:active {
    transform: translateY(0) scale(0.98);
}

.scroll-to-top-btn svg {
    stroke: #FFFFFF;
    transition: transform 0.3s ease;
}

.scroll-to-top-btn:hover svg {
    transform: translateY(-3px);
}

/* Scroll To Top Tooltip */
.scroll-to-top-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    background: #2F3A2F;
    color: #FFFFFF;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.scroll-to-top-tooltip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 5px 0 5px 5px;
    border-style: solid;
    border-color: transparent transparent transparent #2F3A2F;
}

.scroll-to-top-btn:hover .scroll-to-top-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* Mobile Responsiveness */
@media (max-width: 767px) {
    .floating-social-sidebar {
        right: 10px;
    }
    .floating-social-btn {
        width: 38px;
        height: 38px;
    }
    .floating-social-btn svg {
        width: 17px;
        height: 17px;
    }
    .floating-social-tooltip {
        display: none;
    }
    .scroll-to-top-btn {
        right: 14px;
        bottom: 16px;
        width: 42px;
        height: 42px;
    }
    .scroll-to-top-tooltip {
        display: none;
    }
}
