:root {
  --nav-height: 90px;
  --brand-blue: #f2e4d5;
  --brand-dark: #1d1b1a;
  --accent: #d29f71;
  --white: #ffffff;
  --menu-card-bg: #fefaf6;
  --menu-card-hover: #f2e4d5;
  --divider: rgba(0, 0, 0, 0.12);
  --shadow-sm: 0 2px 10px rgba(0,0,0,.06);
  --shadow-lg: 0 16px 40px rgba(0,0,0,.08);
  --radius-xl: 22px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(to bottom, #fefaf6, #f2e4d5);
  color: var(--brand-dark);
  width: 100vw;
  min-height: 100vh;
  overflow-x: hidden;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: var(--nav-height);
  background: var(--brand-blue);
  z-index: 1000;
  padding: 0 2vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.logo-link {
  display: flex;
  align-items: center;
  height: 75px;
}

.logo-img {
  height: 75px;
  width: 75px;
  border-radius: 50%;
  object-fit: contain;
}

.navbar-left { flex: 1; }
.navbar-right { flex: 1; }

.navbar-center {
  flex: 2;
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
}

.navbar-center li { display: inline-block; }

.navbar-center a {
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--brand-dark);
  border-bottom: 2.5px solid transparent;
  transition: color 0.2s, border 0.2s;
  padding: 5px 6px 3px 6px;
}

.navbar-center a:hover,
.navbar-center a.active {
  color: var(--accent);
  border-bottom: 2.5px solid var(--accent);
}

/* Dropdown */
.more-dropdown {
  position: relative;
  display: inline-block;
}

.more-dropdown .dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--brand-blue);
  box-shadow: 0 8px 20px 0 rgba(0, 0, 0, 0.10);
  z-index: 1000;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 0 0 18px 18px;
  padding: 0.5rem 0;
  white-space: nowrap;
  min-width: max-content;
  text-align: center;
}

.more-dropdown:hover .dropdown-content,
.more-dropdown:focus-within .dropdown-content {
  display: block;
}

.dropdown-content a {
  color: var(--brand-dark);
  padding: 0.6rem 1.4rem;
  text-decoration: none;
  display: block;
  font-size: 1rem;
  transition: background 0.16s;
}

.dropdown-content a:hover {
  background: var(--menu-card-hover);
  color: var(--accent);
  border-radius: 0.5rem;
}

/* Mobile nav */
.navbar-mobile-menu { display: none; }

.hamburger {
  display: none;
  font-size: 2.8rem;
  padding: 18px 20px 18px 18px;
  background: none;
  border: none;
  outline: none;
  color: var(--brand-dark);
  cursor: pointer;
  border-radius: 14px;
  transition: background 0.13s, color 0.13s;
}

.hamburger:active,
.hamburger:focus {
  background: var(--menu-card-hover);
  color: var(--accent);
}

.mobile-nav-links {
  display: none;
  flex-direction: column;
  background: var(--brand-blue);
  position: absolute;
  top: var(--nav-height);
  right: 0;
  width: auto;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.13);
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  z-index: 1200;
  border-top: 2px solid var(--accent);
  padding: 0.5rem 0 1rem 0;
  animation: fadeInDown 0.24s;
}

.mobile-nav-links a {
  padding: 1.1rem 1.7rem;
  text-decoration: none;
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 1.11rem;
  border-bottom: 1px solid #e2d3c2;
  letter-spacing: 0.01em;
  transition: background 0.18s, color 0.18s;
}

.mobile-nav-links a:hover,
.mobile-nav-links a:focus {
  background: var(--menu-card-hover);
  color: var(--accent);
  border-radius: 12px;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 950px) {
  .navbar { justify-content: space-between; }
  .navbar-left { display: flex; align-items: center; z-index: 1500; }
  .navbar-mobile-menu { display: flex; align-items: center; justify-content: flex-end; width: auto; height: var(--nav-height); position: relative; flex: 1; z-index: 1300; }
  .navbar-center, .navbar-right { display: none !important; }
  .hamburger { display: block; }
}

/* HERO */
.contact-hero {
  margin-top: var(--nav-height);
  text-align: center;
  padding: 2.4rem 1rem 1.2rem;
  color: var(--brand-dark);
}
.contact-hero h1 {
  font-size: 2.1rem;
  font-weight: 800;
  margin: 0 0 .4rem 0;
}
.contact-hero p {
  margin: 0 auto;
  max-width: 820px;
  font-size: 1.06rem;
  opacity: .9;
}

/* CONNECT SECTION */
.connect-wrap {
  display: grid;
  place-items: center;
  padding: 1.2rem .8rem 2.2rem;
  background: linear-gradient(180deg, #fff 0%, var(--menu-card-bg) 100%);
}
.connect-inner {
  width: min(1100px, 94vw);
  background: #fff;
  border: 1px solid var(--divider);
  border-radius: calc(var(--radius-xl) + 6px);
  box-shadow: var(--shadow-lg);
  padding: 1.6rem 1.2rem 1.8rem;
}
.connect-title {
  text-align: center;
  margin: 0 0 1.1rem 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--brand-dark);
}
.connect-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
}
.connect-card {
  display: grid;
  grid-template-rows: auto auto;
  align-items: center;
  justify-items: center;
  padding: 1.2rem .9rem .95rem;
  background: #ead1bb55;
  border: 1px solid var(--divider);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.connect-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
  background: var(--menu-card-hover);
}
.connect-media {
  width: 220px;
  max-width: 88%;
  aspect-ratio: 1 / 1;
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--divider);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.connect-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.connect-label {
  margin-top: .7rem;
  font-weight: 700;
  color: var(--brand-dark);
  font-size: 1rem;
}

/* JOIN SECTION */
.join-wrap {
  width: min(1100px, 94vw);
  margin: 1.6rem auto 3rem;
  text-align: center;
}
.join-title {
  font-size: 1.8rem;
  font-weight: 900;
  margin: 0 0 .4rem 0;
}
.join-intro {
  margin: 0 auto 1.4rem auto;
  max-width: 820px;
  color: var(--brand-dark);
  opacity: .9;
}
.join-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1rem;
}
.join-card {
  background: #ead1bb55;
  border: 1px solid var(--divider);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.1rem 1.2rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-rows: auto auto auto;
  align-items: start;
  text-align: left;
}
.join-card h3 {
  margin: 0 0 .4rem 0;
  font-size: 1.2rem;
  color: var(--brand-dark);
  font-weight: 800;
}
.join-card p {
  margin: 0 0 .9rem 0;
  color: #4a403a;
  line-height: 1.55;
}
.join-cards .join-card:last-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(560px, 100%);
  text-align: center;
}

.btn {
  appearance: none;
  display: inline-block;
  padding: .78rem 1.1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  border: 0;
  transition: transform .06s ease, background .12s ease;
  line-height: 1;
}
.btn:hover { background: #be8355; }
.btn:active { transform: translateY(1px); }

/* FOOTER */
footer {
  background: var(--brand-blue);
  color: var(--brand-dark);
  text-align: center;
  padding: 1.5rem 0;
  font-size: 1rem;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  margin-top: 2.5rem;
  box-shadow: 0 -4px 16px 0 #d29f7132;
}
.footer-content p {
  margin: 0.3rem 0;
  line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .contact-hero h1 { font-size: 1.7rem; }
  .connect-cards { grid-template-columns: 1fr; }
  .connect-media { width: 320px; max-width: 92%; }
  .join-cards { grid-template-columns: 1fr; }
  .join-cards .join-card:last-child { width: 100%; }
}
@media (max-width: 600px) {
  .contact-hero { padding: 1.6rem .8rem .8rem; }
  .connect-inner { padding: 1.1rem .9rem 1.3rem; }
  .connect-media { width: 88vw; }
  .join-wrap { margin: 1.1rem auto 2rem; }
  .join-title { font-size: 1.55rem; }
  footer { font-size: 0.9rem; }
}
