/* =====================================================================
   Claudia Garcia — site.css
   Single stylesheet for the entire site + chatbot widget.
   Brand: Cinzel (serif headings) + Montserrat (body).
   Palette: navy #1E3146 / gray #D9D9D9 / white / black.
   ===================================================================== */

:root {
  /* Brand palette (manual de identidad) */
  --navy: #1E3146;
  --navy-deep: #131F2D;
  --navy-soft: #2A405A;
  --gray: #D9D9D9;
  --gray-light: #F2F2F2;
  --white: #FFFFFF;
  --black: #000000;

  /* Functional */
  --ink: #131F2D;
  --muted: #6B7480;
  --line: #E4E6EA;
  --paper: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  letter-spacing: 0.01em;
}

a { color: inherit; text-decoration: none; }
strong { font-weight: 600; color: var(--ink); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Logo (imagotipo CG) ---------- */
.logo-mark {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  color: var(--navy);
}
.logo-mark svg { width: 100%; height: 100%; display: block; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--navy-deep);
  color: var(--gray);
  font-size: 12px;
  padding: 9px 0;
  letter-spacing: 0.03em;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.topbar a:hover { color: var(--white); }
.topbar-info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-info span::before {
  content: "·";
  color: var(--gray);
  margin-right: 8px;
  opacity: 0.6;
}
.topbar-info span:first-child::before { content: ""; margin: 0; }

/* ---------- Header / Nav ---------- */
header.nav {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(120%) blur(8px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand-text .name {
  font-family: 'Cinzel', serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.08em;
  line-height: 1;
}
.brand-text .role {
  font-family: 'Montserrat', sans-serif;
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.36em;
  color: var(--navy-soft);
  text-transform: uppercase;
  margin-top: 6px;
}
nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  align-items: center;
}
nav a {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
nav a:hover { color: var(--navy); }
nav a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--navy);
  transition: width 0.3s ease;
}
nav a:hover::after { width: 100%; }
.btn-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 11px 22px !important;
  transition: background 0.25s;
}
.btn-cta:hover { background: var(--navy-deep); color: var(--white) !important; }
.btn-cta::after { display: none; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--navy);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding: 130px 0 140px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 30%, rgba(255,255,255,0.05), transparent 50%),
    linear-gradient(180deg, rgba(19,31,45,0) 0%, rgba(19,31,45,0.4) 100%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(0deg, transparent 0%, transparent 49.9%, rgba(217,217,217,0.04) 50%, transparent 50.1%, transparent 100%);
  background-size: 100% 80px;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 70px;
  align-items: center;
  position: relative;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 28px;
  font-weight: 400;
}
.hero-eyebrow::before {
  content: "";
  width: 32px; height: 1px;
  background: var(--gray);
  opacity: 0.7;
}
.hero h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.3rem, 4.6vw, 4rem);
  line-height: 1.15;
  margin-bottom: 26px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.hero h2 em {
  font-style: italic;
  font-family: 'Cormorant Garamond', 'Cinzel', serif;
  color: var(--gray);
  font-weight: 400;
}
.hero-lead {
  font-size: 1rem;
  max-width: 560px;
  color: rgba(255,255,255,0.78);
  margin-bottom: 38px;
  font-weight: 300;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--white);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--gray);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover {
  border-color: var(--white);
}

.hero-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(217,217,217,0.2);
  padding: 36px 32px;
  position: relative;
}
.hero-card .card-mark {
  position: absolute;
  top: -22px; right: 24px;
  width: 44px; height: 44px;
  background: var(--navy);
  padding: 6px;
  color: var(--white);
}
.hero-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 6px;
  font-weight: 500;
}
.hero-card .sub {
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  letter-spacing: 0.06em;
  margin-bottom: 22px;
}
.credential-list {
  list-style: none;
}
.credential-list li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(217,217,217,0.12);
  font-size: 13px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  line-height: 1.5;
}
.credential-list li:last-child { border-bottom: none; }
.credential-list .num {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 0.16em;
  flex-shrink: 0;
  width: 28px;
  padding-top: 1px;
}
.credential-list strong {
  color: var(--white);
  font-weight: 500;
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
}
.credential-list span.muted {
  color: rgba(255,255,255,0.55);
  font-size: 12px;
}

/* ---------- Section base ---------- */
section { padding: 110px 0; }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 22px;
  font-weight: 600;
}
.section-eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--navy);
}
.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 18px;
  max-width: 860px;
  font-weight: 500;
}
.section-title em {
  font-family: 'Cormorant Garamond', 'Cinzel', serif;
  font-style: italic;
  color: var(--navy-soft);
  font-weight: 400;
}
.section-intro {
  max-width: 740px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
}

/* ---------- About ---------- */
.about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
  margin-top: 66px;
}
.about-image {
  position: relative;
  aspect-ratio: 4/5;
  background:
    linear-gradient(135deg, rgba(30,49,70,0.06), rgba(30,49,70,0.18)),
    var(--gray);
  /* No overflow:hidden here — the "CALI · COLOMBIA" caption is positioned
     to hang below the frame, and clipping the parent would chop it off.
     The <img> below is wrapped so the photo itself still stays in bounds. */
  margin-bottom: 22px; /* room for the hanging caption */
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.about-image::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255,255,255,0.55);
  pointer-events: none;
  z-index: 2;
}
.about-image .caption {
  position: absolute;
  bottom: -20px;
  right: 0;
  background: var(--navy);
  color: var(--white);
  padding: 10px 22px;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  z-index: 3;
}
.about-text h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  color: var(--navy);
  margin: 28px 0 12px;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.about-text p {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 0.97rem;
  line-height: 1.85;
  font-weight: 300;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.stat .num {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  color: var(--navy);
  line-height: 1;
  font-weight: 500;
}
.stat .label {
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ---------- Accreditations ---------- */
.accreditations { background: var(--gray-light); padding: 100px 0; }
.accred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1px;
  margin-top: 60px;
  background: var(--line);
  border: 1px solid var(--line);
}
.accred-card {
  background: var(--white);
  padding: 32px 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: background 0.25s;
}
.accred-card:hover { background: var(--gray-light); }
.accred-card .badge {
  width: 46px; height: 46px;
  flex-shrink: 0;
  border: 1px solid var(--navy);
  display: grid;
  place-items: center;
  color: var(--navy);
}
.accred-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 6px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.accred-card p {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 300;
}
.accred-card .period {
  display: inline-block;
  margin-top: 10px;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--navy);
  text-transform: uppercase;
  font-weight: 600;
  border-top: 1px solid var(--gray);
  padding-top: 8px;
}

/* ---------- Services ---------- */
.services { background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1px;
  margin-top: 60px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  background: var(--white);
  padding: 40px 32px;
  position: relative;
  transition: all 0.3s ease;
}
.service-card:hover {
  background: var(--navy);
  color: var(--white);
}
.service-card:hover h3 { color: var(--white); }
.service-card:hover p { color: rgba(255,255,255,0.7); }
.service-card:hover .service-icon {
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}
.service-card:hover .service-num { color: var(--gray); }
.service-icon {
  width: 50px; height: 50px;
  display: grid;
  place-items: center;
  color: var(--navy);
  margin-bottom: 24px;
  border: 1px solid var(--line);
  transition: all 0.3s;
}
.service-num {
  position: absolute;
  top: 26px;
  right: 30px;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  color: var(--gray);
  letter-spacing: 0.18em;
  transition: color 0.3s;
}
.service-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.3s;
}
.service-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  font-weight: 300;
  transition: color 0.3s;
}

/* ---------- Experience / clients ---------- */
.experience {
  background: var(--navy);
  color: var(--white);
  padding: 110px 0;
  position: relative;
}
.experience .section-eyebrow { color: var(--gray); }
.experience .section-eyebrow::before { background: var(--gray); }
.experience .section-title { color: var(--white); }
.experience .section-title em { color: var(--gray); }
.experience .section-intro { color: rgba(255,255,255,0.7); }

.exp-tabs { margin-top: 60px; position: relative; }
.exp-tab-buttons {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 36px;
  border-bottom: 1px solid rgba(217,217,217,0.2);
}
.exp-tab-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.55);
  padding: 16px 24px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
  font-weight: 500;
}
.exp-tab-btn:hover { color: var(--white); }
.exp-tab-btn.active { color: var(--white); }
.exp-tab-btn.active::after {
  content: "";
  position: absolute;
  left: 24px; right: 24px;
  bottom: -1px;
  height: 1px;
  background: var(--white);
}
.exp-panel { display: none; }
.exp-panel.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px;
  background: rgba(217,217,217,0.15);
  border: 1px solid rgba(217,217,217,0.15);
}
.client-cell {
  padding: 22px 24px;
  background: var(--navy);
  font-size: 13px;
  color: var(--white);
  transition: background 0.25s;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 90px;
}
.client-cell:hover { background: var(--navy-soft); }
.client-cell .meta {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  color: var(--gray);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}
.client-cell strong {
  color: var(--white);
  font-weight: 500;
  font-family: 'Cinzel', serif;
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.exp-note {
  color: rgba(255,255,255,0.55);
  margin-top: 26px;
  font-size: 0.85rem;
  font-style: italic;
  font-weight: 300;
}

/* ---------- Sectors ---------- */
.sectors { background: var(--white); padding: 100px 0; }
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  margin-top: 56px;
  border: 1px solid var(--line);
}
.sector-item {
  padding: 44px 26px;
  border-right: 1px solid var(--line);
  text-align: center;
  transition: all 0.25s;
}
.sector-item:last-child { border-right: none; }
.sector-item:hover {
  background: var(--navy);
  color: var(--white);
}
.sector-item:hover h3 { color: var(--white); }
.sector-item:hover p { color: rgba(255,255,255,0.7); }
.sector-item:hover .sector-icon {
  border-color: var(--white);
  color: var(--white);
}
.sector-icon {
  width: 60px; height: 60px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  color: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 50%;
  transition: all 0.25s;
}
.sector-item h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 6px;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: color 0.25s;
}
.sector-item p {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 300;
  letter-spacing: 0.04em;
  transition: color 0.25s;
}

/* ---------- Manifesto ---------- */
.manifesto {
  background: var(--gray-light);
  padding: 100px 0;
  position: relative;
}
.manifesto-inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.manifesto .quote-mark {
  font-family: 'Cinzel', serif;
  font-size: 5rem;
  color: var(--navy);
  line-height: 0.5;
  margin-bottom: 26px;
  opacity: 0.5;
}
.manifesto blockquote {
  font-family: 'Cormorant Garamond', 'Cinzel', serif;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  color: var(--navy);
}
.manifesto cite {
  display: block;
  margin-top: 32px;
  font-style: normal;
  font-family: 'Cinzel', sans-serif;
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--navy-soft);
  font-weight: 500;
}

/* ---------- Education timeline ---------- */
.education { background: var(--white); }
.timeline {
  position: relative;
  margin-top: 60px;
  padding-left: 30px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 12px; bottom: 12px;
  left: 6px;
  width: 1px;
  background: var(--navy);
  opacity: 0.3;
}
.timeline-item {
  position: relative;
  padding: 14px 0 30px 36px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 22px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--navy);
}
.timeline-item .year {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: 4px 14px;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  font-weight: 500;
  margin-bottom: 10px;
}
.timeline-item h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 4px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.timeline-item p {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 300;
}
.timeline-item .level {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--navy-soft);
  font-weight: 600;
  margin-bottom: 4px;
}

/* ---------- Teaching ---------- */
.teaching { background: var(--gray-light); padding: 100px 0; }
.teaching-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  margin-top: 56px;
  background: var(--line);
  border: 1px solid var(--line);
}
.teach-card {
  background: var(--white);
  padding: 32px 28px;
  transition: all 0.25s;
}
.teach-card:hover {
  background: var(--navy);
  color: var(--white);
}
.teach-card:hover h3 { color: var(--white); }
.teach-card:hover p { color: rgba(255,255,255,0.7); }
.teach-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.teach-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
}

/* ---------- Contact ---------- */
.contact { background: var(--navy); color: var(--white); }
.contact .section-eyebrow { color: var(--gray); }
.contact .section-eyebrow::before { background: var(--gray); }
.contact .section-title { color: var(--white); }
.contact .section-title em { color: var(--gray); }
.contact .section-intro { color: rgba(255,255,255,0.72); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  margin-top: 60px;
}
.contact-info-list { list-style: none; }
.contact-info-list li {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(217,217,217,0.15);
}
.contact-icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border: 1px solid var(--gray);
  display: grid;
  place-items: center;
  color: var(--gray);
}
.contact-info-list strong {
  display: block;
  color: var(--white);
  font-family: 'Cinzel', serif;
  font-size: 12px;
  margin-bottom: 6px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
}
.contact-info-list p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.78);
  font-weight: 300;
}
.contact-info-list a:hover { color: var(--white); }

.contact-form {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(217,217,217,0.18);
  padding: 40px;
}
.contact-form h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.contact-form p.note {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 28px;
  font-weight: 300;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-row.full { grid-template-columns: 1fr; }
.form-group label {
  display: block;
  font-size: 10px;
  color: var(--gray);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 600;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  padding: 13px 14px;
  color: var(--white);
  font-family: inherit;
  font-size: 13px;
  font-weight: 300;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--white);
}
.form-group textarea {
  min-height: 110px;
  resize: vertical;
}
.form-group select option {
  background: var(--navy-deep);
  color: var(--white);
}
.submit-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.submit-row small {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  font-weight: 300;
}
.contact-status {
  margin-top: 18px;
  padding: 12px 16px;
  font-size: 13px;
  border: 1px solid transparent;
  animation: msgIn 0.3s ease;
}
.contact-status.success {
  border-color: rgba(74, 222, 128, 0.5);
  color: #86efac;
  background: rgba(74, 222, 128, 0.08);
}
.contact-status.error {
  border-color: rgba(248, 113, 113, 0.5);
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.08);
}
.contact-status.loading {
  border-color: rgba(217,217,217,0.3);
  color: var(--gray);
  background: rgba(255,255,255,0.04);
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------- Footer ---------- */
footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.65);
  padding: 70px 0 26px;
  font-size: 13px;
  font-weight: 300;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-grid h4 {
  color: var(--white);
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 22px;
  font-weight: 500;
}
.footer-grid ul { list-style: none; }
.footer-grid li { padding: 6px 0; }
.footer-grid a:hover { color: var(--white); }
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-brand-row .logo-mark { color: var(--white); width: 44px; height: 44px; }
.footer-brand-row .name {
  font-family: 'Cinzel', serif;
  color: var(--white);
  font-size: 16px;
  letter-spacing: 0.1em;
}
.footer-brand-row .role {
  font-size: 9px;
  letter-spacing: 0.36em;
  color: var(--gray);
  text-transform: uppercase;
  margin-top: 5px;
}
.footer-brand p {
  margin-top: 22px;
  max-width: 340px;
  line-height: 1.75;
}
.footer-bottom {
  border-top: 1px solid rgba(217,217,217,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 36px; height: 36px;
  border: 1px solid rgba(217,217,217,0.3);
  display: grid;
  place-items: center;
  color: var(--gray);
  transition: all 0.2s;
}
.socials a:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  nav ul { display: none; }
  .menu-toggle { display: block; }
  nav.open ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid var(--line);
    padding: 22px;
    gap: 16px;
  }
  .hero-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .sector-item { border-right: none; border-bottom: 1px solid var(--line); }
  .sector-item:last-child { border-bottom: none; }
  .about-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  section { padding: 70px 0; }
  .hero { padding: 90px 0 100px; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-info { font-size: 11px; gap: 14px; }
  .brand-text .name { font-size: 14px; }
  .brand-text .role { font-size: 8.5px; letter-spacing: 0.3em; }
}

[data-fade] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-fade].visible {
  opacity: 1;
  transform: none;
}

/* ==================== CHATBOT WIDGET ==================== */
.chat-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  border: 2.5px solid var(--navy);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 36px -8px rgba(19,31,45,0.45),
              0 0 0 4px rgba(255,255,255,0.6);
  z-index: 998;
  transition: all 0.28s ease;
}
.chat-fab:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 18px 42px -10px rgba(19,31,45,0.55),
              0 0 0 4px rgba(255,255,255,0.4);
}
.chat-fab svg { width: 28px; height: 28px; }
.chat-fab .pulse {
  position: absolute;
  inset: -2.5px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  animation: chatPulse 2.2s infinite;
  pointer-events: none;
}
@keyframes chatPulse {
  0%   { transform: scale(1); opacity: 0.75; }
  100% { transform: scale(1.45); opacity: 0; }
}

/* ---------- 15-sec chat prompt ---------- */
.chat-prompt {
  position: fixed;
  right: 24px;
  bottom: 100px;
  width: 320px;
  max-width: calc(100vw - 32px);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 22px 48px -16px rgba(19,31,45,0.32);
  padding: 18px 18px 16px 18px;
  z-index: 997;
  display: flex;
  gap: 12px;
  animation: chatPromptIn 0.4s ease;
  transform-origin: bottom right;
}
.chat-prompt[hidden] { display: none; }
@keyframes chatPromptIn {
  from { opacity: 0; transform: translateY(14px) scale(0.95); }
  to   { opacity: 1; transform: none; }
}
.chat-prompt::after {
  content: "";
  position: absolute;
  bottom: -8px;
  right: 28px;
  width: 14px;
  height: 14px;
  background: var(--white);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}
.chat-prompt-avatar {
  width: 40px; height: 40px;
  flex-shrink: 0;
  background: var(--navy);
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.chat-prompt-body { flex: 1; min-width: 0; }
.chat-prompt-body strong {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 14px;
  color: var(--navy);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.chat-prompt-body p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 12px;
}
.chat-prompt-action {
  background: var(--navy);
  color: var(--white);
  border: none;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 9px 16px;
  cursor: pointer;
  transition: background 0.2s;
}
.chat-prompt-action:hover { background: var(--navy-deep); }
.chat-prompt-close {
  position: absolute;
  top: 6px;
  right: 6px;
  background: transparent;
  border: none;
  color: var(--muted);
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: color 0.2s;
}
.chat-prompt-close:hover { color: var(--navy); }

.chat-panel {
  position: fixed;
  right: 24px;
  bottom: 96px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 580px;
  max-height: calc(100vh - 120px);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -16px rgba(19,31,45,0.35);
  display: none;
  flex-direction: column;
  z-index: 999;
  font-family: 'Montserrat', sans-serif;
  overflow: hidden;
}
.chat-panel.open { display: flex; animation: chatSlide 0.28s ease; }
@keyframes chatSlide { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.chat-header {
  background: var(--navy);
  color: var(--white);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-header .avatar {
  width: 38px; height: 38px;
  border: 1px solid rgba(217,217,217,0.5);
  display: grid;
  place-items: center;
  color: var(--white);
  flex-shrink: 0;
}
.chat-header .avatar svg { width: 100%; height: 100%; }
.chat-header .info { flex: 1; min-width: 0; }
.chat-header .name {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  font-weight: 500;
  line-height: 1;
}
.chat-header .status {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--gray);
  margin-top: 5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}
.chat-header .status::before {
  content: "";
  width: 6px; height: 6px;
  background: #4ade80;
  border-radius: 50%;
  display: inline-block;
}
.chat-header-btns { display: flex; gap: 4px; }
.chat-header-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.7);
  width: 30px; height: 30px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color 0.2s;
}
.chat-header-btn:hover { color: var(--white); }

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: var(--gray-light);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-body::-webkit-scrollbar { width: 6px; }
.chat-body::-webkit-scrollbar-thumb {
  background: rgba(19,31,45,0.2);
  border-radius: 3px;
}

.msg {
  max-width: 85%;
  padding: 11px 14px;
  font-size: 13.5px;
  line-height: 1.55;
  word-wrap: break-word;
  animation: msgIn 0.25s ease;
}
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.msg.bot {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  align-self: flex-start;
  border-radius: 2px 14px 14px 14px;
}
.msg.user {
  background: var(--navy);
  color: var(--white);
  align-self: flex-end;
  border-radius: 14px 2px 14px 14px;
}
.msg.bot strong { font-weight: 600; color: var(--navy); }
.msg.bot em { font-style: italic; }
.msg.bot a { color: var(--navy); text-decoration: underline; }
.msg.bot ul {
  margin: 8px 0 4px 0;
  padding-left: 20px;
  list-style: none;
}
.msg.bot ul li {
  position: relative;
  padding: 2px 0 2px 2px;
  line-height: 1.5;
}
.msg.bot ul li::before {
  content: "▸";
  position: absolute;
  left: -14px;
  top: 2px;
  color: var(--navy);
  font-size: 11px;
}
.msg.bot ol {
  margin: 8px 0 4px 0;
  padding-left: 22px;
}
.msg.bot ol li { padding: 2px 0; line-height: 1.5; }
.msg.bot code {
  background: var(--gray-light);
  border: 1px solid var(--line);
  padding: 1px 5px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 12px;
  border-radius: 2px;
}
.msg.bot p { margin: 0 0 6px 0; }
.msg.bot p:last-child { margin-bottom: 0; }
.msg.bot br + br { display: block; content: ""; margin-top: 4px; }
.msg.system {
  align-self: center;
  background: transparent;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  max-width: 100%;
  text-align: center;
  padding: 8px 12px;
}
.msg-typing {
  display: flex;
  gap: 4px;
  padding: 14px 16px;
}
.msg-typing span {
  width: 7px; height: 7px;
  background: var(--navy);
  opacity: 0.4;
  border-radius: 50%;
  animation: typingDot 1.2s infinite;
}
.msg-typing span:nth-child(2) { animation-delay: 0.2s; }
.msg-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 0.9; }
}

.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.quick-reply {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--navy);
  font-family: inherit;
  font-size: 11.5px;
  padding: 7px 12px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}
.quick-reply:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 14px;
  background: var(--white);
  border-top: 1px solid var(--line);
}
.chat-input {
  flex: 1;
  border: 1px solid var(--line);
  padding: 10px 14px;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink);
  transition: border-color 0.2s;
  background: var(--gray-light);
}
.chat-input:focus {
  outline: none;
  border-color: var(--navy);
  background: var(--white);
}
.chat-send {
  background: var(--navy);
  color: var(--white);
  border: none;
  width: 40px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}
.chat-send:hover { background: var(--navy-deep); }
.chat-send:disabled { opacity: 0.5; cursor: not-allowed; }

.chat-footer {
  padding: 8px 14px;
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.06em;
  background: var(--gray-light);
  border-top: 1px solid var(--line);
}
.chat-footer .mode-pill {
  display: inline-block;
  padding: 2px 8px;
  background: var(--navy);
  color: var(--white);
  border-radius: 10px;
  font-size: 9px;
  letter-spacing: 0.12em;
  margin-right: 6px;
  text-transform: uppercase;
}
.chat-footer .mode-pill.api { background: #4ade80; color: var(--navy-deep); }

/* Settings panel */
.chat-settings {
  position: absolute;
  inset: 70px 0 0 0;
  background: var(--white);
  padding: 22px;
  overflow-y: auto;
  display: none;
  flex-direction: column;
  gap: 16px;
  z-index: 5;
}
.chat-settings.open { display: flex; }
.chat-settings h4 {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  color: var(--navy);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.chat-settings p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.chat-settings .field { display: flex; flex-direction: column; gap: 6px; }
.chat-settings label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 600;
}
.chat-settings input,
.chat-settings select {
  border: 1px solid var(--line);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 12px;
  color: var(--ink);
  background: var(--gray-light);
}
.chat-settings input:focus,
.chat-settings select:focus {
  outline: none;
  border-color: var(--navy);
  background: var(--white);
}
.chat-settings .actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.chat-settings button {
  flex: 1;
  padding: 11px;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
}
.chat-settings .btn-save {
  background: var(--navy);
  color: var(--white);
  border: 1px solid var(--navy);
}
.chat-settings .btn-save:hover { background: var(--navy-deep); }
.chat-settings .btn-clear {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line);
}
.chat-settings .btn-clear:hover { border-color: var(--navy); }
.chat-settings .warning {
  background: #fff8e1;
  border-left: 3px solid #f59e0b;
  padding: 10px 12px;
  font-size: 11px;
  color: #92400e;
  line-height: 1.5;
}

@media (max-width: 540px) {
  .chat-panel {
    right: 12px; left: 12px;
    bottom: 86px;
    width: auto;
  }
  .chat-fab { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}
