/* ===================================================================
   NAADYA PROFESSIONAL AUDIO — MAIN STYLESHEET
   -------------------------------------------------------------------
   This file is split into clearly labelled sections. Use Ctrl+F (or
   Cmd+F on Mac) and search for a section title in CAPS (e.g. "NAVBAR")
   to jump straight to it.

   You do NOT need to understand all of this to run the site or add
   products — that part happens in js/products-data.js and
   js/applications-data.js, which have their own simple instructions.
   ===================================================================
   TABLE OF CONTENTS
   1. Design Tokens (colors, fonts, spacing — change the brand here)
   2. Reset & Base
   3. Layout helpers
   4. Buttons
   5. Navbar
   6. Hero
   7. Sections & Cards
   8. Coming Soon banner
   9. Footer
   10. Animations
   11. Responsive (mobile) rules
   =================================================================== */


/* ===================================================================
   1. DESIGN TOKENS
   -------------------------------------------------------------------
   These are the "master switches" for the whole site's look.
   Change a value here and it updates everywhere the variable is used.
   =================================================================== */
:root {
  /* ---- Brand colors ---- */
  --color-bg:            #0a0a0c;   /* main background, near-black */
  --color-bg-alt:        #121215;   /* slightly lighter panels/sections */
  --color-surface:       #17171b;   /* cards, nav background */
  --color-border:        rgba(201, 162, 76, 0.18); /* faint gold hairlines */

  --color-gold:          #c9a24c;   /* primary gold accent */
  --color-gold-light:    #e9d28c;   /* highlight gold, hover states */
  --color-gold-dark:     #8f701f;   /* deep gold, shadows on gold text */

  --color-text:          #f3efe6;   /* warm off-white, main text */
  --color-text-muted:    #a39c8e;   /* secondary/supporting text */
  --color-text-faint:    #6d6862;   /* least important text, fine print */

  /* ---- Typography ----
     Display font = big bold headlines (matches the wordmark in our logo)
     Body font     = everything else: paragraphs, nav, buttons
     Accent font   = elegant italic serif, used sparingly for taglines  */
  --font-display: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Jost', 'Helvetica Neue', Arial, sans-serif;
  --font-accent:  'Cormorant Garamond', Georgia, serif;

  /* ---- Spacing scale (used for padding/margins for consistency) ---- */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  7rem;

  /* ---- Shape & motion ---- */
  --radius:        2px;   /* we keep corners nearly square — feels precision-engineered */
  --transition:    0.35s cubic-bezier(0.22, 1, 0.36, 1);
  --max-width:     1240px;
}


/* ===================================================================
   2. RESET & BASE
   =================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

/* Respect users who prefer less motion (accessibility) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Visible keyboard focus outline, for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 1px solid var(--color-gold);
  outline-offset: 4px;
}


/* ===================================================================
   3. LAYOUT HELPERS
   =================================================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
  position: relative;
}

.section--alt {
  background-color: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-heading {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-transform: uppercase;
  color: var(--color-text);
}

.section-heading p.accent {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* thin gold rule used as a divider between elements */
.gold-rule {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  margin: var(--space-sm) auto;
}


/* ===================================================================
   4. BUTTONS
   =================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.9em 2.1em;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--color-gold);
  border-radius: var(--radius);
  cursor: pointer;
  background: transparent;
  color: var(--color-gold-light);
  transition: background var(--transition), color var(--transition), transform var(--transition);
  white-space: nowrap;
}

.btn:hover {
  background: var(--color-gold);
  color: #0a0a0c;
  transform: translateY(-2px);
}

.btn--filled {
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold) 60%, var(--color-gold-dark));
  color: #0a0a0c;
  font-weight: 500;
  border-color: transparent;
}

.btn--filled:hover {
  background: var(--color-gold-light);
  color: #0a0a0c;
}


/* ===================================================================
   5. NAVBAR
   =================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: var(--space-sm) 0;
  background: rgba(10, 10, 12, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition), padding var(--transition);
}

.navbar.is-scrolled {
  border-bottom-color: var(--color-border);
  background: rgba(10, 10, 12, 0.92);
  padding: 0.65rem 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar__brand img {
  height: 56px;
  width: auto;
  transition: height var(--transition);
}

.navbar.is-scrolled .navbar__brand img {
  height: 46px;
}

.navbar__links {
  display: flex;
  gap: var(--space-md);
}

.navbar__links a {
  position: relative;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 0.4rem 0;
  transition: color var(--transition);
}

.navbar__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 1px;
  background: var(--color-gold);
  transition: width var(--transition);
}

.navbar__links a:hover,
.navbar__links a.is-active {
  color: var(--color-gold-light);
}

.navbar__links a:hover::after,
.navbar__links a.is-active::after {
  width: 100%;
}

/* Hamburger button — only shown on mobile, see section 11 */
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.navbar__toggle span {
  width: 24px;
  height: 1px;
  background: var(--color-gold);
  transition: transform var(--transition), opacity var(--transition);
}

.navbar__toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.navbar__toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.navbar__toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}


/* ===================================================================
   6. HERO
   =================================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 6rem;
}

/* Ambient concentric gold arcs in the background — echoes the arc
   shape found in the NAADYA logo itself. Purely decorative. */
.hero__arcs {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
}

.hero__arcs span {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--color-border);
}

.hero__arcs span:nth-child(1) { width: 520px;  height: 520px; }
.hero__arcs span:nth-child(2) { width: 760px;  height: 760px; opacity: 0.7; }
.hero__arcs span:nth-child(3) { width: 1000px; height: 1000px; opacity: 0.4; }

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding: 0 var(--space-md);
}

.hero__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold) 55%, var(--color-gold-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__naad-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--color-gold);
  text-underline-offset: 0.15em;
  transition: opacity 0.2s ease;
}

.hero__naad-link:hover {
  opacity: 0.85;
}

.hero__tagline {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  color: var(--color-text-muted);
  margin: var(--space-sm) 0 var(--space-md);
}

.hero__actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* Small animated "equalizer" bars — a recurring visual motif that
   nods to sound/audio throughout the site (used in hero, loaders,
   and the Coming Soon banner). Purely decorative, aria-hidden. */
.equalizer {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}

.equalizer span {
  width: 3px;
  background: var(--color-gold);
  animation: equalize 1.1s ease-in-out infinite;
}

.equalizer span:nth-child(1) { animation-delay: 0s;    }
.equalizer span:nth-child(2) { animation-delay: 0.2s;  }
.equalizer span:nth-child(3) { animation-delay: 0.4s;  }
.equalizer span:nth-child(4) { animation-delay: 0.1s;  }
.equalizer span:nth-child(5) { animation-delay: 0.3s;  }

@keyframes equalize {
  0%, 100% { height: 4px;  }
  50%      { height: 18px; }
}


/* ===================================================================
   7. SECTIONS & CARDS
   =================================================================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-md);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: visible; /* kept visible so the "Coming Soon" ribbon can hang past the edge without being clipped */
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--color-gold);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.6);
}

.card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: var(--space-sm);
  background: linear-gradient(135deg, #1c1c20, #101012);
}

.card__eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.4rem;
}

.card h3 {
  font-size: 1.3rem;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.card--placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 280px;
  border-style: dashed;
  color: var(--color-text-faint);
}

.card--placeholder .equalizer {
  margin-bottom: var(--space-sm);
  opacity: 0.6;
}

/* Category groupings on the Products page */
.category-block {
  margin-bottom: var(--space-lg);
}

.category-block__heading {
  text-align: center;
  margin-bottom: var(--space-md);
}

.category-block__heading h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  text-transform: uppercase;
  color: var(--color-text);
}

/* "Coming Soon" ribbon shown across the corner of a product/app card.
   The outer wrap clips just the corner, so the rest of the card
   (shadows, hover effects) is never cut off. */
.card__ribbon-wrap {
  position: absolute;
  top: 0;
  right: 0;
  width: 130px;
  height: 130px;
  overflow: hidden;
  pointer-events: none;
  border-radius: var(--radius);
}

.card__ribbon {
  position: absolute;
  top: 20px;
  right: -36px;
  transform: rotate(40deg);
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
  color: #0a0a0c;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.3rem 2.6rem;
  white-space: nowrap;
}

.card__tagline {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--color-gold-light) !important;
  margin-bottom: 0.6rem;
}

.card__specs {
  margin-top: var(--space-sm);
  padding-left: 1.1rem;
  list-style: disc;
}

.card__specs li {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  margin-bottom: 0.3rem;
}

/* Icon used on Applications page cards */
.card__icon {
  width: 46px;
  height: 46px;
  margin-bottom: var(--space-sm);
  color: var(--color-gold);
}

.card__icon svg {
  width: 100%;
  height: 100%;
}


/* ===================================================================
   8. COMING SOON BANNER
   =================================================================== */
.coming-soon {
  border: 1px solid var(--color-border);
  background: linear-gradient(180deg, rgba(201,162,76,0.06), transparent);
  border-radius: var(--radius);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  margin: var(--space-md) 0;
}

.coming-soon .equalizer {
  margin: 0 auto var(--space-sm);
}

.coming-soon h3 {
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: 0.5rem;
}

.coming-soon p {
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 0 auto;
}


/* ===================================================================
   9. FOOTER
   =================================================================== */
.footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.footer__brand img {
  height: 62px;
  margin-bottom: var(--space-sm);
}

.footer__brand p {
  color: var(--color-text-muted);
  max-width: 320px;
  font-size: 0.9rem;
}

.footer__col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.footer__col ul li {
  margin-bottom: 0.6rem;
}

.footer__col ul li a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer__col ul li a:hover {
  color: var(--color-gold-light);
}

.footer__socials {
  display: flex;
  gap: var(--space-sm);
}

.footer__socials a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
  color: var(--color-text-muted);
}

.footer__socials a:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-light);
  transform: translateY(-3px);
}

.footer__socials svg {
  width: 16px;
  height: 16px;
}

.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-sm);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--color-text-faint);
}


/* ===================================================================
   10. ANIMATIONS
   =================================================================== */

/* Fade + rise elements into view as the user scrolls.
   The class "reveal" starts hidden; js/main.js adds "is-visible"
   once the element scrolls into the viewport. */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ===================================================================
   11. RESPONSIVE (MOBILE) RULES
   =================================================================== */
@media (max-width: 860px) {
  .navbar__links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: rgba(10, 10, 12, 0.98);
    border-left: 1px solid var(--color-border);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: var(--space-lg);
    gap: var(--space-md);
    transform: translateX(100%);
    transition: transform var(--transition);
  }

  .navbar__links.is-open {
    transform: translateX(0);
  }

  .navbar__toggle {
    display: flex;
  }

  .footer__top {
    flex-direction: column;
    gap: var(--space-md);
  }
}

@media (max-width: 500px) {
  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    justify-content: center;
  }
}
