/* ===========================================================
   Scentcraft Atelier — DNN skin stylesheet
   =========================================================== */

:root{
  --teal-brand:#154553;
  --teal-deep:#0f353f;
  --cream-50:#fdfbf6;
  --cream-100:#f6f1e6;
  --ink:#16323a;
  --ink-soft:#3f5a5f;
  --gold-200:#d9c9a3;
  --radius-pill:999px;

  /* >>> HEADER SPACING <<<
     --header-edge-gap = space between the screen edge and the logo.
     --menu-gap        = space between the logo and the first menu item
                         (the menu sits right next to the logo, on the left).
     Bigger number = more space. */
  --header-edge-gap:20px;
  --menu-gap:clamp(20px,1vw,4px);
}

body{
  margin:0;
  background:var(--cream-50);
  color:var(--ink);
  font-family:'Jost', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;}

h1,h2,h3,.display{
  font-family:'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-weight:600;
  margin:0;
}
a{color:inherit;}

/* ---------- Header / top bar ---------- */
header.site-header{
  background:var(--teal-brand);
  color:var(--cream-50);
  padding:14px var(--header-edge-gap);
  position:sticky;
  top:0;
  z-index:10;
}
.header-inner{
  max-width:none;
  margin:0;
  display:flex;
  align-items:center;
  justify-content:flex-start;   /* logo, then the menu right beside it */
  gap:var(--menu-gap);
  /* NEVER wrap: the menu must stay on the same line as the logo. If the
     window gets too narrow, the logo and the menu shrink instead of the
     menu dropping onto a second line. */
  flex-wrap:nowrap;
}
.logo-block{display:flex; align-items:center; gap:12px; flex:0 1 auto; min-width:0;}
.logo-block img{flex:none; max-height:48px; width:auto;}

/* ---------- Main menu ----------
   Styles the markup DDR Menu produces (a plain <ul>/<li>/<a> list).
   The menu sits next to the logo; the space between them is --menu-gap at
   the top of this file. */
nav.main-nav{margin:0; flex:1 1 auto; min-width:0; display:flex; align-items:center;}
/* Register + Login (DNN skin objects). Pushed to the right end of the bar. */
nav.main-nav .header-account{
  margin-left:auto;
  display:flex; align-items:center; flex-wrap:nowrap; white-space:nowrap;
  gap:clamp(14px,1.8vw,26px);
  padding-left:24px;
}
/* DNN SEARCH skin object (first item in .header-account): compact pill box.
   ShowWeb/ShowSite are off in the .ascx so there are no radio buttons. */
nav.main-nav .header-account > *{flex:none;}
nav.main-nav .header-account [id$="ClassicSearch"]{display:flex; align-items:center; gap:8px; white-space:nowrap;}
nav.main-nav .header-account .searchInputContainer{position:relative; display:inline-block;}
nav.main-nav .header-account a.dnnSearchBoxClearText{display:none;}   /* the little clear-text "x" picks up the menu link styling; hidden */
nav.main-nav .header-account input.NormalTextBox{
  width:clamp(110px,12vw,170px);
  box-sizing:border-box;
  padding:6px 12px;
  font-family:'Jost', system-ui, -apple-system, sans-serif;
  font-size:.653rem;
  color:var(--cream-50);
  background:rgba(255,255,255,.1);
  border:1px solid rgba(246,241,230,.35);
  border-radius:var(--radius-pill);
}
nav.main-nav .header-account input.NormalTextBox::placeholder{color:rgba(246,241,230,.7);}
nav.main-nav .header-account input.NormalTextBox:focus{outline:2px solid var(--gold-200); outline-offset:2px;}
nav.main-nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  align-items:center;
  flex-wrap:nowrap;
  gap:clamp(8px,1.2vw,20px);
  /* No overflow rules here on purpose: overflow-x:auto also forces
     overflow-y:auto, which clips the drop-down menus. On narrow screens the
     menu collapses behind the hamburger button instead (see below). */
}
nav.main-nav li{position:relative;}
nav.main-nav a{
  position:relative;
  display:block;
  padding:10px 2px;
  color:var(--cream-100);
  text-decoration:none;
  font-size:clamp(.593rem,calc(1.05vw - .167rem),.733rem);
  letter-spacing:.08em;
  text-transform:uppercase;
  white-space:nowrap;
  transition:color .18s ease;
}
/* White underline that sits just under the text. To move it closer/further,
   change "bottom" (smaller number = further from the text); to thicken it,
   change "height". */
nav.main-nav a::after{
  content:"";
  position:absolute;
  left:2px; right:2px;
  bottom:7px;
  height:2px;
  background:#fff;
  opacity:0;
  transition:opacity .18s ease;
}
nav.main-nav a:hover,
nav.main-nav a:focus{color:#fff;}
nav.main-nav a:hover::after,
nav.main-nav a:focus::after,
nav.main-nav li.selected > a::after,
nav.main-nav li.current > a::after,
nav.main-nav li.breadcrumb > a::after{opacity:1;}
nav.main-nav li.selected > a,
nav.main-nav li.current > a,
nav.main-nav li.breadcrumb > a{color:#fff;}

/* Drop-down for child pages */
nav.main-nav ul ul{
  display:none;
  position:absolute;
  top:100%;
  left:0;
  flex-direction:column;
  align-items:stretch;
  gap:0;
  min-width:200px;
  padding:6px 0;
  background:var(--teal-deep);
  box-shadow:0 10px 26px rgba(0,0,0,.28);
  z-index:20;
}
nav.main-nav li:hover > ul,
nav.main-nav li:focus-within > ul{display:flex;}
nav.main-nav ul ul a{
  padding:9px 18px;
  text-transform:none;
  letter-spacing:.02em;
  font-size:.753rem;
}
nav.main-nav ul ul a::after{display:none;}   /* no underline in the drop-down */
nav.main-nav ul ul a:hover{
  background:rgba(255,255,255,.08);
  color:#fff;
}

/* ---------- Mobile menu (hamburger) ----------
   Above 900px: menu is the normal horizontal bar, button is hidden.
   At 900px and below: the menu is hidden until the button is pressed
   (skin.js toggles .nav-open on the header), then drops down full width. */
.nav-toggle{display:none;}
.nav-toggle-close{display:none;}
.nav-toggle:focus-visible{outline:2px solid var(--gold-200); outline-offset:2px;}
@media (max-width:900px){
  .nav-toggle{
    display:inline-flex; align-items:center; justify-content:center;
    flex:none; width:44px; height:44px;
    margin-left:auto;   /* pushes the button to the right end of the bar */
    background:transparent; color:var(--cream-50);
    border:1px solid rgba(246,241,230,.35); border-radius:6px;
    cursor:pointer; padding:0;
  }
  header.site-header.nav-open .nav-toggle-bars{display:none;}
  header.site-header.nav-open .nav-toggle-close{display:inline;}
  nav.main-nav{
    display:none;
    position:absolute; top:100%; left:0; right:0;
    background:var(--teal-deep);
    box-shadow:0 12px 24px rgba(0,0,0,.28);
    padding:6px var(--header-edge-gap) 16px;
    max-height:calc(100vh - 76px);
    overflow-y:auto;
  }
  header.site-header.nav-open nav.main-nav{display:block;}
  nav.main-nav ul{flex-direction:column; align-items:stretch; gap:0;}
  nav.main-nav a{
    padding:14px 2px;
    font-size:.733rem;
    border-bottom:1px solid rgba(246,241,230,.12);
  }
  /* child pages just show indented under their parent */
  nav.main-nav ul ul{
    display:block; position:static; min-width:0;
    padding:0 0 0 16px; background:transparent; box-shadow:none;
  }
  nav.main-nav ul ul a{padding:11px 2px; font-size:.693rem;}
  nav.main-nav a::after{display:none;}   /* rows have divider lines instead */
  nav.main-nav .header-account{
    margin-left:0; padding:8px 0 0;
    gap:24px;
    flex-wrap:wrap;
  }
  nav.main-nav .header-account a{border-bottom:none;}
}

/* ---------- Hero (content-driven height, Eternal-style) ----------
   The hero is NO LONGER a fixed height. The photo sits behind as a
   background (sized by the hero's height, so it crops instead of stretching) and the
   HeroPane text sits in normal flow on top of it. The hero's height =
   HeroPane content + the vertical padding below, with min-height as a floor
   so it never gets shorter than the original 420px banner.
   To make it roomier/tighter, change --hero-pad-y and --hero-min-h. */
:root{
  --hero-pad-y:clamp(48px,8vw,110px);
  --hero-min-h:420px;
}
.hero{
  position:relative;
  overflow:hidden;
  width:100%;
  min-height:var(--hero-min-h);
  display:flex;
  align-items:center;
  background:var(--teal-deep);   /* nothing light can ever show behind the photo */
}
.hero-bg{
  /* Sized from the hero's HEIGHT, not its width, so the ring stays the same
     size however wide the window gets. The photo is anchored to the right
     (that's where the flower is); on narrower windows the left side crops
     off, on very wide windows the left edge fades into the teal behind it. */
  position:absolute;
  top:0; bottom:0; right:0;
  height:100%;
  width:auto;
  max-width:none;
  display:block;
  -webkit-mask-image:linear-gradient(90deg, transparent 0, #000 160px);
          mask-image:linear-gradient(90deg, transparent 0, #000 160px);
}
.hero-scrim{
  position:absolute; inset:0;
  background:linear-gradient(90deg, rgba(15,53,63,.72) 0%, rgba(15,53,63,.55) 34%, rgba(15,53,63,.18) 58%, rgba(15,53,63,0) 72%);
  pointer-events:none;
}
.hero-content{
  position:relative;   /* in flow: this is what sets the hero's height */
  z-index:2;
  width:100%;
  padding:var(--hero-pad-y) 0;
}
.hero-content-inner{
  max-width:1180px;
  margin:0 auto;
  padding:0 24px;
}
/* HeroPane: the small content area floating over the photo. Text goes here. */
.hero-pane-slot{
  max-width:600px;
  color:var(--cream-50);
}
.hero-pane-slot h1,
.hero-pane-slot h2,
.hero-pane-slot h3{color:var(--cream-50);}

@media (max-width:900px){
  :root{--header-edge-gap:20px; --hero-min-h:340px;}
}
@media (max-width:640px){
  :root{--hero-min-h:280px;}
  /* the photo stays right-anchored so the flower stays in frame on phones;
     darken evenly, since text now spans the full width */
  .hero-scrim{background:linear-gradient(180deg, rgba(15,53,63,.62) 0%, rgba(15,53,63,.50) 100%);}
  .hero-pane-slot{max-width:none;}
}

/* ---------- Structural content panes ---------- */
/* side padding (24px, same as the hero and footer) so content never touches
   the screen edge on windows narrower than 1180px */
.pane-main{max-width:1180px; margin:20px auto; padding:0 24px; box-sizing:border-box; min-height:60px;}
.round-panes{
  max-width:1180px; margin:0 auto 20px; padding:0 24px 20px; box-sizing:border-box;
  display:grid; grid-template-columns:1fr 1fr 1fr; gap:20px;
}
@media (max-width:700px){
  .round-panes{grid-template-columns:1fr;}
}
.pane-round{min-height:60px;}

/* Opt-in centering for tables in any content pane. In the module's HTML editor,
   give the table the class  center-table  (Table Properties > Advanced >
   Stylesheet Classes). Tables without the class are left alone. */
table.center-table{margin-left:auto; margin-right:auto;}
table.center-table td,
table.center-table th{text-align:center;}

/* Opt-in readable text column for long-form pages (e.g. Privacy Policy).
   In the module's HTML Source view, wrap the content in
   <div class="policy"> ... </div>. Pages without the wrapper are unchanged. */
.policy{max-width:760px; margin:0 auto; line-height:1.7;}
.policy h2{margin:2em 0 .5em; padding-bottom:.35em; border-bottom:1px solid rgba(0,0,0,.12);}
.policy ul{margin:.75em 0 1.5em; padding-left:1.25em;}
.policy li{margin-bottom:.5em;}

/* ---------- Footer ---------- */
footer.site-footer{background:var(--teal-brand); color:var(--cream-100);}
.footer-inner{
  max-width:1180px; margin:0 auto;
  padding:clamp(32px,5vw,56px) 24px 20px;
  display:grid;
  grid-template-columns:1.2fr 1fr 1.2fr;
  gap:clamp(24px,4vw,48px);
}
@media (max-width:760px){
  .footer-inner{grid-template-columns:1fr;}
}
.footer-pane{position:relative; min-height:40px;}
.footer-bottom{
  border-top:1px solid rgba(246,241,230,.15);
  text-align:center;
  padding:16px 24px 20px;
  font-size:.75rem;
  color:rgba(246,241,230,.6);
}
