/* =============================================
   NanoHealthcare — Maintenance Page Styles
   ============================================= */

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

:root {
  --blue-50:  #eff6ff;
  --blue-100: #dbeafe;
  --blue-400: #38bdf8;
  --blue-500: #0ea5e9;
  --blue-600: #0284c7;
  --blue-700: #0369a1;
  --blue-900: #0c4a6e;
  --teal-400: #2dd4bf;
  --white:    #ffffff;
  --gray-50:  #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --success:  #10b981;
  --error:    #ef4444;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 40%, #0ea5e9 80%, #38bdf8 100%);
  min-height: 100vh;
  color: var(--gray-800);
  overflow-x: hidden;
  position: relative;
}

/* ── Animated background bubbles ─────────────── */
.bg-bubbles {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bg-bubbles span {
  position: absolute;
  bottom: -180px;
  display: block;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  animation: rise linear infinite;
}

.bg-bubbles span:nth-child(1)  { width:80px;  height:80px;  left:5%;   animation-duration:12s; animation-delay:0s;   }
.bg-bubbles span:nth-child(2)  { width:30px;  height:30px;  left:12%;  animation-duration:9s;  animation-delay:2s;   }
.bg-bubbles span:nth-child(3)  { width:55px;  height:55px;  left:22%;  animation-duration:14s; animation-delay:4s;   }
.bg-bubbles span:nth-child(4)  { width:40px;  height:40px;  left:36%;  animation-duration:10s; animation-delay:0s;   }
.bg-bubbles span:nth-child(5)  { width:100px; height:100px; left:50%;  animation-duration:16s; animation-delay:6s;   }
.bg-bubbles span:nth-child(6)  { width:24px;  height:24px;  left:62%;  animation-duration:8s;  animation-delay:1s;   }
.bg-bubbles span:nth-child(7)  { width:70px;  height:70px;  left:72%;  animation-duration:13s; animation-delay:3s;   }
.bg-bubbles span:nth-child(8)  { width:45px;  height:45px;  left:82%;  animation-duration:11s; animation-delay:5s;   }
.bg-bubbles span:nth-child(9)  { width:20px;  height:20px;  left:90%;  animation-duration:7s;  animation-delay:2.5s; }
.bg-bubbles span:nth-child(10) { width:60px;  height:60px;  left:95%;  animation-duration:15s; animation-delay:8s;   }

@keyframes rise {
  0%   { transform: translateY(0)   rotate(0deg);   opacity: 1; }
  100% { transform: translateY(-110vh) rotate(720deg); opacity: 0; }
}

/* ── Page wrapper ─────────────────────────────── */
.page-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

/* ── Header ───────────────────────────────────── */
.site-header {
  padding: 32px 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-icon {
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.25));
}

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

.logo-name {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.5px;
  line-height: 1.1;
}

.logo-tagline {
  font-size: .75rem;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── Hero ─────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 60px 20px 80px;
}

.maintenance-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: var(--white);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fbbf24;
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1);   }
  50%       { opacity: .6; transform: scale(1.3); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,.2);
}

.hero-sub {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: rgba(255,255,255,.82);
  line-height: 1.75;
}

/* ── Benefits Section ─────────────────────────── */
.benefits {
  padding: 80px 0;
  text-align: center;
}

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-400);
  margin-bottom: 12px;
}

.benefits h2,
.contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-sub {
  max-width: 620px;
  margin: 0 auto 52px;
  font-size: .97rem;
  color: rgba(255,255,255,.75);
  line-height: 1.7;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  text-align: left;
}

.benefit-card {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}

.benefit-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,.16);
  box-shadow: var(--shadow-lg);
}

.benefit-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(14,165,233,.5), rgba(45,212,191,.4));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}

.benefit-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}

.benefit-card p {
  font-size: .9rem;
  color: rgba(255,255,255,.72);
  line-height: 1.65;
}

/* ── Contact Section ──────────────────────────── */
.contact {
  padding: 80px 0 40px;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.contact-info {
  color: var(--white);
}

.contact-info p {
  font-size: .95rem;
  color: rgba(255,255,255,.75);
  line-height: 1.7;
  margin-bottom: 28px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: .92rem;
  color: rgba(255,255,255,.85);
}

.contact-detail i {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .85rem;
}

.contact-detail a {
  color: var(--blue-400);
  text-decoration: none;
  transition: color .2s;
}
.contact-detail a:hover { color: var(--teal-400); }

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: .9rem;
  text-decoration: none;
  transition: background .25s, transform .2s, box-shadow .2s;
}
.social-btn:hover {
  background: rgba(255,255,255,.25);
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}

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

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

.form-group label {
  display: block;
  font-size: .83rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 7px;
  letter-spacing: .02em;
}

.form-group label span {
  color: var(--error);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: .92rem;
  color: var(--gray-800);
  background: var(--gray-50);
  transition: border-color .2s, box-shadow .2s, background .2s;
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(14,165,233,.15);
}

.form-group input.invalid,
.form-group textarea.invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(239,68,68,.12);
}

.field-error {
  display: block;
  margin-top: 5px;
  font-size: .78rem;
  color: var(--error);
  font-weight: 500;
  min-height: 1em;
}

.btn-submit {
  width: 100%;
  padding: 13px 20px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: var(--white);
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(3,105,161,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-submit:hover:not(:disabled) {
  opacity: .92;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(3,105,161,.45);
}
.btn-submit:disabled {
  opacity: .7;
  cursor: not-allowed;
}

/* ── Alerts ───────────────────────────────────── */
.form-success,
.form-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  gap: 6px;
}

.form-success {
  background: #ecfdf5;
  border: 1.5px solid #6ee7b7;
  color: #065f46;
}
.form-success i { font-size: 2rem; color: var(--success); margin-bottom: 6px; }

.form-error {
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  color: #991b1b;
}
.form-error i { font-size: 2rem; color: var(--error); margin-bottom: 6px; }

.form-success p, .form-error p {
  font-size: .87rem;
  margin-top: 2px;
}

/* ── Footer ───────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 40px 0 10px;
  color: rgba(255,255,255,.55);
  font-size: .83rem;
  line-height: 1.7;
}
.footer-sub {
  font-size: .78rem;
  margin-top: 4px;
  color: rgba(255,255,255,.38);
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 820px) {
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-form-wrap {
    padding: 28px 20px;
  }
}

@media (max-width: 560px) {
  .hero { padding: 40px 0 60px; }
  .hero h1 { font-size: 2rem; }
  .benefits-grid { grid-template-columns: 1fr; }
  .logo-name { font-size: 1.35rem; }
}
