/*
Theme Name: Secret Thai Garden - Divi Child
Theme URI: https://www.secretthaigarden.co.nz/
Description: Divi-compatible, editable six-page restaurant site with slow entrance doors. Requires Divi parent theme.
Author: GBNZ Creative Solutions
Template: Divi
Version: 1.2.4
Text Domain: stg-divi
*/
:root{--stg-gold:#d9b576;--stg-cream:#f5ead4;--stg-dark:#071710;--stg-green:#0b251b}
body{background:var(--stg-dark);color:var(--stg-cream)}
#main-content{background:var(--stg-dark)}
#main-header,#top-header{background:#07150fdc!important;box-shadow:0 1px 0 #a98a4f65!important}
#top-menu a,#et-top-navigation .mobile_menu_bar:before{color:#f3e5cb!important}
#top-menu li.current-menu-item>a,#top-menu a:hover{color:#e1b96e!important}
#logo{max-height:80%!important}
.stg-wrap{max-width:1150px;margin:0 auto}
.stg-kicker{letter-spacing:.27em;text-transform:uppercase;color:#dcb87d;font:600 12px/1.5 Arial,sans-serif}
.stg-display,.stg-display h1,.stg-display h2,.stg-display h3{font-family:Georgia,'Times New Roman',serif;color:#f7ebd4;font-weight:400}
.stg-display h1{font-size:clamp(43px,5.8vw,86px);line-height:1.07}
.stg-display h2{font-size:clamp(30px,4vw,56px);line-height:1.12}
.stg-copy,.stg-copy p{color:#e6dfd0;font-size:17px;line-height:1.85}
.stg-hero-section{min-height:calc(100vh - 80px);display:flex;align-items:center;background-size:cover;background-position:center;position:relative}
.stg-hero-section:before,.stg-page-head:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,11,8,.88),rgba(1,13,10,.22)),linear-gradient(0deg,rgba(1,12,9,.55),transparent 65%);pointer-events:none}
.stg-hero-section .et_pb_row,.stg-page-head .et_pb_row{position:relative;z-index:1}
.stg-hero-section .et_pb_text{max-width:730px}
.stg-page-head{min-height:340px;display:flex;align-items:center;background-size:cover;background-position:center;position:relative}
.stg-panel{background:#092219;border-top:1px solid #af8a514f}
.stg-panel-alt{background:#061610;border-top:1px solid #af8a5137}
.stg-section-title{text-align:center;margin-bottom:20px}
.stg-gold-link,.stg-button{display:inline-block;text-decoration:none;border:1px solid #d5a962;color:#f5e8d0;padding:13px 24px;font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;margin:9px 8px 0 0;transition:.2s}
.stg-button-primary{background:linear-gradient(115deg,#f5d995,#bd8d4b);color:#15140b}
.stg-button:hover{transform:translateY(-2px);background:#dfbd7c;color:#10180e}
.stg-card img{width:100%;object-fit:cover;aspect-ratio:4/3;border:1px solid #a07f4c80}
.stg-card .et_pb_text{padding:10px 0 15px}
.stg-card h3{font:normal 25px Georgia,serif;color:#e9cf9c}
.stg-menu-category h2{border-bottom:1px solid #ba9760;padding-bottom:10px;margin-bottom:20px;color:#edcf96;font:normal 36px Georgia,serif}
.stg-menu-items{columns:2;column-gap:48px}
.stg-menu-item{break-inside:avoid;padding:14px 0;border-bottom:1px solid #7c745052}
.stg-menu-item strong{display:block;color:#f6e8d2;font-size:18px}
.stg-menu-item small{display:block;color:#b8c8b8;font-size:14px;margin-top:4px}
.stg-gallery-tile img{aspect-ratio:4/3;object-fit:cover;width:100%;border:2px solid #a68a5547}
.stg-cta-inline{margin-top:16px}
.stg-contact-info a{color:#f1cd90}
.stg-door-overlay{display:none;position:fixed;inset:0;z-index:999999;overflow:hidden;background:#08150d}
body.stg-door-active{overflow:hidden}body.stg-door-active .stg-door-overlay{display:block}
.stg-door-reveal{position:absolute;inset:0;background-size:cover;background-position:center;filter:brightness(.9) saturate(1.16)}
.stg-door-reveal:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#09160c85,transparent 70%)}
.stg-door-leaf{position:absolute;top:0;bottom:0;width:50.2%;background-image:var(--door-url);background-repeat:no-repeat;background-size:200% 100%;box-shadow:inset 0 0 55px #000c,0 0 30px #000a;will-change:transform}
.stg-door-leaf.left{left:0;transform-origin:left center;background-position:left center}
.stg-door-leaf.right{right:0;transform-origin:right center;background-position:right center}
.stg-door-overlay.stg-opening .left{animation:stg-open-left 4.7s cubic-bezier(.34,.04,.22,1) .65s forwards}
.stg-door-overlay.stg-opening .right{animation:stg-open-right 4.7s cubic-bezier(.34,.04,.22,1) .65s forwards}
@keyframes stg-open-left{to{transform:perspective(1300px) rotateY(-104deg)}}
@keyframes stg-open-right{to{transform:perspective(1300px) rotateY(104deg)}}
.stg-door-label{position:absolute;z-index:3;top:43%;width:100%;text-align:center;color:#f1d29d;font:normal clamp(25px,5vw,65px) Georgia,serif;text-shadow:0 3px 15px #000;transition:opacity 1s}
.stg-door-overlay.stg-opening .stg-door-label{opacity:0;transition-delay:1.6s}
.stg-skip{position:absolute;z-index:5;right:20px;bottom:24px;padding:10px 20px;border:1px solid #f1d29d;color:#fff;background:#08160ab8;cursor:pointer;font-size:14px}
.stg-replay{cursor:pointer;color:#e0bc78;text-decoration:underline}
@media(max-width:767px){.stg-hero-section{min-height:83svh;background-position:56% center}.stg-page-head{min-height:260px}.stg-menu-items{columns:1}.stg-door-leaf{background-size:200% 100%}.stg-hero-section .et_pb_row{padding-top:40px;padding-bottom:40px}.stg-display h1{font-size:clamp(39px,10vw,60px)}.stg-button{padding:12px 16px;font-size:12px}}
@media(prefers-reduced-motion:reduce){.stg-door-overlay{display:none}body.stg-door-active{overflow:auto}.stg-button{transition:none}}




/* v1.2.4: single native Divi header. No custom header markup or forced flex layout. */
#top-header{display:none!important}
#main-header{background:rgba(5,20,15,.98)!important;border-bottom:1px solid rgba(217,181,118,.55)!important;box-shadow:0 4px 20px rgba(0,0,0,.28)!important}
#main-header .container{width:92%;max-width:1320px}
#main-header #logo{max-height:64px!important;max-width:235px!important;width:auto;object-fit:contain}
#top-menu{list-style:none!important}
#top-menu li{list-style:none!important}
#top-menu>li>a{color:#f5ead4!important;font-family:Arial,sans-serif;font-weight:600!important;font-size:12px!important;text-transform:uppercase;letter-spacing:.04em}
#top-menu>li.current-menu-item>a,#top-menu>li>a:hover{color:#e6be78!important}
#top-menu>li:last-child>a{background:#d9b576;color:#081910!important;padding:12px 14px!important;border-radius:3px}
#top-menu>li:last-child>a:hover{background:#f3d69e;color:#081910!important}
#et_top_search,#et_search_icon,.et_search_outer,.et-cart-info{display:none!important}
#et-top-navigation .mobile_menu_bar:before{color:#e6be78!important}
#main-header .et_mobile_menu{background:#071910!important;border-top:2px solid #d9b576!important;box-shadow:0 12px 28px rgba(0,0,0,.35)!important;padding:8px 0!important}
#main-header .et_mobile_menu li{list-style:none!important}
#main-header .et_mobile_menu li a{color:#f3e9d5!important;font-size:15px!important;padding:14px 18px!important;border-bottom:1px solid rgba(217,181,118,.18)!important;text-decoration:none!important}
#main-header .et_mobile_menu li:last-child>a{color:#e6be78!important;font-weight:700!important}
#main-header .select_page{display:none!important}
@media(max-width:980px){
 #main-header #logo{max-width:min(220px,58vw)!important;max-height:52px!important}
 #top-menu-nav,#top-menu{display:none!important}
 #et_mobile_nav_menu{display:block!important}
 #main-header .mobile_menu_bar{display:block!important}
}
@media(min-width:981px){#et_mobile_nav_menu{display:none!important}}
html,body{max-width:100%;overflow-x:clip}

/* STG entrance: handwritten title and 30% larger ENTER — approved 17 Nov 2026. */
@font-face {
 font-family: "STG Entrance Script";
 src: url("assets/fonts/DancingScript-Regular.otf") format("opentype");
 font-weight: 400;
 font-style: normal;
 font-display: swap;
}
/* Two-line entrance greeting: keep the name in the existing gold script. */
#stg-door-overlay .stg-door-label,
#stg-door-overlay .stg-door-front-label {
 top: 40%;
 left: 50%;
 width: calc(100% - 32px);
 max-width: 980px;
 transform: translate(-50%, -50%);
 font-family: "STG Entrance Script", "Brush Script MT", cursive;
 font-size: clamp(25px, 9.5vw, 72px);
 font-weight: 400;
 font-style: normal;
 line-height: 1.25;
 letter-spacing: 0;
 padding: 0;
 box-sizing: border-box;
 pointer-events: none;
 opacity: 0;
 visibility: hidden;
 transition: opacity .7s ease, visibility 0s linear .7s;
}
#stg-door-overlay .stg-door-front-label {
 position: absolute;
 z-index: 3;
 text-align: center;
 color: #f1d29d;
 text-shadow: 0 3px 15px #000;
 white-space: nowrap;
}
#stg-door-overlay.stg-waiting .stg-door-front-label {
 opacity: 1;
 visibility: visible;
 transition-delay: 0s;
}
#stg-door-overlay.stg-welcome-visible .stg-door-label {
 opacity: 1;
 visibility: visible;
 transition-delay: 0s;
}
#stg-door-overlay .stg-door-welcome {
 display: block;
 margin-bottom: clamp(4px, 1vw, 8px);
 font-family: Georgia, "Times New Roman", serif;
 font-size: clamp(18px, 2.7vw, 27px);
 line-height: 1.25;
 white-space: nowrap;
}
#stg-door-overlay .stg-door-name {
 display: block;
 white-space: nowrap;
}
#stg-door-overlay .stg-enter {
 box-sizing: border-box;
 width: 195px;
 height: 65px;
 min-width: 195px;
 min-height: 65px;
 padding: 18.2px 31.2px;
 border-width: 1.3px;
 border-radius: 5.2px;
 font-size: 18.2px;
}
@media (max-height: 500px) {
 #stg-door-overlay .stg-door-label, #stg-door-overlay .stg-door-front-label { top: 27%; }
 #stg-door-overlay .stg-enter { top: 65%; }
}

/* Entrance video only: subtle black Tint; keep the greeting and controls bright. */
#stg-door-overlay .stg-door-reveal:has(.stg-hero-video.is-playing)::after {
 background: linear-gradient(rgba(0,0,0,.20), rgba(0,0,0,.20)), linear-gradient(0deg,#09160c85,transparent 70%);
 z-index: 1;
 pointer-events: none;
}

/* Small screens: retain the landscape composition with only 3% zoom.
   Reuse the selected entrance photograph as a soft backdrop; no second video decoder. */
@media (max-width: 980px) {
 #stg-door-overlay .stg-door-reveal:has(.stg-hero-video)::before {
  content: "";
  position: absolute;
  inset: -28px;
  z-index: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(22px) brightness(.78);
  pointer-events: none;
 }
 #stg-door-overlay .stg-door-reveal .stg-hero-video {
  object-fit: contain;
  object-position: center;
  transform: scale(1.03);
  transform-origin: center;
  z-index: 1;
 }
 #stg-door-overlay .stg-door-reveal:has(.stg-hero-video.is-playing)::after {
  z-index: 2;
 }
}

/* Dedicated portrait entrance clip: show the entire frame without stretching.
   Keep the existing photo backdrop, tint, controls and desktop presentation. */
#stg-door-overlay.stg-portrait-video .stg-door-reveal .stg-hero-video {
 object-fit: contain;
 object-position: center;
 transform: none;
}

/* Portrait entrance video from YouTube (2026-11-23): cover the screen like object-fit:cover, never clickable. */
.stg-yt-intro{overflow:hidden}
.stg-yt-portrait iframe{position:absolute;top:50%;left:50%;width:max(100vw,56.25vh);height:calc(max(177.78vw,100vh) + 180px);transform:translate(-50%,-50%);border:0;pointer-events:none}
.stg-yt-landscape iframe{position:absolute;top:50%;left:50%;width:max(100vw,177.78vh);height:calc(max(56.25vw,100vh) + 180px);transform:translate(-50%,-50%);border:0;pointer-events:none}
/* GB Web DEV 2026-11-25: home "Amazing Food / Come to Thailand / Cocktail Bar" tiles taller (portrait), keep heads in frame */
.page-id-13 .et_pb_image_1.stg-gallery-tile img,.page-id-13 .et_pb_image_2.stg-gallery-tile img,.page-id-13 .et_pb_image_3.stg-gallery-tile img{aspect-ratio:4/5;object-position:center 30%}

/* Daddy 2026-11-25: no photo name under images opened in the lightbox */
.mfp-title{display:none!important}

/* Daddy 2026-11-25: Private Functions photo gallery on the home page (3 x 3 grid, no captions) */
.stg-pf-gallery .et_pb_gallery_items{display:grid!important;grid-template-columns:repeat(3,1fr);gap:14px}
.stg-pf-gallery .et_pb_gallery_item{width:100%!important;margin:0!important;float:none!important;clear:none!important;display:block!important}
.stg-pf-gallery .et_pb_gallery_image{border:2px solid #a68a5547;overflow:hidden;line-height:0;height:auto!important}
.stg-pf-gallery .et_pb_gallery_image a{display:block;line-height:0}
.stg-pf-gallery .et_pb_gallery_image img{display:block;height:auto!important;width:100%;aspect-ratio:4/3;object-fit:cover;transition:transform .4s}
.stg-pf-gallery .et_pb_gallery_image:hover img{transform:scale(1.04)}
.stg-pf-gallery .et_pb_gallery_title,.stg-pf-gallery .et_pb_gallery_caption{display:none}
@media(max-width:767px){.stg-pf-gallery .et_pb_gallery_items{gap:6px}}
