/* Pinnacle Automation site styles. Colors live in :root so they are easy to change. */
:root {
  --bg: #021a2e;
  --bg-2: #04243c;
  --card: #0b3048;
  --card-border: rgba(140, 190, 220, 0.18);
  --line: rgba(140, 190, 220, 0.12);
  --text: #f1f6fa;
  --muted: #a9bccb;
  --accent: #5ec8e8;
  --button-bg: #e6f3fa;
  --button-text: #021a2e;
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: "Sora", system-ui, sans-serif; line-height: 1.12; letter-spacing: -0.02em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { border-top: 1px solid var(--line); }

/* Header */
.site-header { position: relative; z-index: 2; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; gap: 16px; }
.logo img { height: 112px; width: auto; border-radius: 6px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Manrope", sans-serif; font-weight: 600; font-size: 16px;
  text-decoration: none; padding: 13px 26px; border-radius: 6px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-solid { background: var(--button-bg); color: var(--button-text); box-shadow: 0 8px 30px rgba(94, 200, 232, 0.18); }
.btn-solid:hover { transform: translateY(-1px); box-shadow: 0 10px 36px rgba(94, 200, 232, 0.3); }
.btn-outline { border: 1px solid rgba(241, 246, 250, 0.55); color: var(--text); padding: 10px 22px; }
.btn-outline:hover { background: rgba(241, 246, 250, 0.08); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--bg) 0%, #032a45 60%, #04395c 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: 360px 100%; background-position: 286px 0;
}
.hero .wrap { position: relative; padding-top: 72px; padding-bottom: 96px; }
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--accent); opacity: .7; }
.eyebrow.plain::before { display: none; }
.location { color: var(--muted); font-size: 16px; margin-top: 12px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 78px); font-weight: 800; max-width: 900px; margin-top: 22px; }
.hero .sub { color: var(--muted); font-size: clamp(19px, 2vw, 23px); max-width: 640px; margin-top: 28px; }
.hero .btn { margin-top: 40px; }

/* Problem statement */
.statement { background: var(--bg); }
.statement .wrap { padding-top: 88px; padding-bottom: 88px; }
.statement p { font-size: clamp(21px, 2.6vw, 30px); text-align: center; max-width: 900px; margin: 0 auto; line-height: 1.5; font-weight: 500; }

/* Section headings */
.section-head { margin-bottom: 44px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 800; margin-top: 12px; max-width: 640px; }
.section-head .eyebrow::before { display: none; }

/* Services */
.services .wrap { padding-top: 96px; padding-bottom: 104px; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card { background: var(--card); border: 1px solid var(--card-border); border-radius: 8px; padding: 40px; }
.card svg { width: 34px; height: 34px; color: var(--accent); }
.card h3 { font-size: 23px; margin-top: 26px; }
.card p { color: var(--muted); margin-top: 14px; }

/* About */
.about { background: var(--bg-2); }
.about .wrap { display: grid; grid-template-columns: 380px 1fr; gap: 80px; align-items: center; padding-top: 80px; padding-bottom: 80px; }
.about img { border-radius: 8px; border: 1px solid var(--card-border); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.about h2 { font-size: clamp(36px, 4.6vw, 54px); font-weight: 800; margin-top: 10px; }
.about p { color: var(--muted); font-size: 19px; margin-top: 18px; max-width: 600px; }

/* Steps */
.steps .wrap { padding-top: 96px; padding-bottom: 104px; }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--card); border: 1px solid var(--card-border); border-radius: 8px; padding: 32px; }
.step .num { font-family: "Sora", sans-serif; font-size: 40px; font-weight: 800; color: var(--accent); }
.step h3 { font-size: 20px; margin-top: 36px; }
.step p { color: var(--muted); margin-top: 8px; }

/* Booking */
.booking { background: var(--bg-2); }
.booking .wrap { padding-top: 96px; padding-bottom: 96px; }
.calendar-box {
  background: var(--card); border: 1px solid var(--card-border); border-radius: 8px;
  min-height: 320px; padding: 24px; overflow: hidden;
}
.calendar-placeholder { min-height: 272px; display: grid; place-items: center; text-align: center; color: var(--muted); }
.calendar-placeholder strong { display: block; color: var(--text); font-size: 20px; margin-bottom: 6px; }

/* Final CTA */
.cta { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--bg) 0%, #032a45 60%, #04395c 100%); text-align: center; }
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: 360px 100%; background-position: 130px 0;
}
.cta .wrap { position: relative; padding-top: 112px; padding-bottom: 112px; }
.cta h2 { font-size: clamp(36px, 5.4vw, 64px); font-weight: 800; max-width: 860px; margin: 0 auto; }
.cta .btn { margin-top: 40px; }
.cta .email { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; color: var(--muted); font-size: 16px; }
.cta .email a { color: var(--accent); text-underline-offset: 4px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; padding-bottom: 28px; }
.site-footer nav { display: flex; gap: 22px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* Legal pages */
.legal .wrap { max-width: 820px; padding-top: 64px; padding-bottom: 96px; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 800; }
.legal .updated { color: var(--muted); margin-top: 10px; }
.legal h2 { font-size: 22px; margin-top: 44px; margin-bottom: 10px; }
.legal p, .legal li { color: #c9d7e2; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 10px 0 0 22px; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--accent); }
.legal .callout { background: var(--card); border: 1px solid var(--card-border); border-radius: 8px; padding: 22px 24px; margin-top: 16px; }
.site-header.small .logo img { height: 76px; }

/* Phones and tablets */
@media (max-width: 900px) {
  .about .wrap { grid-template-columns: 1fr; gap: 40px; }
  .about img { max-width: 360px; }
  .step-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .logo img { height: 72px; }
  .site-header .btn-outline { padding: 9px 16px; font-size: 15px; }
  .hero .wrap { padding-top: 48px; padding-bottom: 72px; }
  .hero::before, .cta::before { display: none; }
  .cards { grid-template-columns: 1fr; }
  .card { padding: 30px; }
  .services .wrap, .steps .wrap, .booking .wrap { padding-top: 72px; padding-bottom: 72px; }
  .cta .wrap { padding-top: 80px; padding-bottom: 80px; }
  .hero .btn, .cta .btn { width: 100%; justify-content: center; }
}
