/* ===============================
   HOTLINE DISTRICT LLC — CSS
   Breakpoint: <= 900px = mobile
   =============================== */

/* ===============================
   THEME TOKENS
   =============================== */
:root{
  /* Brand */
  --primary-color:#a634d1; /* Hotline District purple */
  --accent-color:#db24ae;  /* Hotline District pink */
  --brand-grey:#2b2b33;    /* Hotline District grey */
  --mono-light:#efeaf3;    /* monochrome logo (dark background) */
  --mono-dark:#1e1e22;     /* monochrome logo (light background) */

  /* Typography */
  --font-display:"Exo 2", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-body:"Nunito", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* Light (default) */
   --page-bg:#efeaf3; /* brand soft light */
  --text-color:#1e1e22;
  --text-muted:rgba(30,30,34,0.72);
  --border-color:rgba(30,30,34,0.12);


  --card-bg:rgba(255,255,255,0.92);
  --card-bg-2:rgba(255,255,255,0.70);

  --shadow-soft:0 10px 24px rgba(16,24,40,0.10);
  --shadow-pop:0 22px 60px rgba(16,24,40,0.18);

  --radius-sm:12px;
  --radius-md:16px;
  --radius-lg:20px;

  --container:1160px;
  --gutter:clamp(16px, 3vw, 28px);
  --focus-ring:0 0 0 3px rgba(219,36,174,0.18), 0 0 0 6px rgba(166,52,209,0.14);
  --ease:cubic-bezier(.2,.7,.2,1);

  /* Surfaces */
  --surface:var(--card-bg);
  --surface-2:var(--card-bg-2);
  --surface-border:var(--border-color);

  /* Header/Nav */
  --header-grad-a: rgba(12,16,26,0.92);
  --header-grad-b: rgba(8,10,18,0.86);
  --header-border: rgba(255,255,255,0.10);

  --nav-submenu-bg: rgba(12,16,26,0.94);
  --nav-mobile-panel: rgba(12,16,26,0.92);

  /* Background wash */
  --bg-pink:rgba(219,36,174,0.14);
  --bg-purple:rgba(166,52,209,0.14);

  /* Background image */
  --bg-image-opacity: 0.18;
  --bg-image-blur: 2px;
  --bg-image-sat: 0.80;

  /* Header height
     JS sets --header-height dynamically; use --header-h everywhere */
  --header-height:84px;
  --header-h:var(--header-height);
}

@media (max-width:900px){
  :root{
    --header-height:110px;
    --bg-image-opacity: 0.12;
  }
}

@media (prefers-color-scheme: dark){
  :root{
    --page-bg:#0B0F19;
    --text-color:#E5E7EB;
    --text-muted:rgba(229,231,235,0.78);

    --card-bg:rgba(17,24,39,0.70);
    --card-bg-2:rgba(17,24,39,0.55);
    --border-color:rgba(255,255,255,0.14);

    --shadow-soft:0 14px 32px rgba(0,0,0,0.35);
    --shadow-pop:0 28px 80px rgba(0,0,0,0.55);

    --header-grad-a: rgba(20,24,40,0.78);
    --header-grad-b: rgba(10,14,28,0.70);
    --header-border: rgba(255,255,255,0.10);

    --nav-submenu-bg: rgba(17,24,39,0.92);
    --nav-mobile-panel: rgba(17,24,39,0.90);

  --bg-pink:rgba(219,36,174,0.22);
  --bg-purple:rgba(166,52,209,0.22);

  }
}

/* ===============================
   RESET & BASE
   =============================== */
*{ box-sizing:border-box; }

html{
  scroll-behavior:smooth;
  scroll-padding-top:var(--header-h);
}
[id]{ scroll-margin-top:var(--header-h); }

body{
  margin:0;
  padding-top:var(--header-h);
  font-family:var(--font-body);
  background:var(--page-bg);
  color:var(--text-color);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

img{ max-width:100%; height:auto; }
a{ color:var(--accent-color); }
a:hover{ color:var(--primary-color); }
a:focus-visible{ outline:none; box-shadow:var(--focus-ring); border-radius:10px; }

/* ===============================
   BACKGROUND LAYERS
   =============================== */
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:
    radial-gradient(1200px 700px at 12% 8%, var(--bg-pink), transparent 60%),
    radial-gradient(1000px 700px at 86% 18%, var(--bg-purple), transparent 58%),
    linear-gradient(to bottom right, rgba(232,62,140,0.10), rgba(110,74,168,0.10));
  background-attachment:fixed;
  filter:blur(8px) saturate(0.92);
}

body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  pointer-events:none;
  background:url("images/background.png") center/cover no-repeat;
  background-attachment:fixed;
  opacity:var(--bg-image-opacity);
  filter:blur(var(--bg-image-blur)) saturate(var(--bg-image-sat));
}

@media (max-width:900px){
  body::before{
    background-attachment:scroll;
    filter:blur(6px) saturate(0.90);
  }
  body::after{
    background-attachment:scroll;
    background-size:contain;
    background-position:center top;
    background-repeat:repeat-y;
    background-color:var(--page-bg);
    background-blend-mode:overlay;
  }
}

/* ===============================
   HEADER + NAV
   =============================== */
header{
  position:fixed;
  top:0; left:0; right:0;
  z-index:999;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;

  padding:.35em 1em;
  gap:.15em;

  color:#fff;
  text-align:center;

  border-bottom:1px solid var(--header-border);
  background:linear-gradient(to bottom, var(--header-grad-a), var(--header-grad-b));
  backdrop-filter:blur(10px) saturate(120%);
  -webkit-backdrop-filter:blur(10px) saturate(120%);
  box-shadow:0 14px 34px rgba(16,24,40,0.22);
}

.logo-container{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  flex-wrap:wrap;
  gap:.75em;
}

.logo{
  height:50px;
  width:auto;
  max-width:100%;
  margin-top:.10em;
}

/* Mobile burger */
.menu-toggle{
  display:none;
  background:none;
  border:none;
  color:#fff;
  cursor:pointer;
  font-size:2em;

  position:absolute;
  top:.55em;
  right:.65em;
  z-index:1001;

  transition:transform .18s var(--ease), opacity .18s var(--ease);
}
.menu-toggle:hover{ transform:translateY(-1px); }
.menu-toggle:focus-visible{ outline:none; box-shadow:var(--focus-ring); border-radius:12px; }

nav{ margin-top:.35em; }

nav ul{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  gap:.85em;
  justify-content:center;
  flex-wrap:wrap;
}

nav a{
  color:#fff;
  text-decoration:none;
  font-weight:800;
  padding:.42em .9em;
  border-radius:10px;
  font-family:var(--font-display);
  transition:
    background-color .18s var(--ease),
    color .18s var(--ease),
    transform .18s var(--ease),
    box-shadow .18s var(--ease);
}

nav a:hover{
  background-color:rgba(255,255,255,0.94);
  color:var(--accent-color);
  box-shadow:0 12px 28px rgba(16,24,40,0.18);
  transform:translateY(-1px);
}
nav a:active{ transform:translateY(0); }

/* Dropdowns */
nav li.has-submenu{ position:relative; }

nav .submenu-toggle{
  appearance:none;
  border:0;
  background:transparent;
  color:#fff;
  font:800 1.05rem/1 var(--font-display);
  cursor:pointer;
  padding:0 .25em;
  transform-origin:50% 50%;
  transition:transform .2s var(--ease), color .2s var(--ease);
}

nav li.has-submenu.open > .submenu-toggle,
nav .submenu-toggle[aria-expanded="true"]{
  transform:rotate(180deg);
  color:#fff;
}

nav .submenu{
  position:absolute;
  left:0;
  top:calc(100% + .4rem);
  min-width:220px;

  display:none;
  flex-direction:column;
  gap:.25rem;

  padding:.6rem;
  background:var(--nav-submenu-bg);
  backdrop-filter:blur(10px) saturate(120%);
  -webkit-backdrop-filter:blur(10px) saturate(120%);
  border-radius:12px;

  border:1px solid rgba(255,255,255,0.14);
  box-shadow:0 22px 60px rgba(16,24,40,0.26);
  z-index:1000;

  opacity:0;
  visibility:hidden;
  transform:translateY(6px);
  transition:opacity .15s var(--ease), transform .15s var(--ease), visibility 0s linear .15s;
}

nav .submenu a{
  display:block;
  text-align:center;
  padding:.45rem .6rem;
  border-radius:10px;
}
nav .submenu a:hover{
  background:rgba(255,255,255,0.92);
  color:var(--accent-color);
}

@media (min-width:901px){
  nav li.has-submenu:hover > .submenu,
  nav li.has-submenu:focus-within > .submenu{
    display:flex;
    opacity:1;
    visibility:visible;
    transform:translateY(0);
    transition-delay:0s;
  }
}

/* Mobile drawer */
@media (max-width:900px){
  header{ padding:.25em 1em; gap:0; }
  .logo{ height:40px; }
  nav{ margin-top:.5em; }

  .menu-toggle{
    display:block;
    font-size:1.5em;
    top:.4em;
    right:.5em;
  }

  nav.site-nav{
    position:fixed;
    top:var(--header-h);
    left:0; right:0;
    z-index:1001;

    transform:translateY(-8px);
    opacity:0;
    pointer-events:none;
    transition:transform .2s var(--ease), opacity .2s var(--ease);
  }

  nav.site-nav.open{
    transform:translateY(0);
    opacity:1;
    pointer-events:auto;
  }

  nav.site-nav .nav-links{
    display:none;
    flex-direction:column;
    gap:.4rem;
    padding:.75rem 1rem 1rem;

    background:var(--nav-mobile-panel);
    backdrop-filter:blur(10px) saturate(120%);
    -webkit-backdrop-filter:blur(10px) saturate(120%);

    border-top:1px solid rgba(255,255,255,.10);
    border-radius:12px;
    box-shadow:0 18px 40px rgba(16,24,40,0.35);

    align-items:stretch;
    text-align:right;

    max-height:calc(100dvh - var(--header-h) - 12px);
    overflow-y:auto;
    overflow-x:hidden;
    -webkit-overflow-scrolling:touch;
  }

  nav.site-nav.open .nav-links{ display:flex !important; }
  nav.site-nav a{ padding:.45em .9em; }

  nav.site-nav li.has-submenu{
    display:grid;
    grid-template-columns:1fr auto;
    align-items:center;
    width:100%;
    gap:.35rem;
  }

  /* IMPORTANT: target the real top-level <a> (no extra class needed) */
  nav.site-nav li.has-submenu > a{
    grid-column:1;
    justify-self:end;
    padding:.55rem 0;
  }

  nav.site-nav li.has-submenu > .submenu-toggle{
    grid-column:2;
    justify-self:end;
    font-size:1.25rem;
    padding:.25rem .4rem;
  }

  nav.site-nav .submenu{
    position:static !important;
    display:none;

    margin:.25rem 0 .2rem;
    padding:.5rem .55rem .55rem .7rem;

    background:rgba(255,255,255,0.12);
    border-radius:10px;
    border:0;
    box-shadow:none;

    opacity:1 !important;
    visibility:visible !important;
    transform:none !important;
  }

  nav.site-nav li.has-submenu.open > .submenu{ display:block; }

  nav.site-nav .submenu a{
    display:block;
    padding:.35rem 0;
    text-align:right;
  }
}

/* ===============================
   LAYOUT: MAIN + SECTIONS
   =============================== */
main{
  max-width:var(--container);
  margin:0 auto;
  padding:1.25rem var(--gutter) 2.25rem;
}

section{
  padding:2.25rem 1.5rem;
  margin:1.25rem 0;

  background:var(--surface);
  border:1px solid var(--surface-border);
  border-left:6px solid rgba(232,62,140,0.55);
  border-radius:var(--radius-lg);

  box-shadow:var(--shadow-soft);
  text-align:center;
}

h1,h2,h3,h4{
  font-family:var(--font-display);
  line-height:1.22;
  color:var(--text-color);
  margin:0 0 1rem;
  letter-spacing:.2px;
  text-shadow:0 1px 2px rgba(255,255,255,0.30);
}
@media (prefers-color-scheme: dark){
  h1,h2,h3,h4{ text-shadow:0 1px 2px rgba(0,0,0,0.35); }
}

p{ font-family:var(--font-body); }
p + p{ margin-top:.75rem; }

/* ===============================
   HERO
   =============================== */
#hero{
  text-align:center;
  padding:2.75rem 1.5rem 3rem;
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(232,62,140,0.16), transparent 65%),
    radial-gradient(900px 420px at 50% 100%, rgba(110,74,168,0.14), transparent 60%),
    linear-gradient(to bottom right, rgba(255,255,255,0.78), rgba(255,255,255,0.62));
  border-left-color:transparent;
  border:1px solid rgba(255,255,255,0.45);
  box-shadow:0 24px 70px rgba(16,24,40,0.14);
}
@media (prefers-color-scheme: dark){
  #hero{
    background:
      radial-gradient(900px 420px at 50% 0%, rgba(232,62,140,0.22), transparent 65%),
      radial-gradient(900px 420px at 50% 100%, rgba(110,74,168,0.22), transparent 60%),
      linear-gradient(to bottom right, rgba(17,24,39,0.55), rgba(17,24,39,0.35));
    border:1px solid rgba(255,255,255,0.10);
  }
}

/* ===============================
   CARD SYSTEM
   =============================== */
.service-card,
.product-card,
.story-card,
.property-card{
  background:var(--surface);
  border:1px solid var(--surface-border);
  border-radius:18px;
  box-shadow:var(--shadow-soft);
  padding:1.25rem;
  position:relative;
  overflow:hidden;
  transition:transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}

.service-card::before,
.product-card::before,
.story-card::before,
.property-card::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:2px;
  background:linear-gradient(90deg,
    rgba(232,62,140,0.0),
    rgba(232,62,140,0.65),
    rgba(110,74,168,0.55),
    rgba(110,74,168,0.0)
  );
  opacity:.75;
}

.service-card:hover,
.product-card:hover,
.story-card:hover,
.property-card:hover{
  transform:translateY(-3px);
  box-shadow:var(--shadow-pop);
  border-color:rgba(232,62,140,0.28);
}

.service-card:focus-within,
.product-card:focus-within,
.story-card:focus-within,
.property-card:focus-within{
  box-shadow:var(--shadow-pop), var(--focus-ring);
}

.service-card h3,
.product-card h3,
.story-card h3{ margin:.15rem 0 .35rem; }

.service-card p,
.product-card p,
.story-card p{
  color:var(--text-muted);
  margin:0;
}

/* Services grid */
.service-grid{
  display:grid;
  grid-template-columns:repeat(12, 1fr);
  gap:1rem;
  margin-top:1rem;
}
.service-grid > .service-card{ grid-column:span 12; }
@media (min-width:740px){
  .service-grid > .service-card{ grid-column:span 6; }
}

/* ===============================
   PRODUCT GRID
   =============================== */
.product-grid{
  display:flex;
  flex-wrap:wrap;
  gap:1.25rem;
  justify-content:center;
  margin-top:1rem;
}
.product-card{ width:220px; text-align:center; }
.product-card img{
  display:block;
  margin:0 auto .75rem;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.18);
  background:var(--surface-2);
  box-shadow:0 10px 22px rgba(16,24,40,0.14);
}

/* ===============================
   MEDIA: SLIDESHOWS
   =============================== */
.cover-slideshow,
.office-slideshow,
.photo-slideshow,
.slideshow,
[data-slideshow]{
  position:relative;
  overflow:hidden;
  border-radius:16px;
  background:#000;
}

/* Covers are 200x300 — never exceed */
.cover-slideshow{
  width:200px;
  height:300px;
  max-width:200px;
  max-height:300px;
  margin:0 auto 1em;
}

/* Office is 400x200 — never exceed */
.office-slideshow{
  width:min(400px, 100%);
  max-width:400px;
  max-height:200px;
  aspect-ratio:2 / 1;
  margin:0 auto 1em;
}

.photo-slideshow,
.slideshow,
[data-slideshow]{
  width:100%;
  aspect-ratio:16 / 9;
}

.cover-slideshow img,
.office-slideshow img,
.photo-slideshow img,
.slideshow img,
[data-slideshow] img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;

  opacity:0;
  transform:scale(1.02);
  transition:opacity 900ms var(--ease), transform 1400ms var(--ease);
  will-change:opacity, transform;
}

.cover-slideshow img.active,
.office-slideshow img.active,
.photo-slideshow img.active,
.slideshow img.active,
[data-slideshow] img.active{
  opacity:1;
  transform:scale(1);
  z-index:2;
}

.cover-slideshow::after,
.office-slideshow::after,
.photo-slideshow::after,
.slideshow::after,
[data-slideshow]::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(to top, rgba(0,0,0,0.42), rgba(0,0,0,0.0) 55%);
  z-index:3;
}

@media (prefers-reduced-motion: reduce){
  .cover-slideshow img,
  .office-slideshow img,
  .photo-slideshow img,
  .slideshow img,
  [data-slideshow] img{
    transition:opacity 250ms linear;
    transform:none;
  }
}

/* ===============================
   STORIES GRID
   =============================== */
.stories-grid{
  display:grid;
  grid-template-columns:repeat(12, 1fr);
  gap:1rem;
  margin-top:1rem;
  justify-items:center;
}

.stories-grid > .property-card{
  grid-column:1 / -1;
  width:100%;
  max-width:980px;
  margin:0 auto;
  text-align:center;
}

.stories-grid > .property-card p{ text-align:center; }

/* ===============================
   LINKS / BUTTONS
   =============================== */
.buy-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  text-decoration:none;

  padding:.6rem 1rem;
  border-radius:14px;

  font-family:var(--font-display);
  font-weight:900;
  letter-spacing:.2px;
  line-height:1.1;

  color:#fff;
  background:linear-gradient(135deg, var(--accent-color), var(--primary-color));
  box-shadow:0 14px 30px rgba(232,62,140,0.18), 0 10px 18px rgba(16,24,40,0.10);
  transition:transform .15s var(--ease), filter .2s var(--ease), box-shadow .2s var(--ease);
}
.buy-link:hover{ transform:translateY(-1px); filter:saturate(1.05); box-shadow:var(--shadow-pop); }
.buy-link:active{ transform:translateY(0); }
.buy-link:focus-visible{ outline:none; box-shadow:var(--focus-ring); }

.btn,
.btn-sm{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.45rem;
  text-decoration:none;
  cursor:pointer;
  border:0;

  font-family:var(--font-display);
  font-weight:900;
  letter-spacing:.2px;
  line-height:1.1;

  border-radius:14px;
  padding:.65rem 1.05rem;

  color:#fff;
  background:linear-gradient(135deg, var(--accent-color), var(--primary-color));
  box-shadow:0 14px 30px rgba(232,62,140,0.18), 0 10px 18px rgba(16,24,40,0.10);
  transition:transform .15s var(--ease), filter .2s var(--ease), box-shadow .2s var(--ease);
}

.btn-sm{ padding:.5rem .9rem; font-size:.95rem; border-radius:12px; }

.btn:hover,
.btn-sm:hover{ transform:translateY(-1px); filter:saturate(1.05); box-shadow:var(--shadow-pop); }
.btn:active,
.btn-sm:active{ transform:translateY(0); }
.btn:focus-visible,
.btn-sm:focus-visible{ outline:none; box-shadow:var(--focus-ring); }

/* ===============================
   RETAILER EXPANDER + CHIPS
   =============================== */
.toggle-retailers{
  margin-top:.85rem;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;

  padding:.7rem 1rem;
  border-radius:14px;

  border:1px solid rgba(17,24,39,0.12);
  background:rgba(17,24,39,0.04);
  color:var(--text-color);

  font-family:var(--font-display);
  font-weight:900;
  letter-spacing:.2px;

  cursor:pointer;
  transition:transform .15s var(--ease), background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.toggle-retailers:hover{
  transform:translateY(-1px);
  background:rgba(232,62,140,0.10);
  border-color:rgba(232,62,140,0.28);
  box-shadow:var(--shadow-soft);
}
.toggle-retailers:focus-visible{ outline:none; box-shadow:var(--focus-ring); }

@media (prefers-color-scheme: dark){
  .toggle-retailers{
    border:1px solid rgba(255,255,255,0.14);
    background:rgba(255,255,255,0.06);
  }
  .toggle-retailers:hover{
    background:rgba(232,62,140,0.14);
    border-color:rgba(232,62,140,0.26);
  }
}

.retailer-regions{
  margin-top:1rem;
  display:grid;
  grid-template-columns:repeat(12, 1fr);
  gap:1rem;
}

.region{
  grid-column:span 12;
  background:var(--surface-2);
  border:1px solid var(--surface-border);
  border-radius:16px;
  padding:1rem;
}
@media (min-width:740px){ .region{ grid-column:span 6; } }
@media (min-width:1100px){ .region{ grid-column:span 4; } }

.region-title{
  margin:0 0 .65rem;
  font-family:var(--font-display);
  font-size:1.05rem;
  letter-spacing:.2px;
}

.retailer-chips{
  list-style:none;
  padding:0;
  margin:.25rem 0 0;
  display:flex;
  flex-wrap:wrap;
  gap:.45rem;
  align-items:center;
  justify-content:center;
}
.retailer-chips li{ margin:0; }
.retailer-chips li strong{ font-weight:900; font-family:var(--font-display); }

.retailer-chips a{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding:.35rem .7rem;
  border-radius:999px;
  text-decoration:none;

  font-family:var(--font-display);
  font-weight:900;
  font-size:.85rem;
  letter-spacing:.15px;

  color:var(--text-color);
  background:rgba(110,74,168,0.10);
  border:1px solid rgba(110,74,168,0.22);
  box-shadow:0 10px 20px rgba(16,24,40,0.06);
  transition:transform .15s var(--ease), background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.retailer-chips a:hover{
  transform:translateY(-1px);
  background:rgba(232,62,140,0.12);
  border-color:rgba(232,62,140,0.30);
  box-shadow:var(--shadow-soft);
}

@media (prefers-color-scheme: dark){
  .retailer-chips a{
    background:rgba(255,255,255,0.06);
    border:1px solid rgba(255,255,255,0.12);
    box-shadow:0 14px 26px rgba(0,0,0,0.28);
  }
  .retailer-chips a:hover{
    background:rgba(232,62,140,0.14);
    border-color:rgba(232,62,140,0.26);
  }
}

/* ===============================
   FOOTER
   =============================== */
footer{
  background:linear-gradient(to top, var(--primary-color), var(--mono-dark));
  color:#f8f8f8;
  text-align:center;
  padding:2em 1em 2em;
  font-size:.875em;
  font-family:var(--font-body);
  box-shadow:0 -10px 28px rgba(16,24,40,0.20);
  border-top:1px solid rgba(255,255,255,0.16);
}
@media (prefers-color-scheme: dark){
  footer{
    background:linear-gradient(to top, rgba(17,24,39,1), rgba(10,14,28,1));
    border-top:1px solid rgba(255,255,255,0.10);
  }
}

/* ===============================
   BACK TO TOP
   =============================== */
#back-to-top{
  position:fixed;
  right:16px;
  bottom:16px;
  z-index:9999;
  padding:.6rem .8rem;
  border-radius:999px;
  border:2px solid var(--accent-color);
  background:rgba(16,24,40,0.58);
  color:#fff;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 18px 42px rgba(16,24,40,0.30);
  transition:transform .2s var(--ease), opacity .2s var(--ease), background .2s var(--ease);
}
#back-to-top:hover{ transform:translateY(-2px); background:rgba(16,24,40,0.78); }
#back-to-top[hidden]{ opacity:0; pointer-events:none; }

/* ===============================
   PHOTOGRAPHY PORTFOLIO: 3 per row, show full photos (no crop / no bars)
   =============================== */
.photo-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
  margin-top:1rem;
  align-items:start; /* prevents stretching */
}

/* Make the “card” not force a box — let the image define height */
.photo-grid .product-card{
  width:auto;
  padding:0;
  background:transparent;
  border:0;
  box-shadow:none;
  overflow:visible;
}

/* Show the full image at its natural aspect ratio */
.photo-grid .product-card img{
  display:block;
  width:100%;
  height:auto;
  border-radius:16px; /* keep your rounded look; remove if you want perfectly raw photos */
}

