/* style.css — HiTech Hawaiian AI Tropical Design System */

/* ── Design Tokens ─────────────────────────────────── */
:root {
  /* Type Scale (fluid) */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);

  /* Spacing (4px base) */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Tropical Palette — Hawaiian Ocean & Sun */
  --color-bg:             #ffffff;
  --color-surface:        #f8fbfd;
  --color-surface-2:      #eef6fa;
  --color-surface-offset: #e4f1f7;
  --color-divider:        #c8dfe9;
  --color-border:         #b0d0de;

  /* Text */
  --color-text:           #1a2e3a;
  --color-text-muted:     #5a7a8a;
  --color-text-faint:     #93b0be;
  --color-text-inverse:   #ffffff;

  /* Primary — Brand Blue */
  --color-primary:        #0284C7;
  --color-primary-hover:  #0369A1;
  --color-primary-active: #075985;

  /* Secondary — Deep Navy */
  --color-secondary:      #0C395E;
  --color-secondary-hover:#0a2e4d;
  --color-secondary-active:#07203a;

  /* Accent — Golden Amber */
  --color-accent:         #F5A623;
  --color-accent-hover:   #e09010;
  --color-accent-active:  #c47d0a;

  /* Semantic */
  --color-success:        #2e8b57;
  --color-error:          #d14545;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows (brand-tinted) */
  --shadow-sm: 0 1px 3px rgba(2, 132, 199, 0.06);
  --shadow-md: 0 4px 14px rgba(2, 132, 199, 0.08);
  --shadow-lg: 0 12px 36px rgba(2, 132, 199, 0.12);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;

  /* Fonts */
  --font-display: 'Clash Display', 'Arial Black', sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
}


/* ── Typography ────────────────────────────────────── */

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--color-text);
}

h1 { font-size: var(--text-2xl); font-weight: 600; }
h2 { font-size: var(--text-xl); font-weight: 600; }
h3 { font-size: var(--text-lg); font-weight: 600; }

p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover {
  color: var(--color-primary-hover);
}


/* ── Layout ────────────────────────────────────────── */

.container {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.container--narrow {
  max-width: var(--content-narrow);
}

.container--wide {
  max-width: var(--content-wide);
}

section {
  padding-block: clamp(var(--space-12), 6vw, var(--space-24));
}


/* ── Buttons ───────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  border: none;
  line-height: 1.4;
  min-height: 48px;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-accent);
  color: #1a2e3a;
  box-shadow: 0 2px 8px rgba(245, 166, 35, 0.3);
}
.btn--primary:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 4px 16px rgba(245, 166, 35, 0.4);
  transform: translateY(-1px);
  color: #1a2e3a;
}
.btn--primary:active {
  background: var(--color-accent-active);
  transform: translateY(0);
}

.btn--secondary {
  background: rgba(255,255,255, 0.15);
  color: var(--color-text-inverse);
  border: 2px solid rgba(255,255,255, 0.4);
  backdrop-filter: blur(4px);
}
.btn--secondary:hover {
  background: rgba(255,255,255, 0.25);
  border-color: rgba(255,255,255, 0.6);
  color: var(--color-text-inverse);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}


/* ── Header / Nav ──────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-divider);
  padding: var(--space-3) 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}

.logo-group svg {
  flex-shrink: 0;
}

.nav-logo {
  height: 44px;
  width: auto;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .nav-logo {
    height: 52px;
  }
}

.logo-text {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
}

.logo-tagline {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 400;
}

.nav-links {
  display: none;
  list-style: none;
  gap: var(--space-6);
  align-items: center;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
}
.nav-links a:hover {
  color: var(--color-primary);
}

.nav-cta {
  display: none;
}
@media (min-width: 768px) {
  .nav-cta {
    display: inline-flex;
  }
}

/* Mobile hamburger */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--color-text);
}
@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  top: 60px;
  background: rgba(255,255,255, 0.97);
  backdrop-filter: blur(20px);
  z-index: 99;
  padding: var(--space-8) var(--space-5);
}

.mobile-nav.open {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.mobile-nav a {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
}


/* ── Hero Banner (full-width image) ────────────────── */

.hero-banner {
  padding: 0;
  width: 100%;
  background: #0C395E;
}

.hero-banner-img {
  display: block;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  height: auto;
  object-fit: contain;
}

/* ── Hero Text (below banner) ─────────────────────── */

.hero-text {
  background: linear-gradient(180deg, #0C395E 0%, var(--color-primary) 100%);
  color: var(--color-text-inverse);
  text-align: center;
  padding-block: clamp(var(--space-10), 6vw, var(--space-16));
}

.hero-text h1 {
  font-size: var(--text-2xl);
  color: var(--color-text-inverse);
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: var(--space-4);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.hero-text .subtext {
  font-size: var(--text-lg);
  color: rgba(255,255,255, 0.9);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
  font-weight: 400;
}

.hero-text .btn--primary {
  font-size: var(--text-base);
  padding: var(--space-4) var(--space-8);
}


/* ── Video Section ─────────────────────────────────── */

.video-section {
  background: var(--color-bg);
  text-align: center;
}

.video-section h2 {
  margin-bottom: var(--space-2);
}

.video-section .section-sub {
  margin-bottom: var(--space-8);
}

.video-wrapper {
  max-width: 360px;
  margin-inline: auto;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
}

.video-wrapper video {
  width: 100%;
  display: block;
}

@media (max-width: 480px) {
  .video-wrapper {
    max-width: 280px;
  }
}


/* ── Features / What We Automate ───────────────────── */

.features {
  background: var(--color-surface);
}

.features h2 {
  text-align: center;
  margin-bottom: var(--space-2);
}

.features .section-sub {
  text-align: center;
  max-width: 540px;
  margin-inline: auto;
  margin-bottom: var(--space-10);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  max-width: 800px;
  margin-inline: auto;
}

@media (min-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-card {
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-divider);
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin-inline: auto;
  margin-bottom: var(--space-4);
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.feature-card h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
}

.feature-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}


/* ── How It Works ──────────────────────────────────── */

.how-it-works {
  background: var(--color-bg);
}

.how-it-works h2 {
  text-align: center;
  margin-bottom: var(--space-10);
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  max-width: 800px;
  margin-inline: auto;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-inline: auto;
  margin-bottom: var(--space-4);
}

.step h3 {
  margin-bottom: var(--space-2);
}

.step p {
  font-size: var(--text-sm);
  margin-inline: auto;
}

/* Connector lines on desktop */
@media (min-width: 640px) {
  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 24px;
    left: calc(50% + 32px);
    width: calc(100% - 64px);
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-divider));
    opacity: 0.4;
  }
}


/* ── CTA / Audit Section ──────────────────────────── */

.audit-section {
  background: linear-gradient(135deg, var(--color-primary), #0C395E);
  color: var(--color-text-inverse);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.audit-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 50% at 70% 30%, rgba(245, 166, 35, 0.12), transparent);
  pointer-events: none;
}

.audit-section .container {
  position: relative;
  z-index: 1;
}

.audit-section h2 {
  color: var(--color-text-inverse);
  margin-bottom: var(--space-4);
}

.audit-section p {
  color: rgba(255,255,255, 0.9);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
  font-size: var(--text-base);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

.cta-buttons .btn {
  min-width: 200px;
}


/* ── Intake Form Section ───────────────────────────── */

.intake-section {
  background: var(--color-surface);
}

.intake-section h2 {
  text-align: center;
  margin-bottom: var(--space-2);
}

.intake-section .section-sub {
  text-align: center;
  margin-bottom: var(--space-8);
}

.intake-form {
  max-width: 600px;
  margin-inline: auto;
  background: var(--color-bg);
  padding: var(--space-6) var(--space-5);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-divider);
}

@media (min-width: 640px) {
  .intake-form {
    padding: var(--space-8);
  }
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

/* Radio groups */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.radio-option {
  position: relative;
}

.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-option label {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  margin-bottom: 0;
  white-space: nowrap;
}

.radio-option input[type="radio"]:checked + label {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}

.radio-option input[type="radio"]:focus-visible + label {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.form-submit {
  text-align: center;
  margin-top: var(--space-8);
}

.form-submit .btn {
  width: 100%;
  max-width: 320px;
  font-size: var(--text-base);
  padding: var(--space-4) var(--space-8);
}

/* Success message */
.form-success {
  display: none;
  text-align: center;
  padding: var(--space-8) var(--space-4);
}

.form-success.show {
  display: block;
}

.form-success .check-icon {
  width: 64px;
  height: 64px;
  margin-inline: auto;
  margin-bottom: var(--space-4);
  background: linear-gradient(135deg, var(--color-success), #3da564);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.form-success h3 {
  color: var(--color-success);
  margin-bottom: var(--space-2);
}

.form-success p {
  max-width: 420px;
  margin-inline: auto;
}


/* ── Footer ────────────────────────────────────────── */

.site-footer {
  background: var(--color-text);
  color: rgba(255,255,255, 0.8);
  padding: var(--space-10) 0 var(--space-6);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: white;
  text-decoration: none;
}

.footer-logo .logo-text {
  color: white;
}

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

.footer-tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--text-sm);
  color: rgba(255,255,255, 0.6);
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

.footer-contact a {
  color: rgba(255,255,255, 0.8);
  font-size: var(--text-sm);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.footer-contact a:hover {
  color: var(--color-accent);
}

.footer-serving {
  font-size: var(--text-xs);
  color: rgba(255,255,255, 0.5);
}

.footer-bottom {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255,255,255, 0.1);
  font-size: var(--text-xs);
  color: rgba(255,255,255, 0.4);
}

.footer-bottom a {
  color: rgba(255,255,255, 0.5);
  text-decoration: underline;
}
.footer-bottom a:hover {
  color: rgba(255,255,255, 0.8);
}


/* ── Section utility ───────────────────────────────── */

.section-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.text-center {
  text-align: center;
}


/* ── Scroll reveal animation ───────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}
