:root {
  --bg: #f7fbff;
  --surface: #ffffff;
  --text: #16324f;
  --muted: #5f7085;
  --line: #d7e3ef;
  --brand: #0f5b9a;
  --brand-2: #ff8a00;
  --shadow: 0 18px 50px rgba(16, 50, 79, 0.12);
  --radius: 24px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255,138,0,0.10), transparent 30%),
    radial-gradient(circle at top right, rgba(15,91,154,0.12), transparent 32%),
    var(--bg);
  line-height: 1.55;
}

a { color: var(--brand); }
img { max-width: 100%; display: block; }

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(247,251,255,0.90);
  border-bottom: 1px solid rgba(215,227,239,0.8);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  flex-shrink: 1;
}

.brand img {
  display: block;
  height: auto;
  max-width: none;
  object-fit: contain;
}

.brand-butterfly {
  width: 108px;
  flex: 0 0 auto;
  transition: transform 0.35s ease, filter 0.35s ease;
  transform-origin: 50% 55%;
}

.brand-text {
  width: 250px;
  flex: 0 1 auto;
}

.brand:hover .brand-butterfly {
  transform: rotate(-7deg) scale(1.06);
  filter: drop-shadow(0 8px 16px rgba(15, 91, 154, 0.18));
}

.nav-links {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.nav-links a {
  text-decoration: none;
  font-weight: 700;
  font-size: 1.08rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, color 0.22s ease;
  position: relative;
}

.nav-links a:nth-child(1) {
  color: #0f5b9a;
  background: rgba(15, 91, 154, 0.08);
}

.nav-links a:nth-child(2) {
  color: #00a7d8;
  background: rgba(0, 167, 216, 0.08);
}

.nav-links a:nth-child(3) {
  color: #f04f9b;
  background: rgba(240, 79, 155, 0.08);
}

.nav-links a:nth-child(4) {
  color: #ff8a00;
  background: rgba(255, 138, 0, 0.10);
}

.nav-links a:hover,
.nav-links a:focus-visible,
.button:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 22px rgba(16, 50, 79, 0.12);
  outline: none;
}

.nav-links a:nth-child(1):hover,
.nav-links a:nth-child(1):focus-visible {
  color: white;
  background: #0f5b9a;
}

.nav-links a:nth-child(2):hover,
.nav-links a:nth-child(2):focus-visible {
  color: white;
  background: #00a7d8;
}

.nav-links a:nth-child(3):hover,
.nav-links a:nth-child(3):focus-visible {
  color: white;
  background: #f04f9b;
}

.nav-links a:nth-child(4):hover,
.nav-links a:nth-child(4):focus-visible {
  color: white;
  background: #ff8a00;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.9rem 1.25rem;
  border: 1px solid transparent;
  transition: 0.2s ease;
  cursor: pointer;
}

.button.primary {
  background: linear-gradient(135deg, var(--brand), #1a8ce0);
  color: white;
  box-shadow: var(--shadow);
}

.button.secondary {
  background: white;
  color: var(--text);
  border-color: var(--line);
}

.hero {
  padding: 4rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.card {
  background: var(--surface);
  border: 1px solid rgba(215,227,239,0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-logo,
.section-card,
.guestbook-card,
.contact-card,
.gallery-card {
  padding: 1.5rem;
}

.eyebrow {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(15,91,154,0.08);
  color: var(--brand);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.9rem;
}

h1, h2, h3 { line-height: 1.1; margin: 0 0 0.85rem; }
h1 { font-size: clamp(2.1rem, 5vw, 4.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
p { margin: 0 0 1rem; }

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.mini-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.mini {
  background: rgba(247,251,255,0.9);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.9rem;
  font-size: 0.95rem;
}

.hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.hero-logo img {
  width: min(100%, 440px);
  object-fit: contain;
}

main section {
  padding: 1rem 0 1.5rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.muted { color: var(--muted); }

.status-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.status-item,
.contact-item {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(247,251,255,0.75);
}

.gallery-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #ebf3fa;
  aspect-ratio: 16 / 9;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  background-size: cover;
  background-position: center;
}

.slide.active { opacity: 1; }

.gallery-overlay {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(to top, rgba(9,24,39,0.75), rgba(9,24,39,0));
  color: white;
  padding: 2rem 1rem 1rem;
}

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 0;
  background: #c3d6e8;
  cursor: pointer;
}

.dot.active { background: var(--brand); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

input, textarea {
  width: 100%;
  border: 1px solid #c7d7e5;
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  font: inherit;
  color: inherit;
  background: white;
}

textarea { min-height: 130px; resize: vertical; }

.form-row { margin-bottom: 0.95rem; }

.note {
  font-size: 0.92rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.messages {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.message {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
  background: rgba(247,251,255,0.85);
}

.message-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

footer {
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-card {
  padding: 1.2rem 1.3rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid,
  .two-col,
  .status-grid,
  .contact-grid,
  .mini-points {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2rem;
  }

  .section-head,
  .nav {
    align-items: start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 0.7rem;
  }

  .nav-links a {
    font-size: 1rem;
    padding: 0.62rem 0.9rem;
  }
}

@media (max-width: 640px) {
  .brand {
    gap: 0.9rem;
  }

  .brand-butterfly {
    width: 78px;
  }

  .brand-text {
    width: 180px;
  }
}
