/* ==========================================================================
   Watch Tower Digital Management - Design System & Stylesheet
   Brand Palette (The Beacon Protocol):
   - Primary: Steel Blue (#3A86EF)
   - Secondary / Border: Slate Silver (#D1D5DB)
   - Background Dark: Jet Black (#111827)
   - Surface / Cards: Dark Charcoal (#1F2937)
   - Accent / Highlight: Electric Blue (#60A5FA)
   - Text Light: Crisp White (#F9FAFB)
   - Text Muted: Silver Gray (#9CA3AF)
   ========================================================================== */

/* --- CSS Variables / Design Tokens --- */
:root {
  --color-primary: #3A86EF;
  --color-primary-hover: #2563EB;
  --color-accent: #60A5FA;
  --color-bg-dark: #111827;
  --color-surface: #1F2937;
  --color-surface-hover: #374151;
  --color-border: #374151;
  --color-border-light: #4B5563;
  --color-text-main: #F9FAFB;
  --color-text-muted: #9CA3AF;
  --color-slate-silver: #D1D5DB;

  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --max-width: 1200px;
  --max-width-narrow: 800px;
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 25px rgba(58, 134, 239, 0.25);

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base Reset & Typography --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg-dark);
  color: var(--color-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Layout Containers & Spacing --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  width: 100%;
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

.hero-home {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.58) 0%, rgba(17, 24, 39, 0.38) 42%, rgba(17, 24, 39, 0.18) 100%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.18) 0%, rgba(17, 24, 39, 0.48) 100%),
    url('assets/hero-tower-left.png') left center / cover no-repeat;
}

.hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.74) 0%, rgba(17, 24, 39, 0.44) 48%, rgba(17, 24, 39, 0.12) 100%);
}

.hero-home .container-narrow {
  position: relative;
  z-index: 1;
}

/* --- Header & Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: 22px 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo img {
  height: 66px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand-beacon-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  box-shadow: var(--shadow-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--color-slate-silver);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--color-primary);
}

.nav-links a.header-phone {
  color: var(--color-slate-silver);
  white-space: nowrap;
  font-weight: 600;
}

.nav-links a.header-phone:hover {
  color: var(--color-accent);
}

.footer-contact {
  color: var(--color-accent);
  text-decoration: none;
  line-height: 1.8;
}

.footer-contact:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(58, 134, 239, 0.35);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(58, 134, 239, 0.5);
}

.btn-secondary {
  background-color: var(--color-surface);
  color: var(--color-text-main);
  border-color: var(--color-border-light);
}

.btn-secondary:hover {
  background-color: var(--color-surface-hover);
  border-color: var(--color-slate-silver);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

/* "Hot" urgent/prominent CTA — draws the eye (Rapid AI Enablement) */
.btn-hot {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.45);
}
.btn-hot:hover {
  background: linear-gradient(135deg, #f87171, #ef4444);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(239, 68, 68, 0.6);
}

/* --- Typography Helpers --- */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-muted { color: var(--color-text-muted); }

.section-tag {
  display: inline-block;
  padding: 6px 14px;
  background-color: rgba(58, 134, 239, 0.15);
  color: var(--color-accent);
  border: 1px solid rgba(58, 134, 239, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 650px;
  margin: 0 auto 48px auto;
}

/* --- Cards & Grid --- */
.grid {
  display: grid;
  gap: 32px;
}

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

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

.card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

/* --- Form Elements --- */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 8px;
}

.form-sublabel {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.check-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 18px;
  background-color: rgba(17, 24, 39, 0.55);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
}
.check-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--color-text-main);
  cursor: pointer;
}
.check-group input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  background-color: rgba(17, 24, 39, 0.8);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  color: var(--color-text-main);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(58, 134, 239, 0.25);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-section-header {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 12px;
  margin: 40px 0 24px 0;
  color: var(--color-accent);
  font-size: 1.2rem;
  font-weight: 700;
}

/* --- Footer --- */
.site-footer {
  margin-top: auto;
  background-color: #0B0F17;
  border-top: 1px solid var(--color-border);
  padding: 40px 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

/* --- Mobile / Responsive Optimization --- */
@media (max-width: 900px) {
  section { padding: 48px 0; }
  
  .section-title { 
    font-size: 1.85rem; 
  }
  
  .header-container { 
    flex-direction: column; 
    gap: 16px; 
    padding: 0 16px;
    align-items: center;
  }

  .brand-logo img {
    height: 56px;
    max-width: 100%;
  }

  .nav-links { 
    gap: 12px; 
    flex-wrap: wrap; 
    justify-content: center; 
    width: 100%;
  }

  .nav-links a {
    font-size: 0.875rem;
    padding: 6px 10px;
  }

  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card {
    padding: 24px 20px;
  }

  .btn {
    width: 100%;
    padding: 14px 20px;
  }

  .footer-container { 
    flex-direction: column; 
    text-align: center; 
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .section-title { font-size: 1.6rem; }
  .brand-logo img { height: 48px; }
  .form-control { font-size: 16px; } /* Prevents iOS auto-zoom on form focus */
}
