/* ===========================================================
   Kaeus — brand site
   =========================================================== */

:root {
  --kaeus-bg-dark: #111111;
  --kaeus-bg-darker: #0a0a0a;
  --kaeus-bg-light: #f5f5f5;
  --kaeus-text-dark: #222222;
  --kaeus-text-light: #eeeeee;
  --kaeus-muted: #8a8a8a;
  --kaeus-yellow: #f6ef21;
  --kaeus-yellow-dim: #c9c30c;
  --kaeus-divider-dark: #2a2a2a;
  --kaeus-divider-light: #d8d8d8;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
  background-color: var(--kaeus-bg-dark);
  color: var(--kaeus-text-light);
  font-family: 'Noto Sans', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

section { scroll-margin-top: 90px; }

a { color: inherit; }

h1, h2, h3, h4, h5, h6 { font-weight: 600; }

/* ---------- Typography play (kaeus-style mixed weights) ---------- */
.t-thin   { font-weight: 200; letter-spacing: -0.01em; }
.t-light  { font-weight: 300; }
.t-heavy  { font-weight: 800; letter-spacing: -0.02em; }
.t-big    { font-size: 1.4em; line-height: 0.9; }
.t-small  { font-size: 0.7em; letter-spacing: 0.04em; }
.t-yellow { color: var(--kaeus-yellow); }

/* ---------- Navbar ---------- */
.navbar-main {
  background-color: var(--kaeus-bg-dark) !important;
  height: 90px;
  border-bottom: 1px solid var(--kaeus-divider-dark);
}

.navbar-main .nav-link {
  color: #cccccc !important;
  font-weight: 400;
  transition: color 0.15s ease;
}

.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
  color: #ffffff !important;
}

.navbar-logo { width: 200px; }

.lang-switch .nav-link.active {
  font-weight: 600 !important;
  color: var(--kaeus-yellow) !important;
}

@media screen and (max-width: 768px) {
  .navbar-logo { width: 100px; }
  .navbar-main { height: 70px; }
  .navbar-main .navbar-collapse {
    background-color: var(--kaeus-bg-dark);
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--kaeus-divider-dark);
  }
}

.navmainfooter-content { padding-top: 90px; }

@media screen and (max-width: 768px) {
  .navmainfooter-content { padding-top: 70px; }
}

/* ---------- HERO / Banner ---------- */
.hero-section {
  position: relative;
  background-color: #000;
  overflow: hidden;
}

.hero-bg {
  position: relative;
  /* viewport minus the fixed navbar (90px) so the hero fills exactly one
     screen and the scroll cue stays visible above the fold on load. */
  min-height: calc(100vh - 90px);
}

.hero-image {
  width: 100%;
  height: calc(100vh - 90px);
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 1;
  filter: brightness(1.03) contrast(1.03);
  animation: kenburns 24s ease-out forwards;
}

@keyframes kenburns {
  from { transform: scale(1.02); }
  to   { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.48;
  background:
    radial-gradient(120% 90% at 50% 30%, rgba(17,17,17,0) 0%, rgba(17,17,17,0.35) 55%, rgba(17,17,17,0.92) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(17,17,17,0.98) 100%);
  pointer-events: none;
}

/* thin brand accent line at the very bottom of the hero */
.hero-section::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--kaeus-yellow), transparent);
  opacity: 0.7;
  z-index: 3;
}

/* scroll cue */
.hero-cue {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255,255,255,0.6);
  font-size: 1.5rem;
  animation: bob 2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  /* soft local scrim so the tagline reads over the lit globe
     without dimming the whole image */
  background: radial-gradient(ellipse 66% 46% at 50% 50%,
    rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.35) 48%, rgba(0,0,0,0) 72%);
}

.hero-tagline {
  font-size: 4rem;
  font-weight: 200;
  line-height: 1.15;
  margin: 0;
  text-align: center;
  max-width: 980px;
  color: #ffffff;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 30px rgba(0,0,0,0.7), 0 1px 6px rgba(0,0,0,0.65);
}

/* Brand inside tagline inherits the tagline's own weight. */

@media screen and (max-width: 768px) {
  .hero-bg { min-height: calc(100vh - 70px); }
  .hero-image { height: calc(100vh - 70px); }
  .hero-tagline { font-size: 2.3rem; padding: 0 1rem; }
}

/* ---------- Sections ---------- */
/* Each section fills at least a full viewport, content vertically centered,
   for a "one page per section" rhythm. Sections with more content grow
   naturally beyond 100vh. */
.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0;
}

.section > .container {
  width: 100%;
}

@media screen and (max-width: 768px) {
  .section {
    min-height: auto;
    padding: 4rem 0;
  }
}

.section-light {
  background-color: var(--kaeus-bg-light);
  color: var(--kaeus-text-dark);
}

.section-dark {
  background-color: var(--kaeus-bg-darker);
}

.section-title {
  font-size: 3rem;
  font-weight: 200;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

@media screen and (max-width: 768px) {
  .section-title { font-size: 2.2rem; }
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--kaeus-muted);
  margin-bottom: 2.5rem;
}

.section-light .section-subtitle {
  color: #666;
}

.section-body {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ---------- About ---------- */
#about .section-body {
  font-size: 1.65rem;
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 2.5rem;
  color: #333;
}

@media screen and (max-width: 768px) {
  #about .section-body { font-size: 1.25rem; }
}

.sectors {
  margin-top: 2rem;
  font-size: 1rem;
  color: #555;
}

.sectors-label {
  font-weight: 600;
  color: #777;
  font-size: 0.9rem;
}

.sectors-list {
  font-weight: 500;
}

/* ---------- Why Kaeus ---------- */
.why-item {
  padding: 0.5rem 0 0 0;
  height: 100%;
  position: relative;
}

.why-num {
  display: block;
  font-size: 4.5rem;
  font-weight: 200;
  color: var(--kaeus-yellow);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -0.04em;
}

.why-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #ffffff;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.why-text {
  font-size: 1rem;
  font-weight: 300;
  color: #b8b8b8;
  line-height: 1.6;
  margin: 0;
}

/* ---------- Services ---------- */
.service-card {
  background-color: #ffffff;
  height: 100%;
  border-top: 3px solid var(--kaeus-yellow);
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1), box-shadow 0.35s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.16);
}

.service-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #0a0a0a;
}

.service-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.7s cubic-bezier(.2,.7,.2,1);
}

.service-card:hover .service-image {
  transform: scale(1.07);
}

.service-body {
  padding: 1.75rem 1.75rem 2rem;
  flex: 1;
}

.service-title {
  font-size: 2.4rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
  color: var(--kaeus-text-dark);
  line-height: 1;
  letter-spacing: -0.025em;
}

.service-pitch {
  font-size: 1.05rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
  letter-spacing: -0.005em;
}

.service-text {
  font-size: 0.98rem;
  font-weight: 300;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* ---------- How we work / phases ---------- */
.phase-item {
  padding: 1rem 0.5rem;
}

.phase-num {
  display: block;
  font-size: 1rem;
  font-weight: 200;
  color: var(--kaeus-yellow);
  letter-spacing: 0.3em;
  margin-bottom: 0.5rem;
}

.phase-title {
  font-size: 2.4rem;
  font-weight: 300;
  margin-bottom: 0.75rem;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.025em;
}

.phase-text {
  font-size: 1rem;
  font-weight: 300;
  color: #b8b8b8;
  margin: 0;
  line-height: 1.55;
}

/* ---------- Cases ---------- */
.case-item {
  background-color: #ffffff;
  padding: 1.75rem;
  height: 100%;
  border-left: 3px solid var(--kaeus-yellow);
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1), box-shadow 0.35s ease, border-left-width 0.2s ease;
}

.case-item {
  cursor: pointer;
}

.case-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.12);
  border-left-width: 6px;
}

.case-item:focus-visible {
  outline: 2px solid var(--kaeus-yellow);
  outline-offset: 3px;
}

.case-more {
  display: inline-block;
  margin-top: 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a1a;
}

.case-more::after {
  content: " \2192";
  display: inline-block;
  transition: transform 0.25s ease;
}

.case-item:hover .case-more::after {
  transform: translateX(4px);
}

.case-service {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--kaeus-text-dark);
  background-color: var(--kaeus-yellow);
  padding: 0.25rem 0.7rem;
  border-radius: 2px;
  margin-bottom: 0.6rem;
}

.case-sector {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #888;
  margin-left: 0.5rem;
  margin-bottom: 1rem;
}

.case-title {
  font-size: 1.15rem;
  color: var(--kaeus-text-dark);
  margin-bottom: 0.5rem;
}

.case-text {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.55;
  margin: 0;
}

/* ---------- Contact ---------- */
.contactus-button {
  width: 10rem;
  background-color: var(--kaeus-yellow);
  border-color: var(--kaeus-yellow);
  color: var(--kaeus-text-dark);
  font-weight: 600;
}

.contactus-button:hover,
.contactus-button:focus,
.contactus-button:active {
  background-color: #c5d630 !important;
  border-color: #c5d630 !important;
  color: var(--kaeus-text-dark) !important;
}

.contactus-icon {
  width: 2.5rem;
  font-size: 1.3em;
  color: #ddd;
}

.contactus-control {
  background-color: #2a2a2a;
  border-radius: 0;
  outline: none;
  border: 0;
  border-bottom: 1px solid #555;
  color: white;
  padding: 0.5rem 0.6rem;
}

.contactus-control:focus {
  background-color: #2a2a2a;
  border-radius: 0;
  outline: none;
  border: 0;
  border-bottom: 1px solid var(--kaeus-yellow);
  color: white;
  box-shadow: none;
}

/* ---------- Modal ---------- */
.modal-content {
  background-color: #2a2a2a;
  color: #eee;
  border-radius: 0;
  border: 0;
}

.modal-header {
  background-color: var(--kaeus-bg-darker);
  border-radius: 0;
  border: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--kaeus-bg-darker);
  padding: 1.5rem 0;
  border-top: 1px solid var(--kaeus-divider-dark);
}

/* ===========================================================
   Enhancements — reveal on scroll, nav, hover polish
   =========================================================== */

/* Scroll-reveal: elements rise + fade as they enter the viewport.
   The .reveal class is applied automatically by main.js. */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1),
              transform 0.7s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Navbar gains a translucent blur + shadow once the page scrolls. */
.navbar-main {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar-main.scrolled {
  background-color: rgba(17, 17, 17, 0.82) !important;
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

/* Why-items: the number warms up + the block lifts slightly on hover. */
.why-item {
  transition: transform 0.3s ease;
}

.why-item:hover {
  transform: translateY(-4px);
}

.why-num {
  transition: letter-spacing 0.3s ease, opacity 0.3s ease;
  opacity: 0.85;
}

.why-item:hover .why-num {
  opacity: 1;
  letter-spacing: -0.02em;
}

/* Phase items: number badge brightens on hover. */
.phase-item {
  transition: transform 0.3s ease;
}

.phase-item:hover {
  transform: translateY(-4px);
}

/* Service badge / sector tag on case cards gets a touch of motion. */
.case-service {
  transition: transform 0.3s ease;
}

.case-item:hover .case-service {
  transform: translateX(2px);
}

/* Language + nav links underline-grow on hover (dark navbar). */
.navbar-main .nav-link {
  position: relative;
}

.navbar-main .nav-link[href^="#"]::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.35rem;
  height: 2px;
  background: var(--kaeus-yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.navbar-main .nav-link[href^="#"]:hover::after,
.navbar-main .nav-link[href^="#"].active::after {
  transform: scaleX(1);
}

/* Buttons get a gentle lift. */
.contactus-button {
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.contactus-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(246, 239, 33, 0.25);
}

/* ---------- Case detail drawer ---------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 1040;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.case-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 480px;
  max-width: 92vw;
  background: var(--kaeus-bg-dark);
  border-left: 3px solid var(--kaeus-yellow);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.2, .7, .2, 1);
  z-index: 1050;
  overflow-y: auto;
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.55);
}

.case-drawer.open {
  transform: none;
}

.drawer-close {
  position: sticky;
  top: 0;
  display: block;
  width: 100%;
  text-align: right;
  background: var(--kaeus-bg-dark);
  border: 0;
  color: #999;
  font-size: 2rem;
  line-height: 1;
  padding: 1rem 1.5rem 0.5rem;
  cursor: pointer;
  z-index: 2;
  transition: color 0.2s ease;
}

.drawer-close:hover {
  color: #fff;
}

.drawer-content {
  padding: 0 2rem 3rem;
}

.drawer-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.drawer-head .case-service,
.drawer-head .case-sector {
  margin: 0;
}

.drawer-title {
  font-size: 1.8rem;
  font-weight: 300;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.drawer-summary {
  font-size: 1.1rem;
  font-weight: 300;
  color: #dcdcdc;
  line-height: 1.55;
  margin-bottom: 2rem;
}

.drawer-section {
  margin-bottom: 1.75rem;
}

.drawer-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--kaeus-yellow);
  margin-bottom: 0.6rem;
}

.drawer-body {
  color: #c4c4c4;
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.6;
}

.drawer-body ul {
  margin: 0;
  padding-left: 1.1rem;
}

.drawer-body li {
  margin-bottom: 0.5rem;
}

.drawer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.drawer-chips .chip {
  font-size: 0.8rem;
  padding: 0.25rem 0.65rem;
  border: 1px solid #444;
  border-radius: 999px;
  color: #cfcfcf;
}

.drawer-cta {
  display: inline-block;
  margin-top: 1rem;
  background: var(--kaeus-yellow);
  color: var(--kaeus-text-dark);
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: 2px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.drawer-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(246, 239, 33, 0.25);
  color: var(--kaeus-text-dark);
}

/* Respect users who prefer reduced motion. */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-image { animation: none; }
  .hero-cue { animation: none; }
  .case-drawer { transition: none; }
  * { scroll-behavior: auto; }
}
