/* ===== Hayfield Technologies — styles.css ===== */

:root {
  --primary-navy: #0F172A;
  --secondary-blue: #2563EB;
  --accent-cyan: #06B6D4;
  --bg: #F8FAFC;
  --text: #334155;
  --border: #E2E8F0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Layout helpers */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

section {
  padding: 4rem 0;
}

/* Navbar */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 250, 252, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.nav-logo svg {
  width: 32px;
  height: 32px;
}

.nav-logo-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-navy);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a {
  color: #64748B;
}

.nav-links a:hover {
  color: var(--secondary-blue);
}

.button-link {
  display: inline-block;
  padding: 0.55rem 1.25rem;
  margin-left: 1.5rem;
  background-color: navy;
  color: #ffffff;
  text-decoration: none;
  text-align: center;
  border-radius: 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.2s;
}

.button-link:hover {
  background-color: #0056b3;
}

/* Hero */
.hero {
  padding: 4.5rem 0 3.5rem;
  background: radial-gradient(circle at top left, #E0F2FE 0, #F8FAFC 40%);
}

.hero-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .hero-layout {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
    align-items: center;
  }
}

.hero-title {
  font-size: clamp(2rem, 3vw + 1rem, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary-navy);
}

.hero-subtitle {
  margin-top: 1rem;
  color: var(--text);
  max-width: 32rem;
  font-size: 1rem;
  font-weight: 400;
}

.hero-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-primary {
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--secondary-blue);
  color: #fff;
  border: none;
}

.btn-primary[disabled] {
  pointer-events: none;
}

.hero-illustration {
  border-radius: 1.5rem;
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text);
}

.hero-illustration-title {
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--primary-navy);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.pill {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #E2E8F0;
  font-size: 0.75rem;
  color: var(--primary-navy);
  font-weight: 500;
}

/* Section headings */
.section-header {
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-navy);
}

.section-subtitle {
  margin-top: 0.35rem;
  color: var(--text);
  font-size: 0.95rem;
  max-width: 36rem;
  font-weight: 400;
}

/* Grids */
.grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

/* Cards */
.card {
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid var(--border);
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 400;
}

.card-title {
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--primary-navy);
}

.card-meta {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #64748B;
  font-weight: 400;
}

/* Badges */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.75rem;
  margin-top: 0.75rem;
}

.badge {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #DBEAFE;
  color: var(--primary-navy);
  font-weight: 500;
}

/* Process timeline */
.timeline {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .timeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.timeline-step {
  text-align: left;
}

.timeline-step-number {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.timeline-step-title {
  font-weight: 600;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
  color: var(--primary-navy);
}

/* Contact form */
.form {
  display: grid;
  gap: 0.75rem;
  max-width: 600px;
}

@media (min-width: 640px) {
  .form-row-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: #64748B;
  margin-bottom: 0.25rem;
}

input,
textarea {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  font: inherit;
  font-size: 0.85rem;
  color: var(--text);
  background: #ffffff;
}

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

input:focus,
textarea:focus {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 1px;
  border-color: var(--accent-cyan);
}

.form-actions {
  margin-top: 0.75rem;
}

.btn-form {
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: var(--secondary-blue);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  opacity: 1;
}

.btn-form[disabled] {
  pointer-events: none;
}

/* Form messages */
.form-message {
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  display: none;
}

.form-message.success {
  display: block;
  background: #e6ffed;
  color: #1f6f2e;
  border: 1px solid #b7e4c2;
}

.form-message.error {
  display: block;
  background: #ffeef0;
  color: #a31515;
  border: 1px solid #f5c6cb;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  font-size: 0.8rem;
  color: #64748B;
  background: #F1F5F9;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo svg {
  width: 24px;
  height: 24px;
}

.footer-logo-text {
  font-weight: 700;
  color: var(--primary-navy);
}

.footer-links {
  display: flex;
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
}
input, textarea, select {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  font: inherit;
  font-size: 0.85rem;
  color: var(--text);
  background: #ffffff;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,...chevron...");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  padding-right: 2rem;
  cursor: pointer;
}