/* Digna Log — institutional site */
:root {
  --color-bg: #0b1220;
  --color-surface: #111b2e;
  --color-surface-2: #162236;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-text: #e8edf5;
  --color-muted: #94a3b8;
  --color-accent: #dc2626;
  --color-accent-soft: rgba(220, 38, 38, 0.15);
  --color-blue: #3b82f6;
  --color-blue-soft: rgba(59, 130, 246, 0.12);
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--color-accent);
  color: #fff;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 50;
  border-bottom: 1px solid var(--color-border);
  background: rgba(11, 18, 32, 0.72);
  backdrop-filter: blur(14px);
  transition: background 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(11, 18, 32, 0.92);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 44px;
  height: 44px;
  max-width: 44px;
  max-height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 0 0 1px var(--color-border);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 1.05rem;
}

.brand-tag {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  color: var(--color-muted);
  transition: color 0.2s, background 0.2s;
}

.nav a:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.06);
}

.nav a.is-active {
  color: var(--color-text);
  background: var(--color-blue-soft);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.35);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    padding: 1rem;
    gap: 0.35rem;
    background: rgba(11, 18, 32, 0.98);
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.25s;
  }

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

  .nav a {
    width: 100%;
    text-align: center;
    padding: 0.85rem;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 3rem) 1.25rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      105deg,
      rgba(11, 18, 32, 0.92) 0%,
      rgba(11, 18, 32, 0.55) 45%,
      rgba(11, 18, 32, 0.35) 100%
    ),
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(220, 38, 38, 0.18), transparent);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 1rem;
}

.hero-eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-blue), transparent);
}

.hero h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.85rem, 4.5vw, 3.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  max-width: 18ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), #b91c1c);
  color: #fff;
  box-shadow: 0 12px 40px rgba(220, 38, 38, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 16px 48px rgba(220, 38, 38, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) {
  .hero-pillars {
    grid-template-columns: 1fr;
  }
}

.pillar-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  min-height: 160px;
  transition: transform 0.35s var(--ease), border-color 0.25s;
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.35);
}

.pillar-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: opacity 0.35s, transform 0.6s var(--ease);
}

.pillar-card:hover img {
  opacity: 0.72;
  transform: scale(1.05);
}

.pillar-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(11, 18, 32, 0.95) 100%);
  z-index: 1;
}

.pillar-card h2 {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 1.1rem 1.15rem 1.15rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Sections common */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 1.25rem;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 640px;
}

.section-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 0.5rem;
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.05rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-copy p {
  margin: 0 0 1.15rem;
  color: var(--color-muted);
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

.about-visual img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Services */
.services {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 50%, var(--color-bg) 100%);
}

.service-deck {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 960px) {
  .service-deck {
    grid-template-columns: 1fr;
  }
}

.service-card {
  border-radius: var(--radius-lg);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, box-shadow 0.35s var(--ease);
}

.service-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.service-card-media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.service-card:hover .service-card-media img {
  transform: scale(1.06);
}

.service-card-body {
  padding: 1.5rem 1.35rem 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card h3 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.service-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
}

.service-card li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.55rem;
  font-size: 0.92rem;
  color: var(--color-muted);
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.85;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: stretch;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-panel {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.contact-panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
}

.contact-panel > p {
  margin: 0 0 1.75rem;
  color: var(--color-muted);
}

.contact-details {
  display: grid;
  gap: 1.25rem;
}

.contact-block label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 0.35rem;
}

.contact-block label.map-tab {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.contact-block label.map-tab:hover,
.contact-block label.map-tab.is-active {
  text-decoration-color: currentColor;
}

.contact-block p,
.contact-block a {
  margin: 0;
  font-size: 1rem;
  color: var(--color-text);
}

.contact-block a:hover {
  color: var(--color-blue);
}

.contact-actions {
  margin-top: 0.5rem;
}

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  min-height: 360px;
  background: var(--color-surface-2);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  filter: saturate(0.9) contrast(1.05);
}

/* Footer */
.site-footer {
  padding: 2rem 1.25rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* Reveal animation */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

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