/* =========
   Base
   ========= */

:root {
  color-scheme: light;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --color-bg: #e9e9f3;
  --color-surface: #ffffff;
  --color-accent: #d3420d;
  --color-accent-soft: rgba(13, 110, 253, 0.08);
  --color-text: #111827;
  --color-text-muted: #2f363f;
  --color-border: #e5e7eb;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius-lg: 18px;
  --radius-pill: 999px;
  --max-width: 980px;

  /* Fluid type scale */
  --step--1: clamp(0.875rem, 0.82rem + 0.2vw, 0.95rem);
  --step-0: clamp(1rem, 0.94rem + 0.3vw, 1.1rem);
  --step-1: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.7vw, 1.9rem);
  --step-3: clamp(2rem, 1.7rem + 1vw, 2.4rem);
}

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

html {
  font-family: var(--font-sans);
  font-size: 125%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at top left, #e0f2fe 0, transparent 60%),
              radial-gradient(circle at bottom right, #b5c3de 0, transparent 60%),
              var(--color-bg);
  color: var(--color-text);
}

/* =========
   Layout
   ========= */

body > header,
main,
footer {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1.2rem, 2vw, 1.5rem);
}

main {
  flex: 1;
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
  display: grid;
  gap: clamp(1.75rem, 3vw, 2.5rem);
}

/* =========
   Header
   ========= */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-block: 1.25rem;
  margin-top: 0.5rem;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9));
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

header img {
  height: clamp(56px, 8vw, 80px);
  width: auto;
}

/* header contact list */
header ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

header li {
  display: inline-flex;
}

header a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--color-text);
  border: 1px solid transparent;
  background-color: transparent;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    transform 120ms ease;
}

/* Make phone the primary CTA */
header li:first-child a {
  background-color: var(--color-accent);
  color: #ffffff;
  border-color: transparent;
}


/* Secondary CTA buttons */
header li:nth-child(2) a {
  background-color: var(--color-accent-soft);
  border-color: rgba(148, 163, 184, 0.25);
}

header li:nth-child(3) a {
  border-color: rgba(148, 163, 184, 0.45);
}

/* hover / focus */
a:hover,
a:focus-visible {
  outline: none;
}

header a:hover,
header a:focus-visible {
  transform: translateY(-1px);
  border-color: var(--color-accent);
  background-color: rgba(13, 110, 253, 0.08);
}

header li:first-child a:hover,
header li:first-child a:focus-visible {
  background-color: #0b5ed7;
}

/* =========
   Sections
   ========= */

section {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.2vw, 1.8rem);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

/* Hero section (first section) as 2-column on wide screens */
main > section:first-of-type {
  display: grid;
  gap: 1.5rem;
}

main > section:first-of-type img {
  border-radius: 16px;
  inline-size: 100%;
  block-size: auto;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

main > section:nth-child(3) img { 
  justify-self: center;
}

/* =========
   Typography
   ========= */

h1,
h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}

h1 {
  font-size: var(--step-3);
  line-height: 1.1;
}

h2 {
  font-size: var(--step-2);
  line-height: 1.15;
}

p {
  margin-top: 0.35rem;
  margin-bottom: 0.75rem;
  font-size: var(--step-0);
  color: var(--color-text-muted);
}

strong {
  font-weight: 600;
}

/* small text */
small {
  font-size: var(--step--1);
  color: var(--color-text-muted);
}

/* =========
   Lists
   ========= */

main ul {
  padding-left: 1.1rem;
  margin-top: 0.5rem;
  margin-bottom: 1.1rem;
  display: grid;
  gap: 0.3rem;
  font-size: var(--step-0);
}

main li::marker {
  color: var(--color-accent);
}

/* =========
   Horizontal rule
   ========= */

hr {
  border: 0;
  border-top: 1px dashed rgba(148, 163, 184, 0.65);
  margin-block: 0.9rem;
}

/* =========
   Images and media
   ========= */

img {
  max-width: 100%;
  height: auto;
  display: block;
}

iframe {
  inline-size: 100%;
  block-size:auto;
  max-width: 95%;
  border-radius: 16px;
  border: 0;
  aspect-ratio: 16 / 9;
  margin: 1rem;
}

/* =========
   Details / summary (accordion)
   ========= */

details {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: linear-gradient(145deg, #f9fafb, #ffffff);
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.65rem;
  color: var(--color-text-muted);
}

summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: var(--step-0);
  color: var( --color-text);
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: "▸";
  display: inline-block;
  font-size: 1.35em;
  color: var(--color-accent);
  transform-origin: center;
  transition: transform 150ms ease;
}

/* arrow rotated on open */
details[open] > summary::before {
  transform: rotate(90deg);
}

details p {
  margin-top: 0.6rem;
}

/* keyboard focus */
summary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 10px;
}

/* =========
   Footer
   ========= */

footer {
  padding-block: 1.5rem 2.2rem;
  text-align: center;
  font-size: var(--step--1);
  color: var(--color-text-muted);
}

/* =========
   Links (global)
   ========= */

main a {
  color: var(--color-accent);
  font-weight: 500;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.18em;
}

main a:hover,
main a:focus-visible {
  text-decoration: underline;
}

/* =========
   Responsive tweaks
   ========= */

/* Simple centered layout on very small screens */
@media (max-width: 640px) {
  header {
    flex-direction: column;
    align-items: stretch;
    border-radius: 24px;
  }

  header img {
    align-self: center;
  }

  header ul {
    justify-content: center;
  }

  header a {
    width: 100%;
    justify-content: center;
  }

  body > header,
  main,
  footer {
    padding-inline: 1rem;
  }
}

/* Reduce header “stickiness” on very tall desktops if you prefer */
@media (min-width: 1200px) {
  header {
    margin-top: 1.25rem;
  }
}