/* Breakpoints (mobile-first, min-width)
   30rem (480px)  – compact phones landscape / small tablets portrait
   48rem (768px)  – tablets
   64rem (1024px) – small desktops
   80rem (1280px) – wide desktops
*/

:root {
  --bp-sm: 30rem;
  --bp-md: 48rem;
  --bp-lg: 64rem;
  --bp-xl: 80rem;
  --mobile-nav-shadow: 0 24px 48px -24px rgba(15, 23, 42, 0.32);
  --surface-border: #e5e7eb;
}

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

html,
body {
  min-height: 100%;
}

body {
  font-size: clamp(0.9375rem, 2.4vw, 1rem);
  line-height: 1.6;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.5) 100%),
    url('../img/pexels-muffinsaurs-994164.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  color: #1f2937;
}

@media (min-width: 64rem) {
  body {
    background-attachment: fixed;
  }
  
}

@media (min-width: 80rem) {
  body {
    font-size: 1.0625rem;
  }
}

main {
  overflow-x: hidden;
}

p,
li,
dd {
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.heading-display {
  font-size: clamp(2.125rem, 6vw, 3.25rem);
  line-height: 1.1;
}

.heading-section {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.25rem, 3.5vw, 1.5rem);
  line-height: 1.35;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

picture,
figure {
  display: block;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  min-height: 2.75rem;
}



input[type="range"] {
  min-height: 0;
}

textarea {
  min-height: 6.25rem;
  resize: vertical;
}

button,
input[type="button"],
input[type="submit"] {
  cursor: pointer;
}

form label span {
  line-height: 1.4;
}

.site-header {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.92));
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 14px 32px -24px rgba(15, 23, 42, 0.48);
  backdrop-filter: saturate(150%) blur(16px);
  isolation: isolate;
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  min-height: 4.5rem;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: #1f2937;
  font-weight: 600;
  padding: 0.35rem 0;
  transition: color 0.2s ease;
}

.site-header__brand:hover .site-header__title,
.site-header__brand:focus-visible .site-header__title {
  color: var(--accent-600);
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.875rem;
  height: 2.875rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 12px 20px -12px rgba(37, 99, 235, 0.55);
}

.site-header__title {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  font-size: clamp(0.95rem, 2.5vw, 1.125rem);
  max-width: 16.5rem;
  line-height: 1.25;
}

.site-header__controls {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-left: auto;
}

.site-header__cta {
  display: none;
}

.site-header__cta--mobile {
  width: 100%;
}

.site-header__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.site-header__toggle:hover {
  background-color: rgba(59, 130, 246, 0.08);
  border-color: rgba(148, 163, 184, 0.4);
}

.site-header__toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  line-height: 1.1;
  font-weight: 600;
  text-align: center;
}

.primary-nav {
  position: absolute;
  top: calc(100% + 0.85rem);
  left: 0;
  right: 0;
  display: block;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--surface-border);
  border-radius: 1rem;
  box-shadow: var(--mobile-nav-shadow);
  z-index: 20;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.4rem);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.primary-nav[data-open="true"] {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.primary-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-nav-list li {
  width: 100%;
}

.primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 0.75rem 0.75rem;
  border-radius: 0.75rem;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.35;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.primary-nav .cta-link {
  justify-content: center;
  margin-top: 0.25rem;
}

#nav-toggle.is-active,
.site-header__toggle.is-active {
  border-color: transparent;
  background-color: rgba(59, 130, 246, 0.1);
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--accent-600);
  background-color: rgba(59, 130, 246, 0.08);
}

.primary-nav a[aria-current="page"] {
  color: var(--accent-600);
}

@media (min-width: 48rem) {
  body:not(.nav-touch) .primary-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    background: transparent;
    width: auto;
    margin: 0;
    border: 0;
    box-shadow: none;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  body:not(.nav-touch) .primary-nav-list {
    flex-direction: row;
    align-items: center;
    gap: clamp(1.2rem, 3vw, 2.25rem);
    width: auto;
  }

  body:not(.nav-touch) .primary-nav-list li {
    width: auto;
  }

  body:not(.nav-touch) .primary-nav a {
    width: auto;
    padding: 0.65rem 0.25rem;
    justify-content: center;
    border-radius: 999px;
    line-height: 1.1;
    white-space: nowrap;
  }

  body:not(.nav-touch) .primary-nav .cta-link {
    padding-inline: 1.5rem;
    min-height: 2.5rem;
    margin-top: 0;
  }

  body:not(.nav-touch) .primary-nav-list a:not(.cta-link)::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
    opacity: 0;
    transform: scaleX(0.5);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  body:not(.nav-touch) .primary-nav-list a:not(.cta-link):hover::after,
  body:not(.nav-touch) .primary-nav-list a:not(.cta-link):focus-visible::after,
  body:not(.nav-touch) .primary-nav-list a:not(.cta-link)[aria-current="page"]::after {
    opacity: 1;
    transform: scaleX(1);
  }

  body:not(.nav-touch) .site-header__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.6rem;
    line-height: 1.1;
    white-space: nowrap;
  }

  body:not(.nav-touch) .site-header__cta--mobile {
    display: none !important;
  }

  body:not(.nav-touch) .site-header__toggle {
    display: none;
  }

  .site-header__title {
    max-width: none;
  }
}


/* Reveal on scroll */
[data-animate] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-animate] { opacity: 1 !important; transform: none !important; }
}

/* Improve focus visibility */
*:focus-visible {
  outline: 2px solid #F59E0B; /* accent-500 */
  outline-offset: 2px;
}

/* Offset anchors for sticky header */
section[id] { scroll-margin-top: 5rem; }

/* Compare slider */
.compare {
  display: grid;
  gap: .75rem;
}
.compare-surface {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid #e5e7eb; /* gray-200 */
  border-radius: .75rem;
  overflow: hidden;
  background: #fff;
  --pos: 50%;
}
.compare-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}
.compare-img.after {
  clip-path: inset(0 0 0 var(--pos));
}
.compare-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: end start;
  padding: .5rem .75rem;
  font-weight: 600;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}
.compare-layer .label {
  margin: .5rem;
  padding: .25rem .5rem;
  border-radius: .375rem;
  font-size: .75rem;
  color: #111827; /* gray-900 */
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e5e7eb;
}
.compare-layer.before {
  background: none !important;
  width: var(--pos);
  overflow: hidden;
}
.compare-layer.after {
  background: none !important;
  left: var(--pos);
  right: 0;
  width: auto;
  overflow: hidden;
}

/* Compare handle */
.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 0;
  transform: translateX(-1px);
  z-index: 2;
}
.compare-handle::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -1px; width: 2px;
  background: #f59e0b; /* accent-500 */
}
.compare-handle::after {
  content: '';
  position: absolute;
  left: -12px; top: 50%;
  width: 24px; height: 24px;
  background: #f59e0b;
  border-radius: 9999px;
  transform: translateY(-50%);
  box-shadow: 0 1px 2px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.12);
}

.compare-range {
  position: absolute;
  inset: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: ew-resize;
  z-index: 3;
}
.compare-range:focus { outline: none; }
.compare-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 44px; height: 44px;
  background: transparent;
  border-radius: 9999px;
}
.compare-range::-moz-range-thumb {
  width: 44px; height: 44px;
  background: transparent;
  border: none;
  border-radius: 9999px;
}

/* Hero photo styling */
.hero-photo {
  position: relative;
  isolation: isolate;
  background: #fff;
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.08), rgba(59, 130, 246, 0.08));
  pointer-events: none;
  z-index: 1;
}

/* Footer */
.site-footer {
  color: #4b5563; /* gray-600 */
}
.site-footer__legal article {
  padding: 1.5rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  box-shadow: 0 10px 25px -20px rgba(15, 23, 42, 0.4);
}
.site-footer__legal article p {
  line-height: 1.6;
}
.site-footer__legal article h3 {
  letter-spacing: 0.08em;
}

/* Contact section */
.contact-grid {
  align-items: stretch;
}
.contact-panel {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 1.25rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.92));
  box-shadow: 0 22px 48px -32px rgba(15, 23, 42, 0.45);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  backdrop-filter: blur(6px);
}
.contact-form {
  display: grid;
  gap: 1.25rem;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  color: #374151; /* gray-700 */
}
.contact-info ul {
  display: grid;
  gap: 0.9rem;
}
.contact-info .label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280; /* gray-500 */
}
.contact-info .value {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: inherit;
}
.contact-info a.value {
  transition: color 0.2s ease;
}
.contact-info a.value:hover {
  color: var(--accent-600);
}
.contact-highlight {
  margin-top: auto;
  padding: 1.1rem 1.25rem;
  border-radius: 0.85rem;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.18);
  color: #1d4ed8;
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* Accent color override to blue (similar to reference) */
:root{
  --accent-50:#eff6ff; --accent-100:#dbeafe; --accent-200:#bfdbfe; --accent-300:#93c5fd; --accent-400:#60a5fa; --accent-500:#3b82f6; --accent-600:#25eb7ea2; --accent-700:#1d4ed8; --accent-800:#1e40af; --accent-900:#1e3a8a;
}
.bg-accent-50{ background-color: var(--accent-50) !important; }
.bg-accent-500{ background-color: var(--accent-500) !important; }
.hover\:bg-accent-600:hover{ background-color: var(--accent-600) !important; }
.text-accent-700{ color: var(--accent-700) !important; }
.text-accent-800{ color: var(--accent-800) !important; }
.border-accent-100{ border-color: var(--accent-100) !important; }
