/*
Theme Name:  Eye Revolution
Template:    twentytwentyfive
Version:     0.8.5
Description: Custom block theme child of Twenty Twenty-Five for Eye Revolution — London's foremost bespoke 360 virtual tour company.
Text Domain: eye-revolution
Author:      Eye Revolution
*/


/* ==========================================================================
   1. BASE & BODY
   ========================================================================== */

/* Page fade-in on load — shortened to reduce LCP/FCP penalty */
body {
    opacity: 1;
    animation-name: fadeIn;
    animation-iteration-count: 1;
    animation-timing-function: ease-in;
    animation-duration: 0.3s;
}

@keyframes fadeIn {
    0%   { opacity: 0; }
    100% { opacity: 1; }
}

/* Remove focus ring for mouse users; keep it for keyboard users */
:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

/* Clip horizontal overflow to prevent layout shift from sticky header */
html {
    overflow-x: clip;
}

body {
    overflow-x: clip;
}

.wp-site-blocks {
    height: auto !important;
}


/* ==========================================================================
   2. STICKY QUOTE BUTTON & LIGHTBOX
   ========================================================================== */

/* Hide sticky quote button + lightbox on pages that contain the form iframe
   so it doesn't appear inside the embedded iframe */
body.page-id-42492 #sticky-iframe-button,
body.page-id-42492 #iframe-lightbox,
body.page-id-31552 #sticky-iframe-button,
body.page-id-31552 #iframe-lightbox,
body.page-id-43564 #sticky-iframe-button,
body.page-id-43564 #iframe-lightbox,
body.page-id-36610 #sticky-iframe-button,
body.page-id-36610 #iframe-lightbox,
body.page-id-43564 #sticky-iframe-button,
body.page-id-43564 #iframe-lightbox,
body.page-id-44432 #sticky-iframe-button,
body.page-id-44432 #iframe-lightbox

{
    display: none !important;
}

/* Sticky button */


#sticky-iframe-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    display: inline-block;
    background-color: #B0A27A;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    line-height: inherit;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.1s ease;
    padding: 5px 20px;
}
#sticky-iframe-button:hover {
    background-color: #6B6245;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}





/* Overlay container with fade in/out */
#iframe-lightbox {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

/* Dark 50% black background filling screen */
#iframe-lightbox .iframe-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

/* Modal content: full-screen on all viewports */
#iframe-lightbox .iframe-lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.35s ease-out;
}

/* Close button (top-right) */
#iframe-lightbox .iframe-lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    border: none;
    background: rgba(0, 0, 0, 0);
    color: #aca37d;
    font-size: 60px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 999px;
    transform: rotate(0deg);
    transform-origin: center;
    transition: transform 0.25s ease-out;
}

/* Rotate 90deg clockwise on hover */
#iframe-lightbox .iframe-lightbox-close:hover {
    transform: rotate(90deg);
}

/* Iframe: fills modal */
#iframe-lightbox iframe {
    border: 0;
    width: 100%;
    height: 100%;
}

/* Visible/open state with fade */
#iframe-lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* When open, slide the panel up into view */
#iframe-lightbox.is-open .iframe-lightbox-content {
    transform: translateY(0);
}


/* ==========================================================================
   3. FORM & CONTACT LAYOUT
   ========================================================================== */

.ContactGroupWidth {
    max-width: 960px!important;
}

#enquiry-form {
    scroll-margin-top: 100px;
}


/* ==========================================================================
   4. BUTTONS
   ========================================================================== */

.wp-block-button__link {
    font-family: inherit;
    font-size: 14px !important;
    white-space: nowrap;
    display: block;
    text-align: center;
    width: 280px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 15px !important;
}

.wp-block-button__link:hover {
}


/* ==========================================================================
   5. PORTFOLIO
   ========================================================================== */

.page-id-39839 .wp-block-post {
    background-color: #ffffff;
    border: 1px solid #cdcdcd;
    border-radius: 2px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.10);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    overflow: hidden;
}

.page-id-39839 .wp-block-post .folio-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transform: translateY(-7px);
}


/* Contain the zoom within the image wrapper */
.wp-post-image {
    transition: transform 0.3s ease;
}

.wp-post-image:hover {
    transform: scale(1.05);
}

.wp-block-post-featured-image {
    overflow: hidden;
}


/* ==========================================================================
   6. CLIENT LOGOS
   ========================================================================== */

.client-logos .wp-block-image {
    background-color: #ffffff !important;
    margin: 5px !important;
    padding: 10px !important;
    border: 1px solid #c9c9c9;
    box-shadow:
        0px 0px 6px 3px rgba(0, 0, 0, 0),
        0px 0px 8px 0px rgba(0, 0, 0, 0.10);
}

.client-logos .wp-block-image img {
    margin: auto;
}

/* 4 columns at tablet */
@media (max-width: 900px) and (min-width: 601px) {
    .wp-block-gallery.has-nested-images.client-logos figure.wp-block-image:not(#individual-image) {
        width: calc(25% - var(--wp--style--unstable-gallery-gap, 16px) * 0.75) !important;
    }
}

/* 3 columns at mobile, logos scale down to fit */
@media (max-width: 600px) {
    .wp-block-gallery.has-nested-images.client-logos figure.wp-block-image:not(#individual-image) {
        width: calc(33.33333% - var(--wp--style--unstable-gallery-gap, 16px) * 0.66667) !important;
        flex-grow: 0 !important;
    }
    .wp-block-gallery.client-logos {
        justify-content: center;
    }
}

/* Client logos on standalone pages (larger variant) */
.client-logos-forpage .wp-block-gallery {
    gap: 8px !important;
}

.client-logos-forpage .wp-block-image {
    background-color: #ffffff !important;
    margin: 5px !important;
    padding: 10px !important;
    box-shadow: 0px 0px 8px 0px rgba(0,0,0,0.10);
    border: 1px solid #c9c9c9;
}

.client-logos-forpage .wp-block-image img {
    max-width: 100px !important;
    width: 80px !important;
    height: auto !important;
    display: block;
    margin: auto;
}

@media (max-width: 768px) {
    .client-logos-forpage .wp-block-image img {
        max-width: 60px !important;
        width: 60px !important;
    }
    .client-logos-forpage .wp-block-image {
        padding: 6px !important;
        margin: 3px !important;
    }
}


/* ==========================================================================
   7. YOAST FAQ ACCORDION
   ========================================================================== */

.wp-block-yoast-faq-block {
    border-top: 1px solid rgba(184, 169, 106, 0.2);
}

.schema-faq-section {
    border-bottom: 1px solid rgba(184, 169, 106, 0.13);
}

.schema-faq-question {
    font-family:     var(--er-font-body);
    font-size:       17px;
    font-weight:     300;
    color:           var(--er-charcoal);
    display:         block;
    position:        relative;
    padding:         16px 50px 16px 0;
    cursor:          pointer;
    user-select:     none;
    transition:      color 0.2s;
    min-height:      44px;
    width:           100%;
}

.schema-faq-question:hover {
    color: var(--er-gold-dark);
}

.schema-faq-question::after {
    content:      '+';
    font-family:  var(--er-font-display);
    font-style:   italic;
    font-size:    32px;
    color:        var(--er-gold-mid);
    font-weight:  300;
    line-height:  1;
    position:     absolute;
    right:        0;
    top:          50%;
    transform:    translateY(-50%);
    transition:   transform 0.3s ease;
}

.schema-faq-section.is-open .schema-faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

.schema-faq-answer {
    font-family:    var(--er-font-body);
    font-size:      16px;
    font-weight:    300;
    color:          var(--er-text-muted);
    line-height:    1.8;
    max-height:     0;
    overflow:       hidden;
    padding-bottom: 0;
    transition:     max-height 0.35s ease, padding-bottom 0.35s;
}

.schema-faq-section.is-open .schema-faq-answer {
    max-height:     600px;
    padding-bottom: 24px;
}


/* ==========================================================================
   7b. LOGO SCROLLER
   ========================================================================== */

.er-logo-scroller {
    overflow:    hidden;
    white-space: nowrap;
    padding:     10px 0;
    max-width:   var(--wp--style--global--wide-size, 1400px) !important;
    width:       100%;
}

.er-logo-scroller__track {
    display:   inline-flex;
    animation: er-scroll-logos 30s linear infinite;
}

.er-logo-scroller__track img {
    height:     90px;
    width:      auto;
    margin:     0 40px;
    filter:     grayscale(100%);
    opacity:    1;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.er-logo-scroller__track img:hover {
    filter:  none;
    opacity: 1;
}

@keyframes er-scroll-logos {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .er-logo-scroller__track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
    }
}


/* ==========================================================================
   8. HERO — RADAR CANVAS & STAGGERED FADE-IN
   ========================================================================== */

/* Radar canvas — above the dark overlay, below the text */
#er-lens-canvas {
    position: absolute;
    z-index: 2;
    pointer-events: none;  /* mouse events pass through to the cover */
}

/* Cover stacking context for canvas layering + clip oversized canvas */
.wp-block-cover {
    position: relative;
    overflow: hidden;
}

.wp-block-cover .wp-block-cover__background {
    z-index: 1;            /* dark overlay stays at bottom */
}

.wp-block-cover .wp-block-cover__inner-container {
    z-index: 3;            /* text sits above canvas */
    position: relative;
}

/* Shared entrance animation for hero cover elements */
@keyframes heroFadeIn {
    0%   { opacity: 0; transform: translateY(12px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Eyebrow (e.g. "Based. in London : Over two decades") — appears first */
.wp-block-cover .wp-block-cover__inner-container > .wp-block-group > p.has-gold-mid-color {
    opacity: 0;
    animation: heroFadeIn 0.8s ease 0.3s forwards;
}

/* Page title inside the cover — appears second */
.wp-block-cover .wp-block-cover__inner-container .wp-block-post-title {
    opacity: 0;
    animation: heroFadeIn 0.8s ease 0.8s forwards;
}

/* Vertical line — grows in, then a beam sweeps down it endlessly.
 * The beam is a small gradient "hot-spot" animated via background-position
 * over the dim line track, all on the single ::after pseudo-element.
 * Only shown on pages with the .has-beam-line body class
 * (page-sub-menu / page-no-sub-menu templates).
 */
.has-beam-line h1.wp-block-post-title::after,
.has-beam-line h1.wp-block-heading::after {
    content: '';
    display: block;
    width: 1px;
    height: 80px;
    margin: 28px auto 0;
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top center;
    animation:
        line-grow   0.6s ease 1.8s forwards,
        er-beam     3s   cubic-bezier(0.4, 0, 0.2, 1) 2.8s infinite;
    /* Two-layer background:
       1) beam hot-spot  — 5px wide, 35% tall, starts above the element
       2) dim track line — full width solid colour underneath */
    background:
        linear-gradient(
            to bottom,
            transparent 0%,
            rgba(184, 169, 106, 0.12) 15%,
            rgba(184, 169, 106, 0.85) 50%,
            rgba(184, 169, 106, 0.12) 85%,
            transparent 100%
        ) center -35% / 8px 35% no-repeat,
        rgba(172, 163, 125, 0.25);
}

@keyframes line-grow {
    0%   { transform: scaleY(0); opacity: 0; }
    100% { transform: scaleY(1); opacity: 1; }
}

@keyframes er-beam {
    0%   { background-position: center -35%; }
    100% { background-position: center 135%; }
}

@media (prefers-reduced-motion: reduce) {
    .has-beam-line h1.wp-block-post-title::after,
    .has-beam-line h1.wp-block-heading::after {
        animation: line-grow 0.6s ease 1.8s forwards;
        background: rgba(172, 163, 125, 0.4);
    }
}


/* ==========================================================================
   8b. POST TAXONOMY TAGS  (categories & tags on single posts)
   ========================================================================== */

/* Container: remove default comma separators, lay out as a wrapped row */
.wp-block-post-terms.taxonomy-category,
.wp-block-post-terms.taxonomy-post_tag {
    display:     flex;
    flex-wrap:   wrap;
    gap:         8px;
    font-size:   0.625rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    line-height: 1;
}

/* Hide comma separators */
.wp-block-post-terms .wp-block-post-terms__separator {
    display: none;
}

/* Each tag: refined lozenge with thin gold border */
.wp-block-post-terms a {
    display:         inline-block;
    padding:         8px 18px;
    border:          1px solid rgba(184, 169, 106, 0.3);
    color:           var(--wp--preset--color--text-muted, #706A59);
    text-decoration: none;
    font-family:     var(--wp--preset--font-family--jost, sans-serif);
    font-weight:     300;
    transition:      border-color 0.25s, color 0.25s, background 0.25s;
}

.wp-block-post-terms a:hover {
    border-color: var(--wp--preset--color--gold-mid, #B8A96A);
    color:        var(--wp--preset--color--gold-dark, #776D3E);
    background:   rgba(184, 169, 106, 0.06);
}

/* Prefix label — a thin eyebrow before each group */
.wp-block-post-terms.taxonomy-category::before {
    display:        block;
    width:          100%;
    font-size:      0.5625rem;
    letter-spacing: 0.35em;
    color:          var(--wp--preset--color--text-muted, #706A59);
    margin-bottom:  4px;
    opacity:        0.6;
}

.wp-block-post-terms.taxonomy-post_tag::before {
    display:        block;
    width:          100%;
    font-size:      0.5625rem;
    letter-spacing: 0.35em;
    color:          var(--wp--preset--color--text-muted, #706A59);
    margin-bottom:  4px;
    opacity:        0.6;
}


/* ==========================================================================
   9. HEADER LOGO
   ========================================================================== */

/* Logo container */
figure.animated-logo {
    width: 47px !important;
    overflow: visible !important;
    position: relative;
    top: -5px;
}

/* SVG (inline animated version) */
figure.animated-logo svg,
figure.animated-logo img {
    width: 47px !important;
    height: auto !important;
    display: block;
}

/* Caption */
figure.animated-logo figcaption {
    white-space: nowrap;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-family: Jost, sans-serif;
    font-weight: 400;
    font-size: 8px;
    letter-spacing: 4.8px;
    color: rgb(212, 196, 138);
    text-transform: uppercase;
    margin-top: -5px;
}

/* Header navigation height */
header.er-site-header {
    min-height: 80px !important;
}


/* ==========================================================================
   10. VIGNETTE EFFECT
   ========================================================================== */

.EyeRev-Featured {
    position: relative;
}

.EyeRev-Featured::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 0, 0, 0) 60%,
        rgba(0, 0, 0, 0.4) 100%
    );
    pointer-events: none;
}


/* ==========================================================================
   11. FOOTER ICONS
   ========================================================================== */

p.footer-phone {
    width: 270px;
    height: 40px;
    margin: 0 0 5px;
    padding: 5px 5px 5px 40px;
    background: url(https://www.eyerevolution.co.uk/wp-content/themes/eye-revolution/images/Phone.png) 0 5px no-repeat;
    text-align: left;
}

p.footer-email {
    width: 270px;
    height: 40px;
    margin: 0 0 5px;
    padding: 5px 5px 5px 40px;
    background: url(https://www.eyerevolution.co.uk/wp-content/themes/eye-revolution/images/Email.png) 0 8px no-repeat;
    text-align: left;
}

p.footer-location {
    width: 270px;
    height: 40px;
    margin: 0 0 5px;
    padding: 5px 5px 5px 40px;
    background: url(https://www.eyerevolution.co.uk/wp-content/themes/eye-revolution/images/Location.png) 0 9px no-repeat;
    text-align: left;
}


/* ==========================================================================
   12. MOBILE LAYOUT
   ========================================================================== */

/* Pad text elements directly on mobile — galleries, images, covers, columns
   stay full-width naturally because nothing pushes them inward. */
@media (max-width: 760px) {

    /* Inner pages: text sitting directly in the content wrapper */
    .entry-content > p,
    .entry-content > h1,
    .entry-content > h2,
    .entry-content > h3,
    .entry-content > h4,
    .entry-content > ul,
    .entry-content > ol,
    .entry-content > .wp-block-heading,
    .entry-content > .wp-block-paragraph,
    .entry-content > .wp-block-list,
    .entry-content > .wp-block-quote,
    .entry-content > .wp-block-buttons,
    .entry-content > .wp-block-group:not(.alignfull):not(.alignwide),
    .wp-block-post-content > p,
    .wp-block-post-content > h1,
    .wp-block-post-content > h2,
    .wp-block-post-content > h3,
    .wp-block-post-content > h4,
    .wp-block-post-content > ul,
    .wp-block-post-content > ol,
    .wp-block-post-content > .wp-block-heading,
    .wp-block-post-content > .wp-block-paragraph,
    .wp-block-post-content > .wp-block-list,
    .wp-block-post-content > .wp-block-quote,
    .wp-block-post-content > .wp-block-buttons,
    .wp-block-post-content > .wp-block-group:not(.alignfull):not(.alignwide) {
        padding-left:  18px !important;
        padding-right: 18px !important;
    }

    /* Home page: zero out editor side-padding on full-width sections so
       visual elements go edge-to-edge on mobile. */
    .entry-content > .wp-block-group.alignfull,
    .wp-block-post-content > .wp-block-group.alignfull {
        padding-left:  0px !important;
        padding-right: 0px !important;
    }

    /* Home page: text inside full-width section groups */
    .entry-content > .wp-block-group.alignfull > .wp-block-heading,
    .entry-content > .wp-block-group.alignfull > p,
    .entry-content > .wp-block-group.alignfull > .wp-block-paragraph,
    .entry-content > .wp-block-group.alignfull > .wp-block-list,
    .entry-content > .wp-block-group.alignfull > .wp-block-quote,
    .entry-content > .wp-block-group.alignfull > .wp-block-buttons,
    .entry-content > .wp-block-group.alignfull > .wp-block-group:not(.alignfull):not(.alignwide),
    .wp-block-post-content > .wp-block-group.alignfull > .wp-block-heading,
    .wp-block-post-content > .wp-block-group.alignfull > p,
    .wp-block-post-content > .wp-block-group.alignfull > .wp-block-paragraph,
    .wp-block-post-content > .wp-block-group.alignfull > .wp-block-list,
    .wp-block-post-content > .wp-block-group.alignfull > .wp-block-quote,
    .wp-block-post-content > .wp-block-group.alignfull > .wp-block-buttons,
    .wp-block-post-content > .wp-block-group.alignfull > .wp-block-group:not(.alignfull):not(.alignwide) {
        padding-left:  18px !important;
        padding-right: 18px !important;
    }

    /* Footer */
    .er-site-footer,
    .er-site-footer .wp-block-group {
        padding-left:  18px !important;
        padding-right: 18px !important;
    }
}

/* Override blocks.css @media(max-width:600px) which adds 2rem side padding
   to .wp-block-group.alignfull and .wp-block-cover with !important.
   Higher specificity needed to win the !important vs !important battle. */
@media (max-width: 600px) {
    body .wp-block-group.alignfull,
    body .wp-block-cover {
        padding-left:  0px !important;
        padding-right: 0px !important;
    }
}


/* ==========================================================================
   13. SUB NAV (mobile)
   ========================================================================== */

@media (max-width: 782px) {
    .er-subnav-menu {
        flex-wrap: wrap !important;
        gap: 4px 8px;
    }
    .er-subnav-menu li {
        white-space: nowrap !important;
    }
    .er-subnav-menu a {
        font-size: 0.6rem;
        letter-spacing: 0.10em;
    }
    .er-subnav-menu li + li::before {
        margin: 0 0.4em;
    }
}

@media (max-width: 600px) {
    .er-subnav-menu {
        flex-direction: row !important;
    }
}


/* ==========================================================================
   14. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    #main-content.wp-block-cover { cursor: auto; }
    #er-lens-canvas { display: none; }
    #er-logo-bg { opacity: 0 !important; }
    #main-content .wp-block-cover__inner-container p.has-gold-mid-color,
    #main-content .wp-block-post-title { animation: none; }

    /* Hero fade-in sequence — show immediately when motion is reduced */
    .wp-block-cover .wp-block-cover__inner-container > .wp-block-group > p.has-gold-mid-color,
    .wp-block-cover .wp-block-cover__inner-container .wp-block-post-title {
        animation: none;
        opacity: 1;
    }
}


/* ==========================================================================
   15. POLISH
   ========================================================================== */
.er-logo-scroller {
    overflow:    hidden;
    white-space: nowrap;
    padding:     10px 0;
    max-width:   var(--wp--style--global--wide-size, 1400px) !important;  /* NEW */
    width:       100%;                                                     /* NEW */
}

@media (max-width: 600px) {
    .er-subnav-menu {
        flex-direction: row !important;
        gap: 0 !important;
        justify-content: center;
    }
    .er-subnav-menu li + li::before {
        display: inline !important;
        margin: 0 0.6em;
    }
    .er-subnav-menu a {
        padding: 0.6rem 0 !important;
    }
}

.page-id-39839 footer.wp-block-template-part .wp-block-post {
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}


.step-num {
  white-space: nowrap;
}



/* Space below page title (H1) */
.wp-block-post-title {
    margin-bottom: 1.5rem;
}

/* Space below all headings (H2, H3 etc) */
.wp-block-heading {
    margin-bottom: 1.0rem;
}

/* Remove padding top All subpages of /for/ */
body.parent-pageid-43559 .entry-content.wp-block-post-content {
    padding-top: 0 !important;
}


body {
    background-color: #FAFAF7;
}
