/* Shallcross Web Design: palette and type carried over from the original site */
:root {
  --deep: #174657;
  --deep-2: #1b4456;
  --teal: #0f7596;
  --cream: #fbf9f8;
  --mist: #e7f1f5;
  --ink: #1a202c;
  --body: #2d3748;
  --red: #ad1010;
  --gold: #f6ad37;
  --display: "Playfair Display", Georgia, serif;
  --head: "Raleway", "Helvetica Neue", Arial, sans-serif;
  --text: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--body);
  font: 400 16px/1.65 var(--text);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
a:hover { color: var(--deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

h1, h2, h3 { color: var(--ink); margin: 0 0 .6em; line-height: 1.25; }
h2 { font: 800 clamp(1.8rem, 3.2vw, 2.3rem)/1.25 var(--head); }
h3 { font: 700 1.5rem/1.3 var(--head); color: var(--deep); }
mark { background: none; color: var(--teal); }
p { margin: 0 0 1.1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 2rem); }
.sec { padding: clamp(4rem, 8vw, 6rem) 0; position: relative; }
.center { text-align: center; }
.split { display: grid; gap: clamp(2rem, 6vw, 5rem); align-items: center; grid-template-columns: 1fr 1fr; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--ink); padding: .6rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; top: 1rem; }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font: 600 1.05rem/1 var(--text);
  padding: 1.05rem 1.9rem; border-radius: 999px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; font-size: 1.3rem; padding: 1.3rem 2.1rem; box-shadow: 0 8px 18px rgba(0,0,0,.3); }
.btn-red:hover { color: #fff; background: #c21414; box-shadow: 0 12px 24px rgba(0,0,0,.35); }
.btn-ghost { border: 2px solid #fff; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--teal); }
.btn-deep { background: var(--deep); color: #fff; }
.btn-deep:hover { background: var(--teal); color: #fff; }

/* Waves */
.wave { position: absolute; left: 0; width: 100%; height: clamp(30px, 5vw, 70px); line-height: 0; }
.wave svg { width: 100%; height: 100%; display: block; }
.wave-bottom { bottom: -1px; }
.wave-top { top: -1px; }

/* Hero */
.hero {
  background: linear-gradient(45deg, var(--deep-2) 0%, var(--deep) 100%);
  color: rgba(251,249,248,.9);
  padding: clamp(4rem, 9vw, 6.5rem) 0 clamp(6rem, 11vw, 9rem);
  overflow: hidden;
}
.hero::before { /* soft halo behind the screens, a nod to the 70s glow */
  content: ""; position: absolute; width: 60vw; height: 60vw; right: -15vw; top: -10vw;
  background: radial-gradient(circle, rgba(15,117,150,.45), transparent 65%);
  pointer-events: none;
}
.hero h1 {
  font: 900 clamp(2.4rem, 5.2vw, 3.3rem)/1.18 var(--display);
  color: var(--cream); letter-spacing: -.01em; max-width: 15em;
}
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.6; max-width: 27em; margin-bottom: 2.2rem; }
.hero .split { grid-template-columns: 1fr 1.05fr; position: relative; }
.hero-art img { width: 100%; filter: drop-shadow(0 20px 30px rgba(0,0,0,.35)); }

/* Three seconds */
.intro h2 { font-size: clamp(1.9rem, 3.3vw, 2.3rem); }
.intro .split { grid-template-columns: 1fr 1.15fr; }

/* Facelift */
.facelift { background: var(--teal); color: #fff; text-align: center; padding: clamp(3.5rem, 7vw, 5rem) 0; }
.facelift img { margin: 0 auto 1.4rem; width: min(500px, 90%); }
.facelift h2 { color: var(--cream); font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 1.6rem; }

/* Why it matters */
.why { background: var(--cream); }
.why .lead-in { font: 700 1.3rem/1.4 var(--head); color: var(--ink); margin: 2rem 0 2.4rem; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.8rem, 4vw, 3rem); }
.trio .ico { width: 46px; height: 46px; color: var(--teal); margin-bottom: 1rem; }
.trio h3 { font-size: 1.5rem; }

/* Portfolio */
.work { background: var(--mist); padding-top: clamp(5rem, 10vw, 7.5rem); }
.work .intro-text { max-width: 46em; margin: 0 auto 3rem; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem 2.5rem; max-width: 900px; margin: 0 auto; }
.gallery figure { margin: 0; text-align: center; }
.gallery img { width: 100%; transition: transform .35s ease; }
.gallery a:hover img { transform: scale(1.03) rotate(-.4deg); }
.gallery figcaption { margin-top: 1rem; font-weight: 600; }

/* Reviews */
.reviews { background: var(--cream); }
.review-card {
  background: #fff; padding: 2.4rem 2.2rem; text-align: center;
  margin: 0 14px 14px 0;
  /* soft shadow plus an offset outline for a hand-made, layered feel */
  box-shadow: 0 6px 18px rgba(26,32,44,.15), 14px 14px 0 -2px var(--cream), 14px 14px 0 0 rgba(15,117,150,.5);
}
.review-card h3 { color: var(--ink); margin-bottom: .4rem; }
.stars { display: flex; justify-content: center; gap: 4px; color: var(--gold); margin-bottom: 1rem; }
.stars svg { width: 22px; height: 22px; }
.review-card blockquote { margin: 0 0 1.4rem; font-size: 1.1rem; line-height: 1.6; }
.review-card cite { font: 600 .8rem/1 var(--text); letter-spacing: .12em; text-transform: uppercase; font-style: normal; color: var(--ink); }

/* Toolkit */
.toolkit { background: linear-gradient(180deg, var(--teal) 0%, #0d6684 100%); color: #fff; }
.toolkit h2 { color: #fff; }
.toolkit .intro-text { max-width: 52em; margin-bottom: 3rem; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.card { background: var(--cream); color: var(--body); text-align: center; border: 1px solid rgba(255,255,255,.25); }
.card-top { background: var(--deep); height: 80px; position: relative; }
.card-ico {
  position: absolute; left: 50%; bottom: -36px; transform: translateX(-50%);
  width: 72px; height: 72px; border-radius: 50%; background: #fff; color: var(--deep);
  display: grid; place-items: center; box-shadow: 0 4px 10px rgba(0,0,0,.12);
}
.card-ico svg { width: 34px; height: 34px; }
.card-body { padding: 3.2rem 1.6rem 2rem; }
.card h3 { font-size: 1.5rem; }

/* Build for */
.build .split { grid-template-columns: 1.3fr 1fr; align-items: start; }
.build h3 { color: var(--ink); }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { display: flex; align-items: center; gap: .7rem; padding: .28rem 0; }
.checks svg { width: 18px; height: 18px; flex: none; color: var(--deep); }

/* CTA */
.cta { background: var(--teal); color: #fff; padding: clamp(3.5rem, 7vw, 5rem) 0; }
.cta .logo { width: min(400px, 80%); margin: 0 auto 2.6rem; }
.cta .split { grid-template-columns: 1fr auto; }
.cta h2 { color: var(--cream); }

/* FAQ timeline */
.faq .split { grid-template-columns: 1fr 2fr; align-items: start; }
.eyebrow { font: 700 .8rem/1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--deep); margin-bottom: .8rem; }
.faq aside { position: sticky; top: 2rem; }
.faq aside h2 { font-size: clamp(2rem, 3.4vw, 2.4rem); }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 23px; top: 10px; bottom: 30px; width: 2px; background: rgba(23,70,87,.3); }
.timeline li { display: grid; grid-template-columns: 48px 1fr; gap: 1.1rem; padding-bottom: 2.4rem; position: relative; }
.t-ico { width: 48px; height: 48px; border-radius: 50%; background: var(--deep); color: #fff; display: grid; place-items: center; }
.t-ico svg { width: 22px; height: 22px; }
.timeline h3 { font-size: 1.4rem; margin: .5rem 0 .3rem; }

/* Footer */
.site-foot { background: var(--deep); color: rgba(251,249,248,.85); font-size: .92rem; padding: 2.2rem 0; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.site-foot a { color: #fff; }
.site-foot nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }

/* Legal page */
.legal { padding: clamp(3rem, 7vw, 5rem) 0; }
.legal .wrap { max-width: 820px; }
.page-head { background: linear-gradient(45deg, var(--deep-2), var(--deep)); color: var(--cream); padding: 3rem 0 4.5rem; position: relative; }
.page-head h1 { font: 900 clamp(2.2rem, 4.5vw, 3rem)/1.2 var(--display); color: var(--cream); margin: 0; }
.page-head .home { display: inline-block; margin-bottom: 1.6rem; }
.page-head .home img { width: 220px; }

@media (max-width: 900px) {
  .split, .hero .split, .intro .split, .build .split, .faq .split, .cta .split { grid-template-columns: 1fr; }
  .trio, .cards { grid-template-columns: 1fr; }
  .faq aside { position: static; }
  .cta .split { text-align: left; }
}
@media (max-width: 640px) {
  .gallery { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
