/* OLYNX TECH SOLUTIONS - shared stylesheet */

:root {
  --dark-green: #013E23;
  --bright-green: #54A818;
  --white: #ffffff;
  --off-white: #f6f8f6;
  --text-main: #1a1f1c;
  --text-muted: #4a534d;
  --border-color: #e0e6e1;
  --max-width: 1180px;
  --radius: 10px;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--text-main);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

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

a {
  color: var(--dark-green);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  color: var(--dark-green);
  margin: 0 0 16px;
}

h1 {
  font-size: 2.25rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 16px;
}

ul {
  margin: 0;
  padding: 0;
}

section {
  padding: 56px 0;
}

.section-alt {
  background: var(--off-white);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--bright-green);
  margin-bottom: 8px;
  display: block;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  text-align: center;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--bright-green);
  color: var(--white);
}

.btn-primary:hover {
  background: #468f15;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-outline-dark {
  background: transparent;
  color: var(--dark-green);
  border-color: var(--dark-green);
}

.btn-outline-dark:hover {
  background: rgba(1, 62, 35, 0.08);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 100;
}

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

.logo-link {
  display: block;
  flex-shrink: 0;
}

.logo-full {
  height: 52px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 4px;
}

.main-nav a {
  display: block;
  padding: 10px 14px;
  color: var(--dark-green);
  font-weight: 600;
  border-radius: 6px;
}

.main-nav a:hover {
  background: var(--off-white);
  text-decoration: none;
}

.main-nav a.active {
  color: var(--bright-green);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--dark-green);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 820px) {
  .logo-full {
    height: 40px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    align-items: stretch;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .main-nav.nav-open {
    max-height: 400px;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
  }

  .main-nav a {
    padding: 12px 8px;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
  }
}

/* Hero */

.hero {
  background: var(--dark-green);
  color: var(--white);
  padding: 72px 0;
}

.hero h1 {
  color: var(--white);
  font-size: 2.5rem;
  max-width: 780px;
}

.hero p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 680px;
  font-size: 1.1rem;
}

/* What we do / Services list */

.icon-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.icon-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
}

.icon-card .icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  color: var(--bright-green);
}

.icon-card svg {
  width: 40px;
  height: 40px;
  stroke: var(--bright-green);
}

.icon-card p {
  margin: 0;
  font-weight: 600;
  color: var(--text-main);
}

/* Services list */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.service-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--white);
}

.service-card .icon {
  display: block;
  width: 36px;
  height: 36px;
  color: var(--bright-green);
  margin-bottom: 14px;
}

.service-card svg {
  width: 36px;
  height: 36px;
  stroke: var(--bright-green);
}

.service-card h3 {
  margin-bottom: 8px;
}

.service-card p {
  color: var(--text-muted);
  margin: 0 0 10px;
}

.service-card p:last-child {
  margin-bottom: 0;
}

/* Cards / Featured work */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--text-muted);
  flex-grow: 1;
}

.card .card-link {
  font-weight: 700;
  color: var(--bright-green);
  word-break: break-word;
}

/* Callout / proof section */

.callout {
  background: var(--off-white);
  border-left: 4px solid var(--bright-green);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 8px;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* Placeholder image blocks */

.img-placeholder {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius);
  background: var(--off-white);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  font-size: 0.9rem;
  min-height: 160px;
}

/* Footer */

.site-footer {
  background: var(--dark-green);
  color: rgba(255, 255, 255, 0.85);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer-logo {
  height: 56px;
  width: auto;
  margin-bottom: 16px;
}

.footer-tagline {
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
}

.site-footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 14px;
}

.site-footer ul {
  list-style: none;
}

.site-footer li {
  margin-bottom: 10px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
}

.site-footer a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 32px;
  padding-top: 20px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  section {
    padding: 40px 0;
  }
}

/* Forms */

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-main);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: var(--font-main);
  font-size: 1rem;
  background: var(--white);
  color: var(--text-main);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--bright-green);
  outline-offset: 1px;
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-status {
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
  font-weight: 600;
}

.form-status.success {
  background: #eaf6e5;
  color: var(--dark-green);
  border: 1px solid var(--bright-green);
}

.form-status.error {
  background: #fbeaea;
  color: #7a1f1f;
  border: 1px solid #d68080;
}

/* Radio group */

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 4px;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 0;
}

.radio-group input {
  width: auto;
}

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

/* Contact info list */

.contact-info-list {
  list-style: none;
  margin-top: 24px;
}

.contact-info-list li {
  margin-bottom: 14px;
  display: flex;
  gap: 10px;
}

.contact-info-list strong {
  color: var(--dark-green);
  min-width: 130px;
  display: inline-block;
}

/* Page hero (non-home pages) */

.page-hero {
  background: var(--dark-green);
  color: var(--white);
  padding: 48px 0;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 0;
}

/* Two column layout */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 720px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* Headshot */

.headshot {
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 280px;
}

/* Process list */

.process-list {
  counter-reset: step;
  list-style: none;
  margin-top: 32px;
  display: grid;
  gap: 20px;
}

.process-list li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.process-list .step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bright-green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Product sections */

.product-section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border-color);
}

.product-section:last-child {
  border-bottom: none;
}

.product-header {
  max-width: 760px;
  margin-bottom: 8px;
}

.product-tagline {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.product-link {
  font-weight: 700;
  color: var(--bright-green);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.screenshot-grid figure {
  margin: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--off-white);
}

.screenshot-grid img {
  width: 100%;
  height: auto;
}

.screenshot-grid figcaption {
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.feature-list {
  list-style: none;
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

.feature-list li {
  padding-left: 26px;
  position: relative;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  background: var(--bright-green);
  border-radius: 50%;
}

/* Badge */

.badge {
  display: inline-block;
  background: var(--off-white);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* Skip link */

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--dark-green);
  color: var(--white);
  padding: 10px 16px;
  z-index: 200;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}
