/* ============================================================
   AutoINTob, LLC — AI Workshop Landing Page
   styles.css
   ============================================================ */

/* === CUSTOM PROPERTIES ======================================= */
:root {
  /* --- Light theme colors --- */
  --bg:             #ffffff;
  --surface:        #f0f6ff;
  --text:           #1e2a3a;
  --text-muted:     #5a6a82;
  --heading-color:  #1651D4;
  --accent:         #2d6fe8;
  --border:         #d4e2f7;
  --nav-bg:         rgba(255, 255, 255, 0.96);
  --card-bg:        #f0f6ff;
  --btn-bg:         #1651D4;
  --btn-text:       #ffffff;
  --btn-hover-bg:   #1244b8;
  --pricing-bg:     #1651D4;
  --pricing-text:   #ffffff;
  --focus-ring:     #1651D4;
  --wave-opacity:   1;
  /* Raw RGB values for rgba() usage */
  --shadow-rgb:     22, 81, 212;

  /* --- Typography --- */
  --font:     'Poppins', system-ui, -apple-system, sans-serif;

  /* --- Layout --- */
  --nav-h:    60px;
  --container: 1140px;
  --radius:   14px;
  --radius-sm: 8px;
  --section-py: 5rem;
}

[data-theme="dark"] {
  --bg:             #080d1a;
  --surface:        #0f1829;
  --text:           #c8d5ee;
  --text-muted:     #7b8faa;
  --heading-color:  #4D8DFF;
  --accent:         #5a9aff;
  --border:         #1c2d48;
  --nav-bg:         rgba(8, 13, 26, 0.96);
  --card-bg:        #0f1829;
  --btn-bg:         #4D8DFF;
  --btn-text:       #080d1a;
  --btn-hover-bg:   #6aa3ff;
  --pricing-bg:     #0f1d3a;
  --pricing-text:   #c8d5ee;
  --focus-ring:     #4D8DFF;
  --wave-opacity:   0.3;
  --shadow-rgb:     77, 141, 255;
}

/* === RESET & BASE ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s ease, color 0.25s ease;
}

img, svg { display: block; max-width: 100%; }

ul { list-style: none; }

a { color: var(--heading-color); }

/* Visible focus states (WCAG AA) */
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Scroll offset to clear sticky nav */
section { scroll-margin-top: calc(var(--nav-h) + 8px); }

/* === TYPOGRAPHY ============================================== */
h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--heading-color);
  line-height: 1.2;
}

.section-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--heading-color);
  margin-bottom: 0.75rem;
}

/* === LAYOUT ================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: var(--section-py) 0; }

/* === NAVIGATION ============================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.25rem;
}

.nav-brand {
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading-color);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  display: block;
  padding: 0.4rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--heading-color);
  background: var(--surface);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Theme toggle button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  color: var(--text-muted);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--surface);
  color: var(--heading-color);
  border-color: var(--accent);
}

.theme-toggle svg { pointer-events: none; flex-shrink: 0; }

/* Hide moon in dark mode, show sun; vice versa in light */
.icon-sun  { display: none; }
.icon-moon { display: block; }
[data-theme="dark"] .icon-sun  { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

/* Hamburger button (mobile only) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-hamburger:hover { background: var(--surface); }

.hamburger-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-hamburger[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.nav-hamburger[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* === HERO ==================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 6.5rem 0 5.5rem;
  background: var(--bg);
  min-height: 88vh;
  display: flex;
  align-items: center;
}

.hero-waves {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: var(--wave-opacity);
  transition: opacity 0.25s ease;
}

.hero-wave {
  position: absolute;
}

.hero-wave--tr {
  top: -30px;
  right: -50px;
}

.hero-wave--bl {
  bottom: -20px;
  left: -50px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  line-height: 1.08;
  color: var(--heading-color);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.hero-company {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 2.25rem;
  max-width: 520px;
  line-height: 1.75;
}

/* === BUTTONS ================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  line-height: 1;
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-text);
  box-shadow: 0 4px 24px rgba(var(--shadow-rgb), 0.35);
}

.btn-primary:hover {
  background: var(--btn-hover-bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(var(--shadow-rgb), 0.45);
  color: var(--btn-text);
}

.btn-primary:active { transform: translateY(0); }

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* === OFFERINGS =============================================== */
#offerings { background: var(--surface); }

.offerings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.offering-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 2px 16px rgba(var(--shadow-rgb), 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.offering-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(var(--shadow-rgb), 0.13);
}

.card-meta {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--surface);
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.25rem 0.75rem;
  width: fit-content;
}

.offering-card h3 {
  font-size: 1.1rem;
  color: var(--heading-color);
  line-height: 1.3;
}

.offering-card > ul {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: var(--text);
  flex: 1;
}

.offering-card > ul li {
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.5;
}

.offering-card > ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.outcome {
  margin-top: auto;
  background: var(--surface);
  border-left: 3px solid var(--heading-color);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.75rem 0.9rem;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.55;
}

.outcome strong {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--heading-color);
  font-style: normal;
  margin-bottom: 0.3rem;
}

/* === DELIVERY ================================================ */
#delivery { background: var(--bg); }

.delivery-intro {
  font-size: 1.05rem;
  color: var(--text);
  max-width: 680px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.delivery-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.delivery-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.delivery-card-icon {
  width: 42px;
  height: 42px;
  background: var(--btn-bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 0.25rem;
  flex-shrink: 0;
}

.delivery-card h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--heading-color);
}

.delivery-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* === PRICING ================================================= */
#pricing { background: var(--surface); }

.pricing-panel {
  margin-top: 2.5rem;
  background: var(--pricing-bg);
  border-radius: var(--radius);
  padding: 3rem 3.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: 0 8px 56px rgba(var(--shadow-rgb), 0.28);
  border: 1px solid var(--border);
  transition: background 0.25s ease;
}

.pricing-left { flex: 1; min-width: 240px; }

.pricing-headline {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

[data-theme="dark"] .pricing-headline { color: var(--heading-color); }

.pricing-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-bottom: 0;
}

[data-theme="dark"] .pricing-sub { color: var(--text-muted); }

.pricing-details {
  flex: 1.5;
  min-width: 260px;
}

.pricing-details ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pricing-details li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.5;
}

[data-theme="dark"] .pricing-details li { color: var(--text); }

.pricing-details li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: rgba(255,255,255,0.7);
}

[data-theme="dark"] .pricing-details li svg { color: var(--accent); }

.pricing-cta { align-self: center; }

.pricing-cta .btn-primary {
  background: #ffffff;
  color: var(--btn-bg);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.pricing-cta .btn-primary:hover {
  background: #eef3ff;
  color: var(--btn-hover-bg);
}

[data-theme="dark"] .pricing-cta .btn-primary {
  background: var(--heading-color);
  color: var(--bg);
}

[data-theme="dark"] .pricing-cta .btn-primary:hover {
  background: var(--btn-hover-bg);
}

/* === ABOUT ================================================== */
#about { background: var(--bg); }

.about-lead {
  font-size: 1.05rem;
  color: var(--text);
  max-width: 660px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.about-points {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 680px;
}

.about-point {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.about-point:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(var(--shadow-rgb), 0.08);
}

.about-point-icon {
  width: 40px;
  height: 40px;
  background: rgba(var(--shadow-rgb), 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--heading-color);
}

.about-point-text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
  padding-top: 0.1rem;
}

/* === CONTACT ================================================= */
#contact { background: var(--surface); }

.contact-intro {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 560px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.65fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-link-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--heading-color);
  text-decoration: none;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  word-break: break-all;
}

.contact-link-item:hover {
  border-color: var(--accent);
  background: var(--card-bg);
  transform: translateX(3px);
}

.contact-link-item svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--accent);
}

/* Form wrapper */
.contact-form-wrap {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 2px 16px rgba(var(--shadow-rgb), 0.07);
}

/* Airtable embed */
.airtable-wrap {
  padding: 0;
  overflow: hidden;
  position: relative;
}

.airtable-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.88rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.airtable-embed {
  position: relative;
  z-index: 1;
  display: block;
  border: 0;
  width: 100%;
  height: 750px;
}

/* === FOOTER ================================================== */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-inner p,
.footer-inner a {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-inner a:hover { color: var(--heading-color); }

/* === RESPONSIVE ============================================== */
@media (max-width: 767px) {
  :root { --section-py: 3.5rem; }

  .nav-hamburger { display: flex; }

  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.5rem 1.25rem;
    gap: 0;
    display: none;
    justify-content: flex-start;
  }

  .nav-links.is-open { display: flex; }

  .nav-links a {
    padding: 0.65rem 0.5rem;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
  }

  .hero {
    padding: 4.5rem 0 3.5rem;
    min-height: auto;
  }

  .hero h1 { font-size: 2.2rem; }

  .pricing-panel { padding: 2rem 1.5rem; }

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

  .airtable-embed { height: 900px; }

  .delivery-cards { grid-template-columns: 1fr; }

  .hero-wave--tr { width: 260px; right: -30px; }
  .hero-wave--bl { width: 220px; left: -30px; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .contact-grid { grid-template-columns: 1fr; }

  .pricing-panel { padding: 2.5rem 2rem; }

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

@media (min-width: 1024px) {
  .offerings-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
