/* ═══════════════════════════════════════════════
   ArchStone Group — style.css
   ═══════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --navy:    #060c1a;
  --navy2:   #0b1428;
  --navy3:   #0f1c36;
  --teal:    #00d4c8;
  --teal2:   #00b8ae;
  --gold:    #f0a500;
  --red:     #f66b6b;
  --blue1:   #4d8cc3;
  --blue2:   #6699cc;
  --blue3:   #80a6d5;
  --text:    #d8e4f0;
  --muted:   #6b88a8;
  --border:  rgba(0,212,200,0.15);
  --card-bg: rgba(11,20,40,0.85);
  --radius:  10px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'DM Sans', 'Poppins', sans-serif;
  background: var(--navy);
  color: var(--text);
  overflow-x: hidden;
    background: linear-gradient(to right,#000, #1b283f,#233351);
}

h1, h2, h3, h4 {
  font-family: 'Syne', 'Poppins', sans-serif;
  letter-spacing: -0.02em;
}

/* ── Canvas background ── */
#background-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* ── NAVBAR ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 56px;
  background: rgba(6, 12, 26, 0.262);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

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

.logo img {
  max-height: 75px;
  width: auto;
  display: block;
}

.menu-toggle {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
}

.menu-toggle:hover {
  background: rgba(255,255,255,0.16);
}

nav ul {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 12px 0;
  position: absolute;
  top: calc(100% + 10px);
  right: 56px;
  background: rgba(6,12,26,0.97);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  width: 220px;
  z-index: 10;
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

nav.nav-open ul {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

nav ul li { margin: 4px 0; }

nav a {
  text-decoration: none;
  color: #9ab0cc;
  font-size: 0.875rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  display: block;
  padding: 10px 24px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

nav a:hover {
  background: rgba(0,212,200,0.08);
  color: var(--teal);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 72px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  max-width: 600px;
  line-height: 1.12;
  color: #fff;
  margin-bottom: 20px;
}

.hero h1 span { color: var(--teal); }

.hero p {
  max-width: 480px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
}

/* ── SLIDESHOW ── */
.hero-right {
  position: relative;
  overflow: hidden;
}

.slideshow {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
  animation: none;
}

.slide.active {
  opacity: 1;
  animation: kenburns 8s ease-in-out infinite alternate;
}

@keyframes kenburns {
  from { transform: scale(1)    translateX(0)    translateY(0); }
  to   { transform: scale(1.08) translateX(-1%)  translateY(-1%); }
}

/* Left-side fade so the image bleeds into the dark hero text side */
.slide-fade-left {
  position: absolute;
  top: 0; left: 0;
  width: 180px;
  height: 100%;
  background: linear-gradient(to right, var(--navy), transparent);
  z-index: 2;
  pointer-events: none;
}

/* Dot indicators */
.slide-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.dot.active {
  background: var(--teal);
  transform: scale(1.3);
}

/* ── SECTIONS ── */
.section {
  padding: 96px 72px;
  position: relative;
  z-index: 1;
}

.section.dark {
  background: var(--navy2);
  color: var(--text);
}

.section h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0 0 12px;
  color: #fff;
}

.section > p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin-bottom: 48px;
}

.section-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

/* ── SECTION DIVIDER ── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,200,0.3), transparent);
  margin: 0 72px;
  position: relative;
  z-index: 1;
}

/* ── GRID ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* ── CARDS ── */
.card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}

.card:hover {
  border-color: rgba(0,212,200,0.4);
  transform: translateY(-3px);
}

.pressure-label + .grid .card:hover {
  border-color: rgba(246,107,107,0.4);
}

.card h3 {
  font-family: 'Syne', 'Poppins', sans-serif;
  font-size: 1rem;
  color: #fff;
  width: 100%;
  margin: 0 0 8px;
}

.card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  word-wrap: break-word;
}

.card img {
  max-height: 48px;
  max-width: 120px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}

/* Why We Matter border accents */
.first-grid .card {
  border-left: 3px solid var(--red);
}

.second-grid .card:nth-child(1) { border-left: 3px solid var(--blue1); }
.second-grid .card:nth-child(2) { border-left: 3px solid var(--blue2); }
.second-grid .card:nth-child(3) { border-left: 3px solid var(--blue3); }

.pressure-label, .response-label {
  display: inline-block;
  font-family: 'Syne', 'Poppins', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.pressure-label {
  background: rgba(246,107,107,0.12);
  color: var(--red);
  border: 1px solid rgba(246,107,107,0.3);
}

.response-label {
  background: rgba(0,212,200,0.1);
  color: var(--teal);
  border: 1px solid rgba(0,212,200,0.25);
}

/* ── WHY INSTITUTIONS NOTICE ── */
#why-notice {
  padding: 80px 72px;
  background: rgba(15, 28, 54, 0.64);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

#why-notice .notice-header {
  margin-bottom: 52px;
}

#why-notice .notice-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: #fff;
  margin-bottom: 12px;
}

#why-notice .notice-header p {
  color: var(--muted);
  max-width: 600px;
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

.notice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}

.notice-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
  position: relative;
  overflow: hidden;
}

.notice-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.notice-card:nth-child(1)::before { background: var(--teal); }
.notice-card:nth-child(2)::before { background: var(--gold); }
.notice-card:nth-child(3)::before { background: #a78bfa; }
.notice-card:nth-child(4)::before { background: #34d399; }

.notice-card:hover {
  background: rgba(0,212,200,0.05);
  border-color: rgba(0,212,200,0.35);
  transform: translateY(-4px);
}

.notice-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.notice-card:nth-child(1) .notice-icon { background: rgba(0,212,200,0.12); }
.notice-card:nth-child(2) .notice-icon { background: rgba(240,165,0,0.12); }
.notice-card:nth-child(3) .notice-icon { background: rgba(167,139,250,0.12); }
.notice-card:nth-child(4) .notice-icon { background: rgba(52,211,153,0.12); }

.notice-card h3 {
  font-family: 'Syne', 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
}

.notice-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* ── PRODUCTS ── */
#products {
  padding: 96px 72px;
  background: var(--navy);
  position: relative;
  z-index: 1;
}

#products > h2 { margin-bottom: 12px; }

#products > p {
  color: var(--muted);
  margin-bottom: 48px;
  margin-top: 0;
}

.product-tabs {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
}

.product-tab {
  flex: 1;
  padding: 18px 24px;
  background: transparent;
  border: none;
  border-right: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  font-family: 'Syne', 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s;
  text-align: center;
}

.product-tab:last-child { border-right: none; }

.product-tab:hover {
  background: rgba(255,255,255,0.04);
  color: #fff;
}

.product-tab.active {
  background: rgba(0,212,200,0.1);
  color: var(--teal);
  border-bottom: 2px solid var(--teal);
}

.product-panel {
  display: none;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  animation: fadeUp 0.35s ease;
}

.product-panel.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.product-info {
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.product-info h3 {
  font-family: 'Syne', 'Poppins', sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: #fff;
  margin: 0 0 16px;
}

.product-info > p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 36px;
}

.product-info > p strong { color: var(--text); }

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.feature-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.feature-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  margin-top: 7px;
  flex-shrink: 0;
}

.feat-text h4 {
  font-family: 'Syne', 'Poppins', sans-serif;
  font-size: 0.9rem;
  color: #fff;
  margin: 0 0 4px;
}

.feat-text p {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

.product-visual {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  background: linear-gradient(135deg, #0a1628 0%, #061020 100%);
}

/* Grid overlay for product visual */
.product-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,200,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,200,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 1;
  pointer-events: none;
}

/* Glow overlay for product visual */
.product-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 60% 50%, rgba(0,212,200,0.08) 0%, transparent 65%);
  z-index: 1;
  pointer-events: none;
}

/* Image placeholder in product visual */
.img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.8rem;
  font-family: 'DM Sans', 'Poppins', sans-serif;
  gap: 12px;
  z-index: 2;
}

.img-placeholder svg { opacity: 0.25; }
.img-placeholder span { opacity: 0.4; }

/* Actual image when user adds it */
.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 2;
}

/* ── WHO WE ARE — Presence ── */
.presence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.presence-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 16px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  background: rgba(255,255,255,0.02);
  transition: border-color 0.2s, color 0.2s;
}

.presence-card:hover {
  border-color: rgba(0,212,200,0.4);
  color: var(--teal);
}

.presence-card.primary {
  border-color: rgba(0,212,200,0.3);
  color: var(--teal);
  background: rgba(0,212,200,0.06);
}

/* ── AWARDS ── */
#awards .card { border-left: none; }

.gridc {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.grid-c.card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  min-height: 80px;
}

.gridc .card img {
  max-height: 38px;
  max-width: 90px;
  object-fit: contain;
}

.gridc .card:hover img {
  filter: drop-shadow(0 0 4px rgba(0,212,200,0.6));
}

/* ── FOOTER ── */
footer {
  padding: 32px 72px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .section  { padding: 64px 24px; }
  .hero     { grid-template-columns: 1.4fr 0.6fr;}
  .hero-left { padding: 140px 24px 64px; }
  .hero-right {
  position: relative;
  overflow: hidden;
  margin: 40px 40px 40px 0;
  border-radius: 16px;
}
  nav       { padding: 16px 24px; }
  .divider  { margin: 0 24px; }

  nav ul {
    right: 24px;
    width: calc(100% - 48px);
  }

  .menu-toggle { margin-right: 0; }

  .product-panel.active { grid-template-columns: 1fr; }
  .product-visual       { display: none; }
  .product-info         { padding: 36px 28px; }

  #why-notice { padding: 64px 24px; }
  #products   { padding: 64px 24px; }

  footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 28px 24px;
  }
}

.slide {
  border-radius: 40px;

}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: linear-gradient(to top, var(--navy), transparent);
  z-index: 3;
  pointer-events: none;
}

/* ── TEAM ── */
.team-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
}

.team-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}

.team-card:hover {
  border-color: rgba(0,212,200,0.4);
  transform: translateY(-3px);
}

.team-img {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0a1628 0%, #061020 100%);
  min-height: 260px;
}

.team-img::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 60px;
  height: 100%;
  background: linear-gradient(to right, transparent, var(--card-bg));
  z-index: 2;
  pointer-events: none;
}

.team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.team-content {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--border);
}

.team-role {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 10px;
  font-family: 'DM Sans', sans-serif;
}

.team-content h3 {
  font-family: 'Syne', 'Poppins', sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: #fff;
  margin: 0 0 20px;
}

.team-content > p:last-child {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

@media (max-width: 700px) {
  .team-card {
    grid-template-columns: 1fr;
  }
  .team-img {
    min-height: 220px;
  }
  .team-img::after {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--card-bg));
  }
  .team-content {
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 28px 24px;
  }
}

.contact-card {
  text-decoration: none;
}

.kitty {
  opacity: 0;
  display: none;
}