/* =========================================================
   MODERN SHELL — SAFE, SCOPED FOUNDATION
   Applies ONLY when .modern-shell is present
========================================================= */

.modern-shell {
  /* Theme tokens */
  --bg: #020617;
  --panel: #0b1220;
  --border: #1e293b;
  --accent: #38bdf8;
  --accent-soft: rgba(56,189,248,0.12);
  --success: #22c55e;
  --muted: #94a3b8;
  --white: #f8fafc;

  background: var(--bg);
  color: var(--white);
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
}

/* =========================================================
   NAVIGATION
========================================================= */

.modern-shell .modern-nav {
  background: rgba(2,6,23,0.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(148,163,184,0.15);
}

.modern-shell .modern-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

/* Brand */
.modern-shell .modern-brand {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.modern-shell .modern-brand a {
  color: var(--white);
  text-decoration: none;
}

.modern-shell .modern-brand .light { font-weight: 300; }
.modern-shell .modern-brand .dark  { font-weight: 800; }

/* Links */
.modern-shell .modern-nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.modern-shell .modern-nav a {
  color: #cbd5f5;
  text-decoration: none;
  font-weight: 600;
  line-height: 1;
}

.modern-shell .modern-nav a:hover {
  color: var(--accent);
}

/* CTA in nav */
.modern-shell .nav-cta {
  background: var(--accent);
  color: #020617 !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 800;
}

/* =========================================================
   DROPDOWN (robust + accessible)
========================================================= */

.modern-shell .dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

/* hover bridge */
.modern-shell .dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 10px;
  top: 100%;
  pointer-events: auto;
}

.modern-shell .dropbtn {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* menu */
.modern-shell .dropdown-content {
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  min-width: 280px;

  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  padding: 10px 0;
  z-index: 1000;

  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;

  transition:
    opacity 120ms ease,
    transform 120ms ease,
    visibility 120ms linear;
}

.modern-shell .dropdown:hover .dropdown-content,
.modern-shell .dropdown:focus-within .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.modern-shell .dropdown-content a {
  display: block;
  padding: 10px 16px;
  font-weight: 500;
  color: #cbd5f5;
  text-decoration: none;
  line-height: 1.2;
  user-select: none;
}

.modern-shell .dropdown-content a:hover {
  background: rgba(56,189,248,0.12);
  color: var(--accent);
}

/* Prevent selection in nav */
.modern-shell .modern-nav,
.modern-shell .modern-nav * {
  user-select: none;
}

/* =========================================================
   SECTION RHYTHM
========================================================= */

.modern-shell section {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

.modern-shell h1,
.modern-shell h2,
.modern-shell h3 {
  letter-spacing: -0.015em;
}

/* =========================================================
   FEATURE HERO
========================================================= */

.modern-feature-hero {
  padding: 60px 20px 40px;
  text-align: center;
  background: linear-gradient(
    180deg,
    var(--accent-soft),
    rgba(2,6,23,0)
  );
}

.modern-feature-hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.modern-feature-hero h1 {
  font-size: clamp(32px, 4vw, 44px);
  margin-bottom: 14px;
}

.modern-feature-sub {
  color: #cbd5f5;
  font-size: 1.1rem;
  line-height: 1.6;
} {

}

.hero-compact {
margin-left: 30px;
}

/* =========================================================
   FEATURE CONTENT
========================================================= */

.modern-feature-section {
  margin: 20px 40px 40px 40px;
}

.modern-feature-section h2 {
  margin-left: 20px;
}

.modern-feature-card {
  background: #6c6e74;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  margin-bottom: 28px;
  margin-left: 30px;
  margin-right: 30px;
}

.modern-feature-card h3 {
  margin-top: 0;
  color: var(--accent);
}

.modern-feature-card p {
  color: #cbd5f5;
}

/* =========================================================
   LISTS
========================================================= */

.modern-list {
  list-style: none;
  padding-left: 0;
}

.modern-list li {
  padding-left: 22px;
  position: relative;
  margin: 8px 0;
}

.modern-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--success);
}

/* =========================================================
   FEATURE VISUALS
========================================================= */

.feature-visual {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.feature-visual img {
  width: 100%;
  max-width: 520px;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}

/* =========================================================
   SPLIT LAYOUT (Voice / Visual pages)
========================================================= */

.feature-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 900px) {
  .feature-split {
    grid-template-columns: 1fr;
  }
}

/* Voice examples */
.voice-examples {
  margin-top: 16px;
  padding: 18px;
  border-left: 4px solid var(--accent);
  background: rgba(56,189,248,0.08);
  border-radius: 8px;
}

.voice-examples p {
  margin: 8px 0;
}

/* =========================================================
   PROCESS / STEP GRID (Residency etc.)
========================================================= */

.feature-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  margin-top: 30px;
}

.feature-step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  text-align: center;
}

.feature-step h4 {
  margin-top: 0;
  color: var(--accent);
}

/* =========================================================
   CTA
========================================================= */

.modern-shell .cta {
  text-align: center;
  padding: 80px 20px 120px;
}

.modern-shell .cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  background: #38bdf8;
  color: #020617;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
}

.modern-feature-cta {
  display: flex;
  justify-content: center;
  margin: 100px auto 60px;
}

.modern-shell .cta-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.modern-shell .modern-feature-cta {
  display: flex;
  justify-content: center;
}

/* =========================================================
   Highlight / Callout
========================================================= */

.modern-highlight {
  margin-top: 16px;
  padding: 16px 18px;
  border-left: 4px solid #38bdf8;
  background: rgba(56,189,248,0.08);
  border-radius: 8px;
  color: #cbd5f5;
  font-size: 0.95rem;
}

/* =========================================================
   Feature Card Grid
========================================================= */

.modern-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 40px;
  padding-left: 30px;
  padding-right:30px;
}

/* Contact Form Styling */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 20px;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}

.field input,
.field textarea {
  padding: 12px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
}

.field input:focus,
.field textarea:focus {
  border-color: #0074D9;
  outline: none;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

button[type="submit"] {
  background: #0074D9;
  color: white;
  padding: 14px 32px;
  font-size: 1rem;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

button[type="submit"]:hover {
  background: #005bb5;
}

.contact-note {
  background: #f1f8fd;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #e1e7f0;
  margin-top: 30px;
}

.contact-note h2 {
  font-size: 1.2rem;
  color: #004d99;
  margin-bottom: 12px;
}

.contact-note p {
  color: #666;
  font-size: 1rem;
}

.contact-note .muted {
  font-size: 0.9rem;
  color: #999;
}

.pill {
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  display: inline-block;
  margin-top: 20px;
}

.pill.ok {
  background: #28a745;
  color: white;
}

.pill.err {
  background: #dc3545;
  color: white;
}

.honeypot {
  display: none !important;
  visibility: hidden;
}


/* =========================================================
   FOOTER
========================================================= */

.modern-shell footer {
  margin-top: 120px;
  padding: 40px 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
}

/* Footer Styles */
.sac-footer {
  background-color: #003566; /* Dark background for contrast */
  color: white; /* Text color for readability */
  text-align: center;
  padding: 30px 20px;
  font-size: 0.9em;
}

.sac-footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Footer Text */
.footer-copy, .footer-owner {
  margin: 0;
  color: #d1d5db; /* Light text color for subtlety */
}

/* Footer Links */
.footer-links a, .footer-architecture a {
  color: #a3bffa; /* Light blue links for a fresh look */
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover, .footer-architecture a:hover {
  color: #ffffff; /* Highlight links on hover */
  text-decoration: underline; /* Underline on hover */
}

/* Footer Architecture Text */
.footer-architecture {
  margin-top: 20px;
  font-size: 1em;
  color: #d1d5db; /* Light gray for less emphasis */
}

/* Responsive Design: Adjust layout for mobile */
@media (max-width: 768px) {
  .footer-inner {
    padding: 0 15px;
  }
  
  .footer-links {
    font-size: 0.85em;
    margin-bottom: 10px;
  }
  
  .footer-architecture {
    font-size: 0.9em;
  }
}

.contact-link,
.contact-link:visited {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.4);
  text-underline-offset: 3px;
}

.contact-link:hover {
  color: #e5edff;
  text-decoration-color: rgba(229,237,255,0.8);
}

/* ==================================================
   Modern Form System
   ================================================== */

.modern-shell .modern-form {
  margin-top: 24px;
}

/* Grid layout (2-column desktop, 1-column mobile) */
.modern-shell .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
  margin-bottom: 18px;
}

@media (max-width: 720px) {
  .modern-shell .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Label styling */
.modern-shell .modern-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
}

/* Inputs, selects, textareas */
.modern-shell .modern-form input,
.modern-shell .modern-form select,
.modern-shell .modern-form textarea {
  width: 90%;
  padding: 12px 14px;
  font-size: 14px;
  color: #f8fafc;

  /* Much lighter field surface */
  background: rgba(30, 41, 59, 0.95); /* slate-800 */

  /* Clearly visible border */
  border: 1px solid rgba(203, 213, 225, 0.75); /* slate-300 */

  /* Inner edge for definition */
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);

  border-radius: 10px;
  outline: none;

  transition:
    border-color 120ms ease,
    background 120ms ease,
    box-shadow 120ms ease;
}

/* Placeholder */
.modern-shell .modern-form input::placeholder,
.modern-shell .modern-form textarea::placeholder {
  color: #94a3b8;
}

/* Focus state */
.modern-shell .modern-form input:focus,
.modern-shell .modern-form select:focus,
.modern-shell .modern-form textarea:focus {
  background: rgba(30, 41, 59, 1);

  border-color: var(--accent);

  box-shadow:
    0 0 0 3px rgba(56, 189, 248, 0.25),
    inset 0 0 0 1px rgba(56, 189, 248, 0.45);
}

.modern-shell .modern-form input:hover,
.modern-shell .modern-form select:hover,
.modern-shell .modern-form textarea:hover {
  border-color: rgba(226, 232, 240, 0.95); /* slate-200 */
}


.modern-shell .modern-form textarea {
  resize: vertical;
  min-height: 120px;
}


/* Select dropdown arrow polish */
.modern-shell .modern-form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #94a3b8 50%),
    linear-gradient(135deg, #94a3b8 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

/* Actions row */
.modern-shell .form-actions {
  margin-top: 26px;
  display: flex;
  justify-content: flex-start;
}

/* Subtle helper text */
.modern-shell .modern-form .muted {
  font-size: 13px;
  color: #94a3b8;
}


/* ===============================
   Form alerts
   =============================== */
.modern-shell .form-alert {
  margin: 18px 0 24px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
}

.modern-shell .form-alert.success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #bbf7d0;
}

.modern-shell .form-alert.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fecaca;
}

