/* =========================================================
   Dan Scott — Luminous Gallery
   Hand-written CSS. No frameworks.
   ========================================================= */

:root {
  --background: #ffffff;
  --foreground: #0b1220;
  --brand: #0b1220;
  --accent: #4f46e5;
  --sky: #93c5fd;
  --soft: #f1f5f9;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --maxw: 72rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, .font-display { font-family: var(--font-display); }

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.875rem 1.5rem;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--brand); }
.btn-brand { background: var(--brand); color: #fff; padding: 0.625rem 1.25rem; }
.btn-brand:hover { background: var(--accent); }
.btn-ghost { border-color: var(--slate-300); color: var(--brand); }
.btn-ghost:hover { border-color: var(--brand); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(226, 232, 240, .7);
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(16px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--brand);
}
.logo span { color: var(--accent); }
.main-nav { display: none; gap: 2rem; font-size: 0.875rem; font-weight: 500; color: var(--slate-600); }
.main-nav a:hover { color: var(--brand); }
.main-nav ul { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .main-nav { display: flex; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; padding-top: 6rem; padding-bottom: 7rem; }
.blob { position: absolute; border-radius: 999px; filter: blur(64px); pointer-events: none; }
.blob-a { right: -5rem; top: -6rem; width: 420px; height: 420px; background: rgba(147, 197, 253, .3); }
.blob-b { left: -8rem; top: 10rem; width: 380px; height: 380px; background: rgba(79, 70, 229, .1); }

.pill {
  display: inline-block;
  border-radius: 999px;
  background: rgba(79, 70, 229, .1);
  padding: 0.375rem 0.75rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 1.5rem 0 0;
  max-width: 56rem;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.hero .lede {
  margin: 1.5rem 0 0;
  max-width: 36rem;
  font-size: 1.125rem;
  color: var(--slate-600);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }

.hero-figure { position: relative; margin-top: 4rem; }
.hero-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 1.5rem;
  background: var(--soft);
  outline: 1px solid rgba(0, 0, 0, .05);
  outline-offset: -1px;
}
.stat-card {
  display: none;
  position: absolute;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, .6);
  background: rgba(255, 255, 255, .8);
  padding: 1.25rem;
  box-shadow: 0 20px 40px -12px rgba(11, 18, 32, .18);
  backdrop-filter: blur(12px);
}
.stat-card p { margin: 0; }
.stat-card .num { font-family: var(--font-display); font-size: 1.875rem; font-weight: 600; }
.stat-card .label { margin-top: .25rem; font-size: .875rem; color: var(--slate-500); }
.stat-a { bottom: -2rem; left: -1.5rem; width: 14rem; animation: floaty 7s ease-in-out infinite; }
.stat-a .num { color: var(--brand); }
.stat-b { top: -1.5rem; right: -1.5rem; width: 13rem; animation: floaty 5s ease-in-out infinite; }
.stat-b .num { color: var(--accent); }
@media (min-width: 768px) { .stat-card { display: block; } }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@media (prefers-reduced-motion: reduce) {
  .stat-card { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Sections ---------- */
.section { padding-block: 7rem; }
.section-soft { background: rgba(241, 245, 249, .6); }
.section h2 {
  margin: 1rem 0 0;
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* ---------- About ---------- */
.about-grid { display: grid; gap: 4rem; align-items: center; }
@media (min-width: 768px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-grid p { color: var(--slate-600); margin-top: 1.25rem; }
.check-list { list-style: none; margin: 2rem 0 0; padding: 0; }
.check-list li { display: flex; gap: .75rem; align-items: flex-start; margin-top: 1rem; color: var(--slate-700); }
.check {
  flex: none;
  margin-top: .25rem;
  display: grid;
  place-items: center;
  width: 1.25rem; height: 1.25rem;
  border-radius: 999px;
  background: rgba(79, 70, 229, .15);
  color: var(--accent);
  font-size: .75rem;
}
.about-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 1.5rem;
  background: var(--soft);
  outline: 1px solid rgba(0, 0, 0, .05);
  outline-offset: -1px;
}

/* ---------- Services ---------- */
.services-grid { display: grid; gap: 1.5rem; margin-top: 3.5rem; }
@media (min-width: 768px) { .services-grid { grid-template-columns: 1fr 1fr; } }
.card {
  border-radius: 1.5rem;
  border: 1px solid var(--slate-100);
  background: #fff;
  padding: 2rem;
  box-shadow: 0 1px 2px rgba(11, 18, 32, .05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 32px -18px rgba(11, 18, 32, .25); }
.card h3 { margin: 1.25rem 0 0; font-size: 1.25rem; font-weight: 600; }
.card p { margin: .5rem 0 0; color: var(--slate-600); }
.icon {
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  border-radius: 1rem;
  font-size: 1.25rem;
}
.icon-accent { background: rgba(79, 70, 229, .1); color: var(--accent); }
.icon-sky { background: rgba(147, 197, 253, .2); color: #2563eb; }

/* ---------- FAQs ---------- */
@media all and (max-width: 767px) {
    .hero .wrap { position: relative; padding-top: 2rem !important; padding-bottom: 5rem; }
}
.faqs .wrap { max-width: 48rem; }
.faqs .eyebrow, .faqs h2 { text-align: center; display: block; }
.faq-list { margin-top: 3rem; display: grid; gap: 1rem; }
.faq {
  border-radius: 1rem;
  border: 1px solid var(--slate-200);
  background: #fff;
  padding: 1.5rem;
}
.faq h3 { margin: 0; font-size: 1.125rem; font-weight: 500; }
.faq p { margin: .5rem 0 0; color: var(--slate-600); }

/* ---------- Contact ---------- */
.contact .wrap { max-width: 56rem; }
.contact-card {
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
  border: 1px solid var(--slate-100);
  background: #fff;
  padding: 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(11, 18, 32, .15);
}
@media (min-width: 768px) { .contact-card { padding: 3.5rem; } }
.contact-card .blob-c {
  position: absolute; right: -4rem; top: -4rem;
  width: 16rem; height: 16rem;
  border-radius: 999px;
  background: rgba(147, 197, 253, .3);
  filter: blur(64px);
  pointer-events: none;
}
.contact-card .inner { position: relative; }
.contact-card h2 { margin: 0; font-size: 2.25rem; font-weight: 600; letter-spacing: -0.02em; }
.contact-card .lede { margin: 1rem 0 0; max-width: 32rem; color: var(--slate-600); }

.contact-form { margin-top: 2rem; display: grid; gap: 1rem; }
@media (min-width: 768px) { .contact-form {  }}
.contact-form .full { grid-column: 1 / -1; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: .75rem;
  border: 1px solid var(--slate-200);
  background: var(--soft);
  padding: .875rem 1rem;
  font: inherit;
  font-size: .875rem;
  margin-bottom:  15px;
  color: var(--foreground);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--slate-400); }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, .4);
}
.contact-form input[type="submit"] {
  grid-column: 1 / -1;
  border: 0;
  border-radius: .75rem;
  background: var(--accent);
  color: #fff;
  padding: 1rem;
  font-family: var(--font-display);
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .2s ease;
}
.contact-form input[type="submit"]:hover { background: var(--brand); }

.form-notice {
  margin: 0 0 1.5rem;
  border-radius: .75rem;
  padding: .875rem 1rem;
  font-size: .875rem;
}
.form-notice.ok { background: rgba(147, 197, 253, .25); color: #1e3a8a; }
.form-notice.err { background: rgba(239, 68, 68, .12); color: #991b1b; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--slate-200);
  background: rgba(241, 245, 249, .5);
}
.site-footer .wrap { padding-block: 3rem; }
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: space-between;
}
@media (min-width: 768px) { .footer-top { flex-direction: row; align-items: center; } }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; margin: 0; padding: 0; font-size: .875rem; color: var(--slate-600); }
.footer-nav a:hover { color: var(--brand); }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--slate-200);
  display: flex;
  flex-direction: column;
  gap: .75rem;
  justify-content: space-between;
  font-size: .875rem;
  color: var(--slate-500);
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; } }
.footer-contact { display: flex; gap: 1.5rem; }
.footer-contact a:hover { color: var(--brand); }

/* ---------- Fallback page/post content ---------- */
.page-content { padding-block: 5rem; }
.page-content .wrap { max-width: 48rem; }
.page-content h1 { font-size: 2.5rem; letter-spacing: -0.02em; }
.page-content a { color: var(--accent); text-decoration: underline; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
