/* =============================================
   BUTT PHARMACY — style.css
   ============================================= */

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

:root {
  --teal: #00BFA5;
  --teal-dark: #00897B;
  --teal-light: #4DD0C4;
  --teal-glow: rgba(0, 191, 165, 0.35);
  --mint: #E0F7F4;
  --white: #ffffff;
  --dark: #0d1f1e;
  --dark-2: #163330;
  --gray: #6b7280;
  --gray-light: #f4faf9;
  --font-main: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 18px;
  --shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 4px 24px rgba(0, 191, 165, 0.15);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Utility ---------- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.teal {
  color: var(--teal);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--white);
  box-shadow: 0 6px 20px rgba(0, 191, 165, 0.45);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 30px rgba(0, 191, 165, 0.55);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--teal);
  border-color: var(--white);
  transform: translateY(-3px);
}

.btn-full {
  width: 100%;
}

.section-tag {
  display: inline-block;
  background: var(--mint);
  color: var(--teal-dark);
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-main);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 16px;
}

.section-desc {
  color: var(--gray);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
}

.navbar.scrolled {
  background: rgba(13, 31, 30, 0.98);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
  padding: 4px 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.logo-icon {
  height: 140px;
  width: 100%;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-icon img {
  height: 100%;
  width: auto;
  object-fit: contain;
}


.logo-icon.small {
  height: 70px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-brand {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 1rem;
  color: var(--white);
  letter-spacing: 0.05em;
}

.logo-sub {
  font-family: var(--font-main);
  font-weight: 400;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  transition: color 0.25s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal-light);
  border-radius: 2px;
  transition: width 0.3s;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 24px;
  background: var(--white);
  color: var(--teal-dark);
  border-radius: 50px;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.nav-login-btn {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
  padding: 8px 20px;
  border-radius: 50px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
}

.nav-login-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

.nav-logout-btn {
  background: rgba(239, 68, 68, 0.1);
  color: #ff5252;
  border: 2px solid rgba(239, 68, 68, 0.4);
  padding: 8px 20px;
  border-radius: 50px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
}

.nav-logout-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ff5252;
  transform: translateY(-2px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #00c4a8 0%, #00a896 35%, #008975 70%, #006b5c 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Animated gradient overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(0, 255, 200, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(0, 100, 80, 0.3) 0%, transparent 60%);
  pointer-events: none;
}

/* Decorative dots */
.dots {
  position: absolute;
  display: grid;
  gap: 7px;
  opacity: 0.35;
  pointer-events: none;
}

.dots::before {
  content: '• • •\A• • •\A• • •\A• • •';
  white-space: pre;
  color: rgba(255, 255, 255, 0.8);
  font-size: 10px;
  line-height: 1.8;
  letter-spacing: 5px;
}

.dots-tl {
  top: 160px;
  left: 32px;
}

.dots-tr {
  top: 160px;
  right: 32px;
}

.dots-bl {
  bottom: 80px;
  left: 32px;
}

.dots-br {
  bottom: 80px;
  right: 32px;
}

.dots-mid-right {
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
}

/* Hero Content Layout */
.hero-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 200px 60px 60px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

/* ---- Circle Images ---- */
.hero-images {
  position: relative;
  width: 440px;
  flex-shrink: 0;
  height: 460px;
}

.circle-card {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--white);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.circle-card:hover {
  transform: scale(1.05);
  z-index: 10;
}

.circle-large {
  width: 240px;
  height: 240px;
  top: 40px;
  /* Pushed down to avoid logo */
  left: 0;
  z-index: 3;
}

.circle-medium {
  width: 180px;
  height: 180px;
  z-index: 2;
}

.circle-card:nth-child(2) {
  bottom: 40px;
  left: 100px;
  border: 8px solid var(--teal);
  z-index: 5;
}

.circle-right {
  bottom: 10px;
  right: 20px;
  /* Moved inward */
  z-index: 4;
}

/* Floating animation */
.circle-large {
  animation: float1 5s ease-in-out infinite;
}

.circle-card:nth-child(2) {
  animation: float2 6s ease-in-out infinite 0.8s;
}

.circle-right {
  animation: float3 5.5s ease-in-out infinite 1.4s;
}

@keyframes float1 {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-14px);
  }
}

@keyframes float2 {

  0%,
  100% {
    transform: translateY(0px) scale(1);
  }

  50% {
    transform: translateY(-10px) scale(1.03);
  }
}

@keyframes float3 {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }
}

/* ---- Hero Text ---- */
.hero-text {
  flex: 1;
  max-width: 540px;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-title {
  font-family: var(--font-main);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 0.95;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-title-accent {
  -webkit-text-stroke: 3px rgba(255, 255, 255, 0.5);
  color: transparent;
  display: block;
}

.hero-desc {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 400px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Stats */
.hero-stats {
  display: flex;
  gap: 0;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 20px 28px;
  width: fit-content;
}

.stat {
  text-align: center;
  padding: 0 24px;
}

.stat:first-child {
  padding-left: 0;
}

.stat:last-child {
  padding-right: 0;
}

.stat-num {
  display: block;
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  margin-top: 4px;
  white-space: nowrap;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.25);
}

/* Scroll indicator */
.scroll-indicator {
  display: flex;
  justify-content: center;
  padding-bottom: 32px;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-dot {
  width: 28px;
  height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  position: relative;
}

.scroll-dot::after {
  content: '';
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 10px;
  background: var(--white);
  border-radius: 3px;
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }

  60% {
    transform: translateX(-50%) translateY(18px);
    opacity: 0;
  }
}

@keyframes scrollBounce {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* =============================================
   SERVICES SECTION
   ============================================= */
.services {
  padding: 100px 0;
  background: var(--gray-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s;
  border: 1px solid rgba(0, 191, 165, 0.08);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  transform: scaleX(0);
  transition: transform 0.35s;
  transform-origin: left;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 191, 165, 0.25);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  margin-bottom: 20px;
}

.service-card h3 {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.service-card p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about {
  padding: 100px 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-images {
  position: relative;
  height: 480px;
}

.about-img-main {
  width: 80%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.about-img-main img {
  object-position: top center;
}

/* Decorative background blob */
.about-images::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80%;
  height: 90%;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: 28px;
  z-index: 0;
  opacity: 0.15;
}

.about-img-badge {
  position: absolute;
  bottom: 20px;
  right: 0;
  background: var(--white);
  border-radius: 16px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.14);
  z-index: 2;
  animation: float1 5s ease-in-out infinite;
}

.badge-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
}

.badge-num {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 1rem;
  color: var(--dark);
}

.badge-sub {
  font-size: 0.78rem;
  color: var(--gray);
}

.about-text .section-title {
  text-align: left;
}

.about-text>p {
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 16px;
  font-size: 0.97rem;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 28px 0 36px;
}

.about-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--dark);
  font-weight: 500;
}

.check-icon {
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact {
  padding: 100px 0;
  background: var(--gray-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s;
}

.contact-card:hover {
  transform: translateX(6px);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--mint);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-label {
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-dark);
  margin-bottom: 4px;
}

.contact-value {
  color: var(--dark);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  transition: color 0.2s;
}

a.contact-value:hover {
  color: var(--teal);
}

/* Contact Form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--gray-light);
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 191, 165, 0.12);
  background: var(--white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9ca3af;
}

.form-success {
  display: none;
  margin-top: 14px;
  padding: 14px 20px;
  background: var(--mint);
  border-radius: 12px;
  color: var(--teal-dark);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--dark);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  font-family: var(--font-main);
  font-weight: 500;
  transition: color 0.25s;
}

.footer-links a:hover {
  color: var(--teal-light);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .hero-content {
    padding: 100px 40px 60px;
  }

  .hero-images {
    width: 360px;
    height: 460px;
  }

  .circle-large {
    width: 200px;
    height: 200px;
  }

  .circle-medium {
    width: 155px;
    height: 155px;
  }

  .about-grid {
    gap: 48px;
  }
}

@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
    padding: 100px 32px 40px;
    align-items: flex-start;
  }

  .hero-images {
    width: 100%;
    height: 360px;
  }

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

  .about-images {
    height: 360px;
  }

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

@media (max-width: 768px) {
  .navbar {
    padding: 16px 24px;
  }

  .navbar.scrolled {
    padding: 12px 24px;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(13, 31, 30, 0.97);
    backdrop-filter: blur(12px);
    padding: 24px 32px;
    gap: 20px;
    z-index: 999;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-images {
    height: 300px;
  }

  .circle-large {
    width: 160px;
    height: 160px;
  }

  .circle-medium {
    width: 120px;
    height: 120px;
  }

  .circle-card:nth-child(2) {
    left: 70px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 16px;
  }

  .stat-divider {
    display: none;
  }

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

  .about-images {
    height: 280px;
  }

  .about-img-main {
    width: 90%;
  }

  .contact-form {
    padding: 28px 20px;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 90px 20px 32px;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
  }

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

/* =============================================
   MODAL & LOGIN STYLES
   ============================================= */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-login-btn,
.nav-logout-btn {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
  padding: 8px 18px;
  border-radius: 50px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
}

.nav-login-btn:hover,
.nav-logout-btn:hover {
  background: var(--white);
  color: var(--teal-dark);
  border-color: var(--white);
  transform: translateY(-2px);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(13, 31, 30, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--white);
  width: 100%;
  max-width: 420px;
  padding: 40px;
  border-radius: 24px;
  position: relative;
  transform: translateY(30px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--gray-light);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gray);
  transition: all 0.2s;
}

.modal-close:hover {
  background: #ffebee;
  color: #ff5252;
}

.modal-header {
  text-align: center;
  margin-bottom: 30px;
}

.modal-header h2 {
  font-family: var(--font-main);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 5px;
}

.modal-header p {
  color: var(--gray);
  font-size: 0.9rem;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 15px 0 25px;
  font-size: 0.85rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gray);
  cursor: pointer;
}

.forgot-pwd {
  color: var(--teal);
  font-weight: 600;
}

.modal-footer {
  text-align: center;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  font-size: 0.85rem;
  color: var(--gray);
}

.modal-footer a {
  color: var(--teal);
  font-weight: 700;
}

/* =============================================
   RESPONSIVE — Mobile Friendly
   ============================================= */

@media (max-width: 768px) {

  /* --- Navbar --- */
  .navbar {
    padding: 0 20px;
    height: 70px;
  }

  .logo-icon {
    height: 70px !important;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    gap: 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .nav-links.open {
    max-height: 400px;
  }

  .hamburger {
    display: flex !important;
  }

  .nav-actions {
    display: none;
  }

  /* Show login/logout in mobile nav dropdown */
  .nav-links .nav-actions-mobile {
    display: flex !important;
    flex-direction: row;
    gap: 10px;
    margin-top: 10px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    width: 100%;
    justify-content: center;
  }

  /* --- Hero --- */
  .hero {
    padding-top: 80px;
    min-height: auto;
    overflow-x: hidden;
  }

  .hero-inner {
    flex-direction: column !important;
    padding: 30px 20px;
  }

  .hero-content {
    padding: 20px 0;
    text-align: center;
    width: 100%;
    max-width: 100%;
  }

  .hero-title {
    font-size: 1.9rem !important;
    line-height: 1.2;
    word-break: break-word;
  }

  .hero-desc {
    font-size: 0.9rem;
    padding: 0 5px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    padding: 0 10px;
  }

  .hero-ctas .btn {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  .hero-stats {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0;
    margin: 0 auto;
    width: fit-content;
    padding: 16px 12px;
  }

  .stat {
    flex: 1;
    text-align: center;
    min-width: 0;
    padding: 0 10px;
  }

  .stat-num {
    font-size: 1.3rem !important;
  }

  .stat-label {
    font-size: 0.65rem;
  }

  .stat-divider {
    height: 24px;
  }

  .hero-images {
    width: 100%;
    justify-content: center;
    margin-top: 20px;
    padding: 0 20px;
  }

  .circle-card {
    width: 140px !important;
    height: 140px !important;
  }

  .circle-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* --- Sections --- */
  .section-header {
    text-align: center;
    padding: 0 20px;
  }

  .section-title {
    font-size: 1.8rem !important;
  }

  /* --- Services Grid --- */
  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
    padding: 0 20px;
  }

  .service-card {
    padding: 24px 20px !important;
  }

  /* --- About Section --- */
  .about-grid {
    grid-template-columns: 1fr !important;
    gap: 30px;
  }

  .about-images {
    width: 100%;
    justify-content: center;
    order: -1;
  }

  .about-img-main {
    width: 100% !important;
    max-width: 320px;
    margin: 0 auto;
  }

  .about-img-main img {
    width: 100%;
    border-radius: var(--radius);
  }

  .about-img-small {
    display: none;
  }

  .about-text {
    text-align: center;
    padding: 0 20px;
  }

  .about-text h2 {
    font-size: 1.8rem;
  }

  /* --- Contact Section --- */
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
    padding: 0 20px;
  }

  .contact-form {
    padding: 24px 20px !important;
  }

  .contact-cards {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  /* --- Footer --- */
  .footer-inner {
    flex-direction: column !important;
    text-align: center;
    gap: 16px;
    padding: 24px 20px !important;
  }

  .logo-icon.small {
    height: 60px !important;
  }

  /* --- General containers --- */
  .container {
    padding: 0 20px;
  }

  section {
    padding: 60px 0 !important;
  }

  /* --- Modal --- */
  .modal-content {
    margin: 16px;
    padding: 30px 20px;
    max-width: calc(100vw - 32px);
  }
}

@media (max-width: 480px) {

  .hero-title {
    font-size: 1.6rem !important;
  }

  .hero-eyebrow {
    font-size: 0.75rem;
  }

  .section-title {
    font-size: 1.5rem !important;
  }

  .stat-num {
    font-size: 1.2rem !important;
  }

  .stat-label {
    font-size: 0.65rem;
  }

  .btn {
    padding: 11px 20px;
    font-size: 0.88rem;
  }

  .contact-form {
    padding: 20px 16px !important;
  }

  .navbar {
    padding: 0 14px;
  }

  .hero-ctas {
    padding: 0 5px;
  }
}

/* --- SweetAlert2 Accessibility --- */
.swal2-container {
  z-index: 9999 !important;
}


/* --- Centered Logo Navbar --- */
.navbar { padding: 10px 40px !important; }
.nav-links { flex: 1 !important; order: 1 !important; }
.nav-logo { flex: 0 0 auto !important; order: 2 !important; }
.nav-actions { flex: 1 !important; justify-content: flex-end !important; order: 3 !important; }
.hamburger { order: 4 !important; }
