:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --black: #111827;
  --gray: #6b7280;
  --gray-light: #e5e7eb;
  --white: #ffffff;
  --bg-main: #f5f5f7;
  --radius-lg: 18px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.2);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-main);
  color: var(--black);
}

/* Layout helpers */

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.section {
  padding: 4rem 0;
}

.section-light {
  background: #fff7ed;   /* very light orange */
}

.section-dark {
  background: #111827;
  color: var(--white);
}

/* HEADER */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
}

/* Logo */

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-img {
  height: 46px;
  width: auto;
}

.logo-title {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--black);
}

.logo-subtitle {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
}

/* Nav */

.nav {
  display: flex;
  gap: 1.4rem;
  align-items: center;
}

.nav a {
  text-decoration: none;
  font-size: 0.9rem;
  color: #374151;
  font-weight: 500;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 100%;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease-out;
}

.nav a:hover::after {
  transform: scaleX(1);
}

/*ERROR TEXT*/

.error-text {
  display: none;
  color: #dc2626;           /* red */
  font-size: 0.8rem;
  margin-top: 4px;
}

/* Show error only when input is invalid AND user has typed */
input:invalid:not(:placeholder-shown) + .error-text {
  display: block;
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.2rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: #111827;
  transition: transform 0.2s, opacity 0.2s;
}

/* HERO */

.hero {
  position: relative;
  padding: 4rem 0 4.5rem;
  background: transparent;          /* let the gradient show */
  overflow: hidden;
  color: #f9fafb;
}

.hero-bg-shape {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at top left, #fed7aa 0%, #f97316 30%, #ea580c 55%, #111827 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-left {
  color: #f9fafb;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  color: #fef3c7;
  background: rgba(15, 23, 42, 0.2);
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.15rem, 4vw, 2.8rem);
  line-height: 1.15;
  color: #f9fafb;
}

.hero-text {
  margin: 0 0 1.5rem;
  color: #fef9c3;          /* soft yellowish white */
  max-width: 30rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.hero-strip {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.14);
  color: #fef3c7;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-strip img {
  height: 42px;
  width: auto;
  background: #ffffff;
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
}

/* Hero right */

.hero-right {
  display: grid;
  gap: 0.9rem;
  justify-items: end;
}

.hero-image-card {
  max-width: 340px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(248, 250, 252, 0.6);
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-small-card {
  max-width: 160px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(248, 250, 252, 0.7);
  background: #ffffff;
}

.hero-small-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, border-color 0.16s, transform 0.08s;
}

.btn-primary {
  background: #111827;
  color: #fef3c7;
}

.btn-primary:hover {
  background: #020617;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: #111827;
  color: #111827;
}

.btn-outline:hover {
  background: #111827;
  color: #fef3c7;
}

.btn-full {
  width: 100%;
}

/* Disabled button state */
.btn:disabled,
button:disabled {
  background: #e5e7eb;        /* light gray */
  color: #9ca3af;             /* muted text */
  border-color: #e5e7eb;
  cursor: not-allowed;
  transform: none;
}

/* Disable hover & active effects when disabled */
.btn:disabled:hover,
button:disabled:hover {
  background: #e5e7eb;
  color: #9ca3af;
  transform: none;
}

/* Section headers */

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-header-left {
  text-align: left;
  margin-left: 0;
}

.section-header h2 {
  margin: 0 0 0.3rem;
  font-size: 1.8rem;
}

.section-header p {
  margin: 0;
  color: var(--gray);
}

.section-dark .section-header p {
  color: #e5e7eb;
}

/* ABOUT */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 2.5rem;
  align-items: center;
}

.about-text p {
  color: var(--gray);
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
  margin-top: 1.6rem;
}

.about-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.about-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.about-image-card {
  max-width: 360px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: #000000;
}

.about-image-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* SERVICES */

.section-light {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.services-banner {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.services-banner img {
  height: 120px;
  width: auto;
  border-radius: 999px;
  background: #fff7ed;
  padding: 0.7rem 1.4rem;
  box-shadow: 0 16px 40px rgba(248, 113, 22, 0.4);
}

.grid {
  display: grid;
  gap: 1.6rem;
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 10px 26px rgba(148, 163, 184, 0.15);
}

.service-card p {
  color: var(--gray);
}

.service-card ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
}

.service-card li {
  color: var(--gray);
  margin-bottom: 0.35rem;
}

/* WHY AEGIS */

.why-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card-dark {
  background: #111827;
  border-color: rgba(148, 163, 184, 0.4);
  color: #e5e7eb;
}

.card-dark ul {
  padding-left: 1.1rem;
}

.card-dark li {
  margin-bottom: 0.35rem;
}

/* FACTS */

.facts-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.fact-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.15);
}

.fact-label {
  display: inline-flex;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: #fff7ed;
  color: var(--orange-dark);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

/* CONTACT */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr);
  gap: 2.2rem;
  align-items: flex-start;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  color: var(--gray);
}

.contact-list li {
  margin-bottom: 0.5rem;
}

.contact-list a {
  color: var(--orange-dark);
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

/* Form */

.contact-form {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.9rem;
}

label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #4b5563;
}

input,
select,
textarea {
  border-radius: 10px;
  border: 1px solid #d1d5db;
  padding: 0.55rem 0.65rem;
  font: inherit;
  outline: none;
  background: #f9fafb;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.25);
  background: #ffffff;
}

/* FOOTER */

.footer {
  background: #0b1120;
  color: #9ca3af;
  padding: 1.3rem 0 1.5rem;
  margin-top: 1rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.82rem;
}

.footer-sub {
  color: #e5e7eb;
}

/* RESPONSIVE */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero {
    padding-top: 3.4rem;
  }
  .about-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-right {
    justify-items: start;
  }
}

@media (max-width: 768px) {
  .nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: #ffffff;
    border-bottom: 1px solid rgba(148, 163, 184, 0.4);
    flex-direction: column;
    align-items: flex-start;
    padding: 0.7rem 1.5rem 1rem;
    gap: 0.8rem;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.16s ease-out, opacity 0.16s ease-out;
  }

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

  .nav-toggle {
    display: block;
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-bg-shape {
    background: linear-gradient(150deg, #f97316 0%, #f97316 70%, #ffffff 70%, #ffffff 100%);
  }
}

/* Mobile nav icon animation */

.nav-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}