/* ============================================
   Time & Tide Skincare - Coming Soon Styles
   ============================================ */

/* Base Reset & Variables */
:root {
    --color-turquoise: #2DBEC1;
    --color-sand: #F4E7D6;
    --color-grey: #2D2D2D;
    --color-white: #FFFFFF;
    --color-light-grey: #F8F8F8;
    
    --font-heading: 'Cormorant', serif;
    --font-body: 'Montserrat', sans-serif;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-soft: 0 2px 20px rgba(45, 45, 45, 0.08);
    --shadow-hover: 0 8px 30px rgba(45, 45, 45, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--color-grey);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--color-white);
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 300;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Hero Section - Exact copy from main site */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, 
        rgba(244, 231, 214, 0.4) 0%, 
        rgba(212, 175, 55, 0.1) 30%,
        rgba(45, 190, 193, 0.15) 70%,
        rgba(45, 190, 193, 0.2) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(244, 231, 214, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.hero__content {
    text-align: center;
    z-index: 3;
    position: relative;
    padding-top: var(--spacing-md);
}

.hero__logo {
    margin-bottom: var(--spacing-sm);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.1s forwards;
}

.hero__logo-image {
    max-width: 180px;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 4px 20px rgba(45, 190, 193, 0.15));
    transition: var(--transition);
}

.hero__logo-image:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 6px 25px rgba(45, 190, 193, 0.25));
}

.hero__title {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
    color: var(--color-grey);
    letter-spacing: 0.02em;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero__subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.2vw, 1.4rem);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-turquoise);
    margin-bottom: var(--spacing-md);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.hero__description {
    font-size: clamp(1rem, 2vw, 1.375rem);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
    color: var(--color-grey);
    opacity: 0;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

.hero__wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    z-index: 1; /* make sure wave is behind hero content by default */
    pointer-events: none;
}

/* Countdown Section */
.countdown {
    margin: var(--spacing-sm) 0;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.countdown__label {
    font-family: var(--font-body);
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-turquoise);
    margin-bottom: var(--spacing-md);
}

.countdown__timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(0.75rem, 3vw, 1.5rem);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-sm);
}

.countdown__item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(45, 190, 193, 0.3);
    border-radius: 20px;
    padding: clamp(1rem, 3vw, 1.5rem) clamp(0.75rem, 2vw, 1.25rem);
    min-width: clamp(80px, 15vw, 120px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.countdown__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(45, 190, 193, 0.1), transparent);
    transition: left 0.5s ease;
}

.countdown__item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(45, 190, 193, 0.5);
    box-shadow: 0 10px 40px rgba(45, 190, 193, 0.2);
}

.countdown__item:hover::before {
    left: 100%;
}

.countdown__number {
    display: block;
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 700;
    font-family: var(--font-body);
    color: var(--color-turquoise);
    line-height: 1;
    margin-bottom: var(--spacing-xs);
    text-shadow: 0 2px 10px rgba(45, 190, 193, 0.3);
    position: relative;
    z-index: 2;
}

.countdown__unit {
    font-size: clamp(0.7rem, 1.5vw, 0.9rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-grey);
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.countdown__separator {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--color-turquoise);
    opacity: 0.7;
    animation: pulse 2s ease-in-out infinite;
    display: flex;
    align-items: center;
    font-weight: 300;
}

.countdown__date {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    color: var(--color-grey);
    opacity: 0.8;
    margin-top: var(--spacing-sm);
    font-style: italic;
}

/* Social Media Section */
.social-media {
    margin-top: var(--spacing-md);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.social-media__label {
    font-family: var(--font-body);
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-turquoise);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.social-media__icons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(45, 190, 193, 0.3);
    border-radius: 50%;
    color: var(--color-turquoise);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.social-icon svg {
    width: 24px;
    height: 24px;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--color-turquoise);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.social-icon:hover {
    transform: translateY(-3px);
    border-color: var(--color-turquoise);
    box-shadow: 0 8px 25px rgba(45, 190, 193, 0.3);
}

.social-icon:hover::before {
    width: 100%;
    height: 100%;
}

.social-icon:hover svg {
    color: var(--color-white);
    transform: scale(1.1);
}

.countdown__item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(45, 190, 193, 0.5);
    box-shadow: 0 10px 40px rgba(45, 190, 193, 0.2);
}

.countdown__item:hover::before {
    left: 100%;
}

.countdown__number {
    display: block;
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 700;
    font-family: var(--font-body);
    color: var(--color-turquoise);
    line-height: 1;
    margin-bottom: var(--spacing-xs);
    text-shadow: 0 2px 10px rgba(45, 190, 193, 0.3);
    position: relative;
    z-index: 2;
}

.countdown__unit {
    font-size: clamp(0.7rem, 1.5vw, 0.9rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-grey);
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.countdown__separator {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--color-turquoise);
    opacity: 0.7;
    animation: pulse 2s ease-in-out infinite;
    display: flex;
    align-items: center;
    font-weight: 300;
}

.countdown__date {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    color: var(--color-grey);
    opacity: 0.8;
    margin-top: var(--spacing-sm);
    font-style: italic;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-bubble {
    position: absolute;
    background: rgba(45, 190, 193, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-bubble--1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-bubble--2 {
    width: 60px;
    height: 60px;
    top: 60%;
    left: 85%;
    animation-delay: 2s;
}

.floating-bubble--3 {
    width: 40px;
    height: 40px;
    top: 80%;
    left: 15%;
    animation-delay: 4s;
}

.floating-bubble--4 {
    width: 100px;
    height: 100px;
    top: 30%;
    left: 80%;
    animation-delay: 1s;
}

.floating-bubble--5 {
    width: 50px;
    height: 50px;
    top: 70%;
    left: 60%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.6;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero__content {
        transform: translateY(-30px);
        padding: var(--spacing-sm) var(--spacing-sm) 0;
    }
    
    .hero__logo-image {
        max-width: 140px;
    }
    
    .countdown__timer {
        gap: var(--spacing-sm);
    }
    
    .countdown__item {
        min-width: clamp(70px, 12vw, 100px);
        padding: clamp(0.75rem, 2.5vw, 1.25rem) clamp(0.5rem, 1.5vw, 1rem);
    }
    
    .countdown__number {
        font-size: clamp(1.5rem, 6vw, 2.25rem);
    }
    
    .countdown__separator {
        font-size: clamp(1.25rem, 5vw, 2rem);
    }
    
    .social-media__icons {
        gap: var(--spacing-sm);
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
    }
    
    .social-icon svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .hero__content {
        transform: translateY(-10px);
        padding-top: var(--spacing-xs);
    }
    
    .hero__logo-image {
        max-width: 80px;
    }
    
    .hero__title {
        font-size: clamp(2.5rem, 12vw, 4.5rem);
    }
    
    .hero__subtitle {
        font-size: clamp(0.85rem, 4vw, 1.2rem);
    }
    
    .countdown__timer {
        gap: 0.5rem;
        flex-direction: column;
        align-items: center;
    }
    
    .countdown__timer > * {
        margin: 0.25rem 0;
    }
    
    .countdown__item {
        min-width: clamp(60px, 20vw, 90px);
        padding: clamp(0.5rem, 2vw, 1rem) clamp(0.4rem, 1.5vw, 0.75rem);
    }
    
    .countdown__number {
        font-size: clamp(1.25rem, 8vw, 1.75rem);
    }
    
    .countdown__unit {
        font-size: clamp(0.6rem, 2vw, 0.75rem);
    }
    
    .countdown__separator {
        font-size: clamp(1rem, 6vw, 1.5rem);
        display: none; /* Hide separators on mobile for cleaner look */
    }
    
    .social-media {
        margin-top: var(--spacing-md);
    position: relative;
    z-index: 4; /* keep social icons above the wave */
    }
    
    .social-media__icons {
        gap: 0.75rem;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
    }
    
    .social-icon svg {
        width: 18px;
        height: 18px;
    }

    /* Defensive rules: prevent logo from floating above a fixed header on small screens */
    .hero__content,
    .hero__logo,
    .hero__logo-image {
        /* Ensure CSS-controlled stacking; avoid forcing transforms to none so other animations remain intact */
        position: relative;
        z-index: 3;
    }

    /* If your site uses a fixed header, ensure it stays above the hero logo */
    header, .site-header, .fixed-header {
        position: relative;
        z-index: 10;
    }
}
