/* Merlin5 Template - Based on Figma Design */

/* CSS Variables from Figma */
:root {
    --primary-color: #544f4c;
    --secondary-color: #fef3eb;
    --accent-color: #fee08d;
    --light-bg: #f3f1ef;
    --contact-bg: #fde9ce;
    --text-light: #878583;
    --white: #ffffff;
    --border-color: #e4e0dc;

    --font-heading: 'PT Serif', serif;
    --font-body: 'DM Sans', sans-serif;
    --font-roboto: 'Roboto', sans-serif;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--primary-color);
    background-color: var(--white);
}

a:hover {
    color: inherit !important;
}

.container {
    margin: 0 auto;
}

/* Tablet Breakpoint - 768px to 1439px */
@media (min-width: 1280px) and (max-width: 1439px) {
    .container {
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* Header Section */
.header-section {
    padding: 20px 0;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1001;
    /* Mobile: always visible by default (published site) */
    opacity: 1;
    background-color: transparent;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

/* Editor mode: hide header initially on mobile, show on scroll */
body.editor-active .header-section {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
}

/* Mobile: Show header when scrolled (editor mode) */
body.editor-active .header-section.show-header,
.header-section.show-header {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Desktop: Always show header */
@media screen and (min-width: 1280px) {
    .header-section {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        position: fixed;
        top: 60px;
        padding: 24px 0;
        background-color: transparent;
    }
    
    .header-content {
        background: rgba(255, 255, 255, 0.60);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 32px;
        padding: 7px 20px;
        margin: 0px 200px;
        height: 56px;
    }
    
    /* Hide mobile username on desktop */
    .header-left {
        display: none;
    }
    
    /* Show desktop navigation */
    .header-center {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 16px;
        flex: 1;
    }
    
    /* Hide mobile burger menu on desktop */
    .header-right {
        display: none !important;
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    max-width: 100%;
    margin: 0 auto;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-center {
    display: none;
    /* Hidden on mobile, shown on desktop */
}

.header-right {
    display: flex; /* Show by default (for subpages) */
    align-items: center;
}

/* Show header-right on main page */
body:not(.merlin5-subpage-body) .header-right {
    display: flex;
}

.header-nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-link {
    font-family: 'PT Serif', serif;
    font-size: 16px;
    font-weight: 400;
    color: #544f4c;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #191F06;
}




/* Ensure header elements are visible by default (no animation) */
.header-username,
.header-menu-icon {
    opacity: 1 !important;
    transform: none !important;
}

.header-username {
    font-family: "PT Serif", serif;
    font-size: 20px;
    font-weight: 400;
    line-height: normal;
    text-transform: capitalize;
    color: #31443D;
    margin: 0;
}

.header-cta-btn {
    font-family: 'PT Serif', serif;
    font-size: 16px;
    font-weight: 400;
    color: #544f4c;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-cta-btn:hover {
    color: #191F06;
}



.header-menu-icon {
    background: none;
    border: none;
    color: #31443D;
    /* Initial light color, will transition to #31443D matching hero title */
    cursor: pointer;
    width: 24px;
    /* Exact Figma width */
    height: 24px;
    /* Exact Figma height */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform 0.3s ease, color 0.6s ease;
    /* Added color transition matching hero title animation */
    position: relative;
    z-index: 1001;
}

.header-menu-icon:hover {
    transform: scale(1.1);
}

/* Service edit button styles */
.service-edit-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    background: rgba(0, 123, 255, 0.9) !important;
    color: white !important;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}


/* Show edit buttons in editor mode */
body.editor-active .service-edit-btn {
    opacity: 1 !important;
}

/* Mobile Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    pointer-events: none;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -70dvw;
    width: 70dvw;
    height: 100vh;
    background: rgba(248, 247, 245, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999999999;
    transition: right 0.4s ease;
    padding: 20px;
}

/* Mobile Menu - Editor Mode (top: 60px to account for editor banner) */
body.editor-mode .mobile-menu {
    top: 60px;
    height: calc(100vh - 60px);
    padding: 20px;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.menu-close {
    position: absolute;
    top: 6px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1001;
}

.menu-close:hover {
    transform: scale(1.1);
}

.menu-container {
    border-radius: 16px;
    padding: 32px 0px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 56px;
    height: 100%;
    overflow-y: auto;
}

.menu-pages {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.menu-link {
    font-family: 'PT Serif', serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 20.832px;
    color: #544f4c;
    text-decoration: none;
    padding: 8px 0;
    transition: all 0.3s ease;
    position: relative;
}

.menu-link:hover {
    color: #7a7470;
    transform: translateX(5px);
}

/* Mobile Menu Accordion (Merlin 5 Colors) */
.merlin5-menu-accordion {
    width: 100%;
}

.merlin5-menu-accordion-toggle {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: 'PT Serif', serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 20.832px;
    color: #544f4c;
    text-decoration: none;
    padding: 8px 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.merlin5-menu-accordion-toggle span {
    text-align: left;
}

.merlin5-accordion-icon {
    font-size: 16px;
    transition: transform 0.3s ease;
    color: #544f4c;
}

.merlin5-menu-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    display: flex;
    flex-direction: column;
    padding-left: 0;
}

/* Open accordion by default when active class is present */
.merlin5-menu-accordion.active .merlin5-menu-accordion-content {
    max-height: 1000px; /* Large enough to fit all services */
}

.merlin5-menu-accordion.active .merlin5-accordion-icon {
    transform: rotate(180deg);
}

.merlin5-menu-service-link {
    color: #544f4c;
    font-family: 'PT Serif', serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 110%;
    text-decoration: none;
    opacity: 0.8;
    display: block;
    padding: 8px 0;
    transition: opacity 0.2s ease;
}

.merlin5-menu-service-link:hover {
    opacity: 1;
    color: #544f4c;
}

.menu-social {
    display: flex;
    gap: 24px;
    border-top: 1px solid rgba(84, 79, 76, 0.1);
}

.menu-social .social-link {
    color: #544f4c;
    font-size: 20px;
    transition: all 0.3s ease;
}

.menu-social .social-link:hover {
    color: #fee08d;
    transform: translateY(-2px);
}

.menu-language .language-toggle-item {
    position: relative;
    display: inline-block;
}

.menu-language .language-toggle,
.menu-language .language-toggle-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'PT Serif', serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 20.832px;
    color: #544f4c;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.menu-language .language-toggle:hover,
.menu-language .language-toggle-link:hover {
    color: #7a7470;
    transform: translateX(5px);
}

.menu-language .language-icon {
    font-size: 18px;
    color: #544f4c;
    transition: all 0.3s ease;
}

.menu-language .language-toggle:hover .language-icon,
.menu-language .language-toggle-link:hover .language-icon {
    color: #7a7470;
}

.menu-language .language-text {
    font-weight: 500;
}

/* Disabled/greyed out state for language toggle */
.menu-language .language-toggle-item.disabled .language-toggle-link,
.menu-language .language-toggle-item.disabled .language-toggle {
    opacity: 0.4;
    filter: grayscale(80%);
    pointer-events: none;
}

/* Hide language toggle completely when disabled in non-editor contexts */
body:not(.editor-active) .menu-language .language-toggle-item.disabled,
body:not(.editor-active) .menu-language.disabled {
    display: none !important;
}

/* Visibility toggle button styling for menu */
.menu-language .lang-visibility-btn {
    background: rgba(84, 79, 76, 0.1) !important;
    color: #544f4c !important;
    border: 1px solid rgba(84, 79, 76, 0.2);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 8px;
    transition: all 0.3s ease;
    position: absolute;
    top: 8px;
    right: -22px;
    z-index: 1001;
}

.menu-language .lang-visibility-btn i {
    font-size: 8px;
}

.menu-language .lang-visibility-btn:hover {
    background: rgba(84, 79, 76, 0.2) !important;
    color: #333 !important;
    transform: scale(1.1);
    border-color: rgba(84, 79, 76, 0.4);
}

.menu-language .lang-visibility-btn:active {
    transform: scale(0.95);
}

/* Main Container */
.merlin5-container {
    position: relative;
    background-color: #F3F1EF;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    height: 100dvh; /* Use dynamic viewport height for mobile browsers */
    /* Fit exactly in viewport */
    min-height: 600px;
    /* Reduced min-height to allow flexibility */
    padding: 0;
    background-color: #F3F1EF;
    /* Match Figma background */
}

/* Mobile: Show mobile hero, hide desktop hero */
.hero-mobile {
    display: block;
}

.hero-desktop {
    display: none;
}

.hero-background {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

/* Mobile Hero - Flex layout for dynamic image sizing */
.hero-background.hero-mobile {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    padding: 80px 20px 40px 20px; /* Top padding for header, bottom padding */
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

/* Flex wrapper containing image, location, and title */
.hero-mobile-flex-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Center content vertically */
    min-height: 0; /* Important for flex shrinking */
    overflow: hidden; /* Prevent content from overflowing */
    gap: 16px;
}

/* Image frame - flexible to shrink when text is long */
.hero-background.hero-mobile .hero-frame-3 {
    position: relative !important;
    flex: 1 1 0 !important; /* Grow and shrink, base size 0 */
    width: 100%;
    height: auto !important; /* Override .hero-frame height: 100% */
    min-height: 120px; /* Minimum image size */
    max-height: 280px; /* Maximum image size */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Image container within flex layout - maintain circular shape */
.hero-background.hero-mobile .hero-frame-3 .hero-image-container {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    /* Circular shape using height from parent */
    width: auto !important;
    height: 100% !important;
    aspect-ratio: 1 / 1;
    max-width: 280px;
    max-height: 100%;
    border-radius: 50%;
    overflow: hidden;
}

/* Image/video styling within flex container */
.hero-background.hero-mobile .hero-frame-3 .hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    transform: none;
}

/* Location wrapper within flex layout */
.hero-background.hero-mobile .hero-location-wrapper {
    flex-shrink: 0;
    width: 100%;
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 6px;
    color: #31443D;
}

.hero-background.hero-mobile .hero-location-wrapper svg {
    flex-shrink: 0;
}

.hero-background.hero-mobile .hero-location-text {
    font-family: "PT Serif", serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 27px;
    color: #31443D;
}

/* Hero text within flex layout */
.hero-background.hero-mobile .hero-text {
    flex: 0 0 auto; /* Don't grow/shrink, just fit content */
    width: 100%;
    max-width: 100%;
    max-height: 200px; /* Limit text height for very long titles */
    overflow: hidden;
    text-align: center;
    margin-bottom: 0;
    padding: 0 16px;
    box-sizing: border-box;
}

.hero-background.hero-mobile .hero-title {
    font-family: "PT Serif", serif;
    font-size: 32px;
    font-weight: 400;
    font-style: italic;
    line-height: 1.3;
    color: #31443D;
    text-align: center;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Hero actions (contact button) within flex layout */
.hero-mobile-flex-wrapper .hero-actions {
    flex-shrink: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

/* Edit cover button positioning */
.hero-background.hero-mobile > .edit-cover-btn {
    position: absolute;
    bottom: 100px;
    left: 50%;
    width: max-content;
    transform: translateX(-50%);
    z-index: 10;
}

.hero-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    min-width: 100%;
    min-height: 100%;
}

.hero-bg-image {
    object-fit: cover;
    background-color: #000;
    /* Start with contain before animation */
    object-position: center;
    border-radius: 0;
    display: block;
    position: absolute;
    top: 50%;
    max-width: none !important;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(0);
    z-index: 1;
    will-change: transform, width, height, border-radius, object-fit;
    backface-visibility: hidden;
    /* Remove transition to avoid conflicts with GSAP */
    /* Quality enhancement filters */
    filter: contrast(1.1) brightness(1.05) saturate(1.1);
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
}


/* Fade out gradient when transitioning to text 2 */
.hero-frame-1.fading-gradient .hero-image-container::before {
    opacity: 0;
}

/* Hero Frame Animation Styles */
.hero-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transform: translate3d(0, 0, 0);
    /* Force hardware acceleration without interfering with GSAP */
    will-change: transform, opacity;
    /* Optimize for animations */
    backface-visibility: hidden;
    /* Prevent flickering */
    -webkit-backface-visibility: hidden;
    /* Prevent flickering on Safari */
}

.hero-frame-1 {
    opacity: 1;
    z-index: 3;
}

.hero-frame-2 {
    opacity: 0;
    z-index: 2;
}

.hero-frame-3 {
    opacity: 1;
    z-index: 3;
    /* Static circular hero (animation disabled) */
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Mobile hero frame 1 - starts with contain, switches to cover when animation starts */
.hero-frame-1 .hero-bg-image {
    object-fit: cover;
    object-position: center;
    will-change: transform, width, height, border-radius, object-fit;
    backface-visibility: hidden;
}

/* Desktop hero - always cover */
.hero-desktop .hero-bg-image {
    object-fit: cover;
}

.hero-frame-2 .hero-image-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 273px;
    height: 273px;
    border-radius: 200px;
    overflow: hidden;
}

.hero-frame-2 .hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 200px;
    will-change: transform, width, height, border-radius;
    backface-visibility: hidden;
}

.hero-frame-3 .hero-image-container {
    position: absolute;
    top: 190px;
    /* Position from top to fit in viewport */
    left: 50%;
    transform: translateX(-50%);
    /* Only horizontal centering */
    width: 279px;
    /* Match Figma design */
    height: 279px;
    border-radius: 200px;
    overflow: hidden;
}

.hero-frame-3 .hero-bg-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Center image inside the circle */
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 200px;
    will-change: transform, width, height, border-radius;
    backface-visibility: hidden;
}

/* Hero content positioning - static layout, no animations */
.hero-content {
    position: absolute;
    top: 0;
    color: #31443D;
    /* Dark text color from Figma */
    left: 0;
    right: 0;
    padding: 0 20px;
    margin-top: 490px;
    /* Position below circular image (190px + 279px + spacing) */
    padding-bottom: 40px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center all content */
    gap: 16px;
    /* Spacing between elements */
    width: 100%;
}

/* Hero location text (below image) */
.hero-location-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

/* Hide location SVG when there's no location text */
.hero-location-wrapper:has(.hero-location-text:empty) svg,
.hero-location-wrapper:has(.hero-location-text[data-has-value="false"]) svg {
    display: none;
}

.hero-location-text {
    font-family: "PT Serif", serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 27px;
    color: #31443D;
    text-align: center;
}

/* Hero title text (centered, italic) */
.hero-content .hero-text {
    width: 100%;
    margin-bottom: 32px;
    outline: none;
    border: none;
}

.hero-content .hero-title {
    font-family: "PT Serif", serif;
    font-size: 32px;
    font-weight: 400;
    font-style: italic;
    line-height: 42.95px;
    color: #31443D;
    text-align: center;
    margin: 0;
}

/* Mobile: 32px margin between hero title and hero actions */
@media (max-width: 1439px) {
    .hero-content .hero-text {
        margin-bottom: 32px;
    }
}

.hero-frame-1 .hero-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    z-index: 3;
    margin-top: auto;
    outline: none;
    border: none;
    will-change: auto;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.hero-frame-3 .hero-content {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    padding: 0 20px;
    background: none;
    z-index: 2;
    display: flex;
    flex-direction: column;
    /* min-height will be set dynamically via JavaScript */
    outline: none;
    border: none;
}

.hero-frame-3 .hero-text {
    align-self: flex-start;
    align-content: flex-end;
    width: 100%;
    outline: none;
    border: none;
}

.hero-frame-3 .hero-actions {
    position: relative;
    display: flex;
    justify-content: center;
    /* Center the button */
    align-items: center;
    width: 100%;
    z-index: 3;
    outline: none;
    border: none;
}

.hero-frame-2 .hero-content {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    padding: 0;
    background: none;
}


/* Text styling for different frames - matching Figma specs */
.hero-frame-1 .hero-title {
    color: #F4F3E8;
    font-family: 'PT Serif', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 28px;
    line-height: 43px;
    text-align: left;
    letter-spacing: 0;
}

/* Mobile: Hero title first text CSS */
@media (max-width: 1439px) {
    .hero-frame-1 .hero-title {
        color: #F4F3E8;
        font-family: "PT Serif", serif;
        font-size: 28px;
        font-style: italic;
        font-weight: 400;
        line-height: 43px;
        text-transform: capitalize;
    }
}

.hero-frame-2 .hero-title {
    color: #544F4C;
    font-family: 'PT Serif', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 28px;
    line-height: 43px;
    text-align: left;
    letter-spacing: 0;
}

/* Mobile: Second part hero title text color #31443D */
@media (max-width: 1439px) {
    .hero-frame-2 .hero-title {
        color: #31443D;
    }
}

.hero-frame-3 .hero-title {
    color: #544f4c;
    font-family: 'PT Serif', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 28px;
    line-height: 43px;
    text-align: left;
    letter-spacing: 0;
    max-width: 335px;
}

/* Button styling for different frames - matching Figma specs */
.hero-frame-1 .hero-btn.secondary {
    color: #ffffff;
    font-family: 'PT Serif', serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
}

.hero-frame-1 .hero-btn.primary {
    background-color: #D1DCCE;
    color: #544f4c;
    font-family: 'PT Serif', serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    border-radius: 32px;
    padding: 12px 24px;
}

.hero-frame-3 .hero-btn.secondary {
    color: #878583;
    font-family: 'PT Serif', serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
}

.hero-frame-3 .hero-btn.primary {
    background-color: #D1DCCE;
    color: #544f4c;
    font-family: 'PT Serif', serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    border-radius: 32px;
    padding: 12px 24px;
}

.hero-frame-2 .hero-btn.secondary {
    color: #878583;
}

.hero-frame-3 .hero-btn.secondary {
    color: #878583;
}

/* Animated state for the hero image - REMOVED */


.hero-title {
    color: #F4F3E8;
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 400;
    font-size: 28px;
    line-height: 43px;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}


.hero-actions {
    display: flex;
    justify-content: center;
    /* Center content */
    align-items: center;
    width: 100%;
}

.hero-icon-btn {
    width: 48px;
    height: 48px;
    border-radius: 32px;
    background-color: #F8F7F5;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-icon-btn i {
    color: #544F4C;
    font-size: 16px;
}

.hero-icon-btn:hover {
    background-color: #E8E6E4;
    transform: scale(1.05);
}

.hero-btn {
    border: none;
    border-radius: 32px;
    padding: 12px 24px;
    font-family: 'PT Serif', serif;
    font-weight: 400 !important;
    cursor: pointer;
    height: 48px;
    will-change: auto;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.hero-btn.primary {
    background-color: #D1DCCE;
    color: #544f4c;
    font-size: 16px;
    height: 48px;
    padding: 12px 24px;
}

/* Mobile: Contact me button - bg #B4BEB1 and text color #191F06 */
@media (max-width: 1439px) {

    .hero-btn.primary.scroll-to-contact,
    .hero-btn.primary {
        background-color: #D1DCCE;
        color: #191F06;
        font-family: var(--font-body);
    }
}

.hero-btn.secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 14px;
}

/* Initial frame button (smaller) */
.hero-frame-1 .hero-btn.primary {
    font-size: 12px;
    height: 42px;
    padding: 8px 16px;
    width: 131px;
}

/* Final frame button (match Figma design) */
.hero-frame-3 .hero-btn.primary {
    background-color: #D1DCCE;
    /* Match Figma button color */
    color: #31443D;
    font-family: "PT Serif", serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 27px;
    border-radius: 32px;
    padding: 12px 24px;
    min-width: 139px;
    height: 51px;
    border: none;
    cursor: pointer;
}

.hero-location {
    font-family: 'PT Serif', serif;
    font-size: 16px;
    color: #F4F3E8;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
    will-change: auto;
    backface-visibility: hidden;
    transform: translateZ(0);
    transition: color 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-location .location-icon {
    width: 16px;
    height: 16px;
    color: #F4F3E8;
    transition: color 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Frame 1: Location text and icon color #F4F3E8 (first part of animation) */
.hero-frame-1 .hero-location,
.hero-frame-1 .hero-location .location-icon {
    color: #F4F3E8;
}

/* Final frame location styling */
.hero-frame-3 .hero-location,
.final-frame .hero-location,
.hero-content.final-frame .hero-location {
    color: #544F4C;
}

.hero-frame-3 .hero-location .location-icon,
.final-frame .hero-location .location-icon,
.hero-content.final-frame .hero-location .location-icon {
    color: #544F4C;
}

/* Mobile: Location text during transition #F3F1EF */
@media (max-width: 1439px) {

    .hero-frame-2 .hero-location,
    .hero-frame-2 .hero-location .location-icon {
        color: #F3F1EF;
    }
}

/* Mobile: Location text second animation part #31443D */
@media (max-width: 1439px) {

    .hero-frame-3 .hero-location,
    .hero-frame-3 .hero-location .location-icon,
    .final-frame .hero-location,
    .final-frame .hero-location .location-icon,
    .hero-content.final-frame .hero-location,
    .hero-content.final-frame .hero-location .location-icon {
        color: #31443D;
    }
}

/* Reels Section */
.reels-section {
    background-color: transparent;
    z-index: 10;
    /* margin-top: -130px; */
    padding: 40px 0;
    padding-top: 0 !important;
}

/* Mobile: Remove reels section background */
@media (max-width: 1439px) {
    .reels-section {
        background-color: transparent;
    }
}

.reels-container {
    padding: 0 20px !important;
    /* Match default container padding */
}

/* Tablet Breakpoint */
@media (min-width: 1280px) and (max-width: 1439px) {
    .reels-container {
        padding: 0 40px !important;
    }
}

.reels-title {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 400;
    font-size: 40px;
    line-height: 43px;
    color: #544f4c;
    margin-bottom: 40px;
}

/* Hide reels title on mobile and in edit mode */
@media (max-width: 1439px) {
    .reels-title {
        display: none;
    }
}

body.editor-active .reels-title,
body.edit-mode-active .reels-title {
    display: none !important;
}

.reels-arrows {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    margin-bottom: 20px;
}

/* Mobile/Tablet: Hide reels arrows */
@media (max-width: 1439px) {
    .reels-arrows {
        display: none;
    }
}

.reels-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    margin-top: 30px;
}

.reels-carousel {
    display: flex;
    gap: 16px;
    margin-left: -20px;
    overflow-x: auto;
    overflow-y: visible;
    cursor: grab;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-snap-type: none; /* Disabled for auto-scroll */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
}

.reels-carousel.scrolled {
    margin-left: 8px;
    margin-right: 8px;
}

.reels-carousel::-webkit-scrollbar {
    display: none;
}

.reels-carousel:active {
    cursor: grabbing;
}

.reels-carousel.manual-mode {
    scroll-snap-type: x mandatory;
}

.reel-item {
    position: relative;
    flex: 0 0 275.625px;
    /* Exact Figma width */
    height: 490px;
    scroll-snap-align: start;
}

.reel-image,
.reel-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    /* Exact Figma border radius */
}

.reel-image video,
.reel-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    background: #000;
}

/* Ensure smooth video playback */
.reel-image video::-webkit-media-controls,
.reel-media::-webkit-media-controls {
    display: none !important;
}

.reel-image video::-webkit-media-controls-panel,
.reel-media::-webkit-media-controls-panel {
    display: none !important;
}

/* Placeholder for empty reels */
.reel-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    border-radius: 4px;
    color: #999;
}

.reel-placeholder i {
    font-size: 48px;
    margin-bottom: 16px;
}

.reel-placeholder p {
    font-size: 14px;
}

.carousel-arrow {
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}

.carousel-arrow svg {
    width: 24px;
    height: 24px;
}

/* About Section */
.about-section {
    padding: 4px 20px;
}

.about-container {
    padding: 0 !important;
    /* Remove all padding from about container */
    max-width: 100%;
    margin: 0;
}

.about-title {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 400;
    font-size: 40px;
    line-height: 43px;
    color: var(--primary-color);
    margin-bottom: 40px;
    padding-top: 40px;
}

.about-text p {
    font-family: var(--font-body);
    font-size: 16px;
    color: #31443D;
        opacity: 0.7;
    font-style: normal;
    font-weight: 400;
    margin-bottom: 100px;
}

.about-text {
    font-family: var(--font-body);
    font-size: 16px;
    color: #31443D;
        opacity: 0.7;
    font-style: normal;
    font-weight: 400;
    margin-bottom: 80px;
}

/* Mobile: About title text color #31443D, about text #878583 */
@media (max-width: 1439px) {
    .about-title {
        color: #31443D;
    }

    .about-text-content {
        color: #878583;
    }
}

.about-text-content {
    font-family: "PT Serif", serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 20.8px;
    color: #878583;
    margin: 0;
}

/* Services Section */
.services-section {
    background-color: #31443D;
    padding: 80px 20px;
}

.services-container {
    padding: 0 !important;
    /* Remove all padding from services container */
    max-width: 100%;
    margin: 0;
}

.services-title {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 400;
    font-size: 40px;
    line-height: 43px;
    word-wrap: break-word;
    color: #ffffff;
    margin-bottom: 40px;
}

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-card {
    background-color: var(--white);
    border-radius: 16px;
    padding: 48px 24px;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    margin-bottom: 20px;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(84, 79, 76, 0.1);
}

/* Click animation for service cards */
.service-card:active {
    transform: scale(0.98) translateY(0);
    transition: transform 0.1s ease;
}

/* Mobile click animation */
@media (max-width: 767px) {
    .service-card.clicked {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

.service-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 32px;
    height: 32px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon svg {
    transform: scale(1.1);
}

.service-title {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 400;
    font-size: 40px;
    line-height: 100%;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.service-title a {
    color: inherit;
    text-decoration: none;
}

.service-description {
    font-family: "PT Serif", serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    color: #717171;
    margin-bottom: 56px;
}

.service-btn {
    background: none;
    border: none;
    padding: 0;
    font-family: 'PT Serif', serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 16px;
    color: #544f4c;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    text-align: left;
    transition: all 0.3s ease;
    text-decoration: none;
    pointer-events: none; /* Prevent button from intercepting clicks - whole card is clickable */
}

/* Ensure anchor tag service buttons don't get default link styling */
a.service-btn,
a.service-btn:hover,
a.service-btn:focus,
a.service-btn:active,
a.service-btn:visited {
    color: #544f4c;
    text-decoration: none;
}

.service-btn i {
    font-size: 15px;
    width: 6px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

.service-card:hover .service-btn {
    opacity: 0.7;
}

/* Mobile/Tablet: Services Section Redesign based on Figma */
@media (max-width: 1439px) {
    .services-section {
        background-color: #31443d;
        padding: 50px 20px;
    }

    .services-container {
        margin: 0 auto;
        padding: 0;
    }

    .services-title {
        font-family: 'PT Serif', serif;
        font-style: italic;
        font-weight: 400;
        font-size: 32px;
        word-wrap: break-word;
        line-height: 43px;
        color: #f3f1ef;
        margin-bottom: 42px;
        text-align: left;
    }

    .services-grid {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    .service-card {
        background-color: #3C5049;
        border-radius: 16px;
        padding: 0;
        width: 100%;
        height: 146px;
        position: relative;
        transition: none;
    }

    .service-card:hover {
        transform: none;
        box-shadow: none;
    }

    .service-content {
        display: block;
        height: 100%;
        padding: 35px 15px;
    }

    .service-icon {
        display: none;
    }

    /* Wrapper for title and chevron */
    .service-btn-wrapper {
        width: 100%;
        top: 72px;
        left: 15px;
        right: 15px;
        display: flex;
        align-items: center;
        gap: 8px;
        height: 100%;
        margin-top: 16px;
    }

    .service-title {
        font-family: 'PT Serif', serif;
        font-style: italic;
        font-weight: 400;
        font-size: 28px;
        line-height: 100%;
        color: #F3F1EF;
        margin: 0;
        padding: 0;
        text-align: left;
        flex: 0 1 auto;
    }
    
    .service-title a {
        color: inherit;
        text-decoration: none;
    }
    
    /* Service number (01., 02., etc.) */
    .service-card::before {
        content: attr(data-service-number);
        position: absolute;
        top: 35px;
        left: 15px;
        font-family: 'PT Serif', serif;
        font-size: 16px;
        font-weight: 400;
        line-height: 16px;
        color: #F3F1EF;
        opacity: 0.7;
    }

    .service-description {
        display: none;
    }

    .service-btn {
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        pointer-events: none;
        flex-shrink: 0;
    }

    .service-chevron {
        width: 12px;
        height: 12px;
        margin-left: auto;
        font-size: 12px;
        color: #F3F1EF;
    }
}


/* Media Viewer Modal */
.media-viewer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.media-viewer-modal.active {
    display: flex;
}

.media-viewer-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.media-viewer-content img,
.media-viewer-content video {
    max-width: 100%;
    max-height: 90vh;
    object-fit: cover;
}

.media-viewer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    color: #544f4c;
    z-index: 10001;
    transition: all 0.3s ease;
}

.media-viewer-close:hover {
    transform: scale(1.1);
    background: #f0f0f0;
}

.gallery-clickable {
    cursor: pointer;
}

/* Testimonials Section */
.testimonials-section {
    padding-bottom: 80px;
}

.testimonials-title {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 400;
    font-size: 32px;

    line-height: 120%;
    color: #31443D;
    margin-bottom: 24px;
}

.testimonials-arrows {
    display: none; /* Hide arrows on all devices */
    gap: 16px;
    justify-content: flex-start;
    margin-bottom: 46px;

}

.testimonials-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    margin-top: 0;
    margin-left: 16px;
}

/* Remove horizontal padding from container inside testimonials section when animation is running */
.testimonials-section .container {
    padding-right: 0 !important;
}

/* Keep left padding when animation is not running (carousel mode) */
.testimonials-section .container:not(.paused) {
    padding-left: 20px;
}

/* Remove left padding when animation is running */
.testimonials-section .container.paused {
    padding-left: 0 !important;
}

.testimonials-track {
    display: flex;
    gap: 16px;
    transition: transform 0.3s ease;
    justify-content: flex-start;
    align-items: flex-start;
    /* animation: scrollTestimonials 120s linear infinite; */
    width: max-content;
    will-change: transform;
    /* Optimize for mobile */
    -webkit-transform: translateZ(0);
    /* Force hardware acceleration on mobile */
    transform: translateZ(0);
    /* Force hardware acceleration */
    backface-visibility: hidden;
    /* Prevent flickering on mobile */
    -webkit-backface-visibility: hidden;
    /* Prevent flickering on mobile */
}

/* Mobile-specific optimizations */
@media (max-width: 1280px) {

    /* Keep mobile hero content visible in edit mode for direct editing */
    .hero-content.hero-mobile {
        display: flex;
    }

    .testimonials-track {
        /* animation: scrollTestimonials 120s linear infinite; */
        /* -webkit-animation: scrollTestimonials 120s linear infinite; */
        transform: translate3d(0, 0, 0);
        /* Force GPU acceleration */
        -webkit-transform: translate3d(0, 0, 0);
        /* Force GPU acceleration */
    }
}

.testimonials-track.paused {
    animation-play-state: paused;
}

@keyframes scrollTestimonials {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.testimonial-card {
    flex: 0 0 276px;
    width: 276px;
    background-color: #FFFBF7;
    border-radius: 16px;
    padding: 24px;
    max-height: 300px;
    overflow-y: scroll;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: auto;
    align-self: flex-start;
    opacity: 1 !important;
    visibility: visible !important;
}

.testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(84, 79, 76, 0.1);
}

.testimonial-quote-icon {
    width: 27px;
    height: 20px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.testimonial-quote-icon i {
    font-size: 32px;
    color: #717171;
    transition: all 0.3s ease;
}

.testimonial-card:hover .testimonial-quote-icon i {
    transform: scale(1.1);
}

.testimonial-text {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 20.832px;
    color: #31443D;
    opacity: 0.7;
    margin-bottom: 32px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 20.832px;
    color: #31443D;
    opacity: 0.7;
    word-wrap: break-word;
}

.testimonial-arrow {
    background: rgba(255, 251, 247, 0.60);
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
}

.testimonial-arrow:hover {
    background: rgba(243, 241, 239, 0.8);
    transform: scale(1.05);
}

.testimonial-arrow svg {
    width: 24px;
    height: 24px;
}

/* Contact Section - Mobile: Separate sections, contact form first */
.contact-section {
    background-color: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    padding-top: 80px;
}

.contact-form-section {
    background-color: #31443D;
    padding: 80px 20px;
    order: 1;
    /* Contact form appears first on mobile */
}

@media screen and (min-width: 1280px) {
    .contact-form-section {
        padding: 64px;;
    }
}

.footer-section {
    background-color: #31443D;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 80px;
    padding-bottom: 80px;
    order: 2;
    /* Footer appears second on mobile */
}

.contact-title {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 400;
    font-size: 40px;
    line-height: 43px;
    color: #F3F1EF;
    margin-bottom: 40px;
}

.contact-subtitle {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 40px;
    line-height: 43px;
    color: #F3F1EF;
    margin-bottom: 40px;
}

.contact-form {
    background-color: #F3F1EF;
    border-radius: 16px;
    padding: 32px 24px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    font-family: var(--font-roboto);
    font-size: 16px;
    color: var(--primary-color);
    display: block;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #D8D3CE;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #191F06;
    background-color: transparent;
    opacity: 0.7;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #191F06;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    opacity: 0.6;
    background-color: transparent;
}

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

.contact-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.contact-submit-btn {
    flex: 1;
    background-color: #D1DCCE;
    color: #31443D;
    border: none;
    border-radius: 32px;
    font-size: 16px;
    cursor: pointer;
    height: 50px;
}

.contact-icon-btn {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(216, 211, 206, 0.5) !important;
    border-radius: 32px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.contact-icon-btn i {
    color: #31443D;
    font-size: 16px;
}

.contact-icon-btn:hover {
    background-color: #E8E6E4;
    transform: scale(1.05);
}


/* Editor Integration Styles */
[data-editable="true"] {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

[data-editable="true"]:hover {
    background-color: rgba(254, 224, 141, 0.1);
    border-radius: 4px;
    padding: 4px;
    margin: -4px;
}


[data-section] {
    position: relative;
}

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

/* Editor Mode Header Positioning */
body.editor-mode .header-section {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Hero section margin removed for Merlin 5 template in edit mode */
/* body.editor-mode .hero-section {
    margin-top: 60px;
    Account for fixed header height
} */

/* Ensure no margin-top in edit mode for Merlin 5 template */
body.editor-mode .hero-section,
body.editor-mode .main-content,
body.editor-mode .container,
body.editor-mode .content {
    margin-top: 0 !important;
}

.footer-title {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 400;
    font-size: 40px;
    line-height: 43px;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.footer-username {

    /* Exact Figma font */
    font-style: italic;
    font-weight: 400;
    font-size: 40px;
    /* Exact Figma size */
    line-height: 43px;
    /* Exact Figma line height */
    color: #F3F1EF;
    /* Exact Figma color */
    margin-bottom: 20px;
}

.footer-details {
    margin-bottom: 20px;
}

.footer-detail {
    margin-bottom: 16px;
}

.footer-detail h4 {
    font-family: 'Roboto Flex', sans-serif;
    font-size: 16px;
    color: #F3F1EF;
    /* Exact Figma color */
    margin-bottom: 4px;
    font-weight: 400;
}

.footer-detail p {
    font-family: 'Roboto Flex', sans-serif;
    font-size: 16px;
    color: #F3F1EF;
    /* Exact Figma color */
    line-height: 20.8px;
    /* Exact Figma line height */
}

.social-links {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.social-links a {
    color: #F3F1EF;
    font-size: 24px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    text-decoration: none;
}

.social-links a:hover {
    color: #fee08d;
    transform: scale(1.1);
}

.footer-divider {
    height: 1px;
    background-color: #F3F1EF;
    /* Exact Figma color */
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    flex-direction: column;
}

.footer-links a {
    font-family: 'PT Serif', serif;
    /* Exact Figma font */
    font-size: 14px;
    /* Updated to 14px */
    color: #F3F1EF;
    /* Exact Figma color */
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #fee08d;
    /* Hover color */
    transform: translateY(-1px);
}

.footer-copyright {
    font-family: 'PT Serif', serif;
    /* Exact Figma font */
    font-size: 14px;
    /* Updated to 14px */
    color: #F3F1EF;
    /* Exact Figma color */
    line-height: 20.8px;
    /* Exact Figma line height */
}

/* GSAP Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
}

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

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
}

.slide-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
}

.slide-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
}

.scale-in.animate {
    opacity: 1;
    transform: scale(1);
}

/* Brief Section - Hidden on mobile */
.brief-section {
    display: none;
}

/* Combined Brief & About Section - Hidden on mobile */
.desktop-combined-about {
    display: none;
}

/* ========================================
   DESKTOP STYLES - 1024px and up
   ======================================== */

@media (min-width: 1280px) {

    /* Header Menu Icon - Desktop */
    .header-menu-icon {
        color: #544f4c;
    }

    /* Container */
    .container {
        max-width: 1120px;
        margin: 0 auto;
        padding: 0 200px;
    }

    /* Brief Section - Hidden on desktop, combined with about */
    .brief-section {
        display: none;
    }

    /* Combined Brief & About Section for Desktop */
    .desktop-combined-about {
        display: block;
        background-color: #F3F1EF;
        padding: 170px 200px;
    }

    .desktop-combined-about-container {
        display: flex;
        flex-direction: column;
        gap: 80px;
    }

    /* Brief Text - Top, 50% width with offset */
    .desktop-brief-text {
        color: #544f4c;
        font-family: "PT Serif", serif;
        font-size: 54px;
        font-style: italic;
        font-weight: 400;
        line-height: 58px;
        letter-spacing: 0;
        margin: 0;
        padding-right: 31%;
        width: 844px;
    }

    /* About Text - Bottom, 50% width aligned right */
    .desktop-about-text {
        width: 50%;
        margin-left: auto;
        color: #717171;
        font-family: "PT Serif", serif;
        font-size: 20px;
        font-weight: 400;
        line-height: 26.04px;
    }

    .desktop-about-text p {
        margin-bottom: 18px;
    }

    .desktop-about-text p:last-child {
        margin-bottom: 0;
    }



    .header-content {
        margin: 0 auto;
        padding: 10px 28px;
        margin: 0px 200px;
        height: 56px;
    }

    .header-left {
        width: auto;
    }

    .header-center {
        display: flex;
        gap: 24px;
        margin-left: auto;
        margin-right: 0;
        /* Remove margin-right on desktop */
        align-items: center;
    }

    .header-nav {
        display: flex;
        gap: 24px;
        align-items: center;
    }

    .header-right {
        display: flex;
        /* Show header-right on desktop for both main page and subpages */
    }

    .nav-link {
        color: #544f4c;
        font-family: "PT Serif", serif;
        font-size: 16px;
        font-weight: 400;
        text-decoration: none;
        letter-spacing: 0;
        line-height: 20.832px;
        transition: opacity 0.3s ease, transform 0.3s ease;
        cursor: pointer;
    }

    .nav-link:hover {
        color: #544f4c;
        /* Keep the same text color */
        opacity: 0.6;
        transform: translateY(-2px);
    }

    .header-nav a {
        font-family: 'PT Serif', serif;
        font-size: 16px;
        font-weight: 400;
        color: rgb(84, 79, 76);
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .header-nav a:hover {
        color: rgba(84, 79, 76, 0.8);
    }

    /* Keep header-cta-btn same style as nav-link on desktop */
    
    /* Keep header-menu-icon visible on desktop (removed display: none) */

    /* Allow mobile menu and overlay to work on desktop when opened */
    .mobile-menu {
        display: none;
        position: fixed;
        right: -70dvw;
        transition: right 0.4s ease;
    }
    
    .mobile-menu.active {
        display: block !important;
        right: 0;
    }
    
    .menu-overlay {
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .menu-overlay.active {
        display: block !important;
        opacity: 1;
    }
    
    /* Desktop menu links - 28px font size */
    .menu-link {
        font-size: 28px;
    }

    /* Desktop: Hide mobile hero, show desktop hero */
    .hero-mobile {
        display: none !important;
    }

    .hero-desktop {
        display: flex;
        flex-direction: row;
        width: 100%;
        height: 100%;
    }

    /* Hero Section - Desktop */
    .hero-section {
        margin-bottom: 0;
        overflow: hidden;
        background-color: #ffffff;
    }

    /* Desktop Hero Left Side - Text and Actions */
    .hero-desktop-left {
        width: 50%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-left: 200px;
    }

    /* Desktop Hero Intro Text */
    .hero-desktop .hero-intro-text {
        font-family: 'PT Serif', serif;
        font-style: italic;
        font-weight: 400;
        font-size: 54px;
        width: 75%;
        line-height: 71.55px;
        text-align: left;
        color: #544f4c;
        margin-bottom: 32px;
    }

    /* Desktop Hero Actions (Buttons + Location) */
    .hero-desktop .hero-actions {
        display: flex;
        align-items: center;
        gap: 16px;
        flex-wrap: wrap;
        width: 100%;
        justify-content: start !important;
    }

    .hero-desktop .hero-btn {
        background-color: #B4BEB1;
        color: #191F06;
        font-family: "PT Serif", serif;
        font-size: 16px;
        font-weight: 400;
        padding: 12px 32px;
        border-radius: 32px;
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
        line-height: 21px;
    }

    .hero-desktop .hero-btn:hover {
        opacity: 0.8;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .hero-desktop .hero-location {
        display: flex;
        /* Show location on desktop hero */
        align-items: center;
        gap: 8px;
        color: #717171;
        font-family: "PT Serif", serif;
        font-size: 16px;
        font-weight: 400;
        line-height: 24px;
    }

    .hero-desktop .hero-location .location-icon {
        width: 16px;
        height: 16px;
        font-size: 16px;
        color: #717171;
    }

    /* Hide icon buttons on desktop hero */
    .hero-desktop .hero-icon-btn {
        display: none;
    }

    /* Hide gradient overlay on desktop */
    .hero-image-container::before {
        display: none;
    }

    /* Desktop Hero Right Side - Video */
    .hero-desktop .hero-background {
        width: 50%;
        height: 100%;
        position: relative;
        overflow: hidden;
    }

    .hero-desktop .hero-image-container {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
    }

    .hero-desktop .hero-bg-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    /* Desktop Hero Content - Hidden */
    .hero-content-desktop {
        display: none;
    }

    /* Reels Section - Desktop */
    .reels-section {
        padding: 40px 0;
        position: relative;
        background: transparent;
    }

    .reels-container {
        display: flex;
        padding: 0 !important;
        margin: 0 auto;
        gap: 0;
    }

    .reels-left {
        width: 30%;
        padding: 0 0 0 200px;
        display: flex;
        flex-direction: column;
    }

    .reels-title {
        font-size: 54px;
        line-height: 71.55px;
        margin-bottom: 32px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .reels-arrows {
        margin-bottom: 0;
    }

    /* Reels carousel arrows - desktop background */
    .reels-section .carousel-arrow {
        background-color: white;
    }

    .reels-section .carousel-arrow:hover {
        background-color: #E8E6E4;
    }

    .reels-right {
        width: 70%;
        overflow: hidden;
        position: relative;
    }

    .reels-carousel-wrapper {
        margin-top: 20px;
    }

    .reels-carousel {
        height: 100%;
        gap: 20px;
        margin-left: -40px;
    }

    .reels-carousel.scrolled {
        margin-left: 8px;
    }

    .reel-item {
        flex: 0 0 268px;
        height: 476px;
        transition: all 0.3s ease;
    }

    .reel-item:hover {
        transform: translateY(-8px);
    }

    /* About Section - Hidden on desktop, combined section shown instead */
    .about-section {
        display: none;
    }

    .about-container {
        margin: 0 auto;
        padding: 0 200px !important;
        display: flex;
        align-items: flex-start;
    }

    .about-left {
        width: 50%;
    }

    .about-title {
        font-size: 54px;
        line-height: 43px;
        margin-bottom: 0;
        white-space: nowrap;
    }

    .about-right {
        width: 50%
    }

    .about-text p {
        margin-bottom: 18px;
    }

    .about-text p:last-child {
        margin-bottom: 0;
    }

    /* Services Section - Desktop */
    .services-section {
        padding: 200px 0;
        overflow: hidden;
    }

    /* Hide services title on desktop if there are no services */
    .services-section[data-has-services="false"] .services-title {
        display: none;
    }

    .services-title {
        font-size: 54px;
        line-height: 43px;
        text-align: center;
        word-wrap: break-word;
        color: #ffffff;
        margin-bottom: 64px;
        padding: 0 200px;
    }

    .services-grid {
        display: flex;
        gap: 16px;
        padding: 20px 200px 0;
        overflow-x: auto;
        flex-wrap: wrap;
        flex-direction: row;
        scroll-behavior: smooth;
        justify-content: center;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE and Edge */
    }

    .services-grid::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari, Opera */
    }

    .service-card {
        flex: 0 0 268px;
        padding: 24px;
        width: 268px;
        transition: all 0.3s ease;
        transform: translateY(0);
        will-change: transform;
    }

    .service-card:hover {
        transform: translateY(-10px) !important;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    }

    .service-title {
        font-size: 36px;
        line-height: 43px;
        margin-bottom: 16px;
    }
    
    .service-title a {
        color: inherit;
        text-decoration: none;
    }

    .service-btn {
        display: none; /* Hide service button on desktop */
    }

    .service-btn:hover {
        background-color: #B4BEB1;
    }

    /* Show chevron icon on desktop */
    .service-btn i {
        display: inline-flex;
    }

    /* Service button wrapper for desktop */
    .service-btn-wrapper {
        height: 100%;
        top: 0 !important
    }

    .service-description {
        font-size: 16px;
        line-height: 20.832px;
        margin-bottom: 72px;
    }

    .service-btn:hover {
        opacity: 0.7;
        transform: translateX(5px);
    }


    /* Testimonials Section - Desktop */
    .testimonials-section {
        padding: 0px 200px;
        padding-bottom: 80px;
    }

    .testimonials-container {
        max-width: none;
        margin: 0;
        overflow: hidden;
    }

    .testimonials-title {
        font-size: 54px;
        line-height: 74px;
        margin-bottom: 32px;
        padding: 0;
        color: #31443D
    }

    .testimonials-arrows {
        margin-bottom: 46px;
        padding: 0;
        display: none; /* Hide arrows on desktop */
    }

    .testimonials-track {
        padding: 20px 0px;
    }

    .testimonial-card {
        flex: 0 0 276px;
        width: 276px;
        background: #FFFBF7;
    }

    .testimonial-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 40px rgba(84, 79, 76, 0.15);
    }

    /* Footer + Contact Section - Desktop */
    .contact-section {
        padding: 0;
        display: flex;
        flex-direction: row;
        min-height: 786px;
    }

    .footer-section {
        background-color: #31443D;
        width: 50%;
        padding: 135px 0 135px 200px;
        display: flex;
        flex-direction: column;
        align-items: center;
        order: 1;
        /* Footer on left side on desktop */
    }

    .footer-content {
        width: 100%;
        max-width: 400px;
    }

    .footer-container {
        display: none;
        /* Hide on desktop - footer-bottom moved inside footer-content */
    }

    .footer-title {
        font-size: 40px;
        line-height: 43px;
        color: #544f4c;
        margin-bottom: 0;
    }

    .footer-username {
        font-size: 40px;
        line-height: 43px;
        color: #ffffff;
        margin-bottom: 24px;
    }

    .footer-detail h4 {
        font-size: 16px;
        color: #ffffff;
        margin-bottom: 4px;
    }

    .footer-detail p {
        font-size: 16px;
        color: #ffffff;
        line-height: 20.832px;
    }

    .footer-divider {
        background-color: #ffffff;
        margin: 24px 0;
    }

    .footer-links a {
        font-size: 16px;
        color: #ffffff;
    }

    .footer-links a:hover {
        color: #fee08d;
    }

    .footer-copyright {
        font-size: 16px;
        color: #ffffff;
    }

    .social-links a {
        color: #ffffff;
    }

    .social-links a:hover {
        color: #fee08d;
    }

    /* Contact Form - Right Side */
    .contact-form-section {
        background-color: #31443D;
        width: 50%;
        padding: 135px 200px 135px 0;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        order: 2;
        /* Contact form on right side on desktop */
    }

    .contact-form-container {
        max-width: 520px;
        width: 100%;
    }

    .contact-subtitle {
        font-size: 40px;
        line-height: 43px;
        color: #F3F1EF;
        margin-bottom: 24px;
    }

    .contact-form {
        padding: 40px 32px;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .form-group input {
        height: 48px;
    }

    .form-group textarea {
        height: 140px;
    }

    .contact-submit-btn:hover {
        opacity: 0.8;
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(254, 224, 141, 0.3);
    }

    /* Hover Effects for Buttons */
    .hero-btn:hover {
        background-color: rgba(209, 220, 206, 0.8);
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(254, 224, 141, 0.3);
    }
    
    .header-cta-btn:hover {
        color: #544f4c;
        opacity: 0.6;
        transform: translateY(-2px);
    }

    .carousel-arrow:hover,
    .testimonial-arrow:hover {
        transform: scale(1.15);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

}

/* ========================================
   TABLET STYLES - 768px to 1439px
   ======================================== */
@media (min-width: 1280px) and (max-width: 1439px) {
    /* Testimonials Section - Tablet */
    .testimonials-section {
        padding: 0px 40px;
        padding-bottom: 80px;
    }
    
    .testimonials-container {
        padding: 0;
    }
}

/* Mobile-specific layout for reels, about, and footer sections */
@media (max-width: 1439px) {
    .footer-container {
        padding-top: 16px;
    }

    .reels-left {
        display: none !important;
    }

    .reels-right {
        width: 100%;
        overflow: visible;
    }

    .about-left,
    .about-right {
        width: 100%;
    }

}

/* ========================================
   TABLET STYLES - 1024px to 1439px
   ======================================== */

@media (min-width: 1024px) and (max-width: 1439px) {

    /* Adjust all 160px horizontal paddings to 64px */
    .container {
        padding: 0 64px;
    }

    .desktop-combined-about {
        padding: 170px 64px;
    }

    .hero-desktop-left {
        padding-left: 64px;
    }

    .reels-left {
        padding: 0 0 0 64px;
    }

    .about-container {
        padding: 0 64px !important;
    }

    .services-title {
        padding: 0 64px;
    }

    .services-grid {
        padding: 20px 64px 0;
    }

    .testimonials-header {
        padding-left: 64px;
    }

    .footer-section {
        padding: 135px 0 135px 190px;
    }

    .contact-form-section {
        padding: 135px 64px 135px 0;
    }

    .header-content {
        margin: 0px 64px;
    }
}

/* Hero Edit Container - Hidden (edit directly on hero elements) */
@media (max-width: 1280px) {
    .hero-edit-container {
        display: none !important;
    }

    .hero-edit-1 {
        display: block;
        z-index: 1000;
        font-family: var(--font-heading);
        font-style: italic;
        font-weight: 400;
        font-size: 40px;
        line-height: 43px;
        color: white;
        transition: all 0.3s ease;
        margin: 0;
        padding: 0;
    }

    .hero-edit-2 {
        display: block;
        z-index: 1000;
        font-family: var(--font-heading);
        font-style: italic;
        font-weight: 400;
        font-size: 40px;
        line-height: 43px;
        color: white;
        transition: all 0.3s ease;
        margin: 0;
        padding: 0;
    }

    .hero-edit-3 {
        display: block;
        top: 80%;
        left: 15%;
        z-index: 1000;
        font-family: var(--font-heading);
        font-style: italic;
        font-weight: 400;
        font-size: 24px;
        line-height: 28px;
        color: white;
        transition: all 0.3s ease;
        margin: 0;
        padding: 0;
    }

    /* Smooth transitions for editable text fields */
    .hero-edit-1 .editable-text-field,
    .hero-edit-2 .editable-text-field,
    .hero-edit-3 .editable-text-field {
        transition: all 0.3s ease;
        margin: 0;
        display: block;
        width: 100%;
        min-height: 1em;
    }

    /* Ensure hero-intro-text displays properly in edit mode */
    .hero-edit-1 .hero-intro-text {
        display: block !important;
        width: 100% !important;
        min-height: 1em !important;
    }

    /* Ensure span elements display properly */
    .hero-edit-3 .editable-text-field {
        display: inline-block !important;
        width: 100% !important;
        min-height: 1em !important;
    }

    /* Hero edit container hidden - edit directly on elements */
    .hero-edit-container {
        display: none !important;
    }
}

/* Edit Cover Button - Mobile and Desktop */
.edit-cover-btn {
    position: absolute;
    top: 150px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    border: 2px solid white;
    color: white;
    padding: 8px 16px;
    font-size: 14px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 6px;
    min-width: 120px;
    height: 40px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.edit-cover-btn:hover {
    transform: translateX(-50%) translateY(-1px);
}

/* Show on mobile and desktop in edit mode */
body.editor-active .edit-cover-btn {
    display: flex !important;
}

/* Hide in preview mode */
body:not(.editor-active) .edit-cover-btn {
    display: none !important;
}

/* Add Email To collect Leads Button - Blue background like edit cover */
.btn-outline-primary.show-on-editor {
    background: #007bff !important;
    border-color: #007bff !important;
    color: white !important;
}

.btn-outline-primary.show-on-editor:hover {
    background: #0056b3 !important;
    border-color: #0056b3 !important;
    color: white !important;
}

/* Testimonials header mobile padding */
@media (max-width: 767px) {
    .testimonials-header {
        padding: 0px 20px;
    }
}


/* Hero section height adjustments based on edit/preview mode */
.hero-section {
    height: 100vh;
    min-height: 100vh;
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}


/* Gallery Wrapper - Mobile First */
.gallery-section-wrapper {
    padding: 50px 8px;
}

.gallery-section-wrapper .section-title {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 400;
    font-size: 40px;
    line-height: 43px;
    color: var(--primary-color);
    margin-bottom: 40px;
}

/* Desktop Gallery Styles (>= 1024px) */
@media screen and (min-width: 1280px) {

    .gallery-section-wrapper {
        padding-top: 150px;
        padding-bottom: 150px;
    }

    .gallery-section-wrapper .section-title {
        font-size: 45px;
        line-height: 48px;
        margin-bottom: 60px;
        text-align: center;
    }

}

/* ===== Visibility Toggle Styles ===== */
.field-content-wrapper {
    display: block;
}

.field-hidden {
    display: none !important;
}

body.editor-active .field-content-wrapper.field-hidden {
    display: block !important;
    opacity: 0.4;
}

.contact-visibility-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #F3F1EF;
    font-size: 14px;
    transition: opacity 0.2s ease;
}

.contact-visibility-btn:hover {
    opacity: 0.8;
}

.show-on-editor {
    display: none !important;
}

body.editor-active .show-on-editor {
    gap: 6px;
    align-items: center;
}

.footer-detail-row {
    display: flex;
    align-items: center;
    gap: 8px;
}