/* ==========================================
   THORNFIELD PHYSIOTHERAPY — STYLESHEET
   ========================================== */

:root {
  --tf-navy: #1a2f4a;
  --tf-teal: #2a7a6a;
  --tf-teal-light: #3aaa8a;
  --tf-gold: #b8963e;
  --tf-white: #ffffff;
  --tf-off: #f7f5f0;
  --tf-text: #1F2937;
  --tf-body: #374151;
  --tf-muted: #6B7280;
  --tf-border: #E5E7EB;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; color: var(--tf-body); overflow-x: hidden; }
.tf-container { max-width: 1160px; margin: 0 auto; padding: 0 5%; }

/* Demo Banner */
.demo-banner {
  background: #1a1a2e;
  color: rgba(255,255,255,0.72);
  font-size: 0.82rem;
  padding: 10px 5%;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  line-height: 1.5;
}
.demo-tag {
  background: #C9A84C;
  color: #0B1628;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.banner-back {
  margin-left: auto;
  color: #C9A84C;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  border: 1px solid rgba(201,168,76,0.4);
  padding: 4px 12px;
  border-radius: 3px;
  transition: all 0.2s;
  white-space: nowrap;
}
.banner-back:hover { background: rgba(201,168,76,0.12); }

/* Nav */
.tf-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--tf-white);
  border-bottom: 1px solid var(--tf-border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.tf-nav-inner { max-width: 1160px; margin: 0 auto; padding: 16px 5%; display: flex; align-items: center; justify-content: space-between; }
.tf-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.tf-logo-mark { width: 40px; height: 40px; background: var(--tf-teal); color: var(--tf-white); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; flex-shrink: 0; }
.tf-logo-mark.sm { width: 32px; height: 32px; font-size: 1rem; }
.tf-logo-name { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--tf-navy); line-height: 1.1; }
.tf-logo-sub { font-size: 0.68rem; color: var(--tf-muted); letter-spacing: 0.5px; }
.tf-nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.tf-nav-links a { text-decoration: none; color: var(--tf-muted); font-size: 0.88rem; font-weight: 500; transition: color 0.2s; }
.tf-nav-links a:hover { color: var(--tf-teal); }
.tf-cta { background: var(--tf-teal) !important; color: var(--tf-white) !important; padding: 10px 20px !important; border-radius: 4px !important; font-weight: 600 !important; transition: background 0.2s !important; }
.tf-cta:hover { background: var(--tf-teal-light) !important; }
.tf-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.tf-hamburger span { display: block; width: 22px; height: 2px; background: var(--tf-navy); border-radius: 2px; }
.tf-mob-menu { display: none; flex-direction: column; background: var(--tf-white); padding: 16px 5%; gap: 14px; border-top: 1px solid var(--tf-border); }
.tf-mob-menu.open { display: flex; }
.tf-mob-menu a { color: var(--tf-muted); text-decoration: none; font-size: 0.95rem; }
.tf-mob-cta { background: var(--tf-teal) !important; color: var(--tf-white) !important; padding: 12px 20px; border-radius: 4px; text-align: center; font-weight: 600 !important; }

/* Hero */
.tf-hero { background: linear-gradient(135deg, var(--tf-navy) 0%, #2a4060 100%); padding: 80px 5%; position: relative; overflow: hidden; }
.tf-hero::before { content: ''; position: absolute; top: -100px; right: -100px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(42,122,106,0.2) 0%, transparent 70%); border-radius: 50%; }
.tf-hero-inner { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; position: relative; z-index: 2; }
.tf-hero-badge { display: inline-block; background: rgba(42,122,106,0.2); border: 1px solid rgba(42,122,106,0.4); color: #3aaa8a; font-size: 0.72rem; font-weight: 600; letter-spacing: 1px; padding: 6px 14px; border-radius: 2px; margin-bottom: 24px; }
.tf-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2rem,3.5vw,3rem); font-weight: 900; color: var(--tf-white); line-height: 1.15; margin-bottom: 20px; }
.tf-hero-sub { font-size: 0.97rem; color: rgba(255,255,255,0.78); line-height: 1.75; margin-bottom: 24px; }
.tf-hero-features { display: flex; flex-direction: column; gap: 9px; margin-bottom: 32px; }
.tf-feature { font-size: 0.88rem; color: rgba(255,255,255,0.78); }
.tf-hero-cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.tf-btn-primary { display: inline-block; background: var(--tf-teal); color: var(--tf-white); padding: 16px 32px; border-radius: 4px; font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: all 0.2s; }
.tf-btn-primary:hover { background: var(--tf-teal-light); transform: translateY(-2px); }
.tf-phone-cta { display: flex; align-items: center; gap: 12px; }
.tf-phone-icon { width: 44px; height: 44px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.tf-phone-label { font-size: 0.72rem; color: rgba(255,255,255,0.5); margin-bottom: 3px; }
.tf-phone-num { font-size: 0.95rem; font-weight: 600; color: var(--tf-white); }
.tf-hero-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; margin-bottom: 18px; }
.tf-hero-icon { font-size: 3rem; margin-bottom: 12px; }
.tf-hero-card-text { font-size: 0.88rem; color: rgba(255,255,255,0.5); line-height: 1.55; }
.tf-trust-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.tf-trust-item { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 14px; text-align: center; }
.tf-trust-item strong { display: block; font-size: 1.2rem; color: #3aaa8a; font-family: 'Playfair Display', serif; margin-bottom: 4px; }
.tf-trust-item span { font-size: 0.72rem; color: rgba(255,255,255,0.45); }

/* Call Section */
.tf-call-sec { background: var(--tf-off); padding: 72px 5%; }
.tf-call-box { background: var(--tf-white); border-radius: 16px; padding: 48px; box-shadow: 0 10px 40px rgba(0,0,0,0.07); display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.tf-call-live { display: inline-flex; align-items: center; gap: 8px; background: rgba(42,170,138,0.1); border: 1px solid rgba(42,170,138,0.3); color: var(--tf-teal); font-size: 0.72rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; padding: 6px 14px; border-radius: 20px; margin-bottom: 20px; }
.tf-live-dot { width: 7px; height: 7px; background: var(--tf-teal-light); border-radius: 50%; animation: tfPulse 1.5s infinite; }
@keyframes tfPulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(0.8)} }
.tf-call-box h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.5rem,2.5vw,2rem); color: var(--tf-navy); margin-bottom: 14px; line-height: 1.2; }
.tf-call-box > div > p { font-size: 0.92rem; color: var(--tf-body); line-height: 1.72; margin-bottom: 24px; }
.tf-call-bubbles { display: flex; flex-direction: column; gap: 10px; }
.tf-bub { max-width: 90%; padding: 11px 15px; border-radius: 10px; font-size: 0.85rem; line-height: 1.55; color: var(--tf-text); }
.tf-bub-ai { background: rgba(42,122,106,0.09); border-radius: 10px 10px 10px 2px; align-self: flex-start; }
.tf-bub-pt { background: rgba(26,47,74,0.07); border-radius: 10px 10px 2px 10px; align-self: flex-end; }
.tf-call-card { background: var(--tf-navy); border-radius: 14px; padding: 36px; text-align: center; }
.tf-call-icon { font-size: 2.5rem; margin-bottom: 14px; display: block; }
.tf-call-card h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--tf-white); margin-bottom: 8px; }
.tf-call-card > p { font-size: 0.87rem; color: rgba(255,255,255,0.55); margin-bottom: 20px; }
.tf-phone-display { font-size: 1.3rem; font-weight: 700; color: #3aaa8a; letter-spacing: 0.5px; margin-bottom: 20px; padding: 14px; background: rgba(42,122,106,0.15); border-radius: 8px; }
.tf-call-features { display: flex; flex-direction: column; gap: 9px; margin-bottom: 24px; text-align: left; }
.tf-cf { font-size: 0.86rem; color: rgba(255,255,255,0.68); }
.tf-call-btn { display: block; background: var(--tf-teal); color: var(--tf-white); padding: 16px; border-radius: 6px; font-weight: 700; font-size: 1rem; text-decoration: none; transition: background 0.2s; }
.tf-call-btn:hover { background: var(--tf-teal-light); }

/* Services */
.tf-services { background: var(--tf-white); padding: 80px 5%; }
.tf-section-hd { text-align: center; margin-bottom: 52px; }
.tf-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--tf-teal); margin-bottom: 12px; display: block; }
.tf-section-hd h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem,3vw,2.4rem); color: var(--tf-navy); margin-bottom: 12px; }
.tf-section-hd p { font-size: 0.97rem; color: var(--tf-muted); line-height: 1.72; max-width: 500px; margin: 0 auto; }
.tf-services-grid { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.tf-service-card { background: var(--tf-off); border: 1px solid var(--tf-border); border-radius: 12px; padding: 32px 28px; position: relative; transition: transform 0.2s, box-shadow 0.2s; }
.tf-service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.08); }
.tf-service-featured { border-color: var(--tf-teal); background: var(--tf-white); }
.tf-service-badge { position: absolute; top: -1px; right: 20px; background: var(--tf-teal); color: var(--tf-white); font-size: 0.62rem; font-weight: 700; padding: 4px 12px; border-radius: 0 0 6px 6px; }
.tf-service-icon { font-size: 1.8rem; margin-bottom: 16px; display: block; }
.tf-service-card h4 { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--tf-navy); margin-bottom: 10px; line-height: 1.3; }
.tf-service-card p { font-size: 0.88rem; color: var(--tf-body); line-height: 1.65; margin-bottom: 14px; }
.tf-service-price { font-size: 0.87rem; font-weight: 600; color: var(--tf-teal); margin-bottom: 14px; }
.tf-service-btn { font-size: 0.84rem; font-weight: 600; color: var(--tf-teal); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; transition: gap 0.2s; }
.tf-service-btn:hover { gap: 8px; }

/* Booking */
.tf-book { background: var(--tf-off); padding: 80px 5%; }
.tf-book-grid { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; align-items: start; }
.tf-book-left h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.6rem,2.5vw,2.2rem); color: var(--tf-navy); margin-bottom: 14px; }
.tf-book-left > p { font-size: 0.93rem; color: var(--tf-body); line-height: 1.75; margin-bottom: 28px; }
.tf-book-phone { display: flex; align-items: flex-start; gap: 14px; background: var(--tf-white); border: 1px solid var(--tf-border); border-radius: 10px; padding: 18px 20px; margin-bottom: 24px; }
.tf-bp-icon { font-size: 1.3rem; margin-top: 2px; flex-shrink: 0; }
.tf-book-phone strong { display: block; font-size: 0.87rem; color: var(--tf-navy); margin-bottom: 3px; }
.tf-bp-num { font-size: 1rem; font-weight: 700; color: var(--tf-teal); margin-bottom: 3px; }
.tf-book-phone span { font-size: 0.8rem; color: var(--tf-muted); }
.tf-book-features { display: flex; flex-direction: column; gap: 10px; }
.tf-bf { font-size: 0.9rem; color: var(--tf-body); }
.tf-book-form { background: var(--tf-white); border-radius: 14px; padding: 40px; box-shadow: 0 10px 40px rgba(0,0,0,0.06); }
.tf-book-form h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--tf-navy); margin-bottom: 24px; }
.tf-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tf-form-group { margin-bottom: 18px; }
.tf-form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--tf-navy); margin-bottom: 7px; }
.tf-form-group input, .tf-form-group select { width: 100%; padding: 11px 15px; border: 1.5px solid var(--tf-border); border-radius: 6px; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; color: var(--tf-text); background: var(--tf-white); transition: border-color 0.2s; appearance: none; }
.tf-form-group input:focus, .tf-form-group select:focus { outline: none; border-color: var(--tf-teal); }
.tf-submit-btn { width: 100%; padding: 16px; background: var(--tf-teal); color: var(--tf-white); border: none; border-radius: 6px; font-family: 'DM Sans', sans-serif; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: background 0.2s; margin-bottom: 10px; }
.tf-submit-btn:hover { background: var(--tf-teal-light); }
.tf-form-note { font-size: 0.76rem; color: var(--tf-muted); text-align: center; }
.tf-booking-success { display: none; margin-top: 20px; background: #F0FDF4; border: 1px solid #86EFAC; border-radius: 10px; padding: 24px; text-align: center; }
.tf-booking-success.visible { display: block; }
.tf-success-icon { font-size: 2rem; color: #16A34A; margin-bottom: 10px; display: block; }
.tf-booking-success strong { display: block; color: #166534; font-size: 1.1rem; margin-bottom: 8px; }
.tf-booking-success p { font-size: 0.88rem; color: #166534; line-height: 1.6; }

/* About */
.tf-about { background: var(--tf-white); padding: 80px 5%; }
.tf-about-grid { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.tf-about-left h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.6rem,2.5vw,2.2rem); color: var(--tf-navy); margin-bottom: 16px; }
.tf-about-left p { font-size: 0.93rem; color: var(--tf-body); line-height: 1.75; margin-bottom: 16px; }
.tf-credentials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.tf-cred { background: var(--tf-off); border: 1px solid var(--tf-border); border-radius: 6px; padding: 8px 14px; font-size: 0.82rem; font-weight: 500; color: var(--tf-navy); }
.tf-review { background: var(--tf-off); border-radius: 12px; padding: 24px; margin-bottom: 16px; }
.tf-stars { font-size: 1rem; color: #F59E0B; margin-bottom: 10px; }
.tf-review p { font-size: 0.88rem; color: var(--tf-body); line-height: 1.68; margin-bottom: 10px; }
.tf-review strong { font-size: 0.8rem; color: var(--tf-muted); font-weight: 600; }

/* Contact */
.tf-contact { background: var(--tf-off); padding: 80px 5%; }
.tf-contact-grid { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.tf-contact-info h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.5rem,2.5vw,2rem); color: var(--tf-navy); margin-bottom: 32px; }
.tf-contact-row { margin-bottom: 24px; }
.tf-contact-row strong { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.5px; color: var(--tf-teal); text-transform: uppercase; margin-bottom: 6px; }
.tf-contact-row p { font-size: 0.92rem; color: var(--tf-body); line-height: 1.65; }
.tf-contact-phone { font-size: 1.1rem !important; font-weight: 700 !important; color: var(--tf-teal) !important; }
.tf-contact-note { font-size: 0.82rem !important; color: var(--tf-muted) !important; font-style: italic; }
.tf-map-placeholder { background: var(--tf-white); border: 1px solid var(--tf-border); border-radius: 12px; min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--tf-muted); }
.tf-map-pin { font-size: 2.5rem; margin-bottom: 14px; }
.tf-map-placeholder p { font-size: 0.9rem; line-height: 1.6; color: var(--tf-body); }

/* Footer */
.tf-footer { background: var(--tf-navy); padding: 40px 5%; }
.tf-footer-inner { max-width: 1160px; margin: 0 auto 28px; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 32px; }
.tf-footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tf-footer-name { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; color: var(--tf-white); }
.tf-footer-reg { font-size: 0.68rem; color: rgba(255,255,255,0.35); }
.tf-footer-addr { font-size: 0.84rem; color: rgba(255,255,255,0.38); line-height: 1.6; }
.tf-footer-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.tf-footer-links a { font-size: 0.85rem; color: rgba(255,255,255,0.42); text-decoration: none; transition: color 0.2s; }
.tf-footer-links a:hover { color: rgba(255,255,255,0.78); }
.tf-footer-btm { max-width: 1160px; margin: 0 auto; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08); }
.tf-footer-btm p { font-size: 0.74rem; color: rgba(255,255,255,0.28); }

/* Chat Widget */
.chat-widget { position: fixed; bottom: 24px; right: 24px; z-index: 999; }
.chat-bubble-icon { width: 56px; height: 56px; background: var(--tf-teal); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; cursor: pointer; box-shadow: 0 8px 24px rgba(42,122,106,0.4); transition: transform 0.2s; margin-left: auto; }
.chat-bubble-icon:hover { transform: scale(1.08); }
.chat-panel { display: none; position: absolute; bottom: 68px; right: 0; width: 320px; background: var(--tf-white); border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,0.2); overflow: hidden; flex-direction: column; }
.chat-panel.open { display: flex; }
.chat-header { background: var(--tf-teal); padding: 14px 18px; display: flex; align-items: center; gap: 12px; }
.chat-avatar { width: 36px; height: 36px; background: rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--tf-white); font-weight: 700; font-size: 0.9rem; flex-shrink: 0; }
.chat-header-info strong { display: block; color: var(--tf-white); font-size: 0.9rem; }
.chat-header-info span { font-size: 0.72rem; color: rgba(255,255,255,0.65); }
.chat-close-btn { margin-left: auto; background: none; border: none; color: rgba(255,255,255,0.65); font-size: 1.2rem; cursor: pointer; padding: 0 4px; line-height: 1; }
.chat-messages { padding: 16px; display: flex; flex-direction: column; gap: 10px; max-height: 260px; overflow-y: auto; }
.chat-msg { max-width: 88%; padding: 10px 14px; border-radius: 10px; font-size: 0.85rem; line-height: 1.55; color: var(--tf-text); }
.chat-msg.ai { background: rgba(42,122,106,0.1); align-self: flex-start; border-radius: 10px 10px 10px 2px; }
.chat-msg.pt { background: var(--tf-teal); color: var(--tf-white); align-self: flex-end; border-radius: 10px 10px 2px 10px; }
.chat-input-row { display: flex; border-top: 1px solid var(--tf-border); }
#chatInput { flex: 1; padding: 12px 14px; border: none; font-family: 'DM Sans', sans-serif; font-size: 0.87rem; outline: none; color: var(--tf-text); }
.chat-input-row button { background: var(--tf-teal); color: var(--tf-white); border: none; padding: 0 18px; font-size: 1.1rem; cursor: pointer; transition: background 0.2s; }
.chat-input-row button:hover { background: var(--tf-teal-light); }

/* Responsive */
@media (max-width: 900px) {
  .tf-hero-inner, .tf-call-box, .tf-book-grid, .tf-about-grid, .tf-contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .tf-services-grid { grid-template-columns: repeat(2,1fr); }
  .tf-nav-links { display: none; }
  .tf-hamburger { display: flex; }
  .tf-hero { padding: 60px 5%; }
}
@media (max-width: 640px) {
  .tf-services-grid { grid-template-columns: 1fr; }
  .tf-form-row { grid-template-columns: 1fr; }
  .chat-panel { width: 290px; }
}
