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

:root {
  --primary: #c71e2a;
  --primary-dark: #7b1c22;
  --primary-soft: #f7c6cc;
  --sand: #fff7f3;
  --sage: #f3e9e5;
  --charcoal: #1e1b1c;
  --ink: #2e2a2b;
  --border: rgba(199, 30, 42, 0.15);
  --shadow-soft: 0 20px 45px rgba(30, 27, 28, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --transition: 240ms ease;
  --content-max-width: 1200px;
  --section-padding: clamp(2.5rem, 6vw, 4.5rem);
  --text-muted: #5a4f50;
}

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont,
    sans-serif;
  line-height: 1.7;
  color: var(--ink);
  background: radial-gradient(circle at top, rgba(247, 198, 204, 0.25), transparent 60%),
    linear-gradient(180deg, #fff, var(--sand));
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}
li{
  list-style: none;
}
a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: color var(--transition);
}



:focus-visible {
  outline: 3px solid rgba(199, 30, 42, 0.3);
  outline-offset: 3px;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 247, 243, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 1rem clamp(1.5rem, 4vw, 2.5rem);
  gap: 2rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--charcoal);
}

.logo img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(199, 30, 42, 0.25);
  box-shadow: 0 10px 25px rgba(199, 30, 42, 0.15);
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  font-weight: 600;
  letter-spacing: 0.01em;
  padding-bottom: 0.2rem;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a:focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  background: rgba(247, 198, 204, 0.5);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--primary-dark);
  transition: background var(--transition);
}

.menu-toggle:hover {
  background: rgba(199, 30, 42, 0.15);
}

main {
  width: min(var(--content-max-width), 100% - clamp(2rem, 6vw, 4rem));
  margin: 0 auto;
  padding-block: var(--section-padding);
}

section {
  padding-block: var(--section-padding);
}

section:nth-of-type(even) {
  background: rgba(247, 198, 204, 0.08);
  border-radius: var(--radius-lg);
  padding-inline: clamp(1.5rem, 4vw, 2.5rem);
}

.hero {
  text-align: center;
  padding: clamp(4rem, 8vw, 6rem) clamp(2rem, 5vw, 4rem);
  border-radius: var(--radius-lg);
  margin-bottom: var(--section-padding);
  position: relative;
  background: linear-gradient(135deg, rgba(199, 30, 42, 0.75), rgba(123, 28, 34, 0.85)),
    center / cover no-repeat;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  box-shadow: var(--shadow-soft);
}


.hero a{
  width: 270px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  opacity: 0.2;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: inherit;
  z-index: -1;
  opacity: 0.6;
}

.hero.hero-with-image::before {
  opacity: 0.5;
  background: linear-gradient(135deg, rgba(255, 229, 231, 0.85), rgba(249, 237, 234, 0.9));
}

.hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  animation: float-up 600ms ease both;
}

.hero p {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  max-width: 52ch;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.9);
  animation: float-up 700ms ease both;
}

h1,
h2,
h3 {
  color: var(--charcoal);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  text-align: center;
}

h3 {
  font-size: 1.4rem;
}

.section-intro {
  text-align: center;
  max-width: 65ch;
  margin: 0 auto 2.5rem;
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2.4rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(120deg, var(--primary), #e64a55);
  box-shadow: 0 15px 30px rgba(199, 30, 42, 0.2);
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(199, 30, 42, 0.25);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 15px rgba(199, 30, 42, 0.2);
}

.btn.outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid currentColor;
  box-shadow: none;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 2rem;
}

.card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(30, 27, 28, 0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 45px rgba(30, 27, 28, 0.12);
}

.card h3 {
  margin-bottom: 0.25rem;
  color: var(--primary-dark);
}

.card p {
  color: var(--text-muted);
}

form {
  max-width: 640px;
  margin: 2.5rem auto;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 5vw, 3rem);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--charcoal);
}

input,
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(42, 36, 37, 0.12);
  font: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: rgba(255, 255, 255, 0.9);
}

input:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(199, 30, 42, 0.15);
}

textarea {
  min-height: 160px;
  resize: vertical;
}

.checkbox-group {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 0.35rem;
}

.contact-info {
  background: linear-gradient(135deg, #fff, var(--sage));
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: var(--section-padding);
  box-shadow: 0 10px 30px rgba(30, 27, 28, 0.1);
}

.contact-info p {
  margin: 0.4rem 0;
  color: var(--ink);
}

.contact-info strong {
  color: var(--primary-dark);
}

footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  padding: 3rem 1.5rem;
  margin-top: var(--section-padding);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.footer-links a {
  color: inherit;
  font-weight: 500;
  opacity: 0.9;
}

.footer-links a:hover {
  opacity: 1;
}

.popup {
  display: none;
  position: fixed;
  inset-inline: 0;
  bottom: 1rem;
  z-index: 2000;
  padding: 0 1rem;
}

.popup.active {
  display: block;
}

.popup-content {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.popup-content p {
  color: var(--text-muted);
}

.popup-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.list-section {
  margin: 2rem 0;
}

.list-section ul,
.list-section ol {
  margin-left: 1.25rem;
  margin-top: 1rem;
  color: var(--text-muted);
}

.list-section li {
  margin-bottom: 0.5rem;
}

.content-section {
  background: #fff;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border);
}

.success-page {
  text-align: center;
  padding: 4rem 2rem;
}

.success-page h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 1rem;
}

.success-page p {
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  nav {
    padding-inline: 1.5rem;
  }

  .nav-menu {
    gap: 1rem;
  }
}

@media (max-width: 860px) {
  nav {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-menu {
    position: absolute;
    inset: calc(100% + 0.5rem) 1rem auto;
    background: #fff;
    flex-direction: column;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    display: none;
  }

  .nav-menu.active {
    display: flex;
  }
}

@media (max-width: 640px) {
  main {
    width: 100%;
    padding-inline: clamp(1rem, 5vw, 1.5rem);
  }

  section {
    padding-block: 2.5rem;
  }

  .hero {
    padding: 3.5rem 1.75rem;
    min-height: 360px;
  }

  .hero::after {
    inset: 0.5rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .popup-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
  }

  .logo span {
    display: none;
  }
}

@media (max-width: 400px) {
  nav {
    padding-inline: 1rem;
  }
  section{
    padding-inline:0px!important;
  }
.content-section{
  padding:10px!important;
}
  .hero {
    padding: 3rem 1.25rem;
    min-height: 300px;
  }

  form,
  .card,
  .content-section {
    padding: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@keyframes float-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
