/* DD Bridal Studio: shared styles (tokens, header, nav, strip, drawer, search, footer) */
:root{
  --blush-50:#fdf3f4;
  --blush-100:#f3cdcf;
  --blush-200:#f0c5c7; /* matches the hero photo's backdrop */
  --blush-300:#ecc1c7;
  --rose:#c98a93;
  --burgundy:#5a1620;
  --burgundy-700:#6e2430;
  --burgundy-500:#8a3a45;
  --ink:#2b0d12;
  --muted:#6b4248;
  --line:rgba(90,22,32,.16);
  --shadow:0 20px 50px -20px rgba(90,22,32,.35);
  --serif:"Playfair Display", Georgia, "Times New Roman", serif;
  --sans:"Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter:clamp(16px, 4vw, 48px);
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  font-family:var(--sans);
  color:var(--ink);
  background:linear-gradient(180deg, var(--blush-100) 0%, var(--blush-200) 30%, var(--blush-200) 100%);
  background-color:var(--blush-200);
  min-height:100vh;
  overflow-x:hidden;
}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
img{display:block;max-width:100%}
:focus-visible{outline:2px solid var(--burgundy-500);outline-offset:3px;border-radius:8px}

.wrap{max-width:1240px;margin:0 auto;padding:0 var(--gutter)}

/* ---------- Header ---------- */
header{position:sticky;top:0;z-index:40;
  background:linear-gradient(180deg, rgba(243,205,207,.95), rgba(243,205,207,.82));
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);transition:box-shadow .3s}
header.scrolled{box-shadow:0 8px 30px -18px rgba(90,22,32,.4)}
.bar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding-top:clamp(14px,2.4vw,24px);padding-bottom:10px}
.icon-btn{width:44px;height:44px;display:grid;place-items:center;border-radius:50%;transition:background .25s}
.icon-btn:hover{background:rgba(90,22,32,.07)}
.icon-btn svg{width:26px;height:26px;stroke:var(--ink);fill:none;stroke-width:1.6;stroke-linecap:round}
.bar .right{justify-self:end;display:flex;align-items:center;gap:10px}
/* Instagram: a small icon button beside Search (in the header row, never floating over content) */
.icon-btn.insta svg{width:28px;height:28px;stroke:none;transition:transform .25s}
.icon-btn.insta:hover{background:none}
.icon-btn.insta:hover svg{transform:scale(1.1)}
/* Small phones: slightly smaller name and icons so menu, name, Instagram and Search all fit with room to spare */
@media (max-width:420px){
  .bar{grid-template-columns:auto 1fr auto;column-gap:8px}
  .bar .logo{font-size:18px;justify-self:center}
  .bar .right{gap:2px}
  .bar .icon-btn{width:36px;height:36px}
  .bar .icon-btn svg{width:22px;height:22px}
  .bar .icon-btn.insta svg{width:25px;height:25px}
}
@media (max-width:350px){
  .bar .logo{font-size:16px}
  .bar .icon-btn{width:33px;height:33px}
}
/* Instagram handle in the side menu */
.insta-link{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:14px;font-size:15px;letter-spacing:.02em;color:var(--burgundy)}
.insta-link svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6}
.insta-link .dot{fill:currentColor;stroke:none}
.logo{font-family:var(--serif);font-weight:500;letter-spacing:.06em;
  font-size:clamp(21px,4.2vw,34px);color:var(--ink);white-space:nowrap;text-align:center}
/* The "Dd" monogram from the logo, drawn in the text colour (the logo image used as a stencil) */
.logo-dd{display:inline-block;height:1.28em;aspect-ratio:800/564;margin-right:.42em;vertical-align:-.13em;
  background:currentColor;-webkit-mask:url(../images/logo-mark.webp?v=1) center/contain no-repeat;mask:url(../images/logo-mark.webp?v=1) center/contain no-repeat}
.book{display:none;padding:11px 22px;border-radius:999px;background:var(--burgundy);color:#fff;
  font-size:14px;letter-spacing:.04em;transition:transform .25s, background .25s}
.book:hover{background:var(--burgundy-700);transform:translateY(-1px)}

nav.pills{display:flex;gap:clamp(8px,1.4vw,16px);padding:6px var(--gutter) 16px;
  overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
nav.pills::-webkit-scrollbar{display:none}
nav.pills .pill:first-child{margin-left:auto}
nav.pills .pill:last-child{margin-right:auto}
.pill{flex:0 0 auto;padding:10px clamp(18px,2.4vw,30px);border-radius:999px;
  border:1px solid var(--line);background:rgba(255,255,255,.35);
  font-size:clamp(14px,1.6vw,16px);color:var(--ink);
  transition:background .25s,color .25s,transform .25s}
.pill:hover{background:rgba(255,255,255,.7);transform:translateY(-1px)}
.pill.active{background:var(--burgundy);color:#fff;border-color:var(--burgundy);box-shadow:0 8px 20px -10px rgba(90,22,32,.7)}


/* ---------- Moving services strip ---------- */
.ribbon{border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:rgba(255,255,255,.25);overflow:hidden}
.track{display:flex;width:max-content;animation:scroll 32s linear infinite}
.ribbon:hover .track{animation-play-state:paused}
.track span{display:flex;align-items:center;gap:26px;padding:14px 13px;white-space:nowrap;
  font-family:var(--serif);font-style:italic;font-size:clamp(16px,1.8vw,21px);color:var(--burgundy-700)}
.track span::after{content:"✦";font-style:normal;font-size:11px;color:var(--rose)}
@keyframes scroll{to{transform:translateX(-50%)}}

footer{padding:24px var(--gutter) 32px;text-align:center;font-size:12px;letter-spacing:.2em;text-transform:uppercase;color:var(--muted);border-top:1px solid var(--line)}
/* Footer: an invitation-style Instagram link: gold rules with a small gold diamond, a caption,
   then the Instagram icon beside the handle, then the copyright line. The whole block is one link. */
.site-foot{display:flex;flex-direction:column;align-items:center;gap:26px;padding:38px var(--gutter) 30px;text-transform:none;letter-spacing:normal}
.foot-insta{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;color:var(--burgundy)}
.foot-orn{display:flex;align-items:center;gap:12px;margin-bottom:6px}
.foot-orn::before,.foot-orn::after{content:"";width:64px;height:1px;background:linear-gradient(90deg,transparent,#c99b4b)}
.foot-orn::after{background:linear-gradient(90deg,#c99b4b,transparent)}
.foot-orn i{width:6px;height:6px;background:#c99b4b;transform:rotate(45deg)}
.foot-insta small{font-size:10.5px;letter-spacing:.28em;text-transform:uppercase;color:var(--muted)}
.foot-handle{display:inline-flex;align-items:center;gap:10px}
.foot-handle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;transition:stroke .3s}
.foot-handle .dot{fill:currentColor;stroke:none}
/* Always shows it is a link (phones have no hover): a fine gold underline and a small ↗ "opens Instagram" arrow */
.foot-handle b{font-family:var(--serif);font-style:italic;font-weight:400;font-size:22px;line-height:1.3;
  text-decoration:underline;text-decoration-color:rgba(201,155,75,.7);text-decoration-thickness:1px;text-underline-offset:5px;
  transition:text-decoration-color .3s}
.foot-handle svg.ext{width:13px;height:13px;margin-left:-4px;align-self:flex-start;margin-top:5px;stroke:#a87a2c;stroke-width:1.7;
  stroke-linecap:round;stroke-linejoin:round;transition:transform .3s}
.foot-insta:hover .foot-handle b{text-decoration-color:#a87a2c}
.foot-insta:hover .foot-handle svg{stroke:#a87a2c}
.foot-insta:hover .foot-handle svg.ext{transform:translate(2px,-2px)}
.foot-copy{font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--muted)}

/* ---------- Drawer ---------- */
.scrim{position:fixed;inset:0;z-index:60;background:rgba(43,13,18,.35);opacity:0;pointer-events:none;transition:opacity .35s}
.drawer{position:fixed;z-index:70;top:0;left:0;bottom:0;width:min(86vw,380px);
  background:linear-gradient(180deg,var(--blush-50),var(--blush-200));padding:28px 28px 32px;
  transform:translateX(-102%);transition:transform .45s cubic-bezier(.2,.8,.2,1);display:flex;flex-direction:column;box-shadow:var(--shadow)}
body.menu-open .scrim{opacity:1;pointer-events:auto}
body.menu-open .drawer{transform:none}
body.menu-open{overflow:hidden}
.drawer .top{display:flex;justify-content:space-between;align-items:center}
.drawer .top .name{font-family:var(--serif);font-size:20px;letter-spacing:.06em}
.drawer ul{list-style:none;margin-top:40px;display:grid;gap:6px}
.drawer li a{display:flex;justify-content:space-between;align-items:center;padding:14px 0;border-bottom:1px solid var(--line);
  font-family:var(--serif);font-style:italic;font-size:30px}
.drawer li a::after{content:"→";font-family:var(--sans);font-style:normal;font-size:16px;opacity:.5}
.drawer .book{display:block;text-align:center;margin-top:auto;padding:16px}

/* ---------- Search ---------- */
.search{position:fixed;inset:0;z-index:80;display:grid;place-items:start center;align-content:start;padding:14vh var(--gutter) 0;
  background:rgba(249,230,232,.94);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);opacity:0;pointer-events:none;transition:opacity .3s}
body.search-open .search{opacity:1;pointer-events:auto}
.search form{width:min(640px,100%);display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--burgundy);padding-bottom:10px}
.search input{flex:1;min-width:0;border:0;background:none;outline:none;font-family:var(--serif);font-style:italic;font-size:clamp(24px,5vw,40px);color:var(--ink)}
.search input::placeholder{color:rgba(90,22,32,.35)}
.search .hint{margin-top:18px;font-size:13px;color:var(--muted);letter-spacing:.06em;width:min(640px,100%)}
.search .close{position:absolute;top:20px;right:var(--gutter)}
.search .hint{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.search .hint[hidden]{display:none}
.search .hint span{margin-right:4px}
.search .hint button{padding:8px 15px;border-radius:999px;font-size:14px;color:var(--burgundy);background:rgba(255,255,255,.55);box-shadow:inset 0 0 0 1px var(--line);transition:background .25s,color .25s}
.search .hint button:hover{background:var(--burgundy);color:#fff}
.search-results{width:min(640px,100%);max-height:calc(100dvh - 14vh - 96px);overflow-y:auto;overscroll-behavior:contain;margin-top:8px;padding-bottom:20px}
.search-results a:not([data-msg]){display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:16px;padding:13px 4px;border-bottom:1px solid var(--line);transition:padding .2s,background .2s}
.search-results a:not([data-msg])::after{content:"\2192";grid-row:1/3;grid-column:2;font-size:16px;color:#a87a2c}
.search-results a:not([data-msg]):hover,.search-results a:not([data-msg]):focus-visible{padding-left:10px;background:rgba(255,255,255,.4)}
.search-results b{font-family:var(--serif);font-style:italic;font-weight:400;font-size:21px;line-height:1.25;color:var(--burgundy)}
.search-results small{font-size:12px;letter-spacing:.06em;color:var(--muted)}
.search-none{padding:16px 4px;font-size:16px;color:var(--ink)}
.search-none a{display:inline-block;margin-left:8px;color:var(--burgundy);text-decoration:underline;text-decoration-color:#c99b4b;text-underline-offset:4px}
@media (max-width:600px){.search{padding-top:76px}.search-results{max-height:calc(100dvh - 170px)}}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition:none!important}
  .track{animation-duration:90s}
}

@media (min-width:860px){
  .book.desktop{display:inline-block}
}

/* ---------- Page transition (Explore buttons) ----------
   Leaving: a burgundy circle blooms out from the tapped button, the studio name fades in.
   Arriving: the burgundy curtain lifts away and the page content rises gently into place. */
.pt{position:fixed;inset:0;z-index:100;pointer-events:none;display:grid;place-items:center;
  background:linear-gradient(135deg,#8a3a45 0%,#5a1620 55%,#3f0e16 100%);
  clip-path:circle(0px at var(--x,50%) var(--y,50%))}
.pt.in{animation:ptBloom .75s cubic-bezier(.76,0,.24,1) forwards}
/* The mark: gold logo with "BRIDAL STUDIO" beneath it */
.pt .mark,html.pt-arrive body::after{font-family:var(--serif);font-weight:500;letter-spacing:.38em;text-transform:uppercase;
  font-size:clamp(13px,2vw,16px);color:#ecd08e;white-space:nowrap}
.pt .mark{opacity:0;transform:translateY(10px);display:flex;flex-direction:column;align-items:center;gap:18px;padding-left:.38em}
.pt .mark img{width:150px;height:auto;margin-left:-.38em;filter:drop-shadow(0 10px 24px rgba(20,0,5,.45))}
.pt.in .mark{animation:ptMarkIn .45s ease .32s forwards}
@keyframes ptBloom{to{clip-path:circle(150vmax at var(--x,50%) var(--y,50%))}}
@keyframes ptMarkIn{to{opacity:1;transform:none}}

html.pt-arrive body::before{content:"";position:fixed;inset:0;z-index:100;pointer-events:none;
  background:linear-gradient(135deg,#8a3a45 0%,#5a1620 55%,#3f0e16 100%);
  animation:ptLift .85s cubic-bezier(.76,0,.24,1) .25s forwards}
html.pt-arrive body::after{content:"Bridal Studio";position:fixed;inset:0;z-index:101;pointer-events:none;
  display:grid;place-items:center;padding:140px 0 0 .38em;
  background:url(../images/logo.webp?v=2) center calc(50% - 16px)/150px auto no-repeat;
  animation:ptMarkOut .3s ease .15s forwards}
html.pt-arrive main{animation:ptRise .9s cubic-bezier(.2,.8,.2,1) .45s both}
@keyframes ptLift{to{clip-path:inset(0 0 100% 0)}}
@keyframes ptMarkOut{to{opacity:0;transform:translateY(-12px)}}
@keyframes ptRise{from{opacity:0;transform:translateY(28px)}}

/* ---------- Scroll reveal ----------
   Only active when the script turns it on (html.reveal-on), so content can never get stuck hidden.
   Quick and subtle: things already on screen show instantly; things below fade up as they arrive. */
.reveal-on [data-reveal]{opacity:0;transform:translateY(20px);
  transition:opacity .55s cubic-bezier(.2,.8,.2,1) var(--d,0s), transform .6s cubic-bezier(.2,.8,.2,1) var(--d,0s)}
.reveal-on [data-reveal="left"]{transform:translateX(-36px)}
.reveal-on [data-reveal="right"]{transform:translateX(36px)}
.reveal-on [data-reveal].in{opacity:1;transform:none}
.reveal-init [data-reveal]{transition:none!important}
@media (max-width:600px){
  .reveal-on [data-reveal="left"]{transform:translateX(-20px)}
  .reveal-on [data-reveal="right"]{transform:translateX(20px)}
}

/* ---------- Touch comfort ---------- */
a,button,.pk{touch-action:manipulation;-webkit-tap-highlight-color:rgba(90,22,32,.12)}
body.search-open{overflow:hidden}
/* Small text links keep their look but get a larger invisible tap area */
.logo,.crumb a,.ab-phone,.xp-sources a,.foot-insta,.consult-insta{position:relative}
.logo::after,.crumb a::after,.ab-phone::after,.xp-sources a::after,.consult-insta::after{content:"";position:absolute;inset:-9px -4px}
@media (max-width:600px){.xp-sources{gap:16px 18px}}
