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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

section[id] {
  scroll-margin-top: 90px;
}

/* ---------- Scroll reveal animations ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.12s;
}

.reveal-delay-2 {
  transition-delay: 0.24s;
}

.services-grid > .reveal:nth-child(2),
.services-grid > .reveal:nth-child(5) {
  transition-delay: 0.12s;
}

.services-grid > .reveal:nth-child(3),
.services-grid > .reveal:nth-child(6) {
  transition-delay: 0.24s;
}

.why-grid > .reveal:nth-child(2) {
  transition-delay: 0.12s;
}

.why-grid > .reveal:nth-child(3) {
  transition-delay: 0.24s;
}

.why-grid > .reveal:nth-child(4) {
  transition-delay: 0.36s;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #16324f;
  background-color: #ffffff;
}

h1,
h2,
h3,
h4 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 700;
}

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

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
textarea {
  font-family: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #1e9bd7;
  outline-offset: 2px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 2000;
  padding: 0.85rem 1.5rem;
  background-color: #16324f;
  color: #ffffff;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* ---------- Header / Navbar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(22, 50, 79, 0.08);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo-img {
  height: 58px;
  width: auto;
}

/* ---------- Nav links ---------- */
.main-nav {
  display: flex;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #16324f;
  padding: 0.5rem 0.25rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #1e9bd7;
}

/* ---------- Hamburger button (hidden on desktop) ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: #16324f;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------- Mobile styles ---------- */
@media (max-width: 800px) {
  .logo {
    position: relative;
    top: 16px;
    height: 44px;
    overflow: visible;
  }

  .logo-img {
    height: 84px;
  }

  .hamburger {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: #ffffff;
    box-shadow: 0 12px 20px rgba(22, 50, 79, 0.12);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
  }

  .main-nav.is-open {
    max-height: 400px;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.5rem 1.5rem;
  }

  .nav-links li {
    border-bottom: 1px solid #eef3f7;
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 0.9rem 0.25rem;
  }
}

/* ---------- Desktop: oversized logo overlapping the bar ---------- */
@media (min-width: 801px) {
  .logo {
    position: relative;
    top: 20px;
    height: 60px;
    overflow: visible;
  }

  .logo-img {
    height: 116px;
  }
}

.logo-img {
  transition: background-color 0.2s ease, padding 0.2s ease;
}

.site-header.is-scrolled .logo-img,
.site-header.has-dark-hero .logo-img {
  padding: 0 0.4rem 0.4rem;
  background-color: #ffffff;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

/* ---------- Hero ---------- */
.hero {
  background-color: #f5f9fc;
  padding: 2.5rem 1.5rem;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.hero-content h1 {
  font-size: 2.6rem;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: #16324f;
}

.hero-content p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #3a4f66;
  margin: 0 0 1.75rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background-color: #147baf;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #10648f;
}

.btn-secondary {
  background-color: transparent;
  color: #16324f;
  border-color: #16324f;
}

.btn-secondary:hover {
  background-color: #16324f;
  color: #ffffff;
}

.hero-media {
  border-radius: 12px;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 801px) {
  .hero {
    padding: 3.5rem 1.5rem;
  }

  .hero-container {
    flex-direction: row;
    align-items: center;
    gap: 3.5rem;
  }

  .hero-content {
    flex: 1;
  }

  .hero-content h1 {
    font-size: 3.4rem;
  }

  .hero-media {
    flex: 1;
  }

  .hero-img {
    aspect-ratio: 4 / 3;
  }
}

/* ---------- Scripture parallax section ---------- */
.scripture-section {
  position: relative;
  min-height: 55vh;
  display: grid;
  place-items: center;
  padding: 4rem 1.5rem;
  background-image: url("../images/sky-image.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.scripture-quote {
  max-width: 700px;
  margin: 0;
  padding: 2.5rem 2rem;
  text-align: center;
  background-color: rgba(22, 50, 79, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.scripture-quote p {
  margin: 0 0 1rem;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.5;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.scripture-quote cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.03em;
  color: #eaf3fb;
}

@media (min-width: 801px) {
  .scripture-quote p {
    font-size: 1.7rem;
  }
}

/* Fixed backgrounds render poorly on touch devices; fall back to normal scroll */
@media (max-width: 800px), (pointer: coarse) {
  .scripture-section {
    background-attachment: scroll;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scripture-section {
    background-attachment: scroll;
  }
}

/* ---------- About ---------- */
.about {
  background-color: #ffffff;
  padding: 3rem 1.5rem;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.about-media {
  position: relative;
}

.about-media::before {
  content: "";
  position: absolute;
  top: -1.25rem;
  left: -1.25rem;
  width: 100%;
  height: 100%;
  background-color: #eaf5fb;
  border-radius: 12px;
  z-index: 0;
}

.about-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.about-content .eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #147baf;
}

.about-content h2 {
  margin: 0 0 1.25rem;
  font-size: 2.2rem;
  line-height: 1.2;
  color: #16324f;
}

.about-content p {
  margin: 0 0 1.25rem;
  color: #3a4f66;
  max-width: 56ch;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.about-highlights li {
  position: relative;
  padding-left: 2.25rem;
  font-weight: 600;
  color: #16324f;
}

.about-highlights li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: -0.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background-color: #147baf;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
}

@media (min-width: 801px) {
  .about {
    padding: 4.5rem 1.5rem;
  }

  .about-container {
    flex-direction: row;
    align-items: center;
    gap: 5rem;
  }

  .about-media {
    flex: 1;
  }

  .about-content {
    flex: 1;
  }

  .about-content h2 {
    font-size: 2.6rem;
  }
}

/* ---------- Services ---------- */
.services {
  background-color: #f5f9fc;
  padding: 3rem 1.5rem;
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-heading {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-heading .eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #147baf;
}

.section-heading h2 {
  margin: 0 0 1rem;
  font-size: 2.2rem;
  line-height: 1.2;
  color: #16324f;
}

.section-heading p {
  margin: 0;
  color: #3a4f66;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.service-card {
  position: relative;
  background-color: #ffffff;
  border: 1px solid #e3edf5;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 16px rgba(22, 50, 79, 0.05);
}

.service-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.4rem;
  color: #16324f;
}

.service-card p {
  margin: 0;
  color: #3a4f66;
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  background-color: #eaf5fb;
  color: #1e9bd7;
}

.service-icon svg {
  width: 30px;
  height: 30px;
}

.service-card--featured {
  background-color: #16324f;
  border-color: #16324f;
  box-shadow: 0 12px 32px rgba(22, 50, 79, 0.25);
}

.service-card--featured h3,
.service-card--featured p {
  color: #ffffff;
}

.service-card--featured .service-icon {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.service-badge {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background-color: #147baf;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.services-cta {
  margin-top: 3rem;
  text-align: center;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 801px) {
  .services {
    padding: 4.5rem 1.5rem;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }

  .service-card--featured {
    transform: translateY(-1rem);
  }
}

/* ---------- Deep Cleaning Checklist ---------- */
.deep-cleaning {
  background-color: #ffffff;
  padding: 3rem 1.5rem;
}

.deep-cleaning-container {
  max-width: 900px;
  margin: 0 auto;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
  background-color: #f5f9fc;
  border: 1px solid #e3edf5;
  border-radius: 12px;
  overflow: hidden;
}

.accordion-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  list-style: none;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #16324f;
  transition: color 0.2s ease;
}

.accordion-item summary::-webkit-details-marker {
  display: none;
}

.accordion-item summary:hover {
  color: #1e9bd7;
}

.accordion-item summary:focus-visible {
  outline: 3px solid #1e9bd7;
  outline-offset: -3px;
}

.accordion-item[open] summary {
  border-bottom: 1px solid #e3edf5;
}

.accordion-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.accordion-count {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #5c7186;
  white-space: nowrap;
}

.accordion-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  background-color: #1e9bd7;
  transition: transform 0.2s ease;
}

.accordion-icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

.accordion-icon::after {
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}

.accordion-item[open] .accordion-icon::after {
  transform: translateX(-50%) rotate(90deg);
}

.accordion-panel {
  padding: 1.5rem 1.5rem 1.5rem;
}

.checklist-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.65rem;
  color: #3a4f66;
  line-height: 1.5;
  break-inside: avoid;
}

.checklist-list li:last-child {
  margin-bottom: 0;
}

.checklist-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: #147baf;
  font-weight: 700;
}

@media (min-width: 640px) {
  .checklist-list {
    columns: 2;
    column-gap: 2rem;
  }
}

@media (min-width: 801px) {
  .deep-cleaning {
    padding: 4.5rem 1.5rem;
  }

  .accordion-item summary {
    padding: 1.5rem 2rem;
  }

  .accordion-panel {
    padding: 1.75rem 2rem 2rem;
  }
}

/* ---------- Why Choose Us ---------- */
.why-choose-us {
  background-color: #16324f;
  padding: 3rem 1.5rem;
}

.why-choose-us-container {
  max-width: 1200px;
  margin: 0 auto;
}

.why-choose-us .section-heading .eyebrow {
  color: #8fd3f4;
}

.why-choose-us .section-heading h2 {
  color: #ffffff;
}

.why-choose-us .section-heading p {
  color: rgba(255, 255, 255, 0.75);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.why-card {
  display: flex;
  flex-direction: column;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  overflow: hidden;
}

.why-media {
  aspect-ratio: 4 / 3;
}

.why-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-card-body {
  padding: 1.5rem 1.75rem 1.75rem;
}

.why-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
  color: #ffffff;
}

.why-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

@media (min-width: 640px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 801px) {
  .why-choose-us {
    padding: 4.5rem 1.5rem;
  }

  .why-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

/* ---------- Contact ---------- */
.contact {
  background-color: #ffffff;
  padding: 3rem 1.5rem;
}

.contact-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(22, 50, 79, 0.12);
}

.contact-panel {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 320px;
  padding: 3rem 2rem;
}

.contact-panel-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-panel-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(22, 50, 79, 0.8);
}

.contact-panel-content {
  position: relative;
  z-index: 1;
}

.contact-panel-content .eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8fd3f4;
}

.contact-panel-content h2 {
  margin: 0 0 1rem;
  font-size: 2rem;
  line-height: 1.2;
  color: #ffffff;
}

.contact-panel-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  max-width: 40ch;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

@media (min-width: 801px) {
  .contact-links {
    align-items: flex-start;
  }
}

.contact-email,
.contact-phone {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  padding: 1rem 1.5rem;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 24px;
  color: #ffffff;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.contact-email-text,
.contact-phone-text {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (min-width: 801px) {
  .contact-email,
  .contact-phone {
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    text-align: left;
  }
}

.contact-email:hover,
.contact-phone:hover {
  background-color: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.6);
}

.contact-email-icon svg,
.contact-phone-icon svg {
  display: block;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.contact-form-card {
  background-color: #ffffff;
  padding: 2.5rem 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form[hidden] {
  display: none;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #16324f;
}

.field-note {
  font-weight: 500;
  font-size: 0.8rem;
  color: #5c7186;
}

.field-note--required {
  color: #147baf;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: #16324f;
  background-color: #f8fbfd;
  border: 1px solid #d7e4ee;
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #5c7186;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1e9bd7;
  box-shadow: 0 0 0 3px rgba(30, 155, 215, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.4;
}

.btn-block {
  width: 100%;
  border: none;
  cursor: pointer;
}

/* ---------- Contact form states ---------- */
.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.contact-form.is-sending {
  opacity: 0.65;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.form-group input:disabled,
.form-group textarea:disabled {
  background-color: #eef3f7;
  cursor: not-allowed;
}

[data-form-submit][disabled] {
  cursor: not-allowed;
}

[data-form-submit].is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  margin-left: 0.65rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
}

[data-form-submit].is-loading .btn-spinner {
  display: inline-block;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

.form-feedback {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background-color: #fdecec;
  border: 1px solid #f3b9b9;
  color: #9c2b2b;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-feedback.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.form-success[hidden] {
  display: none;
}

.form-success.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.form-success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #eaf5fb;
  color: #147baf;
  animation: success-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.form-success-icon svg {
  width: 28px;
  height: 28px;
}

.form-success h3 {
  margin: 0;
  font-size: 1.3rem;
  color: #16324f;
}

.form-success p {
  margin: 0;
  color: #3a4f66;
  max-width: 32ch;
}

@keyframes success-pop {
  0% {
    transform: scale(0.4);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-spinner {
    animation: none;
  }

  .form-success-icon {
    animation: none;
  }
}

@media (min-width: 560px) {
  .form-row {
    flex-direction: row;
    gap: 1.5rem;
  }
}

@media (min-width: 801px) {
  .contact {
    padding: 4.5rem 1.5rem;
  }

  .contact-container {
    flex-direction: row;
  }

  .contact-panel,
  .contact-form-card {
    flex: 1;
  }

  .contact-panel {
    padding: 3rem;
  }

  .contact-form-card {
    padding: 3rem;
  }

  .contact-panel-content h2 {
    font-size: 2.2rem;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: #16324f;
  color: rgba(255, 255, 255, 0.75);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  text-align: left;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.footer-logo {
  height: 100px;
  width: auto;
  background-color: #ffffff;
  border-radius: 14px;
  padding: 0.6rem 1rem;
}

.footer-brand p {
  margin: 0;
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.7);
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}

.footer-heading {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.footer-links a,
.footer-links span {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #8fd3f4;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding-top: 1.75rem;
  text-align: left;
  font-size: 0.9rem;
}

.footer-copyright,
.footer-credit {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
}

.footer-credit a {
  color: #8fd3f4;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-credit a:hover {
  color: #ffffff;
}

@media (min-width: 640px) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
  }

  .footer-brand {
    align-items: flex-start;
    grid-column: 1 / -1;
  }

  .footer-col,
  .footer-links {
    align-items: flex-start;
  }
}

@media (min-width: 901px) {
  .footer-container {
    padding: 4.5rem 1.5rem 2rem;
  }

  .footer-top {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    text-align: left;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ---------- Legal pages ---------- */
.legal-hero {
  background-color: #16324f;
  padding: 3.5rem 1.5rem;
}

.legal-hero-container {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.legal-hero .eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8fd3f4;
}

.legal-hero h1 {
  margin: 0 0 0.75rem;
  font-size: 2.4rem;
  line-height: 1.2;
  color: #ffffff;
}

.legal-updated {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.legal-content {
  padding: 3.5rem 1.5rem 4.5rem;
}

.legal-content-container {
  max-width: 720px;
  margin: 0 auto;
}

.legal-content h2 {
  margin: 2.25rem 0 1rem;
  font-size: 1.5rem;
  color: #16324f;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  margin: 0 0 1rem;
  color: #3a4f66;
}

.legal-content ul {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  list-style: disc;
  color: #3a4f66;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-content p a,
.legal-content li a {
  color: #147baf;
  text-decoration: underline;
}

.legal-content p a:hover,
.legal-content li a:hover {
  color: #10648f;
}

.legal-back {
  margin-top: 2.5rem;
}

@media (min-width: 801px) {
  .legal-hero {
    padding: 4.5rem 1.5rem;
  }

  .legal-hero h1 {
    font-size: 2.8rem;
  }

  .legal-content {
    padding: 4.5rem 1.5rem 6rem;
  }
}

/* ---------- 404 page ---------- */
.not-found {
  background-color: #16324f;
  padding: 5rem 1.5rem;
  min-height: 50vh;
  display: flex;
  align-items: center;
}

.not-found-container {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.not-found-code {
  margin: 0 0 0.5rem;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 5.5rem;
  line-height: 1;
  color: #8fd3f4;
}

.not-found h1 {
  margin: 0 0 1rem;
  font-size: 2.4rem;
  line-height: 1.2;
  color: #ffffff;
}

.not-found p {
  margin: 0 auto 1.75rem;
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.8);
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.not-found .btn-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
}

.not-found .btn-secondary:hover {
  background-color: #ffffff;
  color: #16324f;
}

@media (min-width: 801px) {
  .not-found {
    padding: 7rem 1.5rem;
  }

  .not-found h1 {
    font-size: 2.8rem;
  }

  .not-found-code {
    font-size: 7.5rem;
  }
}
