/*
  ╔══════════════════════════════════════════════════════════════════╗
  ║         FATIMA'S CHOCOLATE SHOP — style.css                     ║
  ║  All the visual styling for the website lives here.             ║
  ║  Sections are clearly labelled. Search for "TODO:" to find      ║
  ║  the most common customisation points.                          ║
  ╚══════════════════════════════════════════════════════════════════╝

  TABLE OF CONTENTS
  ──────────────────
  1.  CSS VARIABLES (colours, fonts, spacing)  ← START HERE to restyle
  2.  RESET & BASE STYLES
  3.  REUSABLE UTILITIES
  4.  NAVBAR
  5.  HERO SECTION
  6.  ABOUT SECTION
  7.  PRODUCTS SECTION
  8.  TESTIMONIALS SECTION
  9.  CONTACT SECTION
  10. FOOTER
  11. ANIMATIONS & SCROLL REVEAL
  12. MEDIA QUERIES (responsive / mobile)
*/


/* ═══════════════════════════════════════════════════════════════════
   1. CSS VARIABLES — THE COLOUR & FONT PALETTE
   ───────────────────────────────────────────────────────────────────
   These variables control the entire look of the site.
   Change a value here and it updates EVERYWHERE automatically.

   HOW TO USE:
     • To change the main brand colour, edit --color-chocolate.
     • To change the accent/highlight colour, edit --color-gold.
     • To change fonts, edit --font-heading and --font-body.
   ═══════════════════════════════════════════════════════════════════ */
:root {

  /* ── COLOURS ──────────────────────────────────────────────── */

  /* TODO: Main dark colour — used for headings and dark backgrounds. */
  --color-chocolate:   #2C1503;   /* very deep espresso brown          */
  --color-brown:       #5C3317;   /* mid warm brown for accents         */
  --color-caramel:     #A0522D;   /* warm sienna / caramel              */

  /* TODO: Accent highlight colour — used for buttons, badges, prices. */
  --color-gold:        #C9943A;   /* warm antique gold                  */
  --color-gold-light:  #E8B86D;   /* lighter gold for hover states      */

  /* TODO: Background colours — light, warm creams and beiges. */
  --color-cream:       #FDF6EC;   /* page background                    */
  --color-warm:        #F5E8D0;   /* slightly darker warm section bg    */
  --color-card-bg:     #FFFFFF;   /* product card background            */

  /* Text colours */
  --color-text:        #2C1503;   /* main body text (dark brown)        */
  --color-text-muted:  #7A6248;   /* secondary / muted text             */
  --color-text-light:  #F5E8D0;   /* text on dark backgrounds           */

  /* ── FONTS ────────────────────────────────────────────────── */
  /*
    Both fonts are loaded from Google Fonts in index.html.
    If you change these, make sure to also update the Google Fonts link.
  */

  /* TODO: Heading font — elegant serif for titles. */
  --font-heading: 'Cormorant Garamond', Georgia, serif;

  /* TODO: Body font — clean sans-serif for paragraphs. */
  --font-body:    'DM Sans', Helvetica, Arial, sans-serif;

  /* ── SPACING ──────────────────────────────────────────────── */
  /*
    A consistent spacing scale so everything lines up neatly.
    Based on 4px increments: 4, 8, 12, 16, 24, 32, 48, 64, 96px.
  */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  48px;
  --space-2xl: 96px;

  /* Section padding — the vertical breathing room around each section. */
  --section-pad: 96px;

  /* ── BORDERS & RADIUS ─────────────────────────────────────── */
  --radius-sm:  6px;
  --radius-md: 14px;
  --radius-lg: 24px;

  /* ── SHADOWS ──────────────────────────────────────────────── */
  --shadow-card: 0 4px 30px rgba(44, 21, 3, 0.10);
  --shadow-hover: 0 12px 48px rgba(44, 21, 3, 0.18);

  /* ── TRANSITIONS ──────────────────────────────────────────── */
  --transition: 0.3s ease;  /* used for hover effects */
}


/* ═══════════════════════════════════════════════════════════════════
   2. RESET & BASE STYLES
   ───────────────────────────────────────────────────────────────────
   These rules "reset" browser defaults so every browser looks the same,
   then set up the basic font and background for the whole page.
   ═══════════════════════════════════════════════════════════════════ */

/* * means "apply to every element". box-sizing makes width/height
   calculations much more predictable — padding is included in the size. */
*, *::before, *::after {
  box-sizing: border-box;
  margin:  0;
  padding: 0;
}

/* Sets the base font and background colour for the whole page. */
html {
  /* smooth-scroll makes clicking nav links animate rather than jump. */
  scroll-behavior: smooth;
  font-size: 16px;              /* 1rem = 16px everywhere               */
}

body {
  font-family:      var(--font-body);
  color:            var(--color-text);
  background-color: var(--color-cream);
  line-height:      1.65;
  /* overflow-x: hidden prevents horizontal scrollbars from appearing  */
  overflow-x:       hidden;
}

/* Removes the default blue underline from links. */
a {
  color:           inherit;
  text-decoration: none;
}

/* Makes images scale down on small screens (never overflow their container). */
img {
  max-width: 100%;
  display:   block;
}

/* Makes buttons inherit the page font (browsers default to a different font). */
button, input, select, textarea {
  font-family: var(--font-body);
}

/* Removes the default dot bullets from lists. */
ul {
  list-style: none;
}


/* ═══════════════════════════════════════════════════════════════════
   3. REUSABLE UTILITIES
   ───────────────────────────────────────────────────────────────────
   Helper classes used in multiple places across the page.
   ═══════════════════════════════════════════════════════════════════ */

/* .container — centres content and limits the max width on wide screens. */
/* TODO: Change max-width here if you want a wider or narrower layout.    */
.container {
  width:     100%;
  max-width: 1160px;
  margin:    0 auto;      /* auto left/right margin = centre horizontally */
  padding:   0 var(--space-xl);
}

/* .section — adds consistent vertical padding to every section. */
.section {
  padding: var(--section-pad) 0;
}

/* .section--warm — applies the warm beige background to a section. */
.section--warm {
  background-color: var(--color-warm);
}

/* .section--dark — applies the dark chocolate background to a section. */
.section--dark {
  background-color: var(--color-chocolate);
}

/* ── BUTTONS ──────────────────────────────────────────────────── */
/*
  Two button styles:
    .btn-primary   — solid gold button (main calls to action)
    .btn-secondary — transparent outline button (secondary actions)

  .btn is the shared base class that applies to both.
*/
.btn {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  padding:         14px 32px;
  border-radius:   var(--radius-sm);
  font-family:     var(--font-body);
  font-size:       0.95rem;
  font-weight:     500;
  letter-spacing:  0.04em;
  cursor:          pointer;
  border:          2px solid transparent;
  transition:      background var(--transition), color var(--transition),
                   transform var(--transition), box-shadow var(--transition);
  white-space:     nowrap;
}

/* TODO: Change background colour here to change the main button colour. */
.btn-primary {
  background-color: var(--color-gold);
  color:            #fff;
}
.btn-primary:hover {
  background-color: var(--color-gold-light);
  transform:        translateY(-2px);   /* slight lift on hover */
  box-shadow:       0 6px 20px rgba(201, 148, 58, 0.35);
}

/* TODO: Change border colour here to change the outline button style. */
.btn-secondary {
  background-color: transparent;
  border-color:     rgba(255,255,255,0.6);
  color:            #fff;
}
.btn-secondary:hover {
  background-color: rgba(255,255,255,0.15);
  border-color:     #fff;
  transform:        translateY(-2px);
}

/* .btn--full — makes a button span the full width of its container. */
.btn--full {
  width: 100%;
}

/* ── SECTION HEADER ─────────────────────────────────────────── */
/* These classes style the centred heading block above product grids, etc. */
.section-header {
  text-align:    center;
  margin-bottom: var(--space-xl);
}

/* Small label badge above section headings (e.g. "Our Menu"). */
.section-badge {
  display:        inline-block;
  font-size:      0.78rem;
  font-weight:    500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          var(--color-gold);
  background:     rgba(201, 148, 58, 0.12);
  border:         1px solid rgba(201, 148, 58, 0.3);
  border-radius:  999px;
  padding:        5px 16px;
  margin-bottom:  var(--space-md);
}

/* Light variant of badge for dark backgrounds. */
.section-badge--light {
  color:       var(--color-gold-light);
  background:  rgba(232, 184, 109, 0.15);
  border-color:rgba(232, 184, 109, 0.3);
}

/* Large section heading */
.section-heading {
  font-family:  var(--font-heading);
  font-size:    clamp(2rem, 4vw, 3rem);  /* clamp = responsive font size */
  font-weight:  600;
  line-height:  1.2;
  color:        var(--color-chocolate);
}
/* <em> inside headings renders in italic for style */
.section-heading em {
  font-style: italic;
  color:      var(--color-caramel);
}

/* Light variant for dark backgrounds */
.section-heading--light {
  color: var(--color-text-light);
}
.section-heading--light em {
  color: var(--color-gold-light);
}

/* Section subtext — small paragraph below a heading */
.section-sub {
  margin-top: var(--space-md);
  color:      var(--color-text-muted);
  font-size:  0.95rem;
}


/* ═══════════════════════════════════════════════════════════════════
   4. NAVBAR
   ═══════════════════════════════════════════════════════════════════ */

/* The navbar wrapper — sticks to the top while scrolling. */
.navbar {
  position:   fixed;       /* stays at the top as user scrolls       */
  top:        0;
  left:       0;
  width:      100%;
  z-index:    100;         /* always on top of other elements        */
  padding:    20px 0;
  transition: padding var(--transition), background var(--transition),
              box-shadow var(--transition);
}

/*
  .navbar.scrolled — class added by JavaScript when user scrolls down.
  Changes the navbar from transparent to solid white with a shadow.
*/
.navbar.scrolled {
  background:  #fff;
  padding:     12px 0;
  box-shadow:  0 2px 20px rgba(44, 21, 3, 0.08);
}

/* Inner wrapper that limits the navbar content width. */
.nav-container {
  max-width:   1160px;
  margin:      0 auto;
  padding:     0 var(--space-xl);
  display:     flex;
  align-items: center;
  gap:         var(--space-lg);
}

/* LOGO LINK */
/* TODO: Change the font size or weight here to resize your logo text. */
.nav-logo {
  font-family:  var(--font-heading);
  font-size:    1.6rem;
  font-weight:  700;
  color:        #fff;
  margin-right: auto;  /* pushes the nav links to the right          */
  display:      flex;
  align-items:  center;
  gap:          var(--space-sm);
  transition:   color var(--transition);
}
/* When scrolled, the logo colour changes to dark. */
.navbar.scrolled .nav-logo {
  color: var(--color-chocolate);
}

/* Logo emoji icon */
.logo-icon {
  font-size: 1.4rem;
}

/* NAV LINK LIST */
.nav-links {
  display:     flex;
  align-items: center;
  gap:         var(--space-lg);
}

/* Individual nav links */
.nav-links a {
  font-size:      0.9rem;
  font-weight:    500;
  letter-spacing: 0.03em;
  color:          rgba(255,255,255,0.85);
  padding:        6px 0;
  position:       relative;    /* needed for the underline animation  */
  transition:     color var(--transition);
}
/* Animated underline on hover */
.nav-links a::after {
  content:    '';
  position:   absolute;
  bottom:     0;
  left:       0;
  width:      0;
  height:     1.5px;
  background: var(--color-gold);
  transition: width var(--transition);
}
.nav-links a:hover::after {
  width: 100%;     /* expands underline from left to right on hover  */
}
/* When scrolled, nav links become dark. */
.navbar.scrolled .nav-links a {
  color: var(--color-text);
}

/* "Order Now" button in the nav */
.nav-cta {
  background-color: var(--color-gold) !important;
  color:            #fff !important;
  padding:          8px 20px !important;
  border-radius:    var(--radius-sm) !important;
}
.nav-cta:hover {
  background-color: var(--color-gold-light) !important;
}
/* .nav-cta should not show the animated underline */
.nav-cta::after {
  display: none !important;
}

/* ── HAMBURGER MENU BUTTON (mobile only) ────────────────── */
/*
  Hidden by default on desktop. Shown on small screens via media query.
  The three <span> elements inside create the three-bar icon.
*/
.hamburger {
  display:         none;      /* hidden on desktop — shown in media query */
  flex-direction:  column;
  justify-content: center;
  align-items:     center;
  gap:             5px;
  width:           40px;
  height:          40px;
  background:      transparent;
  border:          none;
  cursor:          pointer;
  padding:         4px;
  z-index:         200;
}
/* Each bar of the hamburger icon */
.hamburger span {
  display:          block;
  width:            24px;
  height:           2px;
  background-color: #fff;
  border-radius:    2px;
  transition:       transform var(--transition), opacity var(--transition);
}
.navbar.scrolled .hamburger span {
  background-color: var(--color-chocolate);
}


/* ═══════════════════════════════════════════════════════════════════
   5. HERO SECTION
   ═══════════════════════════════════════════════════════════════════ */

#hero {
  position:         relative;
  min-height:       100vh;     /* fills the full viewport height        */
  display:          flex;
  align-items:      center;
  justify-content:  center;

  /*
    HERO BACKGROUND IMAGE:
    ─────────────────────────────────────────────────────────────────
    • Save your photo as:  assets/images/hero-bg.webp
    • Recommended size:    1920 × 1080 pixels (wide landscape photo)
    • Suggested subject:   a beautiful flat lay of your products,
                           or your shop interior / kitchen.

    PLACEHOLDER: Currently using an Unsplash URL.
    Replace the URL inside url("...") with:
      url("assets/images/hero-bg.webp")
    once you have your own image ready.
    ─────────────────────────────────────────────────────────────────
  */
  background-image:    url("https://images.unsplash.com/photo-1481391319762-47dff72954d9?w=1920&q=80&fm=webp");
  background-size:     cover;
  background-position: center;

  /* Prevents the background from scrolling with the page (parallax-lite effect). */
  background-attachment: fixed;
  text-align:            center;
  color:                 #fff;
  padding:               0 var(--space-xl);
}

/* Dark overlay on top of the background to make text readable. */
/* TODO: Increase or decrease the opacity (0.6) to make the overlay lighter/darker. */
.hero-overlay {
  position:   absolute;
  inset:      0;          /* shorthand for top/right/bottom/left: 0   */
  background: linear-gradient(
    160deg,
    rgba(44,  21,  3, 0.72) 0%,
    rgba(92,  51, 23, 0.58) 60%,
    rgba(201,148, 58, 0.25) 100%
  );
  pointer-events: none;  /* lets clicks pass through to the buttons   */
}

/* All text content inside the hero. z-index: 1 puts it above the overlay. */
.hero-content {
  position:   relative;
  z-index:    1;
  max-width:  760px;
}

/* Small eyebrow label above the main title */
.hero-eyebrow {
  display:        block;
  font-size:      0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color:          var(--color-gold-light);
  margin-bottom:  var(--space-md);
  opacity:        0;
  animation:      fadeUp 0.7s ease forwards 0.2s;   /* see Animations section */
}

/* Main hero heading */
/* TODO: Font sizes use clamp() — minimum, preferred, maximum. */
.hero-title {
  font-family:   var(--font-heading);
  font-size:     clamp(3.5rem, 9vw, 7rem);
  font-weight:   700;
  line-height:   1.0;
  margin-bottom: var(--space-lg);
  opacity:       0;
  animation:     fadeUp 0.8s ease forwards 0.4s;
}
.hero-title em {
  font-style:   italic;
  font-weight:  400;
  color:        var(--color-gold-light);
  display:      block;
}

/* Hero tagline paragraph */
.hero-tagline {
  font-size:     clamp(1rem, 2vw, 1.2rem);
  color:         rgba(255,255,255,0.82);
  margin-bottom: var(--space-xl);
  line-height:   1.7;
  opacity:       0;
  animation:     fadeUp 0.8s ease forwards 0.6s;
}

/* Wrapper for the two hero CTA buttons */
.hero-buttons {
  display:     flex;
  gap:         var(--space-md);
  justify-content: center;
  flex-wrap:   wrap;
  opacity:     0;
  animation:   fadeUp 0.8s ease forwards 0.8s;
}

/* Scroll hint element at the bottom of the hero */
.scroll-hint {
  position:        absolute;
  bottom:          32px;
  left:            50%;
  transform:       translateX(-50%);
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  gap:             8px;
  font-size:       0.7rem;
  letter-spacing:  0.12em;
  text-transform:  uppercase;
  color:           rgba(255,255,255,0.5);
  z-index:         1;
  animation:       bounce 2s ease infinite;
}
.scroll-line {
  width:      1px;
  height:     40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
}


/* ═══════════════════════════════════════════════════════════════════
   6. ABOUT SECTION
   ═══════════════════════════════════════════════════════════════════ */

/* Two-column grid: text left, image right.
   On mobile, this stacks to a single column (see media queries). */
.about-grid {
  display:               grid;
  grid-template-columns: 1fr 1fr;    /* two equal columns              */
  gap:                   var(--space-2xl);
  align-items:           center;
}

/* Heading in the about section */
.about-text .section-heading {
  margin-bottom: var(--space-lg);
}
.about-text p {
  color:         var(--color-text-muted);
  margin-bottom: var(--space-md);
  font-size:     1.0rem;
  line-height:   1.8;
}

/* List of feature highlights (natural ingredients, made to order, etc.) */
.about-features {
  display:        flex;
  flex-direction: column;
  gap:            var(--space-lg);
  margin-top:     var(--space-xl);
}
.about-features li {
  display:  flex;
  gap:      var(--space-md);
  align-items: flex-start;
}
.feature-icon {
  font-size:   1.6rem;
  flex-shrink: 0;     /* prevents the icon from shrinking on small screens */
  margin-top:  2px;
}
.about-features strong {
  display:     block;
  font-weight: 600;
  color:       var(--color-chocolate);
  font-size:   1rem;
}
.about-features p {
  margin:    0;
  font-size: 0.9rem;
  color:     var(--color-text-muted);
}

/* Image column */
.about-image-wrap {
  position: relative;   /* needed for the badge's absolute positioning */
}

/* The actual about photo */
.about-img {
  width:         100%;
  height:        520px;
  object-fit:    cover;   /* crops the image to fill the area nicely   */
  border-radius: var(--radius-lg);
  box-shadow:    var(--shadow-card);
}

/* Floating badge overlaid on the bottom-left of the image */
/* TODO: Change the number and text inside the badge in index.html. */
.about-badge {
  position:         absolute;
  bottom:           -20px;
  left:             -20px;
  background:       var(--color-chocolate);
  color:            #fff;
  border-radius:    var(--radius-md);
  padding:          18px 22px;
  display:          flex;
  align-items:      center;
  gap:              var(--space-sm);
  box-shadow:       var(--shadow-hover);
  border:           3px solid var(--color-cream);
}
.badge-number {
  font-family:  var(--font-heading);
  font-size:    2.2rem;
  font-weight:  700;
  color:        var(--color-gold-light);
  line-height:  1;
}
.badge-text {
  font-size:   0.8rem;
  line-height: 1.4;
  color:       rgba(255,255,255,0.75);
}


/* ═══════════════════════════════════════════════════════════════════
   7. PRODUCTS SECTION
   ═══════════════════════════════════════════════════════════════════ */

/* CSS Grid for the product cards — 3 columns on desktop. */
/* TODO: Change the columns count by editing repeat(3, …). E.g. repeat(2, …) for 2 columns. */
.products-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   var(--space-lg);
}

/* ── PRODUCT CARD ──────────────────────────────────────────── */
/* This styles each individual product card. */
.product-card {
  background:    var(--color-card-bg);
  border-radius: var(--radius-md);
  overflow:      hidden;             /* clips the image to the card corners */
  box-shadow:    var(--shadow-card);
  transition:    transform var(--transition), box-shadow var(--transition);
  display:       flex;
  flex-direction: column;
}
/* Hover effect: lifts the card slightly and deepens the shadow. */
.product-card:hover {
  transform:  translateY(-6px);
  box-shadow: var(--shadow-hover);
}

/* Featured card variant — slightly different border */
.product-card--featured {
  border: 2px solid var(--color-gold);
}

/* Image container inside each card */
.card-image-wrap {
  position: relative;   /* positions the tag badge absolutely inside */
  overflow: hidden;     /* clips image on zoom effect */
}

/* The product photo */
.card-img {
  width:      100%;
  height:     220px;
  object-fit: cover;
  display:    block;
  transition: transform 0.5s ease;
}
/* Subtle zoom on hover */
.product-card:hover .card-img {
  transform: scale(1.04);
}

/* Category badge (e.g. "Cakes", "Chocolates") overlaid on the image */
.card-tag {
  position:         absolute;
  top:              14px;
  left:             14px;
  background:       var(--color-chocolate);
  color:            #fff;
  font-size:        0.72rem;
  font-weight:      500;
  letter-spacing:   0.08em;
  text-transform:   uppercase;
  padding:          4px 12px;
  border-radius:    999px;
}

/* Gold variant of the tag for the featured card */
.card-tag--gold {
  background: var(--color-gold);
}

/* Card text area */
.card-body {
  padding:        var(--space-lg);
  flex:           1;            /* makes all cards the same height in a row */
  display:        flex;
  flex-direction: column;
}

/* Product name */
.card-title {
  font-family:   var(--font-heading);
  font-size:     1.3rem;
  font-weight:   600;
  color:         var(--color-chocolate);
  margin-bottom: var(--space-sm);
  line-height:   1.3;
}

/* Product description */
.card-desc {
  font-size:     0.88rem;
  color:         var(--color-text-muted);
  line-height:   1.7;
  flex:          1;        /* pushes the price+button to the bottom    */
  margin-bottom: var(--space-md);
}

/* Bottom row: price on the left, button on the right */
.card-footer {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  margin-top:      auto;
  gap:             var(--space-sm);
}

/* Price label */
/* TODO: Change the colour of prices by editing color here. */
.product-price {
  font-family: var(--font-heading);
  font-size:   1.3rem;
  font-weight: 700;
  color:       var(--color-caramel);
}

/* Order button inside the card */
.btn-order {
  font-size:        0.82rem;
  padding:          9px 20px;
  background-color: var(--color-chocolate);
  color:            #fff;
  border-radius:    var(--radius-sm);
  border:           none;
  cursor:           pointer;
  transition:       background var(--transition), transform var(--transition);
  font-weight:      500;
}
.btn-order:hover {
  background-color: var(--color-brown);
  transform:        translateY(-1px);
}

/* Gold variant of order button for the featured/custom card */
.btn-order--gold {
  background-color: var(--color-gold);
}
.btn-order--gold:hover {
  background-color: var(--color-gold-light);
}


/* ═══════════════════════════════════════════════════════════════════
   8. TESTIMONIALS SECTION
   ═══════════════════════════════════════════════════════════════════ */

.testimonials-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   var(--space-lg);
}

/* Each testimonial card — blockquote is the correct HTML for quotes. */
.testimonial-card {
  background:    var(--color-warm);
  border-radius: var(--radius-md);
  padding:       var(--space-xl);
  border-left:   4px solid var(--color-gold);
  font-size:     0.95rem;
  line-height:   1.8;
  color:         var(--color-text-muted);
  font-style:    italic;
}

/* Star rating row */
.stars {
  color:         var(--color-gold);
  font-size:     1.1rem;
  letter-spacing: 2px;
  margin-bottom: var(--space-md);
}

/* Customer name (the <cite> element) */
.testimonial-card cite {
  display:       block;
  margin-top:    var(--space-md);
  font-style:    normal;
  font-size:     0.82rem;
  font-weight:   600;
  color:         var(--color-chocolate);
  letter-spacing: 0.04em;
}


/* ═══════════════════════════════════════════════════════════════════
   9. CONTACT SECTION
   ═══════════════════════════════════════════════════════════════════ */

/* Two-column layout: form left, info right. */
.contact-grid {
  display:               grid;
  grid-template-columns: 1.2fr 1fr;
  gap:                   64px;
  align-items:           start;
}

/* ── CONTACT FORM ─────────────────────────────────────────── */
.contact-form {
  display:        flex;
  flex-direction: column;
  gap:            var(--space-md);
}

/* Form field group (label + input) */
.form-group {
  display:        flex;
  flex-direction: column;
  gap:            var(--space-xs);
}

/* Form labels */
.form-group label {
  font-size:      0.82rem;
  font-weight:    500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color:          rgba(255,255,255,0.65);
}

/* Input, select, and textarea fields */
/* TODO: Change border-color to change the field outline. */
.form-group input,
.form-group select,
.form-group textarea {
  background:    rgba(255,255,255,0.07);
  border:        1.5px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  color:         #fff;
  padding:       12px 16px;
  font-size:     0.95rem;
  transition:    border-color var(--transition), background var(--transition);
  resize:        vertical;   /* textareas can be resized up/down only  */
}
/* Highlight style when the field is active / clicked */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline:       none;
  border-color:  var(--color-gold);
  background:    rgba(255,255,255,0.11);
}
/* Fix the placeholder text colour inside dark fields */
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.35);
}
/* Fix select option text on some browsers */
.form-group select option {
  background: var(--color-chocolate);
  color:      #fff;
}

/* Submit button on the contact form */
.contact-form .btn-primary {
  margin-top: var(--space-sm);
}

/* ── CONTACT INFO ─────────────────────────────────────────── */
.contact-info h3 {
  font-family:   var(--font-heading);
  font-size:     1.8rem;
  font-weight:   600;
  color:         #fff;
  margin-bottom: var(--space-lg);
}

/* List of contact details */
.contact-details {
  display:        flex;
  flex-direction: column;
  gap:            var(--space-lg);
}

.contact-details li {
  display:     flex;
  gap:         var(--space-md);
  align-items: flex-start;
}

/* Emoji icon for each detail row */
.contact-icon {
  font-size:   1.4rem;
  flex-shrink: 0;
  margin-top:  2px;
}

.contact-details strong {
  display:     block;
  font-size:   0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color:       var(--color-gold-light);
  margin-bottom: 4px;
}
.contact-details p,
.contact-details a {
  color:       rgba(255,255,255,0.7);
  font-size:   0.95rem;
  line-height: 1.6;
}
.contact-details a:hover {
  color: var(--color-gold-light);
}

/* Social media buttons */
.social-links {
  display:     flex;
  gap:         var(--space-md);
  margin-top:  var(--space-xl);
  flex-wrap:   wrap;
}

.social-btn {
  display:      inline-flex;
  align-items:  center;
  gap:          8px;
  font-size:    0.85rem;
  font-weight:  500;
  color:        rgba(255,255,255,0.75);
  border:       1.5px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  padding:      10px 18px;
  transition:   border-color var(--transition), color var(--transition),
                background var(--transition);
}
.social-btn:hover {
  border-color:    var(--color-gold);
  color:           var(--color-gold-light);
  background:      rgba(201,148,58,0.08);
}


/* ═══════════════════════════════════════════════════════════════════
   10. FOOTER
   ═══════════════════════════════════════════════════════════════════ */

.footer {
  background-color: #1a0a00;     /* very dark, nearly black brown */
  color:            rgba(255,255,255,0.55);
  padding:          var(--space-xl) 0 var(--space-lg);
}

.footer-inner {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  flex-wrap:       wrap;
  gap:             var(--space-md);
  margin-bottom:   var(--space-lg);
  padding-bottom:  var(--space-lg);
  border-bottom:   1px solid rgba(255,255,255,0.08);
}

.footer-brand .nav-logo {
  color:         rgba(255,255,255,0.85);
  margin-bottom: var(--space-xs);
}
.footer-brand p {
  font-size:  0.85rem;
  margin-top: 6px;
}

/* Footer navigation links */
.footer-links {
  display:  flex;
  gap:      var(--space-lg);
  flex-wrap: wrap;
}
.footer-links a {
  font-size:  0.88rem;
  color:      rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-links a:hover {
  color: var(--color-gold-light);
}

/* Copyright line */
.footer-copy {
  font-size:  0.8rem;
  text-align: center;
  color:      rgba(255,255,255,0.35);
}


/* ═══════════════════════════════════════════════════════════════════
   11. ANIMATIONS & SCROLL REVEAL
   ═══════════════════════════════════════════════════════════════════ */

/* fadeUp — used for the hero text to slide up on page load. */
@keyframes fadeUp {
  from {
    opacity:   0;
    transform: translateY(24px);
  }
  to {
    opacity:   1;
    transform: translateY(0);
  }
}

/* bounce — used for the scroll hint at the bottom of the hero. */
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0);    }
  50%       { transform: translateX(-50%) translateY(8px);  }
}

/*
  Scroll Reveal — controlled by JavaScript in script.js.
  Elements with class .reveal start invisible.
  When they scroll into view, the JS adds class .revealed
  which fades them in.
*/
.reveal {
  opacity:    0;
  transform:  translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
  opacity:   1;
  transform: translateY(0);
}

/* Stagger delay for multiple items (e.g. grid cards) */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }


/* ═══════════════════════════════════════════════════════════════════
   12. MEDIA QUERIES — RESPONSIVE (MOBILE) STYLES
   ───────────────────────────────────────────────────────────────────
   These rules override the above styles when the screen is narrow.
   @media (max-width: Xpx) means "apply these styles only when the
   browser window is X pixels wide or less."
   ═══════════════════════════════════════════════════════════════════ */

/* ── TABLET — screens up to 1024px wide ─────────────────── */
@media (max-width: 1024px) {

  .container {
    padding: 0 var(--space-lg);
  }

  /* Products: reduce to 2 columns on tablets */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Testimonials: reduce to 1 column on tablets */
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin:    0 auto;
  }

  /* About: stack columns vertically on tablets */
  .about-grid {
    grid-template-columns: 1fr;
    gap:                   var(--space-xl);
  }

  /* About image: reduce height on tablet */
  .about-img {
    height: 380px;
  }

  /* Contact: stack columns on tablet */
  .contact-grid {
    grid-template-columns: 1fr;
    gap:                   var(--space-xl);
  }
}


/* ── MOBILE — screens up to 768px wide ─────────────────── */
@media (max-width: 768px) {

  /* Reduce section padding on mobile */
  .section {
    padding: 64px 0;
  }

  /* ── NAVBAR MOBILE ─────────────────────────────── */

  /* Show the hamburger button on mobile */
  .hamburger {
    display: flex;
  }

  /*
    The mobile nav links list:
    • Positioned absolutely below the navbar.
    • Hidden off-screen above by default (transform: translateY(-110%)).
    • When .open is added by JavaScript, it slides down into view.
  */
  .nav-links {
    position:        absolute;
    top:             100%;
    left:            0;
    width:           100%;
    background:      var(--color-chocolate);
    flex-direction:  column;
    align-items:     stretch;
    padding:         0;
    gap:             0;

    /* Hide above the navbar by default */
    transform:       translateY(-110%);
    opacity:         0;
    pointer-events:  none;
    transition:      transform 0.3s ease, opacity 0.3s ease;
  }

  /* When .open class is added, slide the menu into view */
  .nav-links.open {
    transform:      translateY(0);
    opacity:        1;
    pointer-events: auto;
  }

  /* Style each link for the full-width mobile menu */
  .nav-links li {
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .nav-links a {
    display:  block;
    padding:  14px var(--space-lg);
    color:    rgba(255,255,255,0.85);
    font-size: 1rem;
  }
  .nav-cta {
    margin: var(--space-md) var(--space-lg) !important;
    text-align: center !important;
    border-radius: var(--radius-sm) !important;
  }

  /* ── HERO MOBILE ─────────────────────────────── */

  /* Disable parallax on mobile (can cause blurry images on iOS) */
  #hero {
    background-attachment: scroll;
    min-height:            90vh;
  }

  /* ── PRODUCTS MOBILE ─────────────────────────── */

  /* Single-column product grid on mobile */
  .products-grid {
    grid-template-columns: 1fr;
    max-width:             420px;
    margin:                0 auto;
  }

  /* ── ABOUT MOBILE ────────────────────────────── */

  /* Hide the floating badge on mobile to avoid overlap */
  .about-badge {
    display: none;
  }
  .about-img {
    height: 280px;
  }

  /* ── CONTACT MOBILE ──────────────────────────── */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* ── FOOTER MOBILE ───────────────────────────── */
  .footer-inner {
    flex-direction: column;
    align-items:    flex-start;
    gap:            var(--space-lg);
  }
}


/* ── SMALL PHONES — screens up to 480px wide ─────────────────── */
@media (max-width: 480px) {

  .container {
    padding: 0 var(--space-md);
  }

  /* Stack hero buttons vertically on very small screens */
  .hero-buttons {
    flex-direction: column;
    align-items:    center;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  /* Section padding on very small screens */
  .section {
    padding: 48px 0;
  }
}
