/* Highland Tech Tutor — warm, plain, professional. Human-first, machine-clean. */

:root {
  --ink: #1c2733;
  --muted: #5a6b7b;
  --paper: #fbfaf8;
  --card: #ffffff;
  --line: #e4e0d8;
  --accent: #0e5a4a;      /* deep, calm green — trust, not flash */
  --accent-soft: #e3efeb;
  --accent-ink: #0a3d33;
  --warm: #c9772e;        /* small warm accent for CTAs */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

a { color: var(--accent); }
a:hover { color: var(--accent-ink); }

/* Header */
header.site {
  background: var(--ink);
  color: #f5f2ea;
  padding: 1rem 1.25rem;
}
header.site .inner {
  max-width: 60rem;
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
header.site .brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f5f2ea;
  text-decoration: none;
  letter-spacing: 0.01em;
}
header.site .brand em { font-style: normal; color: #9fd4c4; }
header.site nav a {
  color: #d7e2dd;
  text-decoration: none;
  margin-left: 1.1rem;
  font-size: 0.98rem;
}
header.site nav a:hover { color: #fff; }

/* Layout */
main {
  max-width: 60rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}
section { margin-bottom: 2.5rem; }

h1 { font-size: 2.1rem; line-height: 1.2; margin: 0 0 0.75rem; }
h2 { font-size: 1.5rem; margin: 0 0 0.75rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.4rem; }

p.kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--warm);
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.standfirst {
  font-size: 1.2rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

/* Hero */
.hero {
  background: var(--accent-soft);
  border-radius: 0.75rem;
  padding: 2rem 2rem 1.75rem;
  margin-bottom: 2.5rem;
  border: 1px solid var(--line);
}
.hero h1 { color: var(--accent-ink); }
.hero p { margin: 0 0 1.25rem; font-size: 1.12rem; }

/* Splittable hero: copy left, image right (stacks on small screens) */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 1.75rem;
  align-items: center;
}
.hero-split .hero-copy { padding-right: 0.5rem; }
.hero-split img {
  width: 100%;
  height: auto;
  border-radius: 0.6rem;
  border: 1px solid var(--line);
  box-shadow: 0 8px 26px rgba(28, 39, 51, 0.12);
  display: block;
}
.hero-media {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Promo / proof-of-craft image */
img.promo {
  width: 100%;
  height: auto;
  border-radius: 0.6rem;
  border: 1px solid var(--line);
  box-shadow: 0 8px 26px rgba(28, 39, 51, 0.12);
  display: block;
  margin-top: 0.75rem;
}

/* Full-width banner strip */
.hero-banner {
  margin: 0 0 2.5rem;
}
.hero-banner img {
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  box-shadow: 0 8px 26px rgba(28, 39, 51, 0.12);
  display: block;
}

/* Calm loch band — short, cropped, quiet */
.loch-band {
  margin: 0 0 2.5rem;
}
.loch-band img {
  width: 100%;
  height: 13rem;
  object-fit: cover;
  object-position: center 62%;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  box-shadow: 0 8px 26px rgba(28, 39, 51, 0.12);
  display: block;
}
@media (max-width: 40rem) {
  .loch-band img { height: 8.5rem; }
}
@media (max-width: 48rem) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-split .hero-copy { padding-right: 0; }
}

/* Cards / services */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1.1rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 1.25rem 1.25rem 1rem;
}
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card p { margin: 0.35rem 0 0.9rem; color: var(--muted); font-size: 0.98rem; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 0.6rem 1.3rem;
  border-radius: 0.4rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn:hover { background: var(--accent-ink); color: #fff; }
.btn.warm { background: var(--warm); }
.btn.warm:hover { background: #a85c1e; }

/* Lists */
ul.plain { padding-left: 1.2rem; }
ul.plain li { margin-bottom: 0.45rem; }

/* Contact form */
form.contact {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 1.5rem;
  max-width: 34rem;
}
form.contact label { display: block; font-weight: 600; margin: 0.9rem 0 0.3rem; }
form.contact input,
form.contact textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  font: inherit;
  background: #fff;
}
form.contact textarea { min-height: 8rem; }
form.contact .btn { margin-top: 1.1rem; }

.contact-details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 1.4rem 1.5rem;
  max-width: 34rem;
}
.contact-details p { margin: 0.4rem 0; }

/* Small */
small, .small { font-size: 0.88rem; color: var(--muted); }

/* Footer — dark, matching the header banner */
footer.site {
  background: var(--ink);
  color: #d7e2dd;
  padding: 1.6rem 1.25rem 2.2rem;
}
footer.site .inner { max-width: 60rem; margin: 0 auto; }
footer.site a { color: #9fd4c4; }
footer.site a:hover { color: #fff; }
footer.site .small { color: #a8b8c0; }

/* Footer brand split: logo left, text right */
.footer-split {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.footer-logo {
  flex-shrink: 0;
  display: block;
  text-decoration: none;
}
.footer-logo img {
  height: 7rem;
  width: auto;
  display: block;
  border-radius: 0.5rem;
  border: 1px solid rgba(245, 242, 234, 0.35);
}
.footer-text p { margin: 0 0 0.4rem; }
.footer-text strong { color: #f5f2ea; }
@media (max-width: 40rem) {
  .footer-split { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer-logo img { height: 5.5rem; }
}

@media (max-width: 40rem) {
  header.site .inner { flex-direction: column; }
  header.site nav a { margin-left: 0; margin-right: 1.1rem; }
  h1 { font-size: 1.7rem; }
}
