:root{
  /* palette: creamy light mode w/ deep red accents */
  --bg:#f7f4ef;         /* background (soft cream) */
  --card:#ffffff;       /* cards and sections */
  --text:#2b2b2b;       /* main text */
  --muted:#7a7a7a;      /* subtle text */
  --red:#a02a2a;        /* primary red */
  --red-600:#c23b3b;    /* hover red */
  --line:#e5e0d8;       /* light beige border */
  --gold:#bfa06a;       /* accent gold */
  --darkgreen:#3a4a3a;   /* Main dark green */
}

/* reset / base */
*{box-sizing:border-box}
html,body{margin:0;padding:0}
img{max-width:100%;display:block}
a{color:inherit}
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.6;
  transition: background-color .3s ease, color .3s ease;
}

.site-header, .site-footer {
  background: var(--darkgreen);
  /*border-color: var(--line);*/
}

.card {
  background: var(--card);
  border-width: 3px;
  border-color: var(--darkgreen);
  margin-bottom: 26px;
}

/* Success page card link visibility */
.small a {
  color: var(--red);      /* pick whatever fits your palette */
  text-decoration: underline;
  font-weight: 500;
}

.small a:hover {
  text-decoration: none;
  opacity: .85;
}

.small a {
  color: var(--red);      /* pick whatever fits your palette */
  text-decoration: underline;
  font-weight: 500;
}

.small a:hover {
  text-decoration: none;
  opacity: .85;
}

.serif{ font-family:"Cormorant Garamond", serif; }

.container{
  max-width:1280px;   /* try 1280; or 1360/1440 if you want wider */
  margin:0 auto;
  padding:24px;
}

/* header / nav */
.site-header{
  position:sticky; top:0; z-index:20;
  background:var(--darkgreen);           /* light */
  backdrop-filter:saturate(100%);   /* keep a tiny effect, but not dark blur */
  border-bottom:1px solid var(--gold);
}

.nav{display:flex;align-items:center;justify-content:space-between}
.logo{
  font-family:"Cormorant Garamond", serif;
  font-weight:600; letter-spacing:.5px; font-size:1.25rem;
  color:var(--gold);
}

/* NAV: base link styling */
.site-header .nav-links a {
  position: relative;
  display: inline-block;
  padding: 10px 14px;
  color: var(--gold);                 /* gold text in your scheme */
  text-decoration: none;
  transition: transform .2s ease, text-shadow .2s ease, color .2s ease;
  will-change: transform;
}

/* Base state */
.site-header .nav-links a {
  display: inline-block;
  color: var(--gold);
  text-decoration: none;
  transition:
    color 0.3s ease,
    text-shadow 0.3s ease,
    transform 0.5s ease-in-out; /* makes exit smooth */
}

/* Hover state with bobbing + glow */
.site-header .nav-links a:hover {
  color: var(--gold);
  text-shadow: 0 0 6px rgba(191, 160, 106, 0.8), 0 0 12px rgba(191, 160, 106, 0.5);
  animation: bob 1.8s ease-in-out infinite;
}

/* Bobbing motion */
@keyframes bob {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

/* Make the logo a bit larger than the nav links (as you wanted) */
a.logo {
  position: relative;
  display: inline-block;
  font-size: 1.90rem;                 /* tweak as you like */
  color: var(--gold);
  text-decoration: none;
  transition: color .3s ease;
}

/* Animated underline */
a.logo::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0px;                       /* gap below the text */
  width: 0%;
  height: 2px;
  background-color: var(--gold);
  transition: width .8s ease-in-out;
  border-radius: 1px;
}

a.logo:hover::after,
a.logo:focus-visible::after {
  width: 100%;
}

/* tighten the logo box */
.site-header .logo{
  position: relative;         /* keep */
  display: inline-block;      /* keeps underline width to text */
  line-height: 1.05;          /* smaller line height = less extra space */
  padding: 10px 16px 8px;     /* ↓ small bottom padding */
}

/* animated underline – bring it closer and slow it down */
.site-header .logo::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 6px;                /* ↑ raise the line closer to the text */
  height: 2px;
  width: 0;
  background-color: var(--gold);
  border-radius: 1px;
  transition: width 2.0s cubic-bezier(.25,.8,.25,1); /* slower, smoother */
}

.site-header .logo:hover::after{
  width: 100%;
}

/* Glow effect on hover */
.site-header .nav-links a:hover {
  color: var(--gold);
  text-shadow: 0 0 6px rgba(191, 160, 106, 0.8), 0 0 12px rgba(191, 160, 106, 0.5);
  transform: translateY(-2px);
  transition: 
    color 0.3s ease,
    text-shadow 0.3s ease,
    transform 0.3s ease;
}

.site-header .nav-links a {
  transition: 
    color 0.3s ease,
    text-shadow 0.3s ease,
    transform 0.3s ease;
}

/* Wider header container only */
.site-header .container {
  max-width: 1500px;   /* try 1320–1400px; pick what feels best */
  padding-left: 24px;
  padding-right: 24px;
}

/* Optional: a little more spacing between brand and links */
.nav {
  gap: 28px;
}

/* Optional: very subtle breathing once fully revealed */

a.logo:hover::after { animation: underline-pulse 2s ease-in-out infinite; }
@keyframes underline-pulse { 0%,100%{transform:scaleX(1)} 50%{transform:scaleX(1.05)} }

/* hero */
.hero {
  padding: 48px 0px 0px;   /* keep your spacing */
}

/* keep your heading margins + serif rule */
h1, h2, h3 { margin: 0 0 8px; }
h1.serif, h2.serif, h3.serif { font-family: "Cormorant Garamond", serif; }

/* hero-specific sizing + line-height */
.hero h1 {
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.1;
}

/* supporting copy */
.hero .small {
  color: var(--text);       /* change to var(--text) if you don't want gold */
  font-size: .95rem;
  max-width: 58ch;
  padding-top: 0px;
}

/* buttons row */
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 10px;
}

/* buttons */
.btn,.cta{
  display:inline-block; padding:10px 14px; border-radius:10px;
  border:1px solid transparent; text-decoration:none; color:var(--text); cursor:pointer;
}

.btn{ background:var(--red-600); }
.btn:hover{ background:var(--red); color: var(--card); }
.btn.ghost{ background:transparent; border-color:var(--red); }
.btn.ghost:hover{ border-color:var(--line); color:var(--card); background:var(--red); }
.cta{ background:transparent; border-color:var(--red); }
.cta:hover{ border-color:var(--line); color:var(--card); background:var(--red); }

/* smooth, steady fade-in for hero pieces */
.hero h1       { animation: hero-in 1s ease .05s both; }
.hero .small   { animation: hero-in 1s ease .18s both; }
.hero-actions  { animation: hero-in 1s ease .28s both; }

@keyframes hero-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* cards / grid */
.grid{display:grid; grid-template-columns:repeat(12,1fr); gap:16px; padding:72px 24px 70px 24px;}
.card{
  background:var(--card); border:1px solid var(--darkgreen);
  border-radius:14px; padding:16px;
}

/* product tiles (used for portfolio + shop) */
/* uniform gallery grid */
.products{
  display:grid;
  gap:24px;
  padding:24px 0;
  grid-template-columns:repeat(auto-fill, minmax(280px,1fr));
}

/* --- Card tilt setup --- */
.products {               /* the grid wrapper */
  perspective: 900px;     /* adds depth for children */
}

.product {                 /* each card */
  transform-style: preserve-3d;
  transition: transform 120ms ease;
  will-change: transform;
}

.product.tilt {            /* transform is driven via CSS vars set by JS */
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
}

/* slightly snappier while moving over cards */
.products:has(.product.tilt) .product { transition: transform 80ms ease; }

/* Safety: if any old code was tilting the image only, neutralize it */
.product img { transform: none !important; }

/* Respect accessibility: completely disable the effect if motion is reduced */
@media (prefers-reduced-motion: reduce) {
  .product,
  .product.tilt { transform: none !important; }
}

/* make each card a vertical stack */
.product{
  display:flex;
  flex-direction:column;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
}

/* ensure the image box is consistent */
.product a{ display:block; line-height:0; }
.product img{
  width:100%;
  aspect-ratio: 4 / 3;      /* consistent image window */
  object-fit:cover;         /* crop to fill window */
  display:block;
}

/* keep text area tidy and aligned */
.product .info{ padding:14px 16px; }
.product h3{ margin:0 0 4px; }
.product .small{ color:var(--muted); }

/* footer */
.site-footer{ margin-top: 24px; border-top:1px solid var(--line); padding:24px 0; background-color:var(--darkgreen); }

.site-footer .container{
  padding-left: 0px;
  margin-left: 251px;
}

/* Footer color */
#site-footer,
#site-footer a {
  color: var(--gold);
}
#site-footer a:hover {
  opacity: .9;
  text-decoration: underline;
}

/* PORTFOLIO PAGE */

/* portfolio filters */
.filters{ display:flex; gap:8px; padding:0 24px 8px; }
.filters .btn.ghost.active{ border-color:var(--red); }

/* lightbox */
#lightbox{
  position:fixed; inset:0; background:rgba(0,0,0,.8);
  display:none; align-items:center; justify-content:center; z-index:1000;
}

#lightbox.open{ display:flex; }
#lightbox .lb-img{
  max-width:min(92vw,1200px); max-height:82vh; border-radius:10px;
  box-shadow:0 10px 40px rgba(0,0,0,.5);
}

#lightbox .lb-caption{
  position:fixed; bottom:24px; left:50%; transform:translateX(-50%);
  color:var(--gold); background: var(--darkgreen);
  border:1px solid var(--gold); border-radius:12px; padding:10px 14px;
  max-width:min(92vw,900px); text-align:center;
}

#lightbox .lb-close, #lightbox .lb-prev, #lightbox .lb-next{
  position:fixed; background: var(--darkgreen); color:var(--gold);
  border:1px solid var(--gold); border-radius:10px; padding:6px 12px;
  font-size:24px; line-height:1; cursor:pointer;
}

#lightbox .lb-close{ top:24px; right:24px; }
#lightbox .lb-prev{ left:24px; top:50%; transform:translateY(-50%); }
#lightbox .lb-next{ right:24px; top:50%; transform:translateY(-50%); }

/* --- 3D tilt polish: depth shadow + ambient light ---------------------------------- */
.products .product{
  position: relative;
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
  /* base shadow */
  box-shadow:
    0 4px 18px rgba(0,0,0,.08),
    0 1px 0 rgba(0,0,0,.04);
}

/* Shadow that subtly “leans” in the direction of the cursor */
.products .product{
  /* JS keeps --dx / --dy in [-1, 1] */
  --dx: 0;
  --dy: 0;
  box-shadow:
    calc(var(--dx) * 8px) calc(var(--dy) * 8px) 24px rgba(0,0,0,.16),
    0 3px 10px rgba(0,0,0,.06);
}

/* Ambient gallery light that follows the cursor */
.products .product::before{
  content:"";
  position:absolute; inset:0;
  pointer-events:none;
  /* JS sets --mx / --my as percentages within the card */
  --mx: 50%; --my: 50%;
  background:
    radial-gradient(600px 600px at var(--mx) var(--my),
      rgba(255,255,255,.18), rgba(255,255,255,0) 60%);
  mix-blend-mode: soft-light;      /* feels like real gallery lighting */
  opacity:.55;                     /* gentle; tweak 0.35–0.65 if desired */
  transition: opacity .20s ease;
  border-radius: inherit;
}

/* Optional: very soft lift when pointer is on the page (JS toggles this class) */
.products.tilt::before{ opacity:.65; margin: 0px 0px 35px 0px; }

/* Keep cards crisp */
.products .product img{ display:block; width:100%; height:auto; }

/* Shop grid */
.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 24px;
  margin: 16px 0 48px;
}

/* 3-up on large screens if you like; adjust to taste */
@media (min-width: 1500px) {
  .products { grid-template-columns: repeat(3, minmax(280px, 1fr)); }
}

.card.product {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  display: flex;
  flex-direction: column;
}

.card.product .thumb {
  position: relative;
  aspect-ratio: 1 / 1; /* keeps thumbs square even while loading */
  overflow: hidden;
  background: #f6f6f6;
}

.card.product .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge.sold {
  position: absolute;
  top: 10px; left: 10px;
  padding: 4px 8px;
  font-size: .8rem;
  background: #333;
  color: #fff;
  border-radius: 8px;
  opacity: .9;
}

.card.product .body {
  padding: 14px 16px 16px;
}

.card.product .title {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.card.product .price {
  margin: 0 0 12px;
  color: var(--text);
}

.card.product .btn.add {
  display: inline-block;
  padding: 10px 14px;
  background: var(--red);
  color: #fff;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease;
}

.card.product .btn.add:hover:not([disabled]) {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
}

.card.product .btn.add[disabled],
.card.product .btn.add[aria-disabled="true"] {
  background: #b8b8b8;
  cursor: not-allowed;
}

.card.product .btn.add.added {
  background: #2f7a3b; /* quick success color flash */
}

/* =========================
   Reel (infinite carousel)
   ========================= */
/* ============ Reel (compositor-driven) ============ */

/* tuneables */
.reel {
  --gap: 16px;
  --speed: 70s;          /* slower = lighter & calmer */
  --shift: 0px;          /* JS updates this while dragging */
  --loop: 0px;           /* JS sets to half the track width (pixels) */
  margin: 300px 20px 60px 20px;
  max-width: 1460px;
}

/* soft edge fade (keeps cost low vs heavy blurs) */
.reel-mask::before,
.reel-mask::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; width: 70%;
  pointer-events: none;
  z-index: 2;
}
.reel-mask::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), rgba(0,0,0,0));
}
.reel-mask::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), rgba(0,0,0,0));
}

/* the moving row */
.reel-track {
  display: flex;
  gap: var(--gap);
  will-change: transform;              /* compositor */
  transform: translate3d(var(--shift), 0, 0);
  animation: reel-move var(--speed) linear infinite;
}
.reel:hover .reel-track,
.reel.dragging .reel-track {
  animation-play-state: paused;
}

/* each card */
.reel-track a {
  display: block;
  flex: 0 0 auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  transition: none;                    /* no hover transforms */
  pointer-events: auto;                /* leave clickable if you want; set to none if not */
  cursor: default;                     /* normal cursor (not grab) */
}
.reel-track img {
  display: block;
  height: 140px;                       /* mobile height */
  width: 220px;
  object-fit: cover;
}

/* === Carousel mask limited to the reel === */
.reel {
  position: relative;
  max-width: 100%;
  margin: 325px 0px 100px 0px;
}

/* The fade mask only wraps the moving image track */
.reel-mask {
  position: relative;
  overflow: hidden; /* Keeps fade within carousel */
  mask-image: linear-gradient(to right,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 1) 8%,
      rgba(0, 0, 0, 1) 92%,
      rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(to right,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 1) 8%,
      rgba(0, 0, 0, 1) 92%,
      rgba(0, 0, 0, 0) 100%);
}

/* Optional fallback for browsers without mask-image support */
.reel-mask::before,
.reel-mask::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 8%;
  z-index: 2;
  pointer-events: none;
}

.reel-mask::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.reel-mask::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

/* site footer container margin left adjustment */
@media (max-width: 900px){
  .site-footer .container{
    margin-left: 50px;}
  
  .hero {
    margin-left: 30px;
  }
}

/* a bit taller on larger screens */
@media (min-width: 900px){
  .reel-track img { height: 200px; width: 280px; }
}

/* one keyframe, compositor-friendly */
@keyframes reel-move {
  to { transform: translate3d(calc(var(--shift) - var(--loop)), 0, 0); }
}

/* Accessibility: stop animation entirely for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce){
  .reel-track { animation: none !important; }
}

.reel-track a { pointer-events: none; }

/* -----------------------------
   Container: keep your layout width
   ----------------------------- */
:root {
  --page-max: 1280px;   /* <- your site’s max content width */
  --page-pad: 24px;     /* <- side padding inside the container */
}

.container {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--page-pad);
  box-sizing: border-box;
}

/* -----------------------------
   Sticky footer without width skew
   ----------------------------- */
html, body {
  height: 100%;
}

body {
  min-height: 100svh;          /* handles mobile UI chrome better than 100vh */
  display: flex;
  flex-direction: column;
}

/* header is normal flow */
#site-header {
  flex: 0 0 auto;
}

/* main grows to take the remaining height */
main {
  flex: 1 0 auto;
  /* DO NOT set width or max-width here—let .container handle that */
}

/* footer sits at the bottom when content is short */
#site-footer {
  flex: 0 0 auto;
  margin-top: auto;            /* <- the key line */
  /* Optional: full-bleed background while contents stay centered */
  /* background: #2f4234; */
}

.products .card .thumb img {
  transition: transform .35s ease, filter .35s ease;
  will-change: transform;
}

.products .card:hover .thumb img {
  transform: scale(1.035); /* adjust strength here */
  filter: saturate(1.02) contrast(1.02);
}

/* Cart Total and Buttons Alignment */
.total {
  width: 300px;
}

/* ===== AH BURGER (namespaced, mobile only) ===== */
@media (max-width: 1500px) {

  /* Hide the inline desktop row on mobile and tablet */
  .nav .nav-links { display: none; }

  /* lock page scroll when open */
  body.menu-open { overflow: hidden; }

  .site-footer .container{
    margin-left: 30px;
    padding-left: 0px;
  }
}

.site-header { --header-h: 64px; } /* adjust if needed */

@media (min-width: 1500px) {
  .p-menu1{
     display: none;
  }
}

/* Header Burger Section Self Test */
/* General */
/* html {
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  height: 100%;
} */

/* body {
  margin: 20px 0;
  overflow: auto;
 
  color: #fff;
} */

a {
  color: #fff;
  text-decoration: none;
}

.p-menu1{
   height: 100%;
}

/* Hamburger */
.hamburger1 {
  height: 45px;
  margin: 10px;
  display: -ms-grid;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  justify-items: center;
  z-index: 120;
}

.hamburger1 div {
  background-color: var(--gold);
  position: relative;
  width: 40px;
  height: 5px;
  margin-top: 7px;
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}

#toggle1 {
  display: none;
}

#toggle1:checked + .hamburger1 .top {
  -webkit-transform: rotate(-45deg);
          transform: rotate(-45deg);
  margin-top: 22.5px;
}

#toggle1:checked + .hamburger1 .meat {
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
  margin-top: -5px;
}

#toggle1:checked + .hamburger1 .bottom {
  -webkit-transform: scale(0);
          transform: scale(0);
}

#toggle1:checked ~ .menu1 {
  height: 380px;
}


/* Menu */
.menu1 {
  width: 100%;
  color: var(--red);
  background-color: var(--darkgreen);
  margin: 0;
  display: -ms-grid;
  display: grid;
  grid-template-rows: 1fr repeat(4, 0.5fr);
  grid-row-gap: 5px;
  padding: 0;
  list-style: none;
  clear: both;
  width: auto;
  text-align: center;
  height: 0px;
  overflow: hidden;
  transition: height .4s ease;
  z-index: 120;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.menu1 a:first-child {
  margin-top: 6px;
}

.menu1 a:last-child {
  margin-bottom: 6px;
}

.link1 {
  color: var(--gold);
  width: 100%;
  margin: 0;
  padding: 10px 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.link1:hover {
  border-radius: 10px;
  background-color: var(--gold);
  color: var(--card);
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

/* Fix product card width on mobile */
@media (max-width: 600px) {

  /* Ensure grid fits inside the screen */
  .products {
    grid-template-columns: repeat(2, minmax(160px, 1fr)); /* Two columns */
    gap: 20px;
    padding: 0 15px;  /* Matches header padding */
  }

  /* Prevent images/cards from overflowing */
  .product {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .product img {
    width: 100% !important;
    height: auto;
  }

  /* Prevent ANY horizontal scrolling */
  body, html {
    overflow-x: hidden;
  }

  .hero,
    main,
    section {
        padding-top: 20px !important;   /* reduce from 80–120px → 20px */
        margin-top: 0 !important;
    }

    h1, h2, h3 {
        margin-top: 10px !important;
    }

    section, .section {
    padding-top: 20px !important;
    padding-bottom: 30px !important;
  }

  main {
    padding-top: 15px !important;
  }

  /* Make the cards a bit tighter on mobile */
  .contact .card {
    padding: 18px 16px;
  }

  /* Keep inputs / textareas fully inside their card */
  .contact .card .input,
  .contact .card input,
  .contact .card textarea {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    margin-top: 0.6rem;

    /* kill any fancy offset/overlap from desktop */
    position: static;
    transform: none;
  }

  /* keep the text boxes inside their cards */
  form.grid .card .input,
  form.grid .card textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
  }
}
