/* ============================================================
   AGGARWAL STEEL INDUSTRIES — common.css
   Shared across ALL pages: reset, variables, fonts,
   navbar, footer, buttons, utilities, responsive
   ============================================================ */

/* ── GOOGLE FONTS ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:wght@700&display=swap');

/* ── THEME VARIABLES ──────────────────────────────────────── */

/* Common pages: Home, About, Contact */
:root {
  /* Backgrounds */
  --bg-page:          #F7F7F5;
  --bg-white:         #FFFFFF;
  --bg-light:         #EFEFEC;
  --bg-dark:          #1C2126;

  /* Text */
  --text-primary:     #1C1C1C;
  --text-secondary:   #5A6370;
  --text-muted:       #9AA3AD;
  --text-white:       #FFFFFF;

  /* Steel accent */
  --steel:            #6B7A8D;
  --steel-light:      #D4D9DF;
  --steel-mid:        #A8B2BC;

  /* Borders & shadows */
  --border:           #E2E4E7;
  --border-dark:      #C8CDD3;
  --shadow-sm:        0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:        0 6px 24px rgba(0,0,0,0.09);
  --shadow-lg:        0 16px 48px rgba(0,0,0,0.12);

  /* Navbar */
  --nav-bg:           #1C2126;
  --nav-text:         rgba(255,255,255,0.75);
  --nav-text-hover:   #FFFFFF;
  --nav-height:       66px;

  /* STELL brand colours (used in STELL pages) */
  --stell-dark:       #1E3A5F;
  --stell-mid:        #2C5282;
  --stell-accent:     #4A90C4;
  --stell-light:      #EBF4FB;
  --stell-border:     #C3DCF0;

  /* NOVAA brand colours (used in NOVAA pages) */
  --novaa-bg:         #0E0E0E;
  --novaa-dark:       #1A0A00;
  --novaa-orange:     #C4501A;
  --novaa-amber:      #E8751A;
  --novaa-light:      #FFF0E8;
  --novaa-border:     rgba(196,80,26,0.25);

  /* Typography */
  --font-main:        'Outfit', sans-serif;
  --font-serif:       'Playfair Display', serif;

  /* Spacing scale */
  --sp-xs:   8px;
  --sp-sm:   16px;
  --sp-md:   32px;
  --sp-lg:   64px;
  --sp-xl:   96px;

  /* Border radius */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;

  /* Transitions */
  --transition: 0.22s ease;
}

/* ── RESET ────────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
ul, ol {
  list-style: none;
}
button {
  font-family: var(--font-main);
  cursor: pointer;
}
input, textarea, select {
  font-family: var(--font-main);
}

/* ── TYPOGRAPHY HELPERS ───────────────────────────────────── */
.label-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 10px;
}
.section-heading {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.section-heading span {
  color: var(--steel);
}
.section-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.75;
}

/* ── LAYOUT HELPERS ───────────────────────────────────────── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}
.section {
  padding: var(--sp-xl) 28px;
}
.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}
.page-body {
  padding-top: var(--nav-height);
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  padding: 12px 28px;
  transition: all var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
/* Dark filled — used on light pages */
.btn-dark {
  background: var(--bg-dark);
  color: var(--text-white);
  border-color: var(--bg-dark);
}
.btn-dark:hover {
  background: #2d353d;
  border-color: #2d353d;
}
/* Ghost/outline on dark */
.btn-ghost {
  background: transparent;
  color: var(--text-white);
  border-color: rgba(255,255,255,0.3);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.7);
}
/* Steel outline on light */
.btn-outline-steel {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-dark);
}
.btn-outline-steel:hover {
  border-color: var(--steel);
  color: var(--steel);
}
/* STELL blue filled */
.btn-stell {
  background: var(--stell-dark);
  color: var(--text-white);
  border-color: var(--stell-dark);
}
.btn-stell:hover {
  background: var(--stell-mid);
  border-color: var(--stell-mid);
}
/* NOVAA orange filled */
.btn-novaa {
  background: var(--novaa-orange);
  color: var(--text-white);
  border-color: var(--novaa-orange);
}
.btn-novaa:hover {
  background: var(--novaa-amber);
  border-color: var(--novaa-amber);
}

/* ── COLOUR SWATCHES (reused in product pages) ────────────── */
.colour-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.1);
  display: inline-block;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.colour-dot:hover,
.colour-dot.active {
  transform: scale(1.2);
  box-shadow: 0 0 0 2px var(--bg-white), 0 0 0 4px var(--steel);
}
/* Colour map — add these classes to .colour-dot */
.c-white  { background: #F5F5F3; }
.c-cream  { background: #F0E8D6; }
.c-beige  { background: #C9B99A; }
.c-brown  { background: #6B4226; }
.c-grey   { background: #8A9199; }
.c-blue   { background: #3D6B9E; }
.c-navy   { background: #1E3A5F; }
.c-black  { background: #1A1A1A; }

/* ── NAVBAR ───────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: var(--nav-bg);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  flex-shrink: 0;
}
.nav-logo .logo-main {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-white);
  text-transform: uppercase;
}
.nav-logo .logo-sub {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel-mid);
  margin-top: 1px;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
}
.nav-links > li {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
}
.nav-links > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 100%;
  padding: 0 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--nav-text);
  transition: color var(--transition);
  white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: var(--nav-text-hover);
}
.nav-links > li > a .arrow {
  font-size: 0.6rem;
  transition: transform var(--transition);
  opacity: 0.6;
}
.nav-links > li:hover > a .arrow {
  transform: rotate(180deg);
}

/* Contact button style */
.nav-links > li > a.nav-contact {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  height: auto;
}
.nav-links > li > a.nav-contact:hover {
  background: rgba(255,255,255,0.12);
}

/* ── MEGA DROPDOWN ─────────────────────────────────────────── */
.mega-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 520px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.nav-links > li:hover .mega-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

/* Brand column inside mega menu */
.mega-col {
  padding: 0 20px;
}
.mega-col + .mega-col {
  border-left: 1px solid var(--border);
}
.mega-brand-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.mega-brand-label.stell-label {
  color: var(--stell-dark);
  border-color: var(--stell-border);
}
.mega-brand-label.novaa-label {
  color: var(--novaa-orange);
  border-color: rgba(196,80,26,0.2);
}
.mega-links li {
  margin-bottom: 4px;
}
.mega-links li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.mega-links li a:hover {
  background: var(--bg-light);
  color: var(--text-primary);
}
.mega-links li a .link-icon {
  font-size: 1rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  flex-shrink: 0;
}
.stell-links a .link-icon { background: var(--stell-light); }
.stell-links a:hover { color: var(--stell-dark); }
.novaa-links a .link-icon { background: var(--novaa-light); }
.novaa-links a:hover { color: var(--novaa-orange); }

/* ── HAMBURGER (mobile) ────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--text-white);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger span:nth-child(1) { width: 24px; }
.hamburger span:nth-child(2) { width: 18px; }
.hamburger span:nth-child(3) { width: 24px; }
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  width: 24px;
}
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  width: 24px;
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--nav-bg);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 16px 0 28px;
  z-index: 999;
  max-height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav-link {
  display: block;
  padding: 13px 28px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--nav-text);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: color var(--transition), background var(--transition);
}
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--text-white);
  background: rgba(255,255,255,0.04);
}
.mobile-section-label {
  padding: 16px 28px 6px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.mobile-section-label.stell-label { color: var(--stell-accent); }
.mobile-section-label.novaa-label { color: var(--novaa-amber); }
.mobile-nav-link.indented {
  padding-left: 42px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
}
.mobile-nav-link.indented:hover { color: rgba(255,255,255,0.9); }

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.55);
  padding: 60px 28px 28px;
}
.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 28px;
}
.footer-brand .fb-name {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: var(--text-white);
  text-transform: uppercase;
  margin-bottom: 3px;
}
.footer-brand .fb-sub {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel-mid);
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.75;
  max-width: 270px;
}
.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-white);
  margin-bottom: 16px;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: rgba(255,255,255,0.85); }
.footer-brand-pills {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.brand-pill {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 30px;
  border: 1px solid;
}
.brand-pill.stell {
  color: var(--stell-accent);
  border-color: rgba(74,144,196,0.3);
}
.brand-pill.novaa {
  color: var(--novaa-amber);
  border-color: rgba(232,117,26,0.3);
}
.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p { font-size: 0.78rem; }
.footer-bottom .footer-domain {
  font-size: 0.78rem;
  color: var(--steel-mid);
  letter-spacing: 0.06em;
}

/* ── SCROLL BAR ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: var(--steel-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--steel); }

/* ── ANIMATIONS ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim-1 { animation: fadeUp 0.55s ease both; }
.anim-2 { animation: fadeUp 0.55s 0.12s ease both; }
.anim-3 { animation: fadeUp 0.55s 0.24s ease both; }
.anim-4 { animation: fadeUp 0.55s 0.36s ease both; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links  { display: none; }
  .hamburger  { display: flex; }
}

@media (max-width: 768px) {
  .section { padding: 64px 20px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
