/* IOX Landing Page - Squarespace Style Recreation */

:root {
  /* Color palette from Squarespace site */
  --white: #ffffff;
  --light-accent: #e9e9ed;
  --accent: #7db4dc;
  --dark-accent: #1269a5;
  --black: #000000;

  /* Theme colors */
  --bg-white: var(--white);
  --bg-dark: #1a1a1a;
  --text-dark: var(--black);
  --text-light: var(--white);

  /* Typography */
  --font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-base: 16px;

  /* Spacing */
  --site-gutter: 4vw;
  --section-padding: 80px;
  --max-width: 1500px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.8;
  color: var(--text-dark);
  background-color: var(--bg-white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--dark-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 0.5em;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1em;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--site-gutter);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(to bottom,
    hsla(209, 53%, 71%, 0.9) 0%,
    hsla(209, 53%, 71%, 0) 100%
  );
  padding: 2vw var(--site-gutter);
  transition: background 0.3s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 12px rgba(18, 105, 165, 0.15);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo img {
  height: 50px;
  width: auto;
}

.nav {
  display: flex;
  gap: 2.5rem;
}

.nav a {
  color: var(--text-dark);
  font-weight: 400;
  font-size: 1rem;
  padding: 0.5rem 0;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--dark-accent);
  transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  width: 24px;
  height: 1px;
  background: var(--text-dark);
}

/* Sections */
.section {
  padding: var(--section-padding) 0;
}

/* Hero Section - White theme */
.hero-section {
  padding-top: calc(80px + var(--section-padding));
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg-white);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 0;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.hero-content h1 em {
  font-style: italic;
}

.hero-content p {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.8;
}

/* Overview Section - White-bold theme */
.overview-section {
  background: var(--bg-white);
  padding: var(--section-padding) 0;
}

.overview-intro {
  max-width: 800px;
  margin: 0 auto 4rem;
  text-align: center;
}

.overview-intro h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.overview-intro p {
  font-size: 1.1rem;
  color: #666;
}

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.overview-image img {
  width: 100%;
  border-radius: 0;
}

.overview-text h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.features-list {
  list-style: none;
}

.features-list li {
  padding: 0.5rem 0;
  padding-left: 0;
  border-bottom: 1px solid #eee;
  font-size: 1rem;
}

.features-list li:last-child {
  border-bottom: none;
}

/* Sub-sections */
.subsection {
  margin-bottom: 3rem;
}

.subsection h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

/* Applications grid */
.applications-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.application-item {
  text-align: center;
  padding: 1.5rem;
}

.application-item h4 {
  font-size: 1rem;
  font-weight: 400;
}

/* Specs grid */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.spec-item {
  text-align: center;
  padding: 1rem;
}

.spec-item strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.spec-item span {
  font-size: 0.9rem;
  color: #666;
}

/* Contact Section - Dark theme */
.contact-section {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: var(--section-padding) 0;
  position: relative;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/06.jpg') center/cover no-repeat;
  opacity: 0.15;
}

.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.contact-info p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.contact-details {
  margin-top: 2rem;
}

.contact-details a {
  color: var(--accent);
}

.contact-details a:hover {
  color: var(--text-light);
}

/* Contact Form */
.contact-form {
  background: var(--bg-white);
  padding: 2.5rem;
  color: var(--text-dark);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 50px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group textarea {
  border-radius: 20px;
  min-height: 120px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--dark-accent);
}

.form-submit {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--text-dark);
  color: var(--text-light);
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.3s ease;
}

.form-submit:hover {
  background: var(--dark-accent);
}

/* Contact Page */
.contact-page-hero {
  padding-top: calc(80px + var(--section-padding));
  min-height: 60vh;
  display: flex;
  align-items: center;
  background: var(--bg-dark);
  color: var(--text-light);
  position: relative;
}

.contact-page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/06.jpg') center/cover no-repeat;
  opacity: 0.2;
}

.contact-page-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.contact-page-content h1 {
  font-size: 3rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.contact-page-content p {
  font-size: 1.25rem;
  opacity: 0.9;
}

.contact-page-section {
  padding: var(--section-padding) 0;
  background: var(--bg-white);
}

.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-page-info h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-page-info p {
  color: #666;
  margin-bottom: 0.75rem;
}

.contact-page-info a {
  color: var(--dark-accent);
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 2rem var(--site-gutter);
  text-align: center;
}

.footer p {
  opacity: 0.7;
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid,
  .overview-grid,
  .contact-grid,
  .contact-page-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-content {
    order: -1;
  }

  .specs-grid,
  .applications-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
  }

  .header {
    padding: 1rem var(--site-gutter);
  }

  .nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .specs-grid,
  .applications-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 1.5rem;
  }
}
