/* agglestone.com: the company site. Served only on the company host. */
:root {
  --ink: #13212e;
  --muted: #4a5865;
  --ground: #f7f8f6;
  --panel: #ffffff;
  --line: #e1e5e3;
  --blue: #1f5f99;
  --blue-dark: #164a78;
  --green: #3d6b4a;
  --night-text: #c3d0da;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 24px;
}

.eyebrow {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}

.lead {
  margin: 0;
  font-size: 20px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 44rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border: 2px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button-primary { background: var(--blue); color: #fff; }
.button-primary:hover { background: var(--blue-dark); color: #fff; }
.button-secondary { background: var(--panel); color: var(--ink); border-color: #cfd6d2; }
.button-secondary:hover { border-color: var(--blue); color: var(--ink); }
.button-light { background: #fff; color: var(--ink); }
.button-light:hover { background: #e8eef2; color: var(--ink); }
.button:disabled { opacity: 0.6; cursor: default; }

/* Header */
.site-header { background: var(--panel); border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--ink); }
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  font-size: 15px;
  font-weight: 500;
}
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--blue); }
.site-nav a[aria-current="page"] { color: var(--blue); font-weight: 700; }

.menu-button {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 2px solid #cfd6d2;
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

/* Sections */
.section { padding-block: 80px; }
.section-white { background: var(--panel); border-block: 1px solid var(--line); }
.section h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 46rem; margin-bottom: 36px; }
.section-head p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--muted); }

/* Hero */
.hero { background: var(--panel); }
.hero .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
  padding-block: 72px 80px;
}
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-note { margin: 0; font-size: 14px; color: var(--muted); }
.hero-art { flex: 1 1 420px; min-width: 0; border-radius: 24px; overflow: hidden; background: #a9c6dc; }
.hero-art .sky { height: 300px; display: flex; align-items: flex-end; justify-content: center; padding-top: 28px; }
.hero-art img { width: 78%; max-width: 380px; height: auto; display: block; }
.hero-art .heath { height: 36px; background: #8ea37a; }
.hero-art .heather { height: 28px; background: #6f5d7d; }
.hero-art .example { background: var(--ink); color: #e8eef2; padding: 20px 24px; display: flex; flex-direction: column; gap: 6px; }
.example-label { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #9fb4c4; }
.example-long { font-size: 15px; color: var(--night-text); overflow-wrap: anywhere; }
.example-short { font-size: 22px; font-weight: 700; color: #fff; }

/* Tool cards */
.cards { display: flex; flex-wrap: wrap; gap: 20px; }
.card {
  flex: 1 1 300px;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
a.card:hover { border-color: var(--blue); color: var(--ink); }
.card-title { font-size: 20px; font-weight: 700; }
.card-text { font-size: 16px; line-height: 1.5; color: var(--muted); }
.card-soon { background: #eef1ef; border-style: dashed; border-color: #b9c3be; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pill { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; align-self: flex-start; }
.pill-green { background: var(--green); color: #fff; }

/* Steps */
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 20px; }
.steps li { flex: 1 1 260px; min-width: 0; display: flex; gap: 16px; align-items: flex-start; font-size: 17px; line-height: 1.55; }
.step-number {
  flex: 0 0 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.steps strong { display: block; font-size: 18px; }
.steps span span { color: var(--muted); }

/* Other products */
.product { flex: 1 1 420px; min-width: 0; border-radius: 22px; padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.product h3 { margin: 0; font-size: 28px; font-weight: 800; }
.product p { margin: 0; font-size: 17px; line-height: 1.6; }
.product .button { align-self: flex-start; margin-top: 8px; }
.product-dark { background: var(--ink); color: #e8eef2; }
.product-dark h3 { color: #fff; }
.product-dark p { color: var(--night-text); }
.product-dark .pill { background: #2a3d4e; color: #d6e2ea; }
.product-light { background: var(--panel); border: 1px solid var(--line); }
.product-light p { color: var(--muted); }
.product-light .pill { background: #e4ece6; color: #2d5038; }

/* About band */
.about { background: var(--green); color: #fff; }
.about .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; padding-block: 64px; }
.about div { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.about h2 { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.about p { margin: 0; font-size: 18px; line-height: 1.6; color: #e6efe8; }

/* Footer */
.site-footer { background: var(--ink); color: var(--night-text); }
.site-footer .wrap { display: flex; flex-direction: column; gap: 40px; padding-block: 56px 40px; }
.footer-columns { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.footer-brand { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.6; }
.footer-brand .brand { color: #fff; font-size: 20px; }
.footer-nav { flex: 0 1 200px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-nav span { color: #fff; font-weight: 700; }
.footer-nav a { color: var(--night-text); text-decoration: none; }
.footer-nav a:hover { color: #fff; }
.legal { border-top: 1px solid #2a3d4e; padding-top: 20px; font-size: 13px; line-height: 1.6; color: #9fb4c4; display: flex; flex-direction: column; gap: 4px; }
.legal p { margin: 0; }

/* Consultancy */
.page-hero { background: var(--panel); border-bottom: 1px solid var(--line); }
.page-hero .wrap { display: flex; flex-direction: column; gap: 20px; padding-block: 72px; }
.page-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.035em;
  max-width: 52rem;
}
.contact .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-block: 72px 96px; }
.contact-intro { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.contact-intro h2 { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.contact-intro p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted); }
.contact-panel { flex: 2 1 520px; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 36px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.field-row { display: flex; flex-wrap: wrap; gap: 20px; }
.field { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.field-row .field { flex: 1 1 220px; }
.field label { font-size: 15px; font-weight: 600; }
.field label span { font-weight: 400; color: var(--muted); }
.field input,
.field textarea {
  width: 100%;
  border: 1px solid #b9c3be;
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
}
.field input { min-height: 48px; padding: 0 14px; }
.field textarea { padding: 12px 14px; line-height: 1.5; resize: vertical; }
.field input:focus,
.field textarea:focus { outline: 3px solid #9cc0e0; outline-offset: 1px; border-color: var(--blue); }
.contact-form .button { align-self: flex-start; }
.form-error { margin: 0; padding: 12px 14px; border-radius: 10px; background: #fdecea; color: #8a1f17; font-size: 15px; }
/* Hidden from people; bots that fill it in are ignored. */
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sent { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.sent h3 { margin: 0; font-size: 26px; font-weight: 800; }
.sent p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted); }
.sent-tick { width: 48px; height: 48px; border-radius: 999px; background: var(--green); display: flex; align-items: center; justify-content: center; }

/* Phones: the menu folds behind a button, spacing tightens and buttons go full width. */
@media (max-width: 720px) {
  .wrap { padding-inline: 16px; }
  .site-header .wrap { flex-wrap: nowrap; padding-block: 12px; }
  .menu-button { display: inline-flex; }
  .site-header .wrap { position: relative; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(19, 33, 46, 0.08);
  }
  .site-nav.open { display: flex; }
  .site-nav a { display: flex; align-items: center; min-height: 48px; font-size: 17px; border-bottom: 1px solid var(--line); }

  .section { padding-block: 56px; }
  .section h2 { font-size: 30px; }
  .section-head { margin-bottom: 28px; }
  .lead { font-size: 18px; }
  .hero .wrap { gap: 36px; padding-block: 40px 56px; }
  .hero-actions .button,
  .product .button,
  .about .button,
  .contact-form .button { flex: 1 1 100%; justify-content: center; align-self: stretch; }
  .hero-art { border-radius: 18px; }
  .hero-art .sky { height: 220px; }
  .card { padding: 22px; }
  .product { padding: 26px; }
  .product h3 { font-size: 24px; }
  .about .wrap { padding-block: 48px; }
  .about h2 { font-size: 28px; }
  .page-hero .wrap { padding-block: 44px; }
  .contact .wrap { gap: 28px; padding-block: 44px 64px; }
  .contact-panel { padding: 22px; border-radius: 18px; }
  .site-footer .wrap { padding-block: 44px 32px; }
}
