/* ====== FONTS (from brief) ====== */
@font-face {
  font-family: "Wellfleet";
  src: url("fonts/Wellfleet-Regular.woff2") format("woff2"), url("fonts/Wellfleet-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Rubik";
  src: url("fonts/Rubik-Regular.woff2") format("woff2"), url("fonts/Rubik-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Rubik";
  src: url("fonts/Rubik-Bold.woff2") format("woff2"), url("fonts/Rubik-Bold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/* ====== THEME VARS (LIGHT) ====== */
:root {
  --font-base: "Rubik", sans-serif;
  --font-heading: "Wellfleet", sans-serif;
  --font-body: var(--font-base);

  /* Base Backgrounds */
  --color-bg: #f9fafc;
  --color-bg-alt: #ffffff;
  --color-surface: #f0f4f8;

  /* Brand */
  --color-primary: #ffb400;
  --color-primary-light: #ffd666;
  --color-primary-dark: #d18f00;

  /* Secondary */
  --color-secondary: #ff4b4b;
  --color-secondary-light: #ff7676;
  --color-secondary-dark: #b91c1c;

  /* Accent */
  --color-accent: #4aa3ff;
  --color-accent-light: #8ccaff;
  --color-accent-dark: #0066cc;

  /* States */
  --color-success: #31b16f;
  --color-warning: #ff9f43;
  --color-error: #e63946;

  /* Text & neutral */
  --color-text: #1a1a1a;
  --color-text-muted: #6b7280;
  --color-text-inverse: #ffffff;

  /* Border & shadow */
  --color-border: #d1d5db;
  --color-border-light: #e5e7eb;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);

  /* Extra gradients for 20% sections */
  --grad-yellow: linear-gradient(135deg, #fff3c4, #ffe28a);
  --grad-red: linear-gradient(135deg, #ffe5e5, #ffd0d0);
  --grad-blue: linear-gradient(135deg, #e7f2ff, #cfe8ff);
  --grad-green: linear-gradient(135deg, #e9fbf3, #ccf5e3);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.1;
}
body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}
* {
  margin-top: 0;
}
a {
  color: var(--color-accent-dark);
}
a:hover {
  text-decoration: none;
  color: var(--color-secondary-dark);
}
html,
body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

footer {
  flex-shrink: 0;
}
button {
  border: 0;
  cursor: pointer;
}
figure {
  margin: 0;
  overflow: hidden;
}
figure:not(.icon):not(.brand-figure):not(.bg-figure):not(.hero-bg) {
  border-radius: 5px 20px;
}

figure:not(.icon):not(.brand-figure):not(.bg-figure):not(.hero-bg) img {
  transform: scale(0);
  opacity: 0;
  transition: all 1s;
}

figure:not(.icon):not(.brand-figure):not(.bg-figure):not(.hero-bg).in-view img {
  transform: scale(1);
  opacity: 1;
}
img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

main h2,
main h3,
main p,
main li {
  opacity: 0;
  transform: translateY(20px) scale(0.98) rotateX(5deg);
  transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center bottom;
}

main h2.in-view,
main h3.in-view,
main p.in-view,
main li.in-view {
  opacity: 1;
  transform: translateY(0) scale(1) rotateX(0);
}

blockquote {
  margin: 0;
}

/* Aspect helpers */
.aspect-3-4 {
  aspect-ratio: 3/4;
}
.aspect-4-3 {
  aspect-ratio: 4/3;
}
.aspect-16-9 {
  aspect-ratio: 16/9;
}
.aspect-1-1 {
  aspect-ratio: 1/1;
}

/* ====== LAYOUT ====== */
.shell {
  width: min(1200px, 92%);
  margin-inline: auto;
}
.header {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border-light);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
}
.brand {
  display: flex;
  justify-content: center;
}
.brand figure {
  width: 251px;
}
.nav {
  justify-self: end;
}
.nav ul {
  display: flex;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.nav a:hover {
  background: var(--color-surface);
  color: var(--color-accent-dark);
}
.burger {
  display: none;
  justify-self: end;
}
.burger button {
  background: var(--color-bg-alt);
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}
.mobile-panel {
  display: none;
  position: fixed;
  inset: 0 0 auto 0;
  top: 60px;
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-lg);
}
.mobile-panel ul {
  list-style: none;
  margin: 0;
  padding: 16px;
  display: grid;
  gap: 8px;
}
.mobile-panel a {
  padding: 12px;
  display: block;
  color: var(--color-text);
  text-decoration: none;
  border-radius: 8px;
  background: var(--color-surface);
}
.mobile-panel a:hover {
  background: var(--color-primary-light);
}

.footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border-light);
  margin-top: 60px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  padding: 40px 0;
}
.footer-cta {
  background: var(--grad-blue);
  border-radius: 28px;
  padding: 20px;
  box-shadow: var(--shadow-md);
}
.footer-cta h4 {
  margin-bottom: 8px;
}
.footer-nav ul,
.footer-meta ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.footer a {
  color: var(--color-text);
  text-decoration: none;
}
.footer a:hover {
  color: var(--color-accent-dark);
}
.footer-bottom {
  border-top: 1px solid var(--color-border-light);
  padding: 12px 0;
  font-size: 14px;
  color: var(--color-text-muted);
}

/* ====== MAIN / SECTIONS ====== */
main > .section {
  position: relative;
  padding: 64px 0;
}
.section .section-head {
  margin-bottom: 28px;
}
.section .section-title {
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.section .section-lead {
  color: var(--color-text-muted);
}

/* full-section bg image implemented via HTML <figure> */
.has-bg .bg-figure {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.has-bg .bg-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateY(var(--parallax-y, 0px)) scale(1.2);
  transition: transform 0.1s linear;
}
.has-bg .shell,
.has-bg .content {
  position: relative;
  z-index: 1;
}

/* gradient sections (20% rule targets) */
.grad-1 {
  background: var(--grad-yellow);
}
.grad-2 {
  background: var(--grad-red);
}
.grad-3 {
  background: var(--grad-blue);
}
.grad-4 {
  background: var(--grad-green);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.05s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--color-primary);
  color: #000;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--color-primary-light);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--color-accent);
  color: var(--color-text-inverse);
}
.btn-secondary:hover {
  background: var(--color-accent-dark);
}
.btn-ghost {
  background: var(--color-bg-alt);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-ghost:hover {
  background: var(--color-surface);
}

/* Cards (unique radii + gradients) */
.card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border-light);
  border-radius: 5px 50px;
  box-shadow: var(--shadow-sm);
  padding: 20px;
}
.card--alt {
  border-radius: 28px 6px 28px 6px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}
.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.card-header figure.icon {
  width: 48px;
  height: 48px;
}

/* Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* Lists */
ul.styled {
  padding-left: 18px;
  display: grid;
  gap: 6px;
}
ul.styled li {
  position: relative;
}
ul.styled li::marker {
  color: var(--color-secondary);
}

/* Tables */
.table-wrap {
  overflow: auto;
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  background: var(--color-bg-alt);
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th,
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border-light);
  text-align: left;
}
.table thead th {
  background: var(--color-surface);
}

/* Forms */
.form {
  display: grid;
  gap: 14px;
}
.field {
  display: grid;
  gap: 6px;
}
.field .label {
  font-weight: 700;
}
input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: #fff;
  font: inherit;
  color: inherit;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--color-accent-light);
  border-color: var(--color-accent);
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
}
.check input {
  width: auto;
}

/* Specials */
.split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: center;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
}
.badge {
  display: inline-block;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
}

/* Accordion / Tabs */
.accordion .acc-item {
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-bg-alt);
  margin: 0 0 10px;
}
.accordion .acc-head {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  background: var(--color-surface);
  font-weight: 700;
}
.accordion .acc-body {
  display: none;
  padding: 14px 16px;
}
.tabs .tab-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
}
.tab-btn.is-active {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
}
.tab-panels .tab-panel {
  display: none;
}
.tab-panels .tab-panel.is-active {
  display: block;
}

/* Testimonials */
.testi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.testi .tcard {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border-light);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.tcard figure.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
}
.tcard blockquote {
  margin-top: 10px;
  color: var(--color-text);
}
.tcard .meta {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-top: 8px;
}

/* Parallax helper attr */
[data-parallax] .bg-figure img {
  will-change: transform;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1023px) {
  .nav {
    display: none;
  }
  .burger {
    display: flex;
  }
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
  .testi {
    grid-template-columns: 1fr;
  }
}
.buttons {
  display: flex;
  gap: 16px;
}
@media (max-width: 767px) {
  .grid-3,
  .grid-4,
  .grid-2,
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .buttons {
    flex-direction: column;
  }
}

.visually-hidden {
  display: none;
}

.section-hero .hero-text,
.text-card {
  background-color: #cfe8ff;
  border-radius: 5px 20px;
  padding: 20px;
}

.tab-controls {
  margin: 0 0 20px;
}

.card-icon {
  width: 100px;
  border-radius: 100%;
  background-color: var(--color-accent);
  margin: 0 0 20px;
}

.images-card {
  & > figure {
    margin: 0 0 10px;
  }
}
iframe {
  border: 0;
}
