/* =========================================================
   Sahilleza 2026 — Minimalist Modern Design
   Colors: #FFFFFF (white) · #00B140 (pharma green)
   ========================================================= */

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

:root {
  --green:        #00B140;
  --green-dark:   #009535;
  --green-light:  #e6f7ed;
  --white:        #FFFFFF;
  --dark:         #111827;
  --text:         #374151;
  --text-muted:   #6B7280;
  --bg-off:       #F9FAFB;
  --border:       #E5E7EB;
  --shadow-sm:    0 1px 4px rgba(0,0,0,.06);
  --shadow:       0 4px 24px rgba(0,0,0,.08);
  --radius:       6px;
  --radius-lg:    12px;
  --ease:         .25s ease;
  --font:         'Montserrat', 'Segoe UI', sans-serif;
  --nav-h:        76px;
}

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--green-dark); }

img { max-width: 100%; height: auto; display: block; }

h1,h2,h3,h4,h5,h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
  letter-spacing: -.02em;
}

p { margin-bottom: 1rem; }

/* --- Utilities ------------------------------------------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: 80px; }
.section-sm { padding-block: 48px; }
.section-lg { padding-block: 112px; }
.bg-off  { background: var(--bg-off); }
.bg-dark { background: var(--dark); color: #d1d5db; }
.bg-green { background: var(--green); color: var(--white); }
.text-center { text-align: center; }
.text-left   { text-align: left; }

.accent-line {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--green);
  margin-block: 16px;
  border-radius: 2px;
}
.accent-line.center { margin-inline: auto; }

/* --- Buttons --------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .03em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--ease);
  text-transform: uppercase;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--green);
}
.btn-outline-dark {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-outline-dark:hover {
  background: var(--green);
  color: var(--white);
}

/* === NAVIGATION ========================================= */
.nav-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--ease);
}
.nav-wrap.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 32px;
}

.nav-logo img { height: 52px; width: auto; }
.nav-logo-sm  { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
}
.nav-links a {
  display: block;
  padding: 8px 14px;
  font-size: .813rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text);
  border-radius: var(--radius);
  transition: all var(--ease);
}
.nav-links a:hover,
.nav-links li.active a {
  color: var(--green);
  background: var(--green-light);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--ease);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
@media (max-width: 991px) {
  .nav-logo    { display: none; }
  .nav-logo-sm { display: block; }
  .nav-logo-sm img { height: 40px; }

  .nav-hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all .3s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-links a { padding: 12px 16px; font-size: .875rem; }
}

/* === HERO SLIDER ========================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  margin-top: var(--nav-h);
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}
.slide.active { opacity: 1; }

.slide-overlay {
  display: none;
}

.hero-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  border: none;
  transition: all var(--ease);
}
.hero-dot.active {
  background: var(--white);
  transform: scale(1.4);
}

/* === FEATURES SECTION ==================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.feature-card {
  padding: 40px 32px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border-top: 3px solid var(--green);
  transition: transform var(--ease), box-shadow var(--ease);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,177,64,.12);
}
.feature-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 20px;
}
.feature-card h5 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--dark);
}
.feature-card p {
  font-size: .875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
}

@media (max-width: 767px) {
  .features-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
}

/* === CTA BANNER ========================================== */
.cta-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.cta-overlay {
  background: rgba(0, 0, 0, .35);
  padding-block: 96px;
}
.cta-inner {
  max-width: 640px;
}
.cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 16px;
}
.cta-banner p {
  color: rgba(255,255,255,.85);
  font-size: 1rem;
  margin-bottom: 32px;
}

/* === BREADCRUMB ========================================== */
.breadcrumb-section {
  position: relative;
  background-size: cover;
  background-position: center;
  margin-top: var(--nav-h);
}
.breadcrumb-overlay {
  background: linear-gradient(to right, rgba(0,0,0,.6), rgba(0,0,0,.25));
  padding-block: 80px;
}
.breadcrumb-section h1 {
  color: var(--white);
  font-size: clamp(1.75rem, 4vw, 3rem);
  margin-bottom: 12px;
}
.breadcrumb-trail {
  list-style: none;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
}
.breadcrumb-trail a { color: rgba(255,255,255,.8); }
.breadcrumb-trail a:hover { color: var(--white); }
.breadcrumb-trail li + li::before { content: '›'; margin-right: 8px; }

/* === CONTENT SECTIONS ==================================== */
.section-header { margin-bottom: 48px; }
.section-header h2, .section-header h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0;
}
.section-header p {
  color: var(--text-muted);
  font-size: .9375rem;
  margin-top: 12px;
  margin-bottom: 0;
}

/* Two-column with image */
.split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-row.reverse { direction: rtl; }
.split-row.reverse > * { direction: ltr; }

.split-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-off);
}
.split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 767px) {
  .split-row { grid-template-columns: 1fr; gap: 32px; }
  .split-row.reverse { direction: ltr; }
}

/* Tabs (accordion on mobile) */
.tabs-nav {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 32px;
  gap: 0;
  overflow-x: auto;
}
.tabs-nav button {
  padding: 14px 24px;
  font-family: var(--font);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--ease);
  white-space: nowrap;
}
.tabs-nav button.active {
  color: var(--green);
  border-bottom-color: var(--green);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel p { color: var(--text); font-size: .9375rem; line-height: 1.75; }

/* === TEAM GRID =========================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow var(--ease), transform var(--ease);
}
.team-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.team-photo {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-off);
}
.team-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-info {
  padding: 16px;
  text-align: center;
}
.team-info h5 {
  font-size: .9375rem;
  margin-bottom: 8px;
}
.team-info a {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--green);
}
.team-info a:hover { text-decoration: underline; }

@media (max-width: 991px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .team-grid { grid-template-columns: repeat(2, 1fr); } }

/* === SERVICES FILTER ===================================== */
.services-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
}
.services-filter {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  align-self: start;
}
.filter-label {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.filter-list { list-style: none; }
.filter-list li + li { margin-top: 4px; }
.filter-list button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  font-family: var(--font);
  font-size: .8125rem;
  font-weight: 600;
  background: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--text);
  transition: all var(--ease);
}
.filter-list button:hover { background: var(--bg-off); color: var(--green); }
.filter-list button.active { background: var(--green-light); color: var(--green); }

.service-item { display: none; }
.service-item.visible { display: block; }
.service-item h3 {
  font-size: 1.375rem;
  margin-bottom: 0;
}
.service-item img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin-block: 24px;
}
.service-item p { font-size: .9375rem; color: var(--text); }

@media (max-width: 767px) {
  .services-layout { grid-template-columns: 1fr; }
  .services-filter { position: static; }
  .filter-list { display: flex; flex-wrap: wrap; gap: 8px; }
  .filter-list li + li { margin: 0; }
  .filter-list button { padding: 8px 14px; }
}

/* === ORTOPEDIA ALTERNATING =============================== */
.ortho-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 420px;
}
.ortho-item:nth-child(even) { direction: rtl; }
.ortho-item:nth-child(even) > * { direction: ltr; }

.ortho-img {
  background-size: cover;
  background-position: center;
  min-height: 360px;
}
.ortho-content {
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ortho-content h2 { font-size: 1.625rem; margin-bottom: 0; }
.ortho-content p { font-size: .9375rem; color: var(--text); margin-top: 16px; margin-bottom: 28px; }

@media (max-width: 767px) {
  .ortho-item, .ortho-item:nth-child(even) { grid-template-columns: 1fr; direction: ltr; }
  .ortho-img { min-height: 220px; }
  .ortho-content { padding: 40px 24px; }
}

/* === MAP / LOCATIONS ===================================== */
.location-row {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 40px;
  align-items: stretch;
  margin-bottom: 48px;
}
.location-row:last-child { margin-bottom: 0; }
.location-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 36px;
  display: flex;
  flex-direction: column;
}
.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,177,64,.1);
  color: var(--green);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
  width: fit-content;
}
.location-card h3 { font-size: 1.125rem; margin-bottom: 6px; }
.location-card > p { color: var(--text-muted); font-size: .9rem; margin-bottom: 20px; }
.location-detail {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .875rem;
  margin-bottom: 10px;
  color: var(--text);
}
.location-detail a { color: var(--text); }
.location-detail a:hover { color: var(--green); }
.loc-icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex-shrink: 0;
  color: var(--green);
}
.map-embed {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 360px;
}
.map-embed iframe { width: 100%; height: 100%; min-height: 360px; border: none; display: block; }

@media (max-width: 991px) {
  .location-row { grid-template-columns: 1fr; }
  .map-embed { min-height: 300px; }
  .map-embed iframe { min-height: 300px; }
}

/* === CONTACT FORM ======================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  align-items: start;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-control {
  padding: 12px 16px;
  font-family: var(--font);
  font-size: .9375rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--dark);
  transition: border-color var(--ease), box-shadow var(--ease);
  outline: none;
}
.form-control:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0,177,64,.12);
}
textarea.form-control { resize: vertical; min-height: 140px; }

.contact-sidebar { }
.sidebar-block {
  padding: 28px;
  background: var(--bg-off);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}
.sidebar-block h6 {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.contact-detail {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .875rem;
  margin-bottom: 10px;
  color: var(--text);
}
.contact-detail a { color: var(--text); }
.contact-detail a:hover { color: var(--green); }
.c-icon { width: 16px; flex-shrink: 0; margin-top: 2px; color: var(--green); }

.social-links { display: flex; gap: 12px; margin-top: 8px; }
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text);
  transition: all var(--ease);
  font-size: 1.4rem;
  position: relative;
}
.social-link:hover { background: var(--green); color: var(--white); }

/* === TOOLTIPS SOCIALES ================================== */
.footer-social a,
.social-link { position: relative; }

.footer-social a::after,
.social-link::after {
  content: attr(aria-label);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #111827;
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.footer-social a:hover::after,
.social-link:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 767px) {
  .contact-layout { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: auto; }
}

/* === FOOTER ============================================== */
.footer {
  background: #ffffff;
  color: #374151;
  padding-top: 64px;
  padding-bottom: 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(0,0,0,.1);
}
.footer-brand img { height: 64px; width: auto; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.18);
  color: #374151;
  font-size: 1.4rem;
  transition: all var(--ease);
}
.footer-social a:hover { border-color: var(--green); color: var(--green); background: rgba(0,177,64,.08); }

.footer h6 {
  color: #111827;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-sep {
  width: 32px; height: 2px;
  background: var(--green);
  margin-bottom: 16px;
  border-radius: 2px;
}
.footer-list { list-style: none; }
.footer-list li { margin-bottom: 10px; font-size: .875rem; }
.footer-list a { color: #374151; }
.footer-list a:hover { color: var(--green); }

.footer-detail {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .875rem;
  margin-bottom: 10px;
}
.footer-detail a { color: #374151; }
.footer-detail a:hover { color: var(--green); }
.f-icon { width: 14px; flex-shrink: 0; margin-top: 3px; color: var(--green); }

.footer-bottom {
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  font-size: .9rem;
}
.footer-legal a { color: #374151; margin-left: 16px; }
.footer-legal a:hover { color: var(--green); }

@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal a { margin-left: 8px; }
}

/* === COOKIES BANNER ====================================== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 720px;
  background: var(--dark);
  color: #d1d5db;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 9999;
  box-shadow: 0 8px 40px rgba(0,0,0,.3);
  font-size: .875rem;
}
.cookie-banner a { color: var(--green); }
.cookie-banner .btn { flex-shrink: 0; }
.cookie-banner.hidden { display: none; }

/* === WHATSAPP FLOAT ====================================== */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  transition: transform var(--ease), box-shadow var(--ease);
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,.5);
  color: var(--white);
}

/* === UTILITY ============================================= */
.divider { border: none; height: 1px; background: var(--border); margin-block: 32px; }
.mb-0 { margin-bottom: 0; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

/* Founder highlight */
.founder-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}
.founder-card {
  max-width: 260px;
  width: 100%;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--green);
  text-align: center;
}
.founder-card .team-photo { aspect-ratio: 1; }
.founder-card .team-info { padding: 20px; }

/* About tabs content */
.tab-panel b { color: var(--dark); }
