/* =============================================
   SABINE TECHNOLOGY — styles.css
   ============================================= */

/* ---------- CSS Variables ---------- */
:root {
  --purple-deep:    #2d1b5e;
  --purple-mid:     #3b2470;
  --purple-nav:     #261550;
  --purple-accent:  #7c3aed;
  --purple-btn:     #7e3ff2;
  --lavender-bg:    #ede8f5;
  --white:          #ffffff;
  --text-dark:      #1a1a2e;
  --text-mid:       #2e2e3a;
  --footer-bg:      #e8e8ec;
  --contact-bg:     #261550;

  --font-display:   'Lato', sans-serif;
  --font-body:      'Lato', sans-serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

/* =============================================
   NAVBAR
   ============================================= */
.site-header {
  background: var(--purple-deep);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: 0.01em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--white);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s;
  position: relative;
  padding-bottom: 3px;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  padding: 40px 48px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  color: var(--white);
  text-align: center;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.hero-image-wrapper {
  width: 100%;
  max-width: 760px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.hero-image {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

/* =============================================
   SHARED SECTION LAYOUT
   ============================================= */
.section {
  width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 64px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.col-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: 0;
}

.col-text p {
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 400;
  color: var(--text-mid);
  line-height: 1.7;
  text-align: justify;
}

.col-text.text-right {
  text-align: right;
}

.col-text.text-right p {
  text-align: justify;
}

.col-text.text-left {
  text-align: left;
}

/* =============================================
   BODY 1 — Lavender Background Sections
   ============================================= */
.section-lavender {
  background: var(--lavender-bg);
  padding: 60px 0 80px;
}

/* blank column — holds space like the original screenshot */
.col-empty {
  min-height: 200px;
}

/* large vertical gap between the two rows in Body 1, matching screenshot */
.acoustic-sub {
  margin-top: 200px;
}

/* =============================================
   BODY 2 — White Background
   ============================================= */
.section-white {
  background: var(--white);
  padding: 80px 0;
}

.body-only {
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 400;
  color: var(--text-mid);
  line-height: 1.7;
  text-align: justify;
}

/* =============================================
   BODY 3 — Contact Section
   ============================================= */
.section-contact {
  background: var(--contact-bg);
  padding: 70px 24px 80px;
}

.contact-inner {
  max-width: 480px;
  margin: 0 auto;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  text-align: center;
  margin-bottom: 44px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--white);
}

.required {
  color: #ff0000;
  margin-left: 1px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: #f7f5ff;
  border: none;
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dark);
  outline: none;
  transition: box-shadow 0.2s;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa;
}

.form-group input:focus,
.form-group textarea:focus {
  box-shadow: 0 0 0 2px var(--purple-accent);
}

/* Error message — hidden by default, shown via JS */
.field-error {
  display: none;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  color: #f87171;
  margin-top: 2px;
}

.field-error.visible {
  display: block;
}

/* Red border on invalid fields */
.form-group input.input-error,
.form-group textarea.input-error {
  box-shadow: 0 0 0 2px #f87171;
}

.form-submit {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.submit-btn {
  background: var(--purple-btn);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 52px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s;
}

.submit-btn:hover {
  background: #6d28d9;
  transform: translateY(-1px);
}

.submit-btn:active {
  transform: translateY(0);
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--footer-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
}

.footer-linkedin {
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--text-dark);
  text-decoration: none;
  font-style: italic;
  letter-spacing: -0.03em;
  transition: opacity 0.2s;
}

.footer-linkedin:hover {
  opacity: 0.6;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .navbar {
    padding: 16px 24px;
  }

  .nav-links {
    gap: 22px;
  }

  .hero {
    padding: 30px 24px 48px;
  }

  .container {
    padding: 0 24px;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .col-text.text-right {
    text-align: left;
  }

  .section-lavender,
  .section-white {
    padding: 56px 0;
  }

  .site-footer {
    padding: 20px 24px;
  }
}

@media (max-width: 600px) {
  .nav-links {
    gap: 14px;
  }

  .nav-links a {
    font-size: 0.82rem;
  }

  .hero-image {
    height: 240px;
  }
}