:root {
  --ink: rgb(52, 51, 51);
  --ink-transparent: rgba(52, 51, 51, 0.527);
  --paper: #fafaf8;
  --off-white: hsl(40, 7%, 92%);
  --gray: hsl(40, 7%, 42%);        /* secondary text — captions, prices, metadata */
  --gray-line: hsl(40, 7%, 80%);
  --clear: hsla(0, 0%, 100%, 0);   /* borders, dividers, decorative only */
  --white-ink: hsl(41, 100%, 94%);
  --darling-green: hsl(111, 28%, 30%);
  --darling-green-light: hsl(111, 37%, 39%);
  --cactus-blue: hsl(177, 37%, 61%);
  --agave-blue: hsl(192, 20%, 49%);
  --agave-blue-transparent: hsla(192, 20%, 49%, 0.767);
  --darling-green-dark: hsl(112, 37%, 12%);
  --light-purple: hsl(266, 59%, 74%);
  --dark-purple: hsl(265, 38%, 21%);
  --dust: rgba(200, 180, 140, 0.678);
  --dirt: rgb(200, 180, 140);
  --dirt-light: rgb(255, 223, 160);
  --font-head: "Bebas Neue", sans-serif;
  --font-body: "Work Sans", sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

main {
  padding-top: 70px;
  flex: 1;
}

body {
  background: var(--paper);
  color: #343333;
  font-family: Arial, Helvetica, sans-serif;
}

h1 {
    font-family: var(--font-head);
    letter-spacing: 6px;
    font-weight: 15;
}

h2, h3 {
    font-family: var(--font-head);
    letter-spacing: 4px;
    font-weight: 300;
}

body { font-family: var(--font-body);
      display: flex;
      flex-direction: column;
      min-height: 100vh;
}

.hero {
  /* background: linear-gradient(rgba(250, 250, 248, 0.8), rgba(250, 250, 248, 0.8)), */
  background: url('images/agave-banner.png') center / cover, var(--ink);
  text-align: center;
  padding: 60px 10px;
  position: relative;
  overflow: hidden;
}

.hero h1 {
    margin-bottom: 8px;
    color: var(--paper);
}

.hero p {
    margin-top: 0;
}

header {
  display: flex;
  background: var(--paper);
  justify-content: flex-start;
  gap: 2px;
  align-items: center;
  padding: 16px 24px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
}

.bubble {
  position: absolute;
  bottom: 0;
  border-radius: 50%;
  background: var(--dust);
  /* border: 1px solid rgba(255, 255, 255, 0.5); */
  pointer-events: none;
  animation: drift ease-out forwards;
  z-index: 1;
}

@keyframes drift {
  0%   { transform: translate(0, 0); opacity: 0; }
  10%  { opacity: 1; }
  100% {
    transform: translate(250vw, var(--drift-y));
    opacity: 0;
  }
}


.logo img {
  height: 46px;
  width: auto;
}

nav {
  display: flex;
  gap: 24px;
}

nav a {
  color: var(--ink);
  text-decoration: none;
  border-left: 10px solid transparent;
  padding-left: 13px;
  transition: text-shadow 0.3s;

}
nav a:hover {
  color: var(--ink);
  text-shadow: 0 0 8px var(--cactus-blue),
  0 0 16px var(--agave-blue);
}

.nav-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  color: var(--ink);
  position: relative;
  z-index: 101;
}

.drawer {
  position: fixed;
  top: 91px;
  left: 0;
  height: 275px;
  width: 275px;
  background: url('images/succ-drawer-3.png') center / cover;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 5px;
  padding: 40px 70px;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 100;
  
}

.drawer h2 { 
  margin-bottom: 0;
}

.drawer.open {
  transform: translateX(0);
}

.drawer-close {
  align-self: flex-start;
  margin-top: -40px;   /* pull it up, closer to the top edge */
  margin-right: -10px; /* nudge it toward the right edge */
  background: none;
  border: none;
  color: var(--dirt);
  font-size: 24px;
  cursor: pointer;
}

.btn {
  display: inline-block;
  background: linear-gradient(to bottom, var(--agave-blue), var(--clear));
  color: var(--gray-line);
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 24px;
  transition: background-position 0.4s;
  position: relative;
  z-index: 2;
}

.btn:hover {
  background: linear-gradient(to bottom, var(--dirt), var(--clear));
  background-position: 100% 100%;
}

.card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--off-white);
  border: 1px solid var(--agave-blue);
  border-radius: 12px;
  padding: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card img {
  width: 90px;
  height: 90px;
  border-radius: 8px;
  object-fit: cover;
}

.card a {
  display: flex;
  align-items: center;
  gap: 16px;
  color: inherit;
  text-decoration: none;
  width: 100%;
  padding: 0;
  margin: 0;
  
}

.card:has(a):hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 10px var(--dirt);
 
  
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.featured h2 {
  margin-bottom: 0px;
}

.featured h3 {
  color: var(--ink-transparent);
  margin-top: 0;
}

footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 16px 24px; 
  gap: 16px;
  color: var(--paper);
  background: var(--ink);  
}

footer p {
    margin-bottom: 0px;
}

footer a {
  color: var(--paper);
  text-decoration: none;
  opacity: 0.85; transition: opacity 0.2s;
}

footer a:hover {
    color: var(--dirt);
}

.social-link:hover {
  color: var(--dirt-light);
}

.social-link:hover i {
  color: var(--cactus-blue); 
}

.copyright {
  width: 100%;
  margin-top: 0px;
  font-size: 12px;
  font-family: var(--font-head);
  letter-spacing: 3px;
  font-weight: 100;
  opacity: 0.6;
  text-align: center;
}

.carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1015px;
  margin: 0 auto;
}

.carousel-window {
   padding: 8px 0;
   overflow: hidden;
   flex: 1;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.carousel-track .card {
  flex: 0 0 100%;
  border-radius: 12px;
}

.carousel-btn {
  background: var(--off-white);
  border: 1px solid var(--agave-blue);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.2s;
}

.carousel-btn:hover {
  background: var(--ink);
  color: var(--paper);
}