/* ============================================================
   global.css — Boundless Business
   business.boundlessyou.in — Shared layout, nav, footer, utilities
   ============================================================ */

/* ── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  background: var(--primary);
  color: var(--silver);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ── NAVIGATION ─────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-height);
  background: rgba(9, 21, 41, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(198,169,107,0.12);
  display: flex;
  align-items: center;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo img { height: 38px; width: auto; }
.nav-logo-text {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--silver);
  line-height: 1.2;
}
.nav-logo-sub {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
}
.nav-links li a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(214,217,222,0.75);
  transition: color var(--transition);
  white-space: nowrap;
}
.nav-links li a:hover,
.nav-links li a.active { color: var(--silver); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.4rem;
  background: var(--gold);
  color: var(--primary) !important;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--gold-soft); transform: translateY(-1px); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--silver);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height); left: 0; right: 0;
    background: var(--hero-dark);
    border-bottom: 1px solid rgba(198,169,107,0.15);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 0;
    gap: 0;
    z-index: 850;
  }
  .nav-links.open { display: flex; }
  .nav-links li a {
    padding: 0.85rem 2rem;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(214,217,222,0.06);
  }
  .nav-cta { display: none; }
}

/* ── PAGE BODY OFFSET ───────────────────────────────────────── */
.page-wrap { padding-top: var(--nav-height); }

/* ── SECTION PATTERNS ───────────────────────────────────────── */
.sec {
  padding: var(--section-pad) clamp(1.5rem, 6vw, 5rem);
}
.sec-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}
.sec--light {
  background: var(--light-grey);
  color: var(--primary);
}
.sec--mid {
  background: var(--primary-mid);
}
.sec--alt {
  background: var(--primary-alt);
}
.sec--dark {
  background: var(--hero-dark);
}

/* ── TYPOGRAPHY ─────────────────────────────────────────────── */
.label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.25;
  color: var(--silver);
}

h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); margin-bottom: 1.4rem; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); margin-bottom: 0.9rem; }
h4 { font-size: clamp(0.95rem, 1.8vw, 1rem); margin-bottom: 0.6rem; }

p { color: rgba(214,217,222,0.72); line-height: 1.85; margin-bottom: 1rem; font-size: clamp(0.92rem, 2vw, 1rem); }
p:last-child { margin-bottom: 0; }

.sec--light p { color: rgba(13,31,60,0.72); }
.sec--light h2, .sec--light h3 { color: var(--primary); }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--gold);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  border-radius: 3px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--gold-soft);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(198,169,107,0.3);
}

.btn-outline {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--silver);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  border-radius: 3px;
  border: 1px solid rgba(214,217,222,0.35);
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
  cursor: pointer;
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ── DIVIDERS ────────────────────────────────────────────────── */
.rule {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 2rem 0;
}

/* ── TAGS / CHIPS ────────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--gold-bg);
  color: var(--gold);
  border: 1px solid rgba(198,169,107,0.2);
  border-radius: 2px;
}

/* ── FORM ELEMENTS ───────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(214,217,222,0.6);
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(214,217,222,0.2);
  border-radius: var(--card-radius);
  color: var(--silver);
  font-family: var(--sans);
  font-size: 0.9rem;
  transition: border-color var(--transition);
  outline: none;
  appearance: none;
}
.form-input::placeholder,
.form-textarea::placeholder { color: rgba(214,217,222,0.3); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: var(--gold); }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A94A6' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-select option { background: var(--primary); color: var(--silver); }
.form-textarea { resize: vertical; min-height: 130px; }

/* ── GOLD KEYWORD ────────────────────────────────────────────── */
.gold-kw { color: var(--gold); font-weight: 600; }

/* ── FOOTER ──────────────────────────────────────────────────── */
footer {
  background: var(--hero-dark);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 6vw, 5rem) 2rem;
  border-top: 1px solid rgba(198,169,107,0.12);
}
.ft-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
}
.ft-brand p {
  font-size: 0.83rem;
  color: rgba(214,217,222,0.4);
  line-height: 1.75;
  margin-top: 1rem;
  max-width: 240px;
}
.ft-logo-text {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--silver);
  line-height: 1.2;
}
.ft-logo-sub {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.2rem;
}
.ft-col h4 {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  font-weight: 600;
}
.ft-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.ft-col ul li a {
  font-size: 0.82rem;
  color: rgba(214,217,222,0.5);
  transition: color var(--transition);
}
.ft-col ul li a:hover { color: var(--silver); }
.ft-divider {
  max-width: var(--content-max);
  margin: 2.5rem auto 1.5rem;
  border: none;
  border-top: 1px solid rgba(214,217,222,0.08);
}
.ft-bottom {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.ft-copy {
  font-size: 0.72rem;
  color: rgba(214,217,222,0.3);
}
.ft-social {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.ft-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  color: rgba(214,217,222,0.35);
  transition: color var(--transition);
}
.ft-social a:hover { color: var(--gold); }
.ft-social svg { width: 16px; height: 16px; }

@media (max-width: 860px) {
  .ft-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .ft-grid { grid-template-columns: 1fr; }
  .ft-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── ICON GRID ───────────────────────────────────────────────── */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.icon-card {
  padding: 2rem 1.8rem;
  background: var(--primary-alt);
  border: 1px solid rgba(214,217,222,0.08);
  border-radius: var(--card-radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.icon-card:hover {
  border-color: rgba(198,169,107,0.3);
  box-shadow: var(--shadow-card);
}
.icon-card .icon {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  display: block;
}
.icon-card h4 { color: var(--silver); margin-bottom: 0.5rem; font-size: 0.95rem; }
.icon-card p { font-size: 0.85rem; margin: 0; }

/* ── PROGRAM CARD ───────────────────────────────────────────── */
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.program-card {
  padding: 2rem;
  background: var(--primary);
  border: 1px solid rgba(214,217,222,0.1);
  border-radius: var(--card-radius);
  border-top: 3px solid var(--gold);
  transition: transform var(--transition), box-shadow var(--transition);
}
.program-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.program-card .prog-num {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
  display: block;
}
.program-card h3 { font-size: 1.05rem; margin-bottom: 0.8rem; color: var(--silver); }
.program-card p { font-size: 0.85rem; margin: 0; }

/* ── MOBILE TYPOGRAPHY BOOST ────────────────────────────────── */
@media (max-width: 480px) {
  body { font-size: 17px; line-height: 1.8; }

  /* Labels and utility text */
  .label { font-size: 0.75rem; letter-spacing: 0.14em; }

  /* Headings at small viewport */
  h1 { font-size: clamp(1.85rem, 8vw, 2.4rem); }
  h2 { font-size: clamp(1.45rem, 7vw, 1.8rem); }
  h3 { font-size: clamp(1.1rem, 5vw, 1.3rem); }
  h4 { font-size: 1rem; }

  /* Body text */
  p { font-size: 0.97rem; line-height: 1.85; }

  /* Buttons — larger tap targets */
  .btn-primary, .btn-outline {
    padding: 0.95rem 1.75rem;
    font-size: 0.85rem;
    width: 100%;
    text-align: center;
  }

  /* Cards */
  .icon-card { padding: 1.6rem 1.4rem; }
  .icon-card p { font-size: 0.92rem; }
  .program-card p { font-size: 0.92rem; }
  .program-card h3 { font-size: 1.05rem; }
}
