/* ============ Attentia clone — design tokens ============ */
:root {
  --orange: #ee7203;
  --orange-dark: #d96400;
  --orange-light: #fdeadb;
  --teal: #11878b;
  --teal-dark: #0d6b6e;
  --teal-light: #e2f3f3;
  --navy: #3c4256;
  --ink: #181a22;
  --slate: #303545;
  --gray-700: #344054;
  --gray-600: #475467;
  --gray-500: #667085;
  --gray-300: #d0d5dd;
  --gray-200: #eaecf0;
  --gray-100: #f2f4f7;
  --gray-50: #f9fafb;
  --beige: #cdc2af;
  --beige-light: #f1ede4;
  --radius: 12px;
  --font-display: "Barlow Semi Condensed", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --shadow: 0 4px 24px rgba(24, 26, 34, .10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--navy);
  background: #fff;
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; color: var(--gray-600); line-height: 1.15; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; margin-top: 40px; }

/* ============ Buttons & badges ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 8px; border: none; cursor: pointer;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); }
.btn-light { background: #fff; color: var(--teal); }
.btn-light:hover { background: var(--gray-100); }
.btn-ghost { background: transparent; color: var(--orange); border: 2px solid var(--orange); }
.btn-ghost:hover { background: var(--orange-light); }

.badge {
  display: inline-block; background: var(--orange-light); color: var(--orange);
  font-weight: 600; font-size: 13px; padding: 4px 14px; border-radius: 16px; margin-bottom: 14px;
}
.badge-teal { background: var(--teal-light); color: var(--teal); }

.read-more { color: var(--teal); font-weight: 600; font-size: 15px; display: inline-flex; gap: 6px; align-items: center; }
.read-more:hover { color: var(--teal-dark); }
.read-more span { transition: transform .15s; }
.read-more:hover span { transform: translateX(3px); }

/* ============ Top bar ============ */
.topbar { background: var(--gray-50); border-bottom: 1px solid var(--gray-200); font-size: 13.5px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.topbar-links { display: flex; gap: 20px; }
.topbar-links a { color: var(--gray-600); }
.topbar-links a:hover { color: var(--orange); }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.lang a { color: var(--gray-500); }
.lang a.active { color: var(--navy); font-weight: 600; }
.lang .sep { margin: 0 6px; color: var(--gray-300); }
.my-attentia { display: inline-flex; align-items: center; gap: 6px; color: var(--orange); font-weight: 600; }

/* ============ Header ============ */
.header { background: #fff; position: sticky; top: 0; z-index: 60; box-shadow: 0 1px 0 var(--gray-200); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo img { height: 40px; width: auto; }
.main-nav { display: flex; gap: 8px; flex: 1; justify-content: center; flex-wrap: wrap; }
.main-nav a {
  display: inline-flex; align-items: center; gap: 3px;
  font-weight: 500; font-size: 15px; color: var(--gray-700); padding: 8px 10px; border-radius: 6px;
}
.main-nav a:hover { color: var(--orange); background: var(--gray-50); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.search-btn { background: none; border: none; cursor: pointer; color: var(--gray-600); display: flex; }
.search-btn:hover { color: var(--orange); }

/* ============ Hero ============ */
.hero { overflow: hidden; background: #fff; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; padding-top: 70px; padding-bottom: 70px; }
.hero-text h1 { font-size: 54px; font-weight: 500; margin-bottom: 22px; }
.hero-text p { font-weight: 300; font-size: 17.5px; color: var(--navy); margin-bottom: 14px; max-width: 540px; }
.hero-text strong { font-weight: 600; }
.hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-media { position: relative; display: flex; justify-content: flex-end; }
.hero-circle {
  width: 520px; height: 520px; border-radius: 50%;
  overflow: hidden; position: relative;
  outline: 1.5px dashed var(--teal); outline-offset: 10px;
  margin-right: -120px;
}
.hero-circle img { width: 100%; height: 100%; object-fit: cover; }

/* ============ Logos ============ */
.logos { padding: 42px 0 56px; border-top: 1px solid var(--gray-100); }
.logos-title { text-align: center; color: var(--gray-500); font-size: 14px; font-weight: 500; margin-bottom: 26px; text-transform: uppercase; letter-spacing: .06em; }
.logos-row { display: flex; justify-content: center; align-items: center; gap: 64px; flex-wrap: wrap; }
.logos-row img { height: 34px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .65; transition: .2s; }
.logos-row img:hover { filter: none; opacity: 1; }

/* ============ Services / cards ============ */
.services { padding: 80px 0; background: var(--gray-50); }
.section-title { font-size: 38px; font-weight: 500; text-align: center; margin-bottom: 18px; }
.section-sub { text-align: center; max-width: 720px; margin: 0 auto 46px; color: var(--gray-600); font-weight: 300; }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 50px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 32px 28px; display: flex; flex-direction: column; gap: 12px;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-icon { width: 62px; height: 62px; object-fit: contain; }
.card h3 { font-size: 21px; color: var(--navy); }
.card p { font-size: 15px; color: var(--gray-600); font-weight: 300; flex: 1; }

/* ============ Events ============ */
.events { background: var(--teal); color: #fff; padding: 76px 0; }
.events-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: center; }
.events h2 { color: #fff; font-size: 36px; font-weight: 500; margin-bottom: 16px; }
.events p { font-weight: 300; opacity: .92; margin-bottom: 26px; max-width: 560px; }
.events .badge { background: rgba(255,255,255,.16); color: #fff; }
.events-visual { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.event-chip {
  background: rgba(255,255,255,.12); border: 1px dashed rgba(255,255,255,.45);
  padding: 14px 22px; border-radius: 12px; font-weight: 500;
}
.event-chip:nth-child(2) { margin-left: 40px; }
.event-chip:nth-child(3) { margin-left: 12px; }

/* ============ Split sections ============ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.sector { padding: 90px 0; }
.split-media img { border-radius: 20px; width: 100%; max-height: 440px; object-fit: cover; object-position: top; }
.sector .split-media { position: relative; }
.sector .split-media::before {
  content: ""; position: absolute; inset: -14px auto auto -14px; width: 120px; height: 120px;
  border-radius: 50%; background: var(--orange-light); z-index: -1;
}
.split-text h2 { font-size: 36px; font-weight: 500; margin-bottom: 18px; }
.split-text p { font-weight: 300; color: var(--gray-600); margin-bottom: 14px; }
.split-text .btn { margin-top: 14px; }

/* ============ Sensor ============ */
.sensor { background: var(--beige-light); padding: 80px 0; }
.sensor-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.sensor h2 { font-size: 36px; font-weight: 500; margin-bottom: 18px; }
.sensor p { font-weight: 300; color: var(--gray-600); margin-bottom: 28px; }

/* ============ Academy ============ */
.academy { padding: 90px 0; }
.card-training h3 { font-size: 19px; }

/* ============ Case ============ */
.case { padding: 90px 0; background: var(--gray-50); }
.case-media img { border-radius: 50% 20px 20px 20px / 40% 20px 20px 20px; }

/* ============ Newsletter ============ */
.newsletter { background: var(--orange); color: #fff; padding: 56px 0; }
.newsletter-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.newsletter h2 { color: #fff; font-size: 30px; font-weight: 500; margin-bottom: 8px; }
.newsletter p { font-weight: 300; opacity: .95; max-width: 600px; }
.newsletter .btn-light { color: var(--orange); }

/* ============ Footer ============ */
.footer { background: var(--ink); color: var(--gray-300); font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 36px; padding: 64px 24px 44px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; font-weight: 600; }
.footer-grid a { display: block; margin-bottom: 10px; color: var(--gray-300); font-weight: 300; }
.footer-grid a:hover { color: var(--orange); }
.footer-brand img { height: 36px; width: auto; margin-bottom: 14px; filter: brightness(0) invert(1); }
.tagline { color: var(--orange); font-family: var(--font-display); font-size: 18px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  border-top: 1px solid var(--slate); padding-top: 22px; padding-bottom: 26px; font-size: 13.5px; color: var(--gray-500);
}
.footer-bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--orange); }

/* ============ Floating buttons ============ */
.fab-stack { position: fixed; right: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 14px; z-index: 100; }
.fab {
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: 0 6px 20px rgba(24,26,34,.28); transition: transform .15s;
}
.fab:hover { transform: scale(1.08); }
.fab-chat { background: var(--orange); }
.fab-agenda { background: var(--teal); }

/* ============ Panels (chat + booking) ============ */
.panel {
  position: fixed; right: 24px; bottom: 100px; width: 390px; max-width: calc(100vw - 32px);
  max-height: min(640px, calc(100vh - 130px));
  background: #fff; border-radius: 16px; box-shadow: 0 18px 60px rgba(24,26,34,.30);
  display: flex; flex-direction: column; overflow: hidden; z-index: 110;
  animation: pop .18s ease-out;
}
@keyframes pop { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.panel[hidden] { display: none; }
.panel-header {
  background: var(--orange); color: #fff; padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
}
.panel-header.teal { background: var(--teal); }
.panel-header strong { display: block; font-size: 15.5px; }
.panel-header .online { font-size: 12px; opacity: .9; }
.panel-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px;
}
.panel-close { margin-left: auto; background: none; border: none; color: #fff; font-size: 16px; cursor: pointer; opacity: .85; }
.panel-close:hover { opacity: 1; }

/* chat */
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--gray-50); min-height: 240px; }
.msg { max-width: 84%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; white-space: pre-line; }
.msg.bot { background: #fff; border: 1px solid var(--gray-200); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.user { background: var(--orange); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg .msg-action { display: inline-block; margin-top: 8px; background: var(--teal); color: #fff; padding: 7px 14px; border-radius: 8px; font-weight: 600; font-size: 13px; cursor: pointer; border: none; }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--gray-300); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3 } 40% { opacity: 1 } }
.chat-quick { display: flex; gap: 8px; padding: 8px 12px; flex-wrap: wrap; background: var(--gray-50); border-top: 1px solid var(--gray-200); }
.chat-quick button {
  background: #fff; border: 1px solid var(--gray-300); color: var(--teal); font-size: 12.5px; font-weight: 600;
  padding: 6px 12px; border-radius: 16px; cursor: pointer;
}
.chat-quick button:hover { border-color: var(--teal); background: var(--teal-light); }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--gray-200); background: #fff; }
.chat-input input {
  flex: 1; border: 1px solid var(--gray-300); border-radius: 8px; padding: 10px 12px; font-size: 14px; font-family: var(--font-body);
}
.chat-input input:focus { outline: 2px solid var(--orange-light); border-color: var(--orange); }

/* booking */
.booking-body { padding: 16px; overflow-y: auto; }
.week-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.week-nav span { font-weight: 600; font-size: 14.5px; color: var(--navy); text-transform: capitalize; }
.week-btn {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--gray-300); background: #fff;
  font-size: 18px; cursor: pointer; color: var(--gray-600);
}
.week-btn:hover { border-color: var(--teal); color: var(--teal); }
.week-btn:disabled { opacity: .35; cursor: default; }
.calendar-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.cal-day-head { text-align: center; font-size: 12px; font-weight: 600; color: var(--gray-600); padding: 4px 0; text-transform: capitalize; }
.slot {
  border: 1px solid var(--gray-200); background: var(--teal-light); color: var(--teal-dark);
  border-radius: 6px; font-size: 11.5px; font-weight: 600; padding: 6px 2px; cursor: pointer; text-align: center;
  font-family: var(--font-body);
}
.slot:hover { background: var(--teal); color: #fff; }
.slot.taken { background: var(--slate); border-color: var(--slate); color: #9aa1b0; cursor: not-allowed; text-decoration: line-through; }
.slot.past { background: var(--gray-100); color: var(--gray-300); cursor: not-allowed; border-color: var(--gray-200); }
.legend { display: flex; gap: 18px; margin-top: 12px; font-size: 12.5px; color: var(--gray-600); }
.legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; }
.legend .dot.free { background: var(--teal-light); border: 1px solid var(--teal); }
.legend .dot.taken { background: var(--slate); }
.slot-summary { background: var(--teal-light); color: var(--teal-dark); font-weight: 600; font-size: 14px; padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; }
#bookingForm label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 12px; color: var(--gray-700); }
#bookingForm small { font-weight: 400; color: var(--gray-500); }
#bookingForm input, #bookingForm select {
  width: 100%; margin-top: 5px; padding: 10px 12px; border: 1px solid var(--gray-300); border-radius: 8px;
  font-size: 14px; font-family: var(--font-body);
}
#bookingForm input:focus, #bookingForm select:focus { outline: 2px solid var(--teal-light); border-color: var(--teal); }
.form-actions { display: flex; justify-content: space-between; margin-top: 16px; }
#stepDone { text-align: center; padding: 18px 6px; }
.done-icon {
  width: 62px; height: 62px; border-radius: 50%; background: var(--teal); color: #fff;
  font-size: 30px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
}
#stepDone h3 { margin-bottom: 10px; }
#stepDone p { font-size: 14px; color: var(--gray-600); margin-bottom: 18px; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .hero-inner, .events-inner, .split { grid-template-columns: 1fr; }
  .hero-circle { margin: 0 auto; width: 380px; height: 380px; }
  .cards-grid, .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav { display: none; }
}
@media (max-width: 640px) {
  .hero-text h1 { font-size: 38px; }
  .section-title { font-size: 30px; }
  .cards-grid, .cards-3 { grid-template-columns: 1fr; }
  .topbar-links { display: none; }
  .hero-circle { width: 300px; height: 300px; }
  .panel { right: 8px; }
}
