/* ========= Root Variables ========= */
:root {
  --accent:#0a6cff;
  --accent-2:#0a84ff;
  --accent-3:#073b8a;
  --muted:#6b7280;
  --bg:#f7f9fb;
  --card:#ffffff;
  --radius:12px;
  --maxw:1200px;
  --glass: rgba(255,255,255,0.6);
  --shadow: 0 10px 30px rgba(11,18,32,0.07);
  --success:#10b981;
  --danger:#ef4444;
  --transition:all .18s cubic-bezier(.2,.9,.3,1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ========= Base ========= */
* { box-sizing: border-box; margin:0; padding:0; }
body { background: var(--bg); color:#0b1220; line-height:1.5; }
.container { max-width: var(--maxw); margin:0 auto; padding:24px; }

/* ========= Header ========= */
.site-header {
  background: linear-gradient(90deg, var(--card), #f1f5f9);
  box-shadow:0 2px 6px rgba(11,18,32,0.06);
  position: relative;
  z-index: 1000;
}
.header-inner {
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 24px;
}
.brand { display:flex; align-items:center; gap:8px; font-weight:700; color:var(--accent); text-decoration:none; font-size:1.25rem; }
.brand svg { height:28px; width:28px; }
.main-nav { display:flex; gap:16px; }
.main-nav a { color:#0b1220; text-decoration:none; font-weight:600; }

/* ========= Nav Toggle (Mobile) ========= */
.nav-toggle {
  display:none;
  flex-direction: column;
  cursor: pointer;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: #0b1220;
  margin: 4px 0;
  transition: 0.4s;
}

.logo{
    width:4em;
    height:auto;
}

/* ========= Hero ========= */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 90vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:#fff;
}
.hero .overlay {
  position:absolute;
  top:0; left:0; width:100%; height:100%;
  background:rgba(0,0,0,0.55);
}
.hero-content {
  position:relative;
  max-width:800px;
  padding:20px;
  z-index:2;
}
.hero h1 { font-size:2.5rem; margin-bottom:16px; }
.hero p { font-size:1.2rem; margin-bottom:24px;color: #fff; }
.hero-buttons {
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:14px;
}

/* ========= Buttons ========= */
.btn {
  display:inline-block;
  padding:12px 22px;
  border-radius:6px;
  font-weight:600;
  transition:all 0.3s ease;
  text-decoration:none;
  border:none;
}
.btn.primary { background:#38ada9; color:#fff; }
.btn.primary:hover { background:#079992; }
.btn.secondary { background:transparent; color:#fff; border:2px solid #38ada9; }
.btn.secondary:hover { background:#fff; color:#0a3d62; }
.btn.secondary.two { background:transparent; color:#000; border:2px solid #38ada9; }
.btn.secondary.two:hover { background:#fff; color:#0a3d62; }

/* ========= Sections ========= */
section { padding:60px 20px; }
section h2 {
  text-align:center;
  font-size:2rem;
  margin-bottom:30px;
  color:#0a3d62;
}

/* ========= Grid & Cards ========= */
.grid {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap:20px;
}
.card {
  background:#fff;
  border-radius:10px;
  padding:20px;
  text-align:center;
  box-shadow:0 6px 16px rgba(0,0,0,0.08);
  transition:transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform:translateY(-5px); box-shadow:0 10px 22px rgba(0,0,0,0.12); }

.card.login, .card.register, .card.appointment, .card.contact {
  background:#fff;
  border-radius:10px;
  padding:20px;
  text-align:center;
  box-shadow:0 6px 16px rgba(0,0,0,0.08);
  transition:transform 0.3s ease, box-shadow 0.3s ease;
  margin:50px 140px;
}
.card.login:hover, .card.register:hover, .card.appointment:hover, .card.contact:hover { transform:translateY(-5px); box-shadow:0 10px 22px rgba(0,0,0,0.12); }

/* ========= Images ========= */
img { max-width:100%; height:auto; display:block; }
.icon-img { width:80px; margin:0 auto 12px; }
.services img,
.portal img {
  width:100%;
  max-height:240px;
  object-fit:cover;
  border-radius:8px;
  margin-bottom:12px;
}

/* ========= Animations ========= */
@keyframes pulse {
  0% { transform:scale(1); }
  50% { transform:scale(1.02); }
  100% { transform:scale(1); }
}
.hero img { animation:pulse 8s ease-in-out infinite; }

/* ========= Forms (Register, Login, Appointments, Contact) ========= */
.form-wrapper {
  max-width: 520px;
  margin: 50px auto;
  background: #fff;
  padding: 30px 26px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.form-wrapper h2 {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: #0a3d62;
}

.form-row {
  margin-bottom: 16px;
}

.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #374151;
  text-align:left;
}

.form-row .input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  font-size: 1rem;
  transition: border 0.2s, box-shadow 0.2s;
}

.form-row .input:focus,
.form-row textarea:focus,
.form-row select:focus {
  border-color: var(--accent);
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(10,108,255,0.15);
}

/* ========= Buttons ========= */
.form-actions {
  margin-top: 20px;
  text-align: center;
}

.form-actions .btn {
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: 8px;
}

/* ========= Small Notes (login/register links) ========= */
.form-note {
  text-align: center;
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--muted);
}

.form-note a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.form-note a:hover {
  text-decoration: underline;
}

/* ========= Success & Error Messages ========= */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.alert.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #10b981;
}

.alert.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #ef4444;
}

/* ========= Responsive ========= */
@media (max-width: 600px) {
  .form-wrapper {
    margin: 20px;
    padding: 20px;
  }
  
  .card.login, .card.register, .card.appointment, .card.contact {
  background:#fff;
  border-radius:10px;
  padding:20px;
  text-align:center;
  box-shadow:0 6px 16px rgba(0,0,0,0.08);
  transition:transform 0.3s ease, box-shadow 0.3s ease;
  margin:40px 10px;
}
  
  .btn {
    display: flex
;
    padding: 12px 22px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    justify-content: center;
    align-items: center;
}

.logo{
    width:4em;
    height:auto;
}
}


/* ========= Footer ========= */
.site-footer {
  background: #0a3d62;
  color: #fff;
  margin-top: 60px;
  padding: 40px 20px;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.footer-col {
  flex: 1 1 220px;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  font-weight: 600;
  color: #f1f5f9;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}

.footer-social a {
  color: #e5e7eb;
  font-size: 1.2rem;
  transition: color 0.2s ease;
}

.footer-social a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 0.9rem;
  color: #cbd5e1;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
  }
  .footer-col {
    flex: 1 1 100%;
  }
  .footer-social {
    display: flex
;
    gap: 14px;
    margin-top: 20px;
    align-items: center;
    justify-content: center;
}
}


/* ========= Responsive ========= */
@media (max-width:992px) {
  .hero h1 { font-size:2rem; }
}
@media (max-width:768px) {
  /* Mobile nav */
  .main-nav {
    position:absolute;
    top:64px; right:0;
    background:#0a3d62;
    flex-direction:column;
    width:100%;
    max-height:0;
    overflow:hidden;
    transition:max-height 0.4s ease;
  }
  section {
    padding: 60px 5px;
}
  
  .container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0px;
}
  .main-nav.show { max-height:400px; padding:20px 0; }
  .nav-toggle { display:flex; }
  .main-nav a { color:#fff; padding:12px; text-align:center; }
  /* Hero */
  .hero h1 { font-size:1.8rem; line-height:1.3; }
  .hero p { font-size:1rem; }
  .hero-buttons { flex-direction:column; }
  .icon-img { width:100px; }
}

/* ========= Floating Contact Buttons ========= */
.contact-buttons {
  position: fixed;
  bottom: 150px; /* above Book Appointment + Back-to-Top */
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 997;
}

/* Shared button style */
.contact-buttons a {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-buttons a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

/* WhatsApp */
.contact-buttons a.whatsapp {
  background: #25D366;
}

/* Call */
.contact-buttons a.call {
  background: #0a6cff;
}


/* ========= Back-to-Top Button ========= */
#backToTop {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  font-size: 1.4rem;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

#backToTop:hover {
  background: #073b8a;
  transform: translateY(-3px);
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
}
