/* ============================================
   BAR HELENA – Custom stylesheet
   Rustikalna, topla, odzivna tema
   ============================================ */

:root {
  /* Barvna paleta – izpeljana iz logotipa in kavnih tonov */
  --c-cream:        #f6efe4;   /* svetla podlaga */
  --c-cream-2:      #ede2cf;   /* malce temnejša */
  --c-paper:        #fbf7f0;   /* najsvetlejši papir */
  --c-ink:          #2b1810;   /* temna čokolada – text */
  --c-ink-soft:     #5a463a;
  --c-espresso:     #3a2418;   /* ozadje headerja */
  --c-caramel:      #c98b4b;   /* akcent – zlato-rjava iz logotipa */
  --c-caramel-d:    #a96d31;
  --c-amber:        #e7b977;
  --c-line:         rgba(43, 24, 16, 0.12);
  --c-line-strong:  rgba(43, 24, 16, 0.25);

  /* Tipografija */
  --ff-serif: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
  --ff-sans:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Razmaki */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 4px 14px rgba(43, 24, 16, 0.08);
  --shadow-md: 0 18px 40px rgba(43, 24, 16, 0.18);

  --header-h: 92px;

  /* Container */
  --container: 1180px;
}

/* ============================================
   RESET / OSNOVA
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

h1, h2, h3, h4 {
  font-family: var(--ff-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  color: var(--c-ink);
}
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
p  { margin: 0 0 1rem; }

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding-top: max(env(safe-area-inset-top), 0px);
  background: rgba(43, 24, 16, 0.0);
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.site-header.is-scrolled {
  background: rgba(43, 24, 16, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 30px rgba(0,0,0,.18);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  gap: 1rem;
}
.site-header.is-scrolled .nav-wrap {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo {
  display: block;
  width: auto;
  height: 56px;
  max-width: 220px;
  max-height: 64px;
  object-fit: contain;
  object-position: left center;
  transition: height .25s ease, max-height .25s ease, filter .25s ease;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.4));
}
.site-header.is-scrolled .brand-logo { height: 48px; max-height: 56px; }

.primary-nav ul {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.primary-nav a {
  color: #f7f1e6;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  position: relative;
  padding: 0.4rem 0;
  transition: color .2s ease;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--c-amber);
  transition: width .25s ease;
}
.primary-nav a:hover::after { width: 100%; }
.site-header.is-scrolled .primary-nav a { color: #f6efe4; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  width: 44px;
  height: 44px;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: #f6efe4;
  margin: 6px auto;
  transition: transform .3s ease, opacity .2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 92vh;
  min-height: 92svh;
  display: flex;
  align-items: center;
  color: #f6efe4;
  overflow: hidden;
  isolation: isolate;
  padding-top: var(--header-h);
}
@media (min-height: 800px) {
  .hero { min-height: 100vh; min-height: 100svh; }
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  animation: hero-zoom 18s ease-in-out infinite alternate;
}
@keyframes hero-zoom {
  from { transform: scale(1.0); }
  to   { transform: scale(1.08); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg,
      rgba(43,24,16,0.85) 0%,
      rgba(43,24,16,0.65) 45%,
      rgba(43,24,16,0.30) 75%,
      rgba(43,24,16,0.55) 100%),
    linear-gradient(180deg,
      rgba(43,24,16,0.40) 0%,
      rgba(43,24,16,0.10) 30%,
      rgba(43,24,16,0.85) 100%);
  z-index: -1;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding-top: 1rem;
  padding-bottom: 5rem;
}
.eyebrow {
  font-family: var(--ff-sans);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-amber);
  margin: 0 0 1.4rem;
  font-weight: 600;
}
.hero h1 {
  color: #f6efe4;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.45);
}
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 580px;
  color: #ede2cf;
  margin-bottom: 2.2rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Gumbi */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--c-caramel);
  color: #fff;
  box-shadow: 0 8px 22px rgba(169, 109, 49, 0.45);
}
.btn-primary:hover {
  background: var(--c-caramel-d);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: #f6efe4;
  border-color: rgba(246, 239, 228, 0.55);
}
.btn-ghost:hover {
  background: rgba(246, 239, 228, 0.12);
  border-color: #f6efe4;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.5px solid rgba(246, 239, 228, 0.6);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  z-index: 1;
}
.scroll-cue span {
  display: block;
  width: 3px; height: 8px;
  background: var(--c-amber);
  border-radius: 2px;
  animation: scroll-bounce 1.8s ease-in-out infinite;
}
@keyframes scroll-bounce {
  0%   { transform: translateY(0);   opacity: 1; }
  60%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0);   opacity: 1; }
}

/* ============================================
   SPLOŠNE SEKCIJE
   ============================================ */
.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  position: relative;
}
.section-eyebrow {
  font-family: var(--ff-sans);
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-caramel-d);
  font-weight: 600;
  margin: 0 0 0.8rem;
}
.section-title {
  font-weight: 500;
  margin-bottom: 1rem;
}
.section-lead {
  font-size: 1.05rem;
  color: var(--c-ink-soft);
  max-width: 620px;
  margin-bottom: 2.5rem;
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head .section-lead { margin-left: auto; margin-right: auto; }

/* ============================================
   ABOUT
   ============================================ */
.about { background: var(--c-paper); }
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.lead {
  font-size: 1.15rem;
  color: var(--c-ink);
}
.pillars {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--c-line);
}
.pillars li {
  display: grid;
  grid-template-columns: 60px 1fr;
  grid-template-areas: "num title" "num text";
  column-gap: 1.2rem;
  row-gap: 0.25rem;
  align-items: start;
}
.pillar-num { grid-area: num; }
.pillars h3 { grid-area: title; }
.pillars p { grid-area: text; }
.pillar-num {
  font-family: var(--ff-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--c-caramel-d);
  letter-spacing: 0.05em;
}
.pillars h3 {
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
}
.pillars p {
  color: var(--c-ink-soft);
  margin: 0;
  font-size: 0.95rem;
}

.about-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
}
.about-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.badge {
  position: absolute;
  bottom: -28px;
  left: -28px;
  background: var(--c-cream);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-md);
  padding: 1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  box-shadow: var(--shadow-sm);
}
.badge-num {
  font-family: var(--ff-serif);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--c-caramel-d);
  line-height: 1;
}
.badge-text {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  font-weight: 500;
  line-height: 1.25;
}

/* ============================================
   OFFER
   ============================================ */
.offer {
  background:
    linear-gradient(180deg, var(--c-paper) 0%, var(--c-cream) 100%);
}
.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}
.offer-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.offer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-line-strong);
}
.offer-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--c-cream-2);
}
.offer-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}
.offer-card:hover .offer-img img { transform: scale(1.05); }
.offer-body { padding: 1.5rem 1.6rem 1.8rem; }
.offer-body h3 { margin-bottom: 0.5rem; }
.offer-body p {
  color: var(--c-ink-soft);
  margin: 0;
  font-size: 0.95rem;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery { background: var(--c-cream); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 180px;
  gap: 0.9rem;
}
.g-item {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.g-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.g-item:hover img { transform: scale(1.06); }

.g-1 { grid-column: span 3; grid-row: span 2; }
.g-2 { grid-column: span 3; grid-row: span 1; }
.g-3 { grid-column: span 2; grid-row: span 1; }
.g-4 { grid-column: span 1; grid-row: span 1; }
.g-5 { grid-column: span 3; grid-row: span 1; }

/* ============================================
   CONTACT
   ============================================ */
.contact { background: var(--c-paper); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-list {
  display: grid;
  gap: 1.3rem;
  margin-top: 1rem;
}
.contact-list li {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.2rem;
  background: var(--c-cream);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  transition: border-color .2s ease, transform .2s ease;
}
.contact-list li:hover {
  border-color: var(--c-caramel);
  transform: translateX(2px);
}
.ci {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--c-espresso);
  color: var(--c-amber);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cl-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  margin: 0 0 0.2rem;
  font-weight: 600;
}
.cl-value {
  font-size: 1.05rem;
  color: var(--c-ink);
  margin: 0;
  font-weight: 500;
}
.cl-value a:hover { color: var(--c-caramel-d); }

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-line);
  aspect-ratio: 4 / 3;
  background: var(--c-cream-2);
}
.contact-map iframe {
  width: 100% !important;
  height: 100% !important;
  min-height: 500px;
  border: 0;
  display: block;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--c-espresso);
  color: #e8dcc7;
  padding-top: 3.5rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer-logo { height: 56px; margin-bottom: 0.8rem; filter: drop-shadow(0 1px 1px rgba(0,0,0,.4)); }
.footer-brand p { color: #b8a890; margin: 0; font-size: 0.92rem; }
.footer-col h4 {
  color: #f6efe4;
  font-family: var(--ff-sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 600;
}
.footer-col p { color: #d4c5aa; font-size: 0.92rem; line-height: 1.7; margin: 0 0 0.4rem; }
.footer-col a:hover { color: var(--c-amber); }

.socials { display: flex; gap: 0.7rem; margin-top: 0.4rem; }
.social {
  width: 40px; height: 40px;
  border: 1px solid rgba(246, 239, 228, 0.25);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d4c5aa;
  transition: all .2s ease;
}
.social:hover {
  background: var(--c-caramel);
  color: #fff;
  border-color: var(--c-caramel);
  transform: translateY(-2px);
}
.footer-social-note {
  color: #d4c5aa;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}
.footer-social-note a {
  color: var(--c-amber);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.footer-social-note a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(246, 239, 228, 0.1);
  padding: 1.2rem 0;
  text-align: center;
}
.footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: #9c8a72;
  letter-spacing: 0.04em;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; max-width: 480px; margin: 0 auto; }
  .badge { left: 12px; bottom: -22px; padding: 0.7rem 1rem; }
  .badge-num { font-size: 1.9rem; }
  .offer-grid { grid-template-columns: 1fr; }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }
  .g-1 { grid-column: span 2; grid-row: span 2; }
  .g-2 { grid-column: span 2; grid-row: span 1; }
  .g-3 { grid-column: span 1; }
  .g-4 { grid-column: span 1; }
  .g-5 { grid-column: span 2; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 720px) {
  /* Mobile header: vedno poln rjav pas, da logotip ne "plava" preko hero slike */
  :root { --header-h: 72px; }
  .site-header {
    background: rgba(43, 24, 16, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.22);
    min-height: 64px;
  }
  .nav-wrap {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    gap: 0.75rem;
  }
  .brand {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    padding-top: 4px;
    padding-bottom: 4px;
  }
  .brand-logo {
    display: block;
    height: 40px;
    max-height: 44px;
    max-width: calc(100vw - 80px);
    width: auto;
    object-fit: contain;
    object-position: left center;
  }
  .nav-toggle {
    display: block;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    margin: 0;
    background: rgba(43, 24, 16, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 10px;
    padding: 0;
  }
  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(43, 24, 16, 0.98);
    backdrop-filter: blur(8px);
    padding: 1.5rem 1.25rem 2rem;
    transform: translateY(-110%);
    transition: transform .35s ease;
    border-bottom: 1px solid rgba(246, 239, 228, 0.1);
  }
  .primary-nav.is-open { transform: translateY(0); }
  .primary-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .primary-nav a {
    display: block;
    width: 100%;
    padding: 0.9rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(246, 239, 228, 0.08);
  }

  /* (height override spodaj za 480 breakpoint) */

  /* Hero overlay: poenostavi na mobilni – slika vedno vidna, tekst še vedno berljiv */
  .hero-overlay {
    background:
      linear-gradient(180deg,
        rgba(43,24,16,0.45) 0%,
        rgba(43,24,16,0.15) 35%,
        rgba(43,24,16,0.55) 75%,
        rgba(43,24,16,0.85) 100%);
  }
  .hero-media img { object-position: 70% center; }

  .hero-content { padding-top: 2.5rem; padding-bottom: 5rem; }
  .hero h1 br { display: none; }

  .scroll-cue { display: none; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand { grid-column: auto; text-align: center; }
  .footer-brand img { margin: 0 auto 0.8rem; }
}

@media (max-width: 480px) {
  :root { --header-h: 64px; }
  .site-header {
    background: rgba(43, 24, 16, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.22);
    min-height: 60px;
  }
  .nav-wrap { padding-top: 0.7rem; padding-bottom: 0.7rem; gap: 0.75rem; }
  .brand { display: flex; align-items: center; padding-top: 4px; padding-bottom: 4px; flex: 1 1 auto; min-width: 0; }
  .brand-logo { height: 36px; max-height: 40px; max-width: calc(100vw - 80px); object-fit: contain; object-position: left center; }
  .pillars li { grid-template-columns: 50px 1fr; column-gap: 1rem; row-gap: 0.25rem; }
  .gallery-grid { grid-auto-rows: 140px; }
  .badge-num { font-size: 1.6rem; }
  .badge-text { font-size: 0.7rem; }
  .section { padding: 4rem 0; }
}

/* ============================================
   A11Y: zmanjšano gibanje
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero-media img { animation: none; }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
  .site-header, .site-footer, .scroll-cue, .nav-toggle { display: none; }
  body { background: #fff; }
  .hero { min-height: auto; padding: 2rem 0; color: #000; }
  .hero h1 { color: #000; }
}

/* ============================================
   FOOTER – povezava "Podatki podjetja"
   ============================================ */
#company-info-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted rgba(246, 239, 228, 0.5);
  transition: color .2s ease, border-color .2s ease;
}
#company-info-link:hover,
#company-info-link:focus-visible {
  color: var(--c-amber);
  border-bottom-color: var(--c-amber);
  outline: none;
}

/* ============================================
   PODATKI PODJETJA – MODAL
   ============================================ */
.company-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.company-modal[hidden] { display: none; }
.company-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.company-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(43, 24, 16, 0.78);
  backdrop-filter: blur(4px);
}
.company-modal-dialog {
  position: relative;
  z-index: 1;
  background: var(--c-paper);
  color: var(--c-ink);
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 2.5rem);
  overflow-y: auto;
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem 1.75rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  transform: translateY(20px) scale(0.98);
  transition: transform .3s ease;
}
.company-modal.is-open .company-modal-dialog {
  transform: translateY(0) scale(1);
}
.company-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--c-cream);
  color: var(--c-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, transform .2s ease;
  cursor: pointer;
}
.company-modal-close:hover,
.company-modal-close:focus-visible {
  background: var(--c-caramel);
  color: #fff;
  transform: rotate(90deg);
  outline: none;
}
.company-modal-head {
  margin-bottom: 1.5rem;
  padding-right: 2.5rem;
}
.company-modal-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2rem);
  margin: 0.4rem 0 0.3rem;
}
.company-modal-sub {
  color: var(--c-ink-soft);
  font-size: 0.92rem;
  margin: 0;
}
.company-data {
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  border-top: 1px solid var(--c-line);
  padding-top: 1.25rem;
}
.cd-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  align-items: baseline;
}
.cd-row dt {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-caramel-d);
  font-weight: 600;
  margin: 0;
}
.cd-row dd {
  margin: 0;
  font-size: 0.98rem;
  color: var(--c-ink);
  word-break: break-word;
}
.cd-row dd a {
  color: var(--c-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--c-line-strong);
  transition: color .2s ease, border-color .2s ease;
}
.cd-row dd a:hover { color: var(--c-caramel-d); border-color: var(--c-caramel-d); }
.cd-note {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.82rem;
  color: var(--c-ink-soft);
}
.company-modal-foot {
  padding-top: 1rem;
  border-top: 1px solid var(--c-line);
  font-size: 0.85rem;
  color: var(--c-ink-soft);
}
.company-modal-foot p { margin: 0.25rem 0; }
.company-modal-foot a {
  color: var(--c-caramel-d);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.company-modal-foot a:hover { color: var(--c-ink); }
.cd-meta { font-size: 0.78rem; opacity: 0.7; }

@media (max-width: 560px) {
  .company-modal-dialog { padding: 1.5rem 1.25rem 1.25rem; }
  .cd-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
  .cd-row dt { font-size: 0.7rem; }
  .cd-row dd { font-size: 0.95rem; }
}

body.company-modal-open { overflow: hidden; }
