/* Beach House Elementor Widgets - Main Styles */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --bh-primary: #1B365D;
    --bh-dark: #050505;
    --bh-light: #FDFCFB;
    --bh-text: #1A1A1A;
    --bh-gray: #6B7280;
    --bh-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --bh-font-serif: 'Playfair Display', Georgia, serif;
}

/* ============================================
   HERO SECTION STYLES
   ============================================ */

.bh-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    background: var(--bh-dark);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bh-hero__grain {
    position: absolute;
    inset: 0;
    z-index: 50;
    pointer-events: none;
    opacity: 0.03;
    mix-blend-mode: overlay;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)"/></svg>');
}

.bh-hero__slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.bh-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

.bh-hero__slide.active {
    opacity: 1;
    visibility: visible;
}

.bh-hero__glow {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.15;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.15; }
    50% { transform: scale(1.1); opacity: 0.2; }
}

.bh-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.bh-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: grayscale(20%);
    animation: slowZoom 20s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.bh-hero__container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .bh-hero__container {
        grid-template-columns: 1fr 1fr;
        padding: 0 3rem;
    }
}

.bh-hero__content {
    position: relative;
}

.bh-hero__subtitle-wrap {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.bh-hero__line {
    width: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    animation: expandLine 1s ease forwards;
    animation-delay: 0.5s;
}

@keyframes expandLine {
    to { width: 64px; }
}

.bh-hero__subtitle {
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8em;
    font-family: var(--bh-font-sans);
}

.bh-hero__title {
    font-family: var(--bh-font-serif);
    font-size: clamp(5rem, 15vw, 12rem);
    line-height: 0.85;
    color: white;
    letter-spacing: -0.03em;
    margin-bottom: 3rem;
}

.bh-hero__title-main {
    display: block;
    animation: slideInLeft 1s ease forwards;
    opacity: 0;
    animation-delay: 0.2s;
}

.bh-hero__title-end {
    display: block;
    font-style: italic;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.2);
    margin-top: -0.1em;
    margin-left: 0.5em;
    animation: slideInRight 1s ease forwards;
    opacity: 0;
    animation-delay: 0.4s;
}

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

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.bh-hero__bottom {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

@media (min-width: 768px) {
    .bh-hero__bottom {
        flex-direction: row;
        align-items: flex-end;
    }
}

.bh-hero__desc {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    line-height: 1.6;
    max-width: 20rem;
    font-weight: 500;
    font-family: var(--bh-font-sans);
    animation: fadeIn 1s ease forwards;
    opacity: 0;
    animation-delay: 0.8s;
}

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

.bh-hero__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    color: white;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    text-decoration: none;
    overflow: hidden;
    transition: border-color 0.3s ease;
    font-family: var(--bh-font-sans);
    animation: scaleIn 0.8s ease forwards;
    opacity: 0;
    animation-delay: 1s;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.bh-hero__btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.bh-hero__btn:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

.bh-hero__btn:hover::before {
    transform: translateY(0);
}

.bh-hero__btn svg {
    position: relative;
    transition: transform 0.3s ease;
}

.bh-hero__btn:hover svg {
    transform: translateX(4px);
}

.bh-hero__number {
    position: absolute;
    top: -6rem;
    left: -3rem;
    font-family: var(--bh-font-serif);
    font-size: 20rem;
    color: white;
    opacity: 0.05;
    pointer-events: none;
    user-select: none;
    animation: slideInNumber 1.5s ease forwards;
    animation-delay: 0.6s;
}

@keyframes slideInNumber {
    from { opacity: 0; transform: translateX(-100px); }
    to { opacity: 0.05; transform: translateX(0); }
}

.bh-hero__images {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 1024px) {
    .bh-hero__images {
        height: 85vh;
    }
}

.bh-hero__image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bh-hero__main-image {
    position: relative;
    width: 85%;
    height: 90%;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: clipReveal 1.5s ease forwards;
}

@keyframes clipReveal {
    from { clip-path: inset(100% 0 0 0); }
    to { clip-path: inset(0% 0 0 0); }
}

.bh-hero__main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: imageZoom 2s ease forwards;
}

@keyframes imageZoom {
    from { transform: scale(1.2); }
    to { transform: scale(1); }
}

.bh-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.bh-hero__location {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
}

.bh-hero__location-label {
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.25rem;
    font-family: var(--bh-font-sans);
}

.bh-hero__location-name {
    color: white;
    font-family: var(--bh-font-serif);
    font-size: 1.5rem;
    font-style: italic;
}

.bh-hero__detail-image {
    position: absolute;
    bottom: -3rem;
    right: -1.5rem;
    width: 40%;
    aspect-ratio: 4/5;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 12px solid var(--bh-dark);
    z-index: 20;
    animation: floatIn 1.2s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

@keyframes floatIn {
    from { opacity: 0; transform: translate(100px, 0) scale(0.8); }
    to { opacity: 1; transform: translate(0, 0) scale(1); }
}

.bh-hero__detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bh-hero__circle {
    position: absolute;
    top: -3rem;
    left: -3rem;
    width: 12rem;
    height: 12rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.bh-hero__nav {
    position: absolute;
    bottom: 3rem;
    right: 3rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    z-index: 30;
}

.bh-hero__indicators {
    display: flex;
    gap: 1rem;
}

.bh-hero__indicator {
    position: relative;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.bh-hero__indicator span {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.2);
    transition: color 0.3s ease;
    font-family: var(--bh-font-sans);
}

.bh-hero__indicator.active span,
.bh-hero__indicator:hover span {
    color: white;
}

.bh-hero__progress {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.bh-hero__progress circle {
    fill: none;
    stroke-width: 1;
}

.bh-hero__progress circle:first-child {
    stroke: rgba(255, 255, 255, 0.1);
}

.bh-hero__progress-bar {
    stroke: white;
    stroke-dasharray: 138;
    stroke-dashoffset: 138;
    transition: stroke-dashoffset 0.1s linear;
}

.bh-hero__scroll {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .bh-hero__scroll {
        display: flex;
    }
}

.bh-hero__scroll span {
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    color: rgba(255, 255, 255, 0.2);
    writing-mode: vertical-rl;
    font-family: var(--bh-font-sans);
}

.bh-hero__scroll-line {
    width: 1px;
    height: 3rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), transparent);
}

.bh-hero__social {
    position: absolute;
    left: 3rem;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    z-index: 30;
}

@media (min-width: 1280px) {
    .bh-hero__social {
        display: flex;
    }
}

.bh-hero__social a {
    color: rgba(255, 255, 255, 0.2);
    transition: color 0.3s ease;
}

.bh-hero__social a:hover {
    color: white;
}

.bh-hero__social-line {
    width: 1px;
    height: 6rem;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
}

/* Responsive adjustments */
@media (max-width: 1023px) {
    .bh-hero__title {
        font-size: clamp(3rem, 12vw, 5rem);
    }
    
    .bh-hero__number {
        font-size: 10rem;
        top: -3rem;
        left: -1rem;
    }
    
    .bh-hero__nav {
        bottom: 1.5rem;
        right: 1.5rem;
        gap: 1.5rem;
    }
}

/* ============================================
   WELCOME SECTION STYLES
   ============================================ */

.bh-welcome {
    padding: 6rem 1.5rem;
    background: var(--bh-light);
}

@media (min-width: 768px) {
    .bh-welcome {
        padding: 8rem 1.5rem;
    }
}

.bh-welcome__container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .bh-welcome__container {
        grid-template-columns: 1fr 1fr;
    }
}

.bh-welcome__images {
    position: relative;
}

.bh-welcome__main-image {
    aspect-ratio: 4/5;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.bh-welcome__main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.bh-welcome__main-image:hover img {
    transform: scale(1.05);
}

.bh-welcome__secondary-image {
    display: none;
    position: absolute;
    bottom: -3rem;
    right: -3rem;
    width: 16rem;
    aspect-ratio: 1;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 8px solid white;
}

@media (min-width: 768px) {
    .bh-welcome__secondary-image {
        display: block;
    }
}

.bh-welcome__secondary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bh-welcome__content {
    padding-left: 0;
}

@media (min-width: 1024px) {
    .bh-welcome__content {
        padding-left: 3rem;
    }
}

.bh-welcome__subtitle {
    color: var(--bh-primary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: block;
    font-family: var(--bh-font-sans);
}

.bh-welcome__title {
    font-family: var(--bh-font-serif);
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    margin-bottom: 2rem;
    line-height: 1.2;
    color: var(--bh-text);
}

.bh-welcome__title-italic {
    font-style: italic;
    font-weight: 400;
}

.bh-welcome__description {
    color: var(--bh-gray);
    font-size: 1.125rem;
    line-height: 1.75;
    margin-bottom: 2.5rem;
    max-width: 36rem;
    font-family: var(--bh-font-sans);
}

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

.bh-welcome__stat h4 {
    font-family: var(--bh-font-serif);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--bh-text);
}

.bh-welcome__stat p {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #9CA3AF;
    font-family: var(--bh-font-sans);
}

.bh-welcome__link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    color: var(--bh-text);
    text-decoration: none;
    font-family: var(--bh-font-sans);
    transition: gap 0.3s ease;
}

.bh-welcome__link:hover {
    gap: 1.5rem;
}

.bh-welcome__link svg {
    color: var(--bh-primary);
    transition: transform 0.3s ease;
}

.bh-welcome__link:hover svg {
    transform: translateX(4px);
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.elementor-widget-beach_house_hero,
.elementor-widget-beach_house_welcome,
.elementor-widget-beach_house_accommodations,
.elementor-widget-beach_house_awards,
.elementor-widget-beach_house_real_estate,
.elementor-widget-beach_house_testimonials,
.elementor-widget-beach_house_events,
.elementor-widget-beach_house_why_choose,
.elementor-widget-beach_house_amenities,
.elementor-widget-beach_house_attractions,
.elementor-widget-beach_house_gallery,
.elementor-widget-beach_house_final_cta {
    margin: 0;
    padding: 0;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Image loading optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Remove default margins from Elementor sections */
.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 100%;
}

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

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

/* Responsive utilities */
@media (max-width: 767px) {
    .bh-hero__title,
    .bh-welcome__title,
    .bh-accommodations__title,
    .bh-re__title,
    .bh-events__title,
    .bh-why__title,
    .bh-amenities__title,
    .bh-attractions__title,
    .bh-gallery__title,
    .bh-cta__title {
        font-size: clamp(2rem, 10vw, 3rem) !important;
    }
}

/* Print styles */
@media print {
    .bh-hero__nav,
    .bh-hero__social,
    .bh-accommodations__btn,
    .bh-events__btn,
    .bh-gallery__btn,
    .bh-cta__buttons {
        display: none;
    }
}
