/* ============================================================
   Sparkles of Kalyani — stylesheet
   ------------------------------------------------------------
   Contents
   1.  Design tokens (colours, fonts, spacing)
   2.  Base / reset
   3.  Reusable pieces (container, buttons, headings, reveal)
   4.  Header + navigation
   5.  Hero
   6.  Featured collection
   7.  About
   8.  Contact
   9.  Footer
   10. Responsive (tablet + mobile)
   ============================================================ */


/* ------------------------------------------------------------
   1. DESIGN TOKENS
   Change a value here and it updates everywhere on the site.
   ------------------------------------------------------------ */
:root {
  /* Colours */
  --ivory:        #fdfaf6;   /* page background            */
  --champagne:    #f4ece2;   /* soft section background    */
  --blush:        #f7eeee;   /* gentle accent background   */
  --gold:         #b08d57;   /* primary accent             */
  --gold-deep:    #8f7043;   /* accent on hover            */
  --ink:          #2b2523;   /* headings                   */
  --ink-soft:     #6a615c;   /* body text                  */
  --line:         #e6dbcf;   /* borders / dividers         */
  --white:        #ffffff;

  /* Fonts */
  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-body:    "Jost", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --max-width:    1160px;
  --radius:       4px;
  --shadow-soft:  0 10px 30px rgba(43, 37, 35, 0.06);
  --shadow-lift:  0 18px 40px rgba(43, 37, 35, 0.12);
  --transition:   0.35s ease;
}


/* ------------------------------------------------------------
   2. BASE / RESET
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Stops the sticky header from covering a section when you jump to it */
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background-color: var(--ivory);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 0.6em;
}


/* ------------------------------------------------------------
   3. REUSABLE PIECES
   ------------------------------------------------------------ */

/* Centres content and keeps it away from the screen edges */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Vertical rhythm for every major section */
.section {
  padding: 110px 0;
}

/* Small uppercase line above a heading */
.eyebrow {
  margin: 0 0 14px;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
}

.section-head {
  max-width: 620px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.9rem);
}

/* Thin gold rule under centred section titles */
.section-head .section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  margin: 22px auto 0;
  background-color: var(--gold);
}

.section-subtitle {
  margin: 0;
  font-size: 1.02rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 15px 34px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition);
}

.btn-primary {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--gold-deep);
  border-color: var(--gold-deep);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-outline:hover {
  background-color: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* --- Scroll reveal ---
   Elements start slightly faded and lifted; script.js adds
   .is-visible when they scroll into view. */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .product-card:hover { transform: none; }
}


/* ------------------------------------------------------------
   4. HEADER + NAVIGATION
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(253, 250, 246, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition);
}

/* script.js adds .is-scrolled once the page moves down */
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  color: var(--gold);
  font-size: 1.1rem;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.logo-text em {
  font-style: italic;
  color: var(--gold);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 38px;
}

.nav-link {
  position: relative;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 6px 0;
  transition: color var(--transition);
}

/* Gold underline that grows on hover / for the active section */
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background-color: var(--gold);
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

/* Hamburger button — hidden on desktop, shown in the mobile media query */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle .bar {
  display: block;
  width: 24px;
  height: 1.5px;
  margin: 0 auto;
  background-color: var(--ink);
  transition: transform var(--transition), opacity var(--transition);
}

/* Turn the three bars into an X when the menu is open */
.nav-toggle.is-open .bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open .bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


/* ------------------------------------------------------------
   5. HERO
   ------------------------------------------------------------ */
.hero {
  background: linear-gradient(160deg, var(--champagne) 0%, var(--ivory) 55%, var(--blush) 100%);
  padding: 90px 0 100px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 60px;
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.hero-tagline {
  max-width: 480px;
  font-size: 1.08rem;
  margin: 0 0 36px;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  border-radius: 260px 260px 8px 8px;
  box-shadow: var(--shadow-lift);
}


/* ------------------------------------------------------------
   6. FEATURED COLLECTION
   ------------------------------------------------------------ */
.collection {
  background-color: var(--white);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.product-card {
  background-color: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.product-media {
  background-color: var(--champagne);
  overflow: hidden;
}

.product-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.05);
}

.product-body {
  padding: 26px 22px 30px;
  text-align: center;
}

.product-name {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.product-price {
  margin: 0 0 20px;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.product-body .btn {
  padding: 12px 26px;
  font-size: 0.72rem;
}

/* Message shown after clicking "View Product" */
.product-note {
  margin: 40px 0 0;
  min-height: 1.75em;
  text-align: center;
  font-size: 0.92rem;
  font-style: italic;
  color: var(--gold-deep);
}


/* ------------------------------------------------------------
   7. ABOUT
   ------------------------------------------------------------ */
.about {
  background-color: var(--champagne);
}

.about-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 70px;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.about-text p {
  margin: 0 0 18px;
}

.about-signature {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink);
}


/* ------------------------------------------------------------
   8. CONTACT
   ------------------------------------------------------------ */
.contact {
  background-color: var(--ivory);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.contact-card {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px 28px;
  text-align: center;
  transition: box-shadow var(--transition);
}

.contact-card:hover {
  box-shadow: var(--shadow-soft);
}

.contact-icon {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 1.4rem;
  color: var(--gold);
}

.contact-label {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.contact-value {
  font-size: 0.96rem;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.contact-value:hover {
  color: var(--gold-deep);
  border-bottom-color: var(--gold);
}

.social-list {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}


/* ------------------------------------------------------------
   9. FOOTER
   ------------------------------------------------------------ */
.site-footer {
  background-color: var(--ink);
  color: rgba(253, 250, 246, 0.72);
  padding: 62px 0 26px;
}

.site-footer .logo-text {
  color: var(--ivory);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(253, 250, 246, 0.14);
}

.footer-tagline {
  margin: 8px 0 0;
  font-size: 0.92rem;
}

.footer-nav ul {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-bottom {
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
}


/* ------------------------------------------------------------
   10. RESPONSIVE
   ------------------------------------------------------------ */

/* --- Tablet (up to 992px) --- */
@media (max-width: 992px) {
  .section { padding: 80px 0; }

  .hero { padding: 70px 0 80px; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-image {
    max-width: 420px;
    margin: 0 auto;
    order: -1;               /* image sits above the text on tablet */
  }

  /* 4 products become a 2 x 2 grid */
  .product-grid { grid-template-columns: repeat(2, 1fr); }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 44px;
    text-align: center;
  }

  .about-image {
    max-width: 460px;
    margin: 0 auto;
  }

  .contact-grid { grid-template-columns: 1fr; }
}


/* --- Mobile (up to 768px): hamburger menu turns on here --- */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  /* Menu is collapsed by default and slides open when .is-open is added */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--ivory);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .nav.is-open { max-height: 320px; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
  }

  .nav-list li + li {
    border-top: 1px solid var(--line);
  }

  .nav-link {
    display: block;
    padding: 15px 0;
  }

  /* The growing underline looks odd in a stacked menu, so switch it off */
  .nav-link::after { display: none; }

  .header-inner {
    position: relative;
    min-height: 72px;
  }

  .logo-text { font-size: 1.28rem; }

  .section { padding: 66px 0; }

  .section-head { margin-bottom: 44px; }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-nav ul { justify-content: center; }
}


/* --- Small mobile (up to 520px) --- */
@media (max-width: 520px) {
  .container { padding: 0 18px; }

  /* One product per row so the images stay generous */
  .product-grid { grid-template-columns: 1fr; gap: 24px; }

  .hero-image img { border-radius: 180px 180px 8px 8px; }

  .btn { width: 100%; text-align: center; }

  .product-body .btn { width: auto; }
}
