﻿/* AIIonic Custom CSS — Robotics Manufacturing Deep Tech Theme
   Overrides Stellar template for dark navy/teal brand identity
   ============================================================= */

/* ---- Color Variables ---- */
:root {
  --bg-primary: #070d1a;
  --bg-secondary: #0d1628;
  --bg-card: #111e35;
  --accent: #00e5cc;
  --accent-dark: #00b8a0;
  --text-primary: #ffffff;
  --text-muted: rgba(255,255,255,0.65);
  --text-dim: rgba(255,255,255,0.4);
  --border: rgba(0,229,204,0.15);
  --border-light: rgba(255,255,255,0.08);
}

/* ---- Base Background Override ---- */
body {
  background-color: var(--bg-primary) !important;
  background-image: none !important;
  color: var(--text-primary);
}

#wrapper {
  background-color: transparent !important;
}

/* ---- Header / Hero ---- */
#header {
  background-color: var(--bg-primary);
  padding: 5em 2em 4em;
}

#header .logo img {
  height: 56px;
  width: auto;
}

#header h1 {
  color: #ffffff;
  font-size: 2.8em;
  font-weight: 700;
  letter-spacing: 0.02em;
}

#header p {
  color: var(--text-muted);
  font-size: 1.05em;
  line-height: 1.7;
}

/* ---- Navigation ---- */
#nav {
  background-color: rgba(7,13,26,0.97) !important;
  border-bottom: 1px solid var(--border);
}

#nav ul li a {
  color: rgba(255,255,255,0.7) !important;
  font-size: 0.72em;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

#nav ul li a:hover,
#nav ul li a.active {
  color: var(--accent) !important;
}

/* ---- Main sections ---- */
#main > section {
  background-color: transparent;
  border-top: 1px solid var(--border-light);
}

#main > section.main {
  background-color: var(--bg-secondary);
}

#main > section.main.special {
  background-color: var(--bg-primary);
}

/* ---- Section headings ---- */
header.major h2 {
  color: #ffffff;
  font-weight: 700;
}

header.major p {
  color: var(--text-muted);
}

h1, h2, h3, h4, h5, h6 {
  color: #ffffff;
}

p {
  color: var(--text-muted);
  line-height: 1.75;
}

/* ---- Feature icons ---- */
.features .icon.major.style1 { background-color: #00e5cc; }
.features .icon.major.style2 { background-color: #0099d4; }
.features .icon.major.style3 { background-color: #5e40e6; }
.features .icon.major.style4 { background-color: #0077aa; }
.features .icon.major.style5 { background-color: #00b8a0; }

.features li h3 {
  color: #ffffff;
}

.features li p {
  color: var(--text-muted);
}

/* ---- Statistics ---- */
.statistics li.style1 { border-top-color: #00e5cc; }
.statistics li.style2 { border-top-color: #0099d4; }
.statistics li.style3 { border-top-color: #5e40e6; }
.statistics li.style4 { border-top-color: #0077aa; }
.statistics li.style5 { border-top-color: #00b8a0; }

.statistics li strong {
  color: #ffffff;
}

.statistics li .icon {
  color: var(--accent);
}

/* ---- Spotlight section ---- */
.spotlight .content {
  color: var(--text-muted);
}

.spotlight .image {
  border-radius: 8px;
  overflow: hidden;
}

/* ---- Buttons ---- */
.button.primary {
  background-color: var(--accent) !important;
  color: #000000 !important;
  border-color: var(--accent) !important;
  font-weight: 700;
  border-radius: 6px;
  letter-spacing: 0.08em;
}

.button.primary:hover {
  background-color: #00c8b0 !important;
  border-color: #00c8b0 !important;
}

.button {
  border-color: rgba(0,229,204,0.4) !important;
  color: var(--accent) !important;
  border-radius: 6px;
}

.button:hover {
  background-color: rgba(0,229,204,0.1) !important;
  border-color: var(--accent) !important;
}

/* ---- Footer ---- */
#footer {
  background-color: #04080f !important;
  border-top: 1px solid var(--border);
}

#footer h2 {
  color: #ffffff;
}

#footer p, #footer dl dt, #footer dl dd {
  color: var(--text-muted);
}

#footer a {
  color: var(--accent);
}

#footer .copyright {
  color: var(--text-dim);
}

/* ---- Forms ---- */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  background-color: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(0,229,204,0.25) !important;
  color: #ffffff !important;
  border-radius: 6px;
}

input::placeholder, textarea::placeholder {
  color: rgba(255,255,255,0.65) !important;
}
input::-webkit-input-placeholder, textarea::-webkit-input-placeholder {
  color: rgba(255,255,255,0.65) !important;
}
input::-moz-placeholder, textarea::-moz-placeholder {
  color: rgba(255,255,255,0.65) !important;
}
/* Override main.css #main ::-webkit-input-placeholder { rgba(99,99,99,0.25) } — near-invisible on dark bg */
#main ::-webkit-input-placeholder { color: rgba(255,255,255,0.65) !important; }
#main :-moz-placeholder            { color: rgba(255,255,255,0.65) !important; }
#main ::-moz-placeholder           { color: rgba(255,255,255,0.65) !important; }
#main :-ms-input-placeholder       { color: rgba(255,255,255,0.65) !important; }
#main .formerize-placeholder       { color: rgba(255,255,255,0.65) !important; }

/* Override main.css #main label { color: #636363 } — insufficient contrast on dark bg */
label,
#main label {
  color: rgba(255,255,255,0.90) !important;
}

/* ---- Team Cards ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5em;
  max-width: 1100px;
  margin: 0 auto;
}

.team-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 2em 1.5em;
  text-align: center;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.team-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.team-card img {
  width: 100px;
  height: 130px;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  border: 2px solid var(--border);
  margin-bottom: 1.2em;
}

.team-card h3 {
  color: #ffffff;
  font-size: 1em;
  font-weight: 600;
  margin-bottom: 0.3em;
}

.team-card .role {
  color: var(--accent);
  font-size: 0.78em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.team-card.mascot {
  border-style: dashed;
  border-color: rgba(0,229,204,0.2);
}

.team-card.mascot h3 {
  color: var(--text-muted);
  font-style: italic;
}

/* ---- Technology section ---- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2em;
  margin: 2.5em 0;
}

.process-step {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2.5em 2em;
  min-width: 0;
  overflow-wrap: break-word;
}

.process-step .step-num {
  color: var(--accent);
  font-size: 2em;
  font-weight: 700;
  display: block;
  margin-bottom: 0.4em;
}

.process-step h3 {
  color: #ffffff;
  font-size: 1.05em;
  margin-bottom: 0.7em;
}

.process-step p {
  color: var(--text-muted);
  font-size: 0.9em;
  line-height: 1.7;
}

/* ---- Benefits grid ---- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5em;
  max-width: 1100px;
  margin: 2em auto 0;
}

.benefit-card {
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 2.5em 2em;
  min-width: 0;
  overflow-wrap: break-word;
  border-left: 3px solid var(--accent);
}

.benefit-card h3 {
  color: #ffffff;
  font-size: 1.05em;
  margin-bottom: 0.7em;
}

.benefit-card p {
  color: var(--text-muted);
  font-size: 0.9em;
  line-height: 1.75;
}

/* ---- Investor badge ---- */
.investor-section {
  text-align: center;
  padding: 3em 2em;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.investor-badge {
  display: inline-block;
  background: linear-gradient(135deg, #1a0f2e, #0d1628);
  border: 1px solid rgba(94,64,230,0.5);
  border-radius: 10px;
  padding: 1.5em 3em;
  margin-top: 1em;
}

.investor-badge span {
  display: block;
  color: #ffffff;
  font-size: 1.2em;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.investor-badge small {
  color: rgba(255,255,255,0.5);
  font-size: 0.75em;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ---- Contact form section ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4em;
  max-width: 960px;
  margin: 0 auto;
}

/* ---- Legal pages ---- */
.legal-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 2em 0;
}

.legal-content h2 {
  color: var(--accent);
  font-size: 1.3em;
  margin: 2.5em 0 0.8em;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.5em;
}

.legal-content h3 {
  color: #ffffff;
  font-size: 1.05em;
  margin: 1.5em 0 0.5em;
}

.legal-content p {
  margin-bottom: 1em;
  color: rgba(255,255,255,0.7);
}

.legal-content ul {
  list-style: disc;
  margin: 0.8em 0 1em 2em;
}

.legal-content ul li {
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.4em;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}

.legal-content table th {
  background: var(--bg-card);
  color: #ffffff;
  padding: 0.8em 1em;
  text-align: left;
  font-weight: 600;
  font-size: 0.85em;
}

.legal-content table td {
  padding: 0.7em 1em;
  color: rgba(255,255,255,0.65);
  font-size: 0.85em;
  border-bottom: 1px solid var(--border-light);
}

/* ---- About mission section ---- */
.mission-section {
  background: linear-gradient(135deg, #070d1a 0%, #0d1628 100%);
  padding: 5em 2em;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5em;
  max-width: 1100px;
  margin: 2.5em auto 0;
}

.value-card {
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 2.5em;
  min-width: 0;
  overflow-wrap: break-word;
  display: flex;
  flex-direction: column;
}

.value-card h3 {
  color: var(--accent);
  font-size: 1em;
  margin-bottom: 0.7em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.value-card p {
  color: var(--text-muted);
  line-height: 1.8;
  flex: 1;
}

/* ---- Cookie Consent Banner ---- */
#cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(7, 13, 26, 0.97);
  border-top: 1px solid var(--border);
  padding: 1.2em 2em;
  flex-wrap: wrap;
  align-items: center;
  gap: 1em;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.5);
}

#cookie-banner p {
  color: rgba(255,255,255,0.8);
  font-size: 0.88em;
  margin: 0;
  flex: 1;
  min-width: 250px;
}

#cookie-banner a {
  color: var(--accent);
  text-decoration: underline;
}

#cookie-banner .cookie-btns {
  display: flex;
  gap: 0.8em;
  flex-shrink: 0;
}

#cookie-accept {
  background: var(--accent);
  color: #000;
  border: none;
  padding: 0.6em 1.6em;
  border-radius: 6px;
  font-size: 0.85em;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.05em;
}

#cookie-decline {
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.6em 1.4em;
  border-radius: 6px;
  font-size: 0.85em;
  cursor: pointer;
}

#cookie-accept:hover { background: #00c8b0; }
#cookie-decline:hover { border-color: rgba(255,255,255,0.5); color: #fff; }

/* ---- Responsive ---- */
@media screen and (max-width: 768px) {
  .process-steps,
  .benefits-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

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

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* === Page Background Images === */
/* index.html - hero */
body.page-index #header {
  background-image: linear-gradient(rgba(7,13,26,0.45), rgba(7,13,26,0.60)), url('../../images/bg-hero.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-color: transparent !important;
}
/* about.html */
body.page-about #header {
  background-image: linear-gradient(rgba(7,13,26,0.45), rgba(7,13,26,0.60)), url('../../images/bg-about.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-color: transparent !important;
}
/* team.html */
body.page-team #header {
  background-image: linear-gradient(rgba(7,13,26,0.45), rgba(7,13,26,0.60)), url('../../images/bg-team.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-color: transparent !important;
}
/* contact.html */
body.page-contact #header {
  background-image: linear-gradient(rgba(7,13,26,0.45), rgba(7,13,26,0.60)), url('../../images/bg-contact.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-color: transparent !important;
}
/* legal pages (from legal/ subdirectory, path goes up one level) */
body.page-legal #header {
  background-image: linear-gradient(rgba(7,13,26,0.45), rgba(7,13,26,0.60)), url('../../images/bg-legal.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-color: transparent !important;
}