/* Islestone Pharmaceuticals — site styles */
:root {
  --ink: #1d1d1b;
  --navy: #1f3446;
  --steel: #497592;
  --mist: #7c9aaf;
  --haze: #a1b7c7;
  --ice: #eef3f6;
  --paper: #fbfcfd;
  --accent: #d9692b;
  --text: #2a2f33;
  --muted: #5d6870;
  --line: #d9e2e8;
  --error: #b42318;
  --ok: #18794e;
  --radius: 10px;
  --wrap: 1160px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--steel); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.15; font-weight: 600; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
em.accent { color: var(--accent); font-style: italic; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 252, 253, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand img { height: 42px; width: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  text-decoration: none; color: var(--navy); font-weight: 500; font-size: .95rem;
}
.nav a:hover { background: var(--ice); }
.nav a[aria-current="page"] { background: var(--ice); color: var(--steel); }
.nav a.btn { margin-left: 8px; }
.nav a.btn:hover, .nav a.btn[aria-current="page"] { background: var(--steel); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--navy); }
.nav-toggle svg { width: 26px; height: 26px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: #fff !important; border: 0;
  padding: 12px 22px; border-radius: 999px; font: 600 .95rem/1 var(--sans);
  text-decoration: none; cursor: pointer; transition: background .15s, transform .15s;
}
.btn:hover { background: var(--steel); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--navy) !important; box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn.ghost:hover { background: var(--navy); color: #fff !important; }
.btn.accent { background: var(--accent); }
.btn.accent:hover { background: #b9561f; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(64px, 10vw, 128px) 0 clamp(56px, 8vw, 96px);
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(161, 183, 199, .45), transparent 60%),
    radial-gradient(800px 400px at -10% 110%, rgba(124, 154, 175, .25), transparent 60%),
    var(--paper);
}
.hero .eyebrow, .eyebrow {
  display: inline-block; font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--steel); margin-bottom: 18px;
}
.hero h1 { max-width: 15ch; }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 56ch; margin: 18px 0 32px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-mark {
  position: absolute; right: -80px; top: 50%; transform: translateY(-50%);
  width: min(520px, 45vw); opacity: .07; pointer-events: none;
}

.page-hero { padding: 72px 0 48px; background: linear-gradient(180deg, var(--ice), var(--paper)); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0; }
.page-hero p { color: var(--muted); max-width: 60ch; margin: 12px 0 0; font-size: 1.1rem; }

/* Credentials strip */
.creds { background: var(--navy); color: #dfe8ee; }
.creds .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.creds .wrap > div { padding: 22px 20px; border-left: 1px solid rgba(255,255,255,.12); }
.creds .wrap > div:first-child { border-left: 0; padding-left: 0; }
.creds strong { display: block; color: #fff; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.creds span { font-size: .85rem; color: var(--haze); }

/* Sections */
section.block { padding: clamp(56px, 8vw, 96px) 0; }
section.alt { background: var(--ice); }
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.prose { max-width: 68ch; }
.prose p { color: var(--text); }
.pull {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.35; color: var(--accent); border-left: 3px solid var(--accent); padding-left: 22px; margin: 0;
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 40px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { border-color: var(--haze); box-shadow: 0 10px 30px -18px rgba(31, 52, 70, .45); transform: translateY(-2px); }
.card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--ice); color: var(--steel); display: grid; place-items: center; margin-bottom: 18px; }
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.card .more { display: inline-block; margin-top: 14px; color: var(--steel); font-weight: 600; font-size: .9rem; }

.service { display: grid; grid-template-columns: 280px 1fr; gap: 40px; padding: 44px 0; border-top: 1px solid var(--line); }
.service:first-child { border-top: 0; padding-top: 0; }
.service h2 { font-size: 1.6rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 8px 0 0; }
.tags li { background: var(--ice); color: var(--navy); padding: 6px 14px; border-radius: 999px; font-size: .9rem; font-weight: 500; }

.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--haze); }
.timeline li { position: relative; padding: 0 0 26px 26px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--steel); box-shadow: 0 0 0 4px var(--paper); }
.timeline strong { display: block; font-family: var(--serif); color: var(--navy); font-size: 1.2rem; }

.docs { display: grid; gap: 14px; margin-top: 24px; }
.doc {
  display: flex; align-items: center; gap: 16px; padding: 18px 22px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--navy);
}
.doc:hover { border-color: var(--steel); }
.doc svg { width: 28px; height: 28px; color: var(--accent); flex: none; }
.doc span { flex: 1; font-weight: 600; }
.doc small { color: var(--muted); font-weight: 400; display: block; }

.cta { background: var(--navy); color: #dfe8ee; border-radius: 16px; padding: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta h2 { color: #fff; margin: 0 0 6px; }
.cta p { margin: 0; color: var(--haze); }
.cta .btn { background: var(--accent); }
.cta .btn:hover { background: #b9561f; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 16px; }
.contact-list svg { width: 22px; height: 22px; color: var(--steel); flex: none; margin-top: 3px; }
.contact-list strong { display: block; color: var(--navy); }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 320px; background: var(--ice); }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* Form */
.form-shell { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; }
.form-aside { position: sticky; top: 100px; }
.form-aside ol { padding-left: 1.1em; color: var(--muted); font-size: .95rem; }
.form-aside ol li { margin-bottom: 6px; }
form.app { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: clamp(22px, 4vw, 40px); }
fieldset { border: 0; padding: 0; margin: 0 0 36px; }
legend { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--navy); padding: 0; margin-bottom: 4px; }
fieldset > .hint { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--navy); margin-bottom: 6px; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--paper);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--steel); box-shadow: 0 0 0 3px rgba(73, 117, 146, .18); background: #fff; }
.field .help { font-size: .84rem; color: var(--muted); margin-top: 5px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error); }
.field .err { display: none; color: var(--error); font-size: .84rem; margin-top: 5px; }
.field.invalid .err { display: block; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; margin-bottom: 12px; }
.check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--navy); flex: none; }
.check.invalid { color: var(--error); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; display: none; }
.form-status.error { display: block; background: #fef3f2; color: var(--error); border: 1px solid #fecdca; }
.form-status.ok { display: block; background: #ecfdf3; color: var(--ok); border: 1px solid #abefc6; }
.submit-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 26px; }
.submit-row small { color: var(--muted); max-width: 46ch; }
.done { text-align: center; padding: 48px 20px; }
.done svg { width: 56px; height: 56px; color: var(--ok); margin: 0 auto 16px; }

/* Footer */
.site-footer { background: #15232f; color: #b8c7d2; padding: 64px 0 28px; font-size: .95rem; margin-top: 0; }
.site-footer a { color: #dfe8ee; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer address { font-style: normal; }
.footer-logo { height: 40px; width: auto; margin-bottom: 16px; }
.footer-base { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .85rem; color: #8aa0b0; }

/* Responsive */
@media (max-width: 960px) {
  .split, .contact-grid, .form-shell, .service { grid-template-columns: 1fr; }
  .service { gap: 12px; }
  .form-aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .creds .wrap { grid-template-columns: 1fr 1fr; }
  .creds .wrap > div:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 76px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 12px 16px 20px; }
  .nav a { border-radius: 8px; padding: 12px 14px; }
  .nav a.btn { margin: 8px 0 0; justify-content: center; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  body { font-size: 16px; }
  .grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .creds .wrap { grid-template-columns: 1fr; }
  .creds .wrap > div { border-left: 0; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12); }
  .creds .wrap > div:first-child { border-top: 0; }
  .brand img { height: 34px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
