/* IT AUTOMATION (SCOTLAND) LTD — Landing styles */

:root {
  --color-bg: #f6f8fa;
  --color-surface: #ffffff;
  --color-text: #1a2332;
  --color-text-muted: #4a5d73;
  --color-accent: #0d6e6e;
  --color-accent-hover: #0a5555;
  --color-accent-light: #e6f4f4;
  --color-dark: #0f1a24;
  --color-dark-elevated: #162433;
  --color-border: #d8e0e8;
  --color-highlight: #c9a227;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(15, 26, 36, 0.08);
  --shadow-lg: 0 12px 48px rgba(15, 26, 36, 0.12);
  --header-h: 72px;
  --max-width: 1140px;
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent-hover);
}

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.narrow {
  max-width: 720px;
  margin-inline: auto;
}

/* Typography */
h1, h2, h3 {
  line-height: 1.2;
  font-weight: 600;
}

h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.375rem);
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 0.75rem;
}

.eyebrow-light {
  color: #7ec8c8;
}

.lead {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  max-width: 42rem;
  margin: 0 0 2rem;
}

.section-intro {
  max-width: 40rem;
  color: var(--color-text-muted);
  margin: 0 0 2.5rem;
}

.section-intro.light {
  color: rgba(255, 255, 255, 0.75);
}

.text-center {
  text-align: center;
}

.text-center.section-intro {
  margin-inline: auto;
}

.prose p {
  margin: 0 0 1.25rem;
  color: var(--color-text-muted);
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose strong {
  color: var(--color-text);
}

.prose-wide {
  max-width: 52rem;
  margin-bottom: 2rem;
}

.prose-wide p {
  color: var(--color-text-muted);
  margin: 0 0 1.25rem;
}

.prose-light p,
.prose-light {
  color: rgba(255, 255, 255, 0.82);
}

.prose-light h2 {
  color: #fff;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 248, 250, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-text);
}

.logo:hover {
  color: var(--color-text);
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-accent) 0%, #148f8f 50%, var(--color-highlight) 100%);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  font-size: 0.7rem;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.logo-text strong {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.main-nav a:hover {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-sm {
  padding: 0.5rem 1.125rem;
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  padding: 4rem 0 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(13, 110, 110, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 0% 80%, rgba(201, 162, 39, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--color-bg) 0%, #eef2f6 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 2rem 0 0;
  border-top: 1px solid var(--color-border);
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-stats strong {
  font-size: 1rem;
  color: var(--color-text);
}

.hero-stats span {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--color-surface);
}

.section-dark {
  background: var(--color-dark);
  color: #fff;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.split.reverse {
  direction: rtl;
}

.split.reverse > * {
  direction: ltr;
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1.5rem;
}

.card-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.card-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.card h3 {
  color: var(--color-text);
}

.card p {
  margin: 0;
  font-size: 0.975rem;
  color: var(--color-text-muted);
}

.card-feature {
  position: relative;
  padding-top: 2.5rem;
}

.card-num {
  position: absolute;
  top: 1.25rem;
  left: 1.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.05em;
}

.card-dark {
  background: var(--color-dark-elevated);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.card-dark h3 {
  color: #fff;
}

.card-dark p {
  color: rgba(255, 255, 255, 0.72);
}

/* Visual panel */
.visual-panel {
  background: var(--color-dark-elevated);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.flow-step {
  background: var(--color-accent);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
}

.flow-arrow {
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.25rem;
}

.panel-caption {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.check-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  background: var(--color-highlight);
  border-radius: 50%;
}

/* Tags */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.tag-list span {
  padding: 0.5rem 1rem;
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 999px;
}

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  max-width: 52rem;
  margin-inline: auto;
}

.timeline li {
  position: relative;
  padding-left: 3.5rem;
  padding-bottom: 2.5rem;
  border-left: 2px solid var(--color-border);
  margin-left: 1rem;
}

.timeline li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.timeline li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -1.125rem;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline h3 {
  margin-top: 0;
}

.timeline p {
  margin: 0;
  color: var(--color-text-muted);
}

/* Industries */
.industry-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.industry-item {
  padding: 1.25rem 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.industry-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.industry-item p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* Benefits */
.benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.benefit h3 {
  color: var(--color-accent);
  font-size: 1.1rem;
}

.benefit p {
  margin: 0;
  color: var(--color-text-muted);
}

/* Info box */
.info-box {
  background: var(--color-accent-light);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(13, 110, 110, 0.15);
}

.info-box h3 {
  margin-top: 0;
  color: var(--color-accent);
}

.info-box ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--color-text-muted);
}

.info-box li {
  margin-bottom: 0.5rem;
}

/* FAQ */
.faq-list {
  margin-top: 2rem;
}

.faq-list details {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-list summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-accent);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin: 0;
  padding: 0 1.5rem 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.975rem;
}

/* Contact */
.contact-section {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-accent-light) 100%);
}

.contact-details {
  font-style: normal;
  margin-top: 2rem;
}

.contact-details p {
  margin: 0 0 1.5rem;
  color: var(--color-text-muted);
}

.contact-details strong {
  display: block;
  color: var(--color-text);
  margin-bottom: 0.35rem;
}

.placeholder-link {
  color: var(--color-text-muted);
  text-decoration: none;
  cursor: default;
}

.contact-form {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  transition: border-color var(--transition);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-note {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* Footer */
.site-footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 3.5rem 0 0;
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  color: #fff;
  margin: 0 0 1rem;
}

.footer-legal {
  margin: 0;
  line-height: 1.6;
}

.footer-heading {
  color: #fff;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.8125rem;
}

.footer-bottom p {
  margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .split,
  .card-grid.two,
  .card-grid.three,
  .benefits,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .split.reverse {
    direction: ltr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .main-nav a {
    display: block;
    padding: 0.75rem 0;
  }

  body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 600px) {
  .section {
    padding: 3.5rem 0;
  }

  .hero {
    padding: 2.5rem 0 3.5rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .flow-diagram {
    justify-content: center;
  }
}
