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

:root {
  --navy:         #132E4C;
  --orange:       #FE6A0C;
  --white:        #FFF9E5;
  --glass-bg:     rgba(15, 38, 66, 0.40);
  --glass-border: rgba(254, 106, 12, 0.28);

  /* ─── Typography scale — base → headings only grow ─── */
  --font-base: 1rem;                              /* p / body text       */
  --font-h5:   1.1rem;
  --font-h4:   1.25rem;
  --font-h3:   1.4rem;
  --font-h2:   clamp(1.35rem, 2vw, 1.7rem);
  --font-h1:   clamp(1.7rem,  2.6vw, 2.2rem);
}

html {
  font-size: 18px; /* base: all rem values scale from here */
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--navy);
  color: var(--white);
}

/* ─── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 64px;
  background: rgba(19, 46, 76, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(254, 106, 12, 0.22);
}

/* ─── Logo ──────────────────────────────────────────────────── */
.nav-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-min {
  width: 88px;
  height: auto;
  display: block;
  position: relative;
  z-index: 2;
}

/* Wrapper drops down from the mini-logo position keeping the same width */
.logo-full-wrap {
  position: absolute;
  top: 0;
  left: 0;
  padding-bottom: 16px;
  background: rgba(19, 46, 76, 0.97);
  border-radius: 12px;
  box-shadow: 4px 12px 40px rgba(0,0,0,0.6);
  z-index: 3;
  /* round 12px applies border-radius to the clip shape at all stages */
  clip-path: inset(0 0 100% 0 round 12px);
  transition: clip-path 0.48s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  overflow: hidden;
}

.logo-full {
  width: 88px; /* identical to .logo-min */
  height: auto;
  display: block;
}

.nav-logo:hover .logo-full-wrap,
.nav-logo:focus-within .logo-full-wrap {
  clip-path: inset(0 0 0% 0 round 12px);
  pointer-events: auto;
}

/* ─── Nav links ─────────────────────────────────────────────── */
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 249, 229, 0.68);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
  cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active { color: var(--orange); }

.nav-cta {
  padding: 0.45rem 1.25rem;
  border: 1px solid var(--orange);
  border-radius: 4px;
  color: var(--orange) !important;
  font-weight: 600;
  transition: background 0.2s, color 0.2s !important;
}

.nav-cta:hover,
.nav-cta.active {
  background: var(--orange) !important;
  color: var(--navy) !important;
}

/* ─── Hero ─────────────────────────────────────────────────── */
.hero {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  user-select: none;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(19,46,76,0.12) 0%,
    rgba(19,46,76,0.04) 38%,
    rgba(19,46,76,0.44) 100%
  );
  pointer-events: none;
}

.hero-inner {
  position: absolute;
  inset: 0;
  top: 64px;
  z-index: 2;
  display: flex;
  align-items: stretch;
}

/* ─── Person ────────────────────────────────────────────────── */
.hero-person {
  flex: 0 0 auto;
  align-self: flex-end;
  width: 42%;
  max-width: 600px;
  pointer-events: none;
  user-select: none;
}

.hero-person img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: bottom left;
  filter: drop-shadow(0 0 32px rgba(254,106,12,0.22));
}

/* ─── Carousel wrap ─────────────────────────────────────────── */
.hero-carousel-wrap {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  /* align-items defaults to stretch: carousel fills full height */
  padding: 1.25rem 5%;
}

/* ─── Glass panel ───────────────────────────────────────────── */
.carousel {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 520px;
  width: 100%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 8px 48px rgba(0,0,0,0.35);
  position: relative;
  overflow: hidden;
}

.carousel::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--orange), transparent);
  z-index: 1;
  pointer-events: none;
}

/* ─── Panels ────────────────────────────────────────────────── */
/* visibility: hidden ensures backdrop-filter doesn't render on hidden panels */
.panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 2rem 2.25rem 1.75rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.42s ease, transform 0.42s ease,
              visibility 0s linear 0.42s;
  pointer-events: none;
}

.panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.42s ease, transform 0.42s ease,
              visibility 0s linear 0s;
}

/* ─── Home panel: carousel slides ──────────────────────────── */
.carousel-slides {
  flex: 1;
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(254,106,12,0.22) transparent;
}

.slide::-webkit-scrollbar { width: 3px; }
.slide::-webkit-scrollbar-track { background: transparent; }
.slide::-webkit-scrollbar-thumb {
  background: rgba(254,106,12,0.25);
  border-radius: 2px;
}

.slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ─── Typography ────────────────────────────────────────────── */
.slide-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid rgba(254,106,12,0.45);
  border-radius: 3px;
  padding: 0.15rem 0.55rem;
  margin-bottom: 0.9rem;
}

.slide-title {
  font-size: var(--font-h2);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  color: var(--white);
}

.slide-title strong { color: var(--orange); }

/* Inline orange highlight for body text */
.hl { color: var(--orange); }

.slide-text {
  font-size: var(--font-base);
  line-height: 1.68;
  color: rgba(255,249,229,0.92);
  margin-bottom: 0.85rem;
}

/* ─── Carousel controls ─────────────────────────────────────── */
.carousel-controls {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  margin-top: 0.75rem;
  border-top: 1px solid rgba(254,106,12,0.14);
}

.carousel-dots { display: flex; gap: 0.5rem; }

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,249,229,0.22);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
}

.dot.active {
  background: var(--orange);
  transform: scale(1.3);
}

.carousel-arrows { display: flex; gap: 0.6rem; }

.arrow-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(254,106,12,0.4);
  background: rgba(254,106,12,0.08);
  color: var(--orange);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  line-height: 1;
}

.arrow-btn:hover {
  background: rgba(254,106,12,0.22);
  border-color: var(--orange);
}

/* ─── Page panels (services / about / contact) ──────────────── */
.panel-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-right: 0.2rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(254,106,12,0.25) transparent;
}

.panel-body::-webkit-scrollbar { width: 4px; }
.panel-body::-webkit-scrollbar-track { background: transparent; }
.panel-body::-webkit-scrollbar-thumb {
  background: rgba(254,106,12,0.25);
  border-radius: 2px;
}

.panel-footer {
  flex-shrink: 0;
  padding-top: 1rem;
  margin-top: 0.75rem;
  border-top: 1px solid rgba(254,106,12,0.14);
}

.back-btn {
  background: none;
  border: 1px solid rgba(254,106,12,0.35);
  border-radius: 6px;
  color: rgba(255,249,229,0.52);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.back-btn:hover {
  color: var(--white);
  border-color: var(--orange);
}

/* ─── Language switcher ────────────────────────────────────── */
.lang-switcher {
  position: relative;
  flex-shrink: 0;
}
.lang-switcher__btn {
  background: none;
  border: 1px solid rgba(254,106,12,0.35);
  border-radius: 4px;
  color: rgba(255,249,229,0.72);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.28rem 0.65rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.lang-switcher__btn:hover,
.lang-switcher__btn[aria-expanded="true"] {
  color: var(--orange);
  border-color: var(--orange);
}
.lang-switcher__list {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  background: rgba(13,30,52,0.97);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  list-style: none;
  padding: 0.25rem;
  margin: 0;
  min-width: 3.2rem;
  z-index: 300;
  backdrop-filter: blur(8px);
}
.lang-switcher__btn[aria-expanded="true"] + .lang-switcher__list {
  display: block;
}
.lang-switcher__list button {
  background: none;
  border: none;
  color: rgba(255,249,229,0.7);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.5rem;
  cursor: pointer;
  width: 100%;
  text-align: center;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.lang-switcher__list button:hover,
.lang-switcher__list button[aria-selected="true"] {
  color: var(--orange);
  background: rgba(254,106,12,0.1);
}

/* Service list */
.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 1rem;
}

.service-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.service-icon {
  flex-shrink: 0;
  margin-top: 0.15rem;
  width: 2rem;
  height: 2rem;
}

.service-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.service-item h3 {
  font-size: var(--font-h3);
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 0.3rem;
}

.service-item p {
  font-size: var(--font-base);
  color: rgba(255,249,229,0.92);
  line-height: 1.6;
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
}

.contact-form__note {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255,249,229,0.72);
}

.contact-form input,
.contact-form textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(254,106,12,0.22);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  color: var(--white);
  font-size: 0.87rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,249,229,0.32); }

.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--orange); }

.contact-form textarea { height: 80px; }

.contact-form__hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-status {
  min-height: 1.35rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(255,249,229,0.72);
}

.form-status.is-success {
  color: #9df0bc;
}

.form-status.is-error {
  color: #ffb4a8;
}

.submit-btn {
  padding: 0.6rem 1.4rem;
  background: var(--orange);
  border: none;
  border-radius: 8px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
  align-self: flex-start;
}

.submit-btn:hover { opacity: 0.85; }

.submit-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Hidden H1 for SEO — visible until JS hides it */
.site-h1 {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 600;
  color: transparent;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ─── Burger button (desktop: hidden) ───────────────────────── */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}

/* × animation when open */
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; width: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Mobile ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  html { font-size: 14px; }

  .burger { display: flex; }

  /* Nav links: hidden by default, shown as full-width dropdown */
  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(19, 46, 76, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(254,106,12,0.2);
    padding: 0.5rem 5% 1rem;
    gap: 0;
    z-index: 99;
    /* hidden state */
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
  }

  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links li {
    border-top: 1px solid rgba(254,106,12,0.1);
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 0;
    font-size: 1rem;
    text-align: center;
  }

  .nav-cta {
    display: block;
    margin: 0.35rem 0 0;
    padding: 0.65rem 0;
    text-align: center;
    border-radius: 4px;
  }

  .hero-inner {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .hero-person {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    max-height: 38vh;
    align-self: auto;
    overflow: hidden;
  }

  .hero-person img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
  }

  .hero-carousel-wrap {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0.75rem 1rem;
    align-items: stretch;
  }

  .carousel { max-width: none; }

  .panel { padding: 1.5rem 1.25rem 1.25rem; }

  /* Any scroll gesture scrolls panel content, not the page */
  .panel.active {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  /* Home panel: slides themselves also scroll on mobile */
  .slide {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .logo-full-wrap { width: 88px; }
}

@media (max-width: 480px) {
  .hero-person img { max-width: 100%; }
}
