/* DEY SECURITY ARAD — rebrand stylesheet.
   Colors sampled directly from build/design/desktop-home.jpg (not guessed):
   background avg #02070e across 8 flat sample points, red button avg #c52f2a
   across 25 sample points. See build/design-notes.md for the full sampling
   methodology and values. */

@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/anton-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+2020, U+2113;
}
@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/anton-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

:root {
  --bg: #05070c;
  --bg-alt: #0d0f16;
  --panel: #101218;
  --red: #c6302a;
  --red-dark: #8f221d;
  --white: #f5f5f5;
  --gray: #9a9a9a;
  --gray-dim: #6b6b6b;
  --border: rgba(255, 255, 255, 0.1);
  --container-width: 1200px;
  --section-padding: 90px;
  --radius: 4px;
  --radius-lg: 6px;
  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-body: Inter, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

h1 { font-size: 64px; }
h2 { font-size: 34px; }
h3 { font-size: 26px; }
h4 { font-size: 19px; }
h5 { font-size: 15px; }
h6 { font-size: 13px; }

p { color: var(--gray); line-height: 1.65; font-family: var(--font-body); }

a { color: inherit; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 15px;
}

.section {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
  position: relative;
}

.section.bg-a { background: var(--bg); }
.section.bg-b { background: var(--bg-alt); }

/* Recurring "SECTION TITLE —" pattern: heading followed by a short red rule */
.section-heading { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.section-heading h2 { margin-bottom: 0; }
.section-heading .rule { display: inline-block; width: 50px; height: 4px; background: var(--red); flex-shrink: 0; }
.section-kicker { color: var(--gray); margin-top: 8px; font-size: 15px; }

.button-primary, .button-secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 15px 32px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.3;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s;
}

.button-primary {
  background-color: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.button-primary:hover {
  background-color: var(--red-dark);
  border-color: var(--red-dark);
}

.button-secondary {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}
.button-secondary:hover {
  background-color: var(--white);
  color: var(--bg);
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  transition: border-color 0.3s;
}
.card:hover { border-color: var(--red); }

/* ---------- Nav ---------- */
.site-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 60;
  background-color: rgba(5, 7, 12, 0.7);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s;
}
.site-nav-wrap.is-scrolled { background-color: rgba(5, 7, 12, 0.88); }

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 16px;
}
.site-nav .nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.site-nav .nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.site-nav .nav-links a:hover,
.site-nav .nav-links a.is-active { color: var(--red); border-color: var(--red); }

.nav-tagline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.5;
  text-align: right;
}
.nav-tagline .nav-shield { width: 42px; height: 42px; flex-shrink: 0; color: var(--red); }
.nav-tagline .nav-shield svg { width: 100%; height: 100%; }

.nav-toggle { display: none; align-items: center; justify-content: center; height: 42px; padding: 0; background: none; border: none; color: var(--white); cursor: pointer; }
.nav-toggle svg { width: 42px; height: 42px; }
.site-logo { display: flex; }
.site-logo-img { height: 42px; display: block; }

@media screen and (min-width: 768px) and (max-width: 1032px) {
  .site-logo-img { height: 63px; }
  .nav-tagline .nav-shield { width: 63px; height: 63px; }
  .nav-toggle { height: 63px; }
  .nav-toggle svg { width: 63px; height: 63px; }
  .site-nav { padding-top: 22px; padding-bottom: 22px; }
}

@media screen and (max-width: 1240px) {
  .nav-toggle { display: inline-flex; }
  .nav-tagline-text { display: none; }
  .nav-tagline { gap: 0; }
  .site-nav .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 20px;
    gap: 16px;
    z-index: 50;
  }
  .site-nav .nav-links.is-open { display: flex; }
}

/* ---------- Global responsive gutter (fixes the previous "no margin on
   iPad" bug: keep this generous and apply broadly, not just ≤767) ---------- */
@media screen and (max-width: 1240px) {
  .container { padding-left: 24px; padding-right: 24px; }
}
@media screen and (max-width: 479px) {
  .container { padding-left: 16px; padding-right: 16px; }
}
/* iPad Pro 11"/12.9"/13" (768-1032px): the 24px gutter above reads too
   tight at this width, add another 1rem per side */
@media screen and (min-width: 768px) and (max-width: 1032px) {
  .container { padding-left: 40px; padding-right: 40px; }
}

@media screen and (max-width: 991px) {
  h1 { font-size: 48px; }
  h2 { font-size: 28px; }
}
@media screen and (max-width: 767px) {
  h1 { font-size: 36px; }
  h2 { font-size: 24px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
}
@media screen and (max-width: 479px) {
  h1 { font-size: 30px; }
}

/* ---------- Hero (home) ---------- */
.hero-section {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 60px;
  background-repeat: no-repeat;
  background-size: cover;
}
.hero-section > .container { width: 100%; }
.hero-heading { max-width: 620px; line-height: 1.35; }
.hero-heading .line-2 { color: var(--red); }
.hero-subtext { max-width: 560px; font-size: 17px; }

@media screen and (max-width: 767px) {
  .hero-heading { max-width: 60%; }
  .hero-section {
    background-position: 68% 15% !important;
    align-items: flex-end;
    padding-bottom: 90px;
  }
  .hero-subtext, .hero-cta-services { display: none; }
  .hero-cta-contact {
    background-color: var(--red);
    color: var(--white);
    border-color: var(--red);
  }
  .hero-cta-contact:hover { background-color: var(--red-dark); border-color: var(--red-dark); }
}
@media screen and (min-width: 768px) and (max-width: 991px) {
  .hero-section { background-position: 70% 20% !important; }
}

/* ---------- Stats bar ---------- */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-item { display: flex; align-items: center; gap: 12px; }
.stat-item svg { width: 30px; height: 30px; color: var(--red); flex-shrink: 0; }
.stat-item .stat-num { font-family: var(--font-display); font-size: 16px; text-transform: uppercase; }
.stat-item .stat-label { font-size: 11px; color: var(--gray); text-transform: uppercase; letter-spacing: 0.5px; }
@media screen and (max-width: 767px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .stat-item svg { width: 24px; height: 24px; }
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.service-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.service-card__media { height: 170px; overflow: hidden; }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.service-card:hover .service-card__media img { transform: scale(1.06); }
.service-card__body { padding: 18px 18px 22px; }
.service-card__body h4 { margin-bottom: 8px; }
.service-card__body p { font-size: 13px; margin: 0 0 12px; }
.service-card__link { color: var(--red); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

@media screen and (max-width: 991px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 767px) {
  .services-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 24px; }
  .service-card { flex-direction: row; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
  .service-card__media { width: 64px; height: 64px; flex-shrink: 0; }
  .service-card__body { padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex: 1; }
  .service-card__body h4 { margin: 0; font-size: 14px; }
  .service-card__body p, .service-card__body .service-card__link-text { display: none; }
  .service-card__link { font-size: 18px; }
}

/* ---------- Despre noi ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 24px;
}
.about-media { border-radius: var(--radius-lg); overflow: hidden; }
.about-media img { width: 100%; display: block; }
@media screen and (max-width: 767px) {
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-media { order: -1; }
}

/* ---------- De ce Dey ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  margin-top: 32px;
  text-align: center;
}
.why-item svg { width: 34px; height: 34px; color: var(--red); }
.why-item .why-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--white); margin-top: 10px; font-weight: 600; }
@media screen and (max-width: 991px) {
  .why-grid { grid-template-columns: repeat(4, 1fr); }
}
@media screen and (max-width: 767px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); gap: 20px 12px; }
}

/* ---------- Clients strip ---------- */
.clients-strip-wrap { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.clients-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  flex: 1;
  scrollbar-width: none;
}
.clients-strip::-webkit-scrollbar { display: none; }
.client-logo {
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-width: 160px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 12px;
  text-align: center;
  font-family: var(--font-display);
  color: var(--gray);
  font-size: 13px;
  letter-spacing: 0.5px;
}
.client-logo .client-num { display: block; font-size: 18px; color: var(--white); }
.clients-nav-btn {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.clients-nav-btn:hover { border-color: var(--red); color: var(--red); }
@media screen and (min-width: 768px) {
  .clients-nav-btn { display: none; }
}

/* ---------- Media strip ---------- */
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.media-item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.media-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-item .play-btn {
  position: absolute; inset: 0; margin: auto; width: 52px; height: 52px;
  background: rgba(198, 48, 42, 0.9); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 20px;
}
@media screen and (max-width: 767px) {
  .media-grid { grid-template-columns: 1fr; }
  .media-item:nth-child(n+2) { display: none; }
}

/* ---------- CTA band ---------- */
.cta-band {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 30%;
  text-align: center;
  padding: 80px 0;
}
.cta-band h2 { max-width: 700px; margin: 0 auto 24px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--gray); text-decoration: none; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; transition: color 0.2s; }
.footer-links a:hover { color: var(--red); }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--white); flex-shrink: 0; }
.footer-social a:hover { border-color: var(--red); color: var(--red); }
.footer-social svg { width: 18px; height: 18px; flex-shrink: 0; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; text-align: left; font-size: 12px; color: var(--gray-dim); }
.footer-legal-links { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; margin: 8px 0; }
.footer-legal-links a { color: var(--gray); text-decoration: none; }
.footer-legal-links a:hover { color: var(--red); text-decoration: underline; }
.site-footer__credit {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--gray-dim); text-decoration: none; font-size: 12px; transition: color 0.15s;
}
.site-footer__credit:hover { color: var(--white); }
.site-footer__credit svg { width: 13px; height: 13px; flex-shrink: 0; }

@media screen and (max-width: 767px) {
  .footer-top { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .footer-bottom { text-align: center; }
  .footer-legal-links { justify-content: center; }
}

/* ---------- Contact page ---------- */
.contact-hero { min-height: 73vh; display: flex; align-items: center; background-size: cover; background-repeat: no-repeat; }
.contact-hero > .container { width: 100%; }
.contact-hero .highlight { color: var(--red); }

@media screen and (max-width: 767px) {
  .contact-hero { background-position: 56% center !important; background-size: auto 90% !important; align-items: flex-end; padding-bottom: 60px; min-height: 70vh; }
  .contact-hero > .container { transform: translateY(42%); }
  .contact-hero h1 { margin-bottom: 2px; }
  .contact-hero-tagline { margin-top: 0; }
  .contact-hero-intro { display: none; }
  .contact-hero-tagline { max-width: 55% !important; }
}

@media screen and (min-width: 768px) and (max-width: 1032px) {
  .contact-hero { background-position: 65% center !important; align-items: flex-end; padding-bottom: 60px; min-height: 75vh; }
  .contact-hero > .container { transform: translateY(30%); }
}
.contact-info-bar { display: flex; gap: 40px; flex-wrap: wrap; padding: 32px 0; border-bottom: 1px solid var(--border); }
.contact-info-item { display: flex; align-items: center; gap: 14px; }
.contact-info-item svg { width: 30px; height: 30px; color: var(--red); flex-shrink: 0; }
.contact-info-item h5 { margin: 0; }
.contact-info-item p { margin: 2px 0 0; font-size: 13px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  margin-top: 40px;
  align-items: stretch;
}
.contact-form-card, .contact-info-card { padding: 28px; }
.contact-info-card { display: flex; flex-direction: column; }
@media screen and (max-width: 767px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* Stylized map (replaces a literal Google Maps embed per the mockup) */
.stylized-map {
  flex: 1;
  min-height: 260px;
  margin-top: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: radial-gradient(circle at 50% 45%, rgba(198,48,42,0.18) 0%, rgba(198,48,42,0.04) 45%, transparent 70%), var(--bg);
  position: relative;
  overflow: hidden;
}
.stylized-map svg { width: 100%; height: 100%; }
.map-pin { position: absolute; display: flex; flex-direction: column; align-items: center; transform: translate(-50%, -100%); }
.map-pin svg { width: 22px; height: 22px; color: var(--red); }
.map-pin.map-pin--main svg { width: 28px; height: 28px; }
.map-pin span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; white-space: nowrap; }
.map-link { display: inline-block; margin-top: 14px; font-size: 12px; color: var(--gray); text-decoration: none; }
.map-link:hover { color: var(--red); text-decoration: underline; }

.intervention-band {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 32px;
  margin-top: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
}
.intervention-band svg { width: 48px; height: 48px; color: var(--red); flex-shrink: 0; }
.intervention-band .intervention-text { flex: 1; min-width: 200px; }
.intervention-band .intervention-text p { margin: 4px 0 0; }

/* ---------- Dark-theme form controls (contact + admin) ---------- */
.form-label {
  display: block;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.form-control {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.2s;
}
.form-control::placeholder { color: var(--gray-dim); }
.form-control:focus { outline: none; border-color: var(--red); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }
.form-error { color: #ff8080; font-size: 13px; margin: -14px 0 12px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.5s, transform 0.5s; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Photo gallery (metro grid) ---------- */
.metro-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 160px;
  grid-auto-flow: row dense;
  gap: 10px;
}
.metro-grid > .photo-thumb:nth-child(10n+1) { grid-column: 1 / 3; grid-row: span 2; }
.metro-grid > .photo-thumb:nth-child(10n+6) { grid-column: 3 / 5; grid-row: span 2; }

.photo-thumb {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--bg-alt) 25%, rgba(255,255,255,0.04) 37%, var(--bg-alt) 63%);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}
.photo-thumb:hover { border-color: var(--red); }
.photo-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.35s; }
.photo-thumb img.is-loaded { opacity: 1; }

@keyframes skeleton-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.gallery-tabs { display: flex; gap: 16px; margin-bottom: 32px; }
.gallery-tab {
  background: none; border: none; color: var(--gray); font-family: var(--font-body);
  font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  padding-bottom: 8px; border-bottom: 2px solid transparent; cursor: pointer;
}
.gallery-tab.is-active, .gallery-tab:hover { color: var(--red); border-color: var(--red); }

#lightbox-overlay { background: rgba(5, 7, 12, 0.95) !important; }
#lightbox-close, #lightbox-prev, #lightbox-next { transition: color 0.2s; }
#lightbox-close:hover, #lightbox-prev:hover, #lightbox-next:hover { color: var(--red) !important; }

@media screen and (max-width: 991px) { .metro-grid { grid-auto-rows: 130px; } }
@media screen and (max-width: 767px) { .metro-grid { grid-auto-rows: 100px; gap: 8px; } }
@media screen and (max-width: 479px) { .metro-grid { grid-auto-rows: 80px; gap: 6px; } }

/* ---------- Legal pages ---------- */
.legal-page h1 { font-size: 38px; }
.legal-page p, .legal-page li { font-family: var(--font-body); text-transform: none; letter-spacing: normal; }
.legal-page a { color: var(--red); text-decoration: underline; }
.breadcrumb { font-size: 13px; color: var(--gray-dim); margin-bottom: 16px; }
.breadcrumb a { color: var(--gray); text-decoration: none; }
.breadcrumb a:hover { color: var(--red); }

/* ---------- Cookie banner ---------- */
#cookie-banner { background: #0a0a0a !important; border-top: 1px solid var(--border); }

/* ---------- Admin ---------- */
.admin-shell { background: var(--bg); }
.admin-sidebar { background: var(--bg-alt) !important; border-right: 1px solid var(--border); }
.admin-sidebar a { transition: color 0.2s; }
.admin-sidebar a:hover, .admin-sidebar a.is-active { color: var(--red) !important; }
.admin-main table tr:hover { background: rgba(198, 48, 42, 0.06); }
.admin-file-label { background: var(--red) !important; border-radius: var(--radius) !important; }
.badge { display: inline-block; padding: 2px 8px; border-radius: var(--radius); font-size: 11px; text-transform: uppercase; }
.badge-warn { background: rgba(198,48,42,0.15); color: var(--red); }
.badge-ok { background: rgba(120,160,120,0.15); color: #8fbf8f; }
