/* VirtualOffice.Doctor — Professional UK Business Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --navy: #0f1f3d;
  --navy-mid: #1a3260;
  --navy-light: #254b8a;
  --gold: #c9a84c;
  --gold-light: #e8c96e;
  --white: #ffffff;
  --off-white: #f7f8fc;
  --light-grey: #eef0f6;
  --mid-grey: #8a93a8;
  --text: #1a1f2e;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(15,31,61,0.10);
  --shadow-lg: 0 8px 40px rgba(15,31,61,0.16);
  --transition: 0.22s ease;
  --max-w: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4 { font-family: 'Playfair Display', serif; line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { color: #3a4259; }
a { color: var(--navy-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ── HEADER / NAV ── */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,31,61,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201,168,76,0.18);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; font-weight: 700;
  color: var(--white) !important; letter-spacing: -0.3px;
}
.logo span { color: var(--gold); }
nav a {
  color: rgba(255,255,255,0.82);
  font-size: 0.9rem; font-weight: 500;
  margin-left: 28px;
  letter-spacing: 0.01em;
}
nav a:hover { color: var(--gold-light); }
.nav-cta {
  background: var(--gold); color: var(--navy) !important;
  padding: 8px 20px; border-radius: 6px; font-weight: 600;
}
.nav-cta:hover { background: var(--gold-light); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 55%, var(--navy-light) 100%);
  padding: 96px 0 88px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { position: relative; max-width: 720px; }
.hero-badge {
  display: inline-block;
  background: rgba(201,168,76,0.15); border: 1px solid rgba(201,168,76,0.35);
  color: var(--gold-light); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 5px 14px; border-radius: 20px; margin-bottom: 22px;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero p { color: rgba(255,255,255,0.75); font-size: 1.15rem; max-width: 560px; margin-bottom: 36px; }
.btn-group { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition); border: 2px solid transparent;
  text-decoration: none;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-light); color: var(--navy); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(201,168,76,0.35); }
.btn-outline { border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-mid); color: var(--white); transform: translateY(-1px); }

/* ── SECTIONS ── */
section { padding: 80px 0; }
.section-label {
  display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 10px;
}
.section-header { text-align: center; margin-bottom: 52px; }
.section-header p { color: var(--mid-grey); font-size: 1.05rem; max-width: 540px; margin: 12px auto 0; }
.bg-off { background: var(--off-white); }
.bg-navy { background: var(--navy); }

/* ── BENEFITS ── */
.benefits-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px;
}
.benefit-item {
  text-align: center; padding: 32px 20px;
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--light-grey); box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.benefit-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.benefit-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 1.5rem;
}
.benefit-item h3 { font-size: 1rem; margin-bottom: 8px; }
.benefit-item p { font-size: 0.88rem; color: var(--mid-grey); }

/* ── SERVICES ── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.service-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--light-grey); padding: 32px 28px;
  box-shadow: var(--shadow); position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.service-card.coming-soon { opacity: 0.7; }
.coming-soon-badge {
  position: absolute; top: 18px; right: 18px;
  background: var(--gold); color: var(--navy); font-size: 0.7rem;
  font-weight: 700; padding: 3px 10px; border-radius: 20px; letter-spacing: 0.05em;
}
.service-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--off-white); display: flex; align-items: center;
  justify-content: center; font-size: 1.4rem; margin-bottom: 18px;
}
.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: 0.9rem; color: var(--mid-grey); }
.service-features { list-style: none; margin-top: 16px; }
.service-features li { font-size: 0.85rem; color: #4a5568; padding: 4px 0; display: flex; align-items: center; gap: 8px; }
.service-features li::before { content: '✓'; color: var(--gold); font-weight: 700; flex-shrink: 0; }

/* ── PRICING ── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; max-width: 900px; margin: 0 auto; }
.pricing-card {
  background: var(--white); border-radius: var(--radius);
  border: 2px solid var(--light-grey); padding: 36px 30px;
  box-shadow: var(--shadow); transition: all var(--transition); position: relative;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.featured {
  border-color: var(--gold); background: var(--navy);
  transform: scale(1.03);
}
.pricing-card.featured:hover { transform: scale(1.03) translateY(-4px); }
.pricing-card.featured h3,
.pricing-card.featured .price,
.pricing-card.featured .price-period { color: var(--white); }
.pricing-card.featured li { color: rgba(255,255,255,0.82); }
.pricing-card.featured li::before { color: var(--gold-light); }
.featured-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--navy); font-size: 0.72rem;
  font-weight: 700; padding: 4px 14px; border-radius: 20px; white-space: nowrap;
}
.pricing-card h3 { font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 600; color: var(--mid-grey); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.price { font-family: 'Playfair Display', serif; font-size: 2.6rem; font-weight: 700; color: var(--navy); line-height: 1; }
.price-period { font-size: 0.85rem; color: var(--mid-grey); margin-bottom: 24px; }
.pricing-features { list-style: none; margin-bottom: 28px; }
.pricing-features li { font-size: 0.9rem; padding: 7px 0; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--light-grey); }
.pricing-card.featured .pricing-features li { border-bottom-color: rgba(255,255,255,0.1); }
.pricing-features li::before { content: '✓'; color: var(--gold); font-weight: 700; flex-shrink: 0; }
.pricing-note { text-align: center; margin-top: 36px; }
.pricing-note span { display: inline-block; background: rgba(201,168,76,0.12); border: 1px solid rgba(201,168,76,0.3); color: #7a5c12; padding: 8px 20px; border-radius: 20px; font-size: 0.85rem; font-weight: 500; }

/* ── FAQ ── */
.faq-list { max-width: 740px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--light-grey); }
.faq-question {
  width: 100%; background: none; border: none; text-align: left;
  padding: 20px 0; display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-family: 'DM Sans', sans-serif; font-size: 1rem;
  font-weight: 600; color: var(--navy); gap: 16px;
}
.faq-question:hover { color: var(--navy-light); }
.faq-arrow { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--light-grey); display: flex; align-items: center; justify-content: center; transition: transform var(--transition), background var(--transition); font-size: 0.8rem; }
.faq-item.open .faq-arrow { transform: rotate(180deg); background: var(--navy); color: var(--white); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; }
.faq-answer p { padding-bottom: 18px; color: #4a5568; font-size: 0.93rem; line-height: 1.7; }
.faq-item.open .faq-answer { max-height: 200px; }

/* ── WAITING LIST FORM ── */
.waitlist-section { background: var(--off-white); }
.form-wrap { max-width: 680px; margin: 0 auto; background: var(--white); border-radius: 14px; padding: 48px 44px; box-shadow: var(--shadow-lg); border: 1px solid var(--light-grey); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: 0.85rem; font-weight: 600; color: var(--navy); }
label .req { color: #c0392b; margin-left: 2px; }
input, select, textarea {
  font-family: 'DM Sans', sans-serif; font-size: 0.93rem;
  padding: 11px 14px; border: 1.5px solid #d0d5e8;
  border-radius: 7px; background: var(--white); color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(37,75,138,0.12);
}
textarea { resize: vertical; min-height: 90px; }
.checkbox-group { display: flex; align-items: flex-start; gap: 12px; margin-top: 8px; }
.checkbox-group input[type=checkbox] { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; accent-color: var(--navy); cursor: pointer; }
.checkbox-group label { font-size: 0.85rem; font-weight: 400; color: #4a5568; cursor: pointer; }
.form-submit { margin-top: 10px; }
.btn-full { width: 100%; justify-content: center; padding: 14px; font-size: 1rem; }

/* ── FLASH MESSAGES ── */
.flash { padding: 16px 20px; border-radius: 8px; margin-bottom: 24px; font-weight: 500; }
.flash-success { background: #e8f5e9; border: 1px solid #81c784; color: #2e7d32; }
.flash-error { background: #ffebee; border: 1px solid #ef9a9a; color: #c62828; }

/* ── FOOTER ── */
footer { background: var(--navy); padding: 52px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 0.88rem; margin-top: 12px; max-width: 280px; }
.footer-col h4 { color: var(--white); font-family: 'DM Sans', sans-serif; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col a { display: block; color: rgba(255,255,255,0.55); font-size: 0.88rem; margin-bottom: 8px; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 0.82rem; }

/* ── ADMIN ── */
.admin-body { background: var(--off-white); min-height: 100vh; }
.admin-header { background: var(--navy); padding: 0; height: 64px; display: flex; align-items: center; }
.admin-header .container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.admin-header .logo { font-size: 1.3rem; }
.admin-header nav a { color: rgba(255,255,255,0.7); font-size: 0.88rem; }
.admin-wrap { padding: 36px 0; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-card { background: var(--white); border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow); border-left: 4px solid var(--navy); }
.stat-card.today { border-left-color: var(--gold); }
.stat-card.month { border-left-color: var(--navy-light); }
.stat-label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--mid-grey); }
.stat-num { font-family: 'Playfair Display', serif; font-size: 2.4rem; color: var(--navy); line-height: 1.1; }
.table-wrap { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.table-toolbar { padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--light-grey); flex-wrap: wrap; gap: 12px; }
.table-toolbar h2 { font-size: 1.1rem; margin: 0; }
.search-input { padding: 9px 14px; border: 1.5px solid #d0d5e8; border-radius: 7px; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; width: 220px; }
table { width: 100%; border-collapse: collapse; }
thead th { background: var(--off-white); padding: 12px 16px; text-align: left; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--mid-grey); }
tbody tr { border-bottom: 1px solid var(--light-grey); transition: background var(--transition); }
tbody tr:hover { background: var(--off-white); }
tbody td { padding: 13px 16px; font-size: 0.88rem; }
.del-btn { background: none; border: 1px solid #ef9a9a; color: #c62828; padding: 4px 10px; border-radius: 5px; cursor: pointer; font-size: 0.8rem; font-family: 'DM Sans', sans-serif; transition: all var(--transition); }
.del-btn:hover { background: #c62828; color: var(--white); }
.service-tag { display: inline-block; background: var(--off-white); border: 1px solid var(--light-grey); padding: 2px 8px; border-radius: 4px; font-size: 0.78rem; color: var(--navy); }

/* ── LOGIN ── */
.login-body { background: var(--navy); min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-card { background: var(--white); border-radius: 14px; padding: 48px 44px; width: 100%; max-width: 400px; box-shadow: var(--shadow-lg); }
.login-card h1 { font-size: 1.7rem; margin-bottom: 6px; }
.login-card p { color: var(--mid-grey); font-size: 0.9rem; margin-bottom: 30px; }

/* ── COMPLIANCE NOTICE ── */
.compliance-notice {
  background: #fffbeb; border: 1px solid #f59e0b;
  border-radius: 8px; padding: 14px 20px;
  display: flex; align-items: flex-start; gap: 12px;
  margin-top: 28px; max-width: 720px;
}
.compliance-notice .cn-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }
.compliance-notice p { font-size: 0.88rem; color: #78350f; margin: 0; line-height: 1.6; }
.compliance-notice a { color: #92400e; text-decoration: underline; }

/* ── LEGAL / POLICY PAGES ── */
.legal-body { background: var(--off-white); }
.legal-wrap { max-width: 780px; margin: 0 auto; padding: 52px 24px 80px; }
.legal-wrap h1 { font-size: 2rem; margin-bottom: 8px; }
.legal-meta { color: var(--mid-grey); font-size: 0.88rem; margin-bottom: 36px; padding-bottom: 20px; border-bottom: 1px solid var(--light-grey); }
.legal-wrap h2 { font-size: 1.2rem; margin: 32px 0 12px; color: var(--navy); }
.legal-wrap p { margin-bottom: 14px; font-size: 0.95rem; line-height: 1.75; }
.legal-wrap ul { margin: 0 0 16px 20px; }
.legal-wrap ul li { font-size: 0.93rem; line-height: 1.7; margin-bottom: 5px; color: #3a4259; }
.legal-wrap ol { margin: 0 0 16px 20px; }
.legal-wrap ol li { font-size: 0.93rem; line-height: 1.7; margin-bottom: 8px; color: #3a4259; }
.legal-company-box {
  background: var(--white); border: 1px solid var(--light-grey);
  border-left: 4px solid var(--navy); border-radius: 8px;
  padding: 20px 24px; margin-bottom: 28px;
}
.legal-company-box p { margin: 0; font-size: 0.9rem; color: #4a5568; line-height: 1.8; }
.legal-company-box strong { color: var(--navy); }
.verification-steps { counter-reset: step; list-style: none; margin-left: 0; padding: 0; }
.verification-steps li {
  counter-increment: step; display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--light-grey);
}
.verification-steps li:last-child { border-bottom: none; }
.verification-steps li::before {
  content: counter(step); flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  font-size: 0.82rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--navy); padding: 20px 24px; border-top: 1px solid rgba(255,255,255,0.1); }
  nav .nav-links.open { display: flex; }
  nav .nav-links a { margin: 0 0 14px; }
  .hamburger { display: flex; }
  .form-grid { grid-template-columns: 1fr; }
  .form-wrap { padding: 32px 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .stats-row { grid-template-columns: 1fr; }
  .table-wrap { overflow-x: auto; }
  .hero { padding: 60px 0 56px; }
  section { padding: 56px 0; }
  .pricing-card.featured { transform: scale(1); }
}

/* ── COOKIE BANNER ── */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: var(--navy);
  border-top: 3px solid var(--gold);
  padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
  box-shadow: 0 -4px 24px rgba(15,31,61,0.25);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
#cookie-banner.visible { transform: translateY(0); }
#cookie-banner p {
  color: rgba(255,255,255,0.82); font-size: 0.88rem;
  margin: 0; flex: 1; min-width: 240px; line-height: 1.6;
}
#cookie-banner a { color: var(--gold-light); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }
#cookie-accept {
  background: var(--gold); color: var(--navy);
  border: none; padding: 9px 22px; border-radius: 6px;
  font-family: 'DM Sans', sans-serif; font-size: 0.88rem; font-weight: 600;
  cursor: pointer; transition: background 0.2s;
}
#cookie-accept:hover { background: var(--gold-light); }
#cookie-reject {
  background: transparent; color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.25); padding: 9px 22px; border-radius: 6px;
  font-family: 'DM Sans', sans-serif; font-size: 0.88rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
}
#cookie-reject:hover { border-color: rgba(255,255,255,0.6); color: var(--white); }
@media (max-width: 600px) {
  #cookie-banner { flex-direction: column; }
  .cookie-buttons { width: 100%; }
  #cookie-accept, #cookie-reject { flex: 1; text-align: center; }
}
