:root {
  --primary:#4a3f8c;
  --accent:#6f63b6;
  --text:#1f1f1f;
  --muted:#666;
  --bg:#fafafa;
  --card:#ffffff;
  --border:#e5e5ee;
  --nav-height:70px;
}

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

html{scroll-behavior:smooth}

body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
}

img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}

/* NAVBAR */
.navbar{
  position:sticky;
  top:0;
  background:#fff;
  border-bottom:1px solid var(--border);
  z-index:1000;
}
.nav-container{
  max-width:1150px;
  margin:auto;
  padding:14px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.nav-brand{
  display:flex;
  align-items:center;
  gap:14px;
}
.nav-brand img{height:52px;width:auto;object-fit:contain}
.nav-brand span{
  font-weight:600;
  color:var(--primary);
  font-size:1rem;
}
.nav-links{
  display:flex;
  gap:26px;
}
.nav-links a{
  text-decoration:none;
  color:var(--text);
  font-weight:500;
  transition:color 0.2s ease;
}
.nav-links a:hover{color:var(--accent)}

/* HAMBURGER */
.hamburger{
  display:none;
  flex-direction:column;
  cursor:pointer;
  padding:4px;
  background:none;
  border:none;
}
.hamburger span{
  height:3px;
  width:26px;
  background:var(--text);
  margin-bottom:5px;
  border-radius:3px;
  display:block;
  transition:all 0.3s ease;
}
.hamburger span:last-child{margin-bottom:0}

/* MOBILE MENU — hidden by default, shown only with .open class */
.mobile-menu{
  display:none;
  flex-direction:column;
  background:#fff;
  border-top:1px solid var(--border);
}
.mobile-menu.open{
  display:flex;
}
.mobile-menu a{
  padding:14px 20px;
  text-decoration:none;
  color:var(--text);
  border-bottom:1px solid var(--border);
  transition:color 0.2s ease;
}
.mobile-menu a:last-child{border-bottom:none}
.mobile-menu a:hover{color:var(--accent)}

/* Lock body scroll when mobile menu is open */
body.menu-open{overflow:hidden}

/* LAYOUT */
.container{
  max-width:1150px;
  margin:auto;
  padding:40px 20px;
}
section{margin-bottom:60px}
h2{
  color:var(--primary);
  font-size:1.45rem;
  margin-bottom:14px;
}
h3{
  color:var(--primary);
  font-size:1.1rem;
  margin-bottom:10px;
}
p{color:var(--muted);margin-bottom:14px}

/* HERO */
.hero{
  background:linear-gradient(135deg,#f4f3f9,#fff);
  padding:50px 30px;
  border-radius:22px;
  border:1px solid var(--border);
  text-align:center;
}
.hero h1{
  font-size:2.2rem;
  color:var(--primary);
  margin-bottom:16px;
}

/* GRID / CARDS */
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:24px;
}
.card{
  background:var(--card);
  padding:26px;
  border-radius:18px;
  border:1px solid var(--border);
  font-size:.95rem;
}
.facility img{
  width:100%;
  border-radius:14px;
  margin-bottom:10px;
}

/* FOOTER */
footer{
  text-align:center;
  padding:30px 20px;
  border-top:1px solid var(--border);
  color:var(--muted);
  font-size:.9rem;
}
footer img{
  max-width:120px;
  margin:0 auto 10px;
  opacity:.85;
}

/* BACK TO TOP — uses opacity/visibility/transform for smooth fade */
.back-to-top{
  position:fixed;
  bottom:28px;
  right:28px;
  background:var(--primary);
  color:#fff;
  border:none;
  width:48px;
  height:48px;
  border-radius:50%;
  font-size:20px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 8px 20px rgba(0,0,0,.2);
  /* Hidden by default */
  opacity:0;
  visibility:hidden;
  transform:translateY(20px);
  transition:opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, box-shadow 0.2s ease;
  z-index:500;
}
.back-to-top.visible{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}
/* Only apply hover lift when visible to avoid glitch during show/hide transition */
.back-to-top.visible:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 28px rgba(0,0,0,.3);
}

/* GOOGLE PROFILE */
.google-profile{
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:18px;
  padding:30px;
  text-align:center;
  max-width:900px;
  margin:60px auto 0;
}
.google-profile h2{margin-bottom:10px}
.google-profile p{margin-bottom:18px}
.google-profile a{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 20px;
  border-radius:30px;
  background:#1a73e8;
  color:#fff;
  text-decoration:none;
  font-weight:500;
  transition:opacity 0.2s ease;
}
.google-profile a:hover{opacity:0.9}
.google-profile img{width:22px;height:22px}

/* MAP */
.map-section{
  max-width:1100px;
  margin:40px auto 0;
  padding:0 20px;
}
.map-container{
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--border);
  height:420px;
}
.map-container iframe{
  width:100%;
  height:100%;
  border:0;
}

/* RESPONSIVE */
@media(max-width:768px){
  .nav-links{display:none}
  .hamburger{display:flex}
  .hero h1{font-size:1.8rem}
  .grid{grid-template-columns:1fr}
}

@media(max-width:480px){
  .hero{padding:36px 20px}
  .container{padding:30px 16px}
}