/* Refined editorial layout and mobile-first interaction states. */
:root {
  --shadow-card: 0 16px 42px rgb(11 26 45 / 0.08);
  --ease-out: cubic-bezier(0.2, 0.75, 0.25, 1);
}

html { scroll-padding-top: 5.5rem; }

.container { max-width: 1280px; }

.site-header {
  background: rgb(255 255 255 / 0.88);
  border-bottom-color: rgb(11 26 45 / 0.08);
}

.header-inner { height: 5rem; }

.brand-logo-img { width: 50px; height: 50px; }

.nav-desktop { gap: clamp(1rem, 1.7vw, 1.75rem); }

.nav-link {
  font-size: 0.875rem;
  color: #536174;
}

.nav-link[aria-current="location"] { color: var(--navy-900); }

.nav-link[aria-current="location"]::after { width: 100%; }

.mobile-nav-drawer { top: 5rem; }

.mobile-nav-panel { padding: 1rem 1.25rem max(1.5rem, env(safe-area-inset-bottom)); }

.hero-section {
  min-height: min(760px, calc(100svh - 5rem));
  display: flex;
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 7rem) !important;
  background:
    radial-gradient(ellipse at 88% 42%, rgb(240 195 113 / 0.18), transparent 35%),
    linear-gradient(135deg, #f7f9fc 0%, #ffffff 58%, #fbf7ef 100%);
}

.hero-section::before {
  top: auto;
  right: -8rem;
  bottom: -15rem;
  width: 34rem;
  height: 34rem;
  background: radial-gradient(circle, rgb(28 57 96 / 0.07), transparent 70%);
}

.hero-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: clamp(3rem, 8vw, 8rem);
}

.hero-content { max-width: 690px; }

.hero-title {
  max-width: 12ch;
  margin-top: 1.25rem;
  margin-bottom: 1rem;
  font-size: clamp(2.8rem, 5.4vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero-description {
  max-width: 33rem;
  font-size: clamp(1rem, 1.2vw, 1.1875rem);
  line-height: 1.75;
}

.badge-tag { letter-spacing: 0.045em; }

.hero-actions { gap: 0.875rem; margin-bottom: 1.5rem; }

.hero-actions .btn { min-height: 52px; padding-inline: 1.35rem; }

.btn { transition: transform 180ms var(--ease-out), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow 180ms var(--ease-out); }

.btn:hover { transform: translateY(-2px); }

.btn:active { transform: translateY(0); }

.btn-whatsapp { box-shadow: 0 8px 20px rgb(37 211 102 / 0.2); }

.hero-trust-line { gap: 0.65rem 1.25rem; font-size: 0.875rem; }

.hero-trust-item::before { width: 7px; height: 7px; box-shadow: 0 0 0 4px rgb(198 146 56 / 0.12); }

.hero-portrait-wrap {
  position: relative;
  width: min(100%, 430px);
  justify-self: center;
  padding: 0 0 1.5rem 1.5rem;
}

.hero-portrait-wrap::before {
  content: '';
  position: absolute;
  inset: 1.25rem 0 0 2.75rem;
  border: 1px solid rgb(198 146 56 / 0.55);
  border-radius: 48% 48% 1.5rem 1.5rem;
  transform: rotate(4deg);
}

.hero-portrait-frame {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 0.82;
  padding: 0;
  border-radius: 48% 48% 1.25rem 1.25rem;
  background: var(--navy-900);
  box-shadow: 0 28px 65px rgb(11 26 45 / 0.2);
}

.hero-portrait-img {
  border: 0;
  border-radius: inherit;
  object-position: center 35%;
}

.hero-portrait-name,
.hero-portrait-role {
  position: absolute;
  z-index: 2;
  left: 0;
  text-align: left;
}

.hero-portrait-name {
  bottom: 3.65rem;
  padding: 0.8rem 1rem 0.2rem;
  min-width: 11rem;
  margin: 0;
  border-radius: 0.75rem 0.75rem 0 0;
  background: rgb(255 255 255 / 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 -8px 26px rgb(11 26 45 / 0.08);
}

.hero-portrait-role {
  bottom: 1.5rem;
  padding: 0 1rem 0.8rem;
  margin: 0;
  border-radius: 0 0 0.75rem 0.75rem;
  background: rgb(255 255 255 / 0.94);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 26px rgb(11 26 45 / 0.08);
}

.section-padding { padding-block: clamp(4rem, 7vw, 6.75rem); }

.section-title { font-size: clamp(2rem, 3.2vw, 3rem); letter-spacing: -0.04em; }

.section-subtitle { max-width: 44rem; line-height: 1.75; }

.section-header { margin-bottom: clamp(2rem, 4vw, 3rem); }

.solutions-section { background: #fbfcfe; }

.filter-wrap { margin-bottom: 2.25rem; }

.filter-btn { min-height: 42px; padding-inline: 1.1rem; transition: all 180ms var(--ease-out); }

.filter-btn.active { box-shadow: 0 6px 16px rgb(11 26 45 / 0.16); }

.solutions-grid { gap: 1.25rem; }

.solution-card {
  min-height: 100%;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  border-radius: 1.125rem;
  box-shadow: 0 2px 8px rgb(11 26 45 / 0.025);
  transition: border-color 180ms var(--ease-out), transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.solution-card:hover {
  border-color: rgb(198 146 56 / 0.6);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.card-icon-box { width: 3rem; height: 3rem; border-radius: 0.9rem; }

.card-title { font-size: 1.2rem; letter-spacing: -0.02em; }

.card-benefit { line-height: 1.65; }

.card-footer { padding-top: 1.15rem; }

.card-footer .btn { min-height: 48px; }

.card-details-toggle { min-height: 40px; color: var(--text-muted); }

.card-details-toggle .details-toggle-text::after { content: none !important; }

.starlink-section { background: linear-gradient(140deg, #091625 0%, #102744 54%, #1c3960 100%); }

.starlink-section .section-title { letter-spacing: -0.035em; }

.use-case-card {
  min-height: 100%;
  padding: 1.25rem;
  border-radius: 1rem;
  background: rgb(255 255 255 / 0.065);
}

.energy-section { background: linear-gradient(135deg, #0b1a2d 0%, #112945 65%, #172f4e 100%); }

.energy-banner { box-shadow: 0 28px 60px rgb(0 0 0 / 0.28); }

.energy-feature { border-radius: 0.9rem; }

.how-section { background: #fbfcfe; }

.step-card {
  min-height: 142px;
  align-items: flex-start;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.4rem;
  border-radius: 1rem;
  background: #fff;
}

.step-number { font-family: var(--font-sans); font-size: 0.875rem; letter-spacing: 0.12em; }

.step-title { font-size: 1rem; }

.about-card { border-radius: 1.25rem; padding: 2rem; }

.portfolio-grid { max-width: none; gap: 1.25rem; }

.portfolio-card { border-radius: 1rem; box-shadow: 0 2px 10px rgb(11 26 45 / 0.04); }

.portfolio-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }

.portfolio-image-wrap { aspect-ratio: 1.36; }

.portfolio-body { padding: 1.25rem 1.35rem 1.4rem; }

.faq-container { gap: 0.75rem; }

.faq-item { border-radius: 0.9rem; }

.faq-question-btn { min-height: 64px; font-size: 1rem; }

.contact-section { background: #fbfcfe; }

.contact-form {
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 1.25rem;
  box-shadow: 0 18px 48px rgb(11 26 45 / 0.07);
}

.form-control { min-height: 50px; background-color: #fff; }

textarea.form-control { min-height: 110px; }

.site-footer { padding-top: 4rem; }

.whatsapp-float-btn { transition: transform 180ms var(--ease-out), background-color var(--transition-fast), box-shadow 180ms var(--ease-out); }

.whatsapp-float-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgb(37 211 102 / 0.35); }

.mobile-contact-bar { display: none; }

@media (min-width: 640px) {
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .portfolio-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
  .mobile-nav-drawer { top: 4.5rem; }
  .hero-section { min-height: auto; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(260px, 0.75fr); gap: 2.5rem; }
  .hero-title { font-size: clamp(2.6rem, 6vw, 4rem); }
}

@media (max-width: 767px) {
  html { scroll-padding-top: 4.75rem; }
  .header-inner { height: 4.5rem; }
  .brand-logo-img { width: 44px; height: 44px; }
  .mobile-nav-drawer { top: 4.5rem; }
  .hero-section { padding-block: 3.25rem 3.75rem !important; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-title { max-width: 13ch; font-size: clamp(2.65rem, 11vw, 4rem); }
  .hero-description { font-size: 1rem; margin-bottom: 1.25rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-trust-line { display: grid; gap: 0.65rem; }
  .hero-portrait-wrap { width: min(76%, 330px); padding-left: 1rem; }
  .hero-portrait-wrap::before { left: 2rem; }
  .hero-portrait-name { bottom: 3.35rem; }
  .hero-portrait-role { bottom: 1.2rem; }
  .section-padding { padding-block: 4rem; }
  .solutions-grid { gap: 0.9rem; }
  .portfolio-grid { grid-template-columns: 1fr; max-width: 34rem; }
  .whatsapp-float-container { display: none; }
  .mobile-contact-bar {
    display: block;
    position: fixed;
    z-index: 38;
    inset: auto 0 0;
    padding: 0.75rem 1rem max(0.75rem, env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgb(255 255 255 / 0), rgb(255 255 255 / 0.96) 22%);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }
  .mobile-contact-bar.is-hidden,
  body.menu-open .mobile-contact-bar {
    opacity: 0;
    visibility: hidden;
    transform: translateY(1rem);
    pointer-events: none;
  }
  .mobile-contact-btn {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.8rem 1rem;
    border: 1px solid #1ebd5a;
    border-radius: 1rem;
    background: #20bf61;
    box-shadow: 0 8px 24px rgb(11 26 45 / 0.2);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
  }
  .mobile-contact-btn svg { flex: 0 0 auto; }
  .site-footer { padding-bottom: 6.5rem; }
}

@media (max-width: 380px) {
  .brand-role { font-size: 0.65rem; letter-spacing: 0.035em; }
  .hero-trust-line { font-size: 0.8125rem; }
  .mobile-contact-btn { font-size: 0.875rem; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .solution-card, .portfolio-card, .whatsapp-float-btn, .mobile-contact-bar { transition: none; }
}
