/*
  Alt-Cam Security UA — Premium Security Platform Overrides
  --------------------------------------------------------
  Purpose:
  This stylesheet sits after styles.css and modernizes the existing landing page
  without requiring a full HTML rebuild. It shifts the design from heavy utility
  black/yellow into a cleaner anthracite + glass + restrained gold system.
*/

:root {
  --premium-bg: #161618;
  --premium-bg-soft: #1d1d20;
  --premium-bg-deep: #121212;
  --premium-surface: rgba(255, 255, 255, 0.02);
  --premium-surface-strong: rgba(255, 255, 255, 0.045);
  --premium-border: rgba(255, 255, 255, 0.08);
  --premium-border-strong: rgba(255, 255, 255, 0.14);
  --premium-heading: #f5f5f7;
  --premium-text: #d9d9df;
  --premium-muted: #86868b;
  --premium-gold: #ffcc00;
  --premium-gold-soft: rgba(255, 204, 0, 0.14);
  --premium-gold-glow: rgba(255, 204, 0, 0.45);
  --premium-radius: 12px;
  --premium-radius-lg: 22px;
  --premium-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
  --premium-transition: all 0.3s ease;
}

/* 1. Global foundation */
html {
  scroll-behavior: smooth;
}

body {
  color: var(--premium-text);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 204, 0, 0.08), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(88, 166, 255, 0.08), transparent 34%),
    linear-gradient(180deg, var(--premium-bg), var(--premium-bg-deep));
  font-family: Inter, Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  text-rendering: geometricPrecision;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.36), transparent 72%);
}

h1,
h2,
h3,
.section-head h2,
.section-head.light h2 {
  color: var(--premium-heading);
  letter-spacing: -0.045em;
}

p,
.section-head p,
.section-head.light p,
.service-card p,
.why-card p,
.package-card p,
.process-step p,
.mistake-item p,
.faq-item p,
.review-card > p {
  color: var(--premium-muted);
}

/* 2. More premium spacing between large blocks */
.section {
  padding-top: clamp(96px, 9vw, 150px);
  padding-bottom: clamp(96px, 9vw, 150px);
}

.section-head {
  margin-bottom: clamp(42px, 5vw, 72px);
}

.container {
  position: relative;
}

/* 3. Anthracite backgrounds instead of heavy black */
.hero,
.dark-section,
.audience,
.request-section,
.final-cta,
.footer,
.works-section,
.mistakes,
.solution,
.faq-section,
.reviews-section {
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 204, 0, 0.055), transparent 30%),
    linear-gradient(180deg, var(--premium-bg), var(--premium-bg-deep));
}

.works-section,
.mistakes,
.faq-section {
  background:
    radial-gradient(circle at 80% 20%, rgba(88, 166, 255, 0.07), transparent 32%),
    linear-gradient(180deg, #18181b, #121212);
}

/* 4. Glassmorphism cards and blocks */
.service-card,
.why-card,
.package-card,
.audience-card,
.work-card,
.process-step,
.mistake-item,
.review-card,
.faq-item,
.quiz-card,
.request-form,
.calculator-form,
.calculator-result,
.status-card,
.brand-row span,
.solution-card {
  border: 1px solid var(--premium-border);
  border-radius: var(--premium-radius);
  background: var(--premium-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.service-card:hover,
.why-card:hover,
.package-card:hover,
.audience-card:hover,
.work-card:hover,
.mistake-item:hover,
.faq-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 204, 0, 0.28);
  background: var(--premium-surface-strong);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.service-card,
.why-card,
.package-card,
.mistake-item,
.review-card,
.faq-item {
  transition: var(--premium-transition);
}

.service-card::after,
.package-featured::before {
  background: radial-gradient(circle, var(--premium-gold-soft), transparent 64%);
}

/* 5. Gold is now an accent, not a container color */
.card-icon,
.package-card > svg,
.why-card > span,
.why-card > svg,
.audience-card svg,
.section-kicker,
.service-card a,
.service-card a svg,
.stars,
.review-label {
  color: var(--premium-gold);
}

.card-icon,
.package-card > svg,
.why-card > span,
.why-card > svg {
  background: rgba(255, 204, 0, 0.09);
}

.solution-card {
  color: var(--premium-heading);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.03);
  box-shadow: var(--premium-shadow);
}

.solution-card .section-kicker,
.solution-card h2,
.solution-card p {
  color: inherit;
}

/* 6. Sleek interactive CTA buttons */
.btn,
.btn-primary,
.btn-secondary,
.header-cta,
.mobile-call,
button[type="submit"],
.calculator-actions button,
.quiz-actions button {
  min-height: 46px;
  border-radius: 8px;
  transition: var(--premium-transition);
}

.btn-primary,
.header-cta,
.mobile-call,
button[type="submit"],
.calculator-actions button,
.quiz-actions button {
  border: 1px solid rgba(255, 204, 0, 0.45);
  color: #111;
  background: linear-gradient(135deg, #ffd84a, var(--premium-gold));
  box-shadow: 0 12px 35px rgba(255, 204, 0, 0.16);
}

.btn-secondary {
  border: 1px solid var(--premium-border-strong);
  color: var(--premium-heading);
  background: rgba(255, 255, 255, 0.035);
}

.btn:hover,
.btn-primary:hover,
.btn-secondary:hover,
.header-cta:hover,
.mobile-call:hover,
button[type="submit"]:hover,
.calculator-actions button:hover,
.quiz-actions button:hover {
  transform: scale(1.02);
  box-shadow: 0 0 15px var(--premium-gold-glow);
}

.btn-secondary:hover {
  border-color: rgba(255, 204, 0, 0.38);
  color: var(--premium-gold);
}

/* 7. Navigation and hero polish */
.header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(18, 18, 18, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-links a {
  color: rgba(245, 245, 247, 0.78);
  transition: var(--premium-transition);
}

.nav-links a:hover {
  color: var(--premium-gold);
}

.hero-content > p,
.hero-benefits span,
.hero-trust small {
  color: var(--premium-muted);
}

.hero-trust div {
  border-color: var(--premium-border);
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* 8. Completed works carousel: equal premium cards */
.works-carousel {
  gap: 18px;
  padding-bottom: 22px;
}

.works-carousel .work-card {
  min-height: 360px;
  border-radius: 18px;
}

.work-card figcaption {
  border: 1px solid var(--premium-border);
  background: rgba(18, 18, 18, 0.58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.work-card figcaption b {
  color: var(--premium-heading);
}

.work-card figcaption span,
.photo-credit {
  color: var(--premium-muted);
}

/* 9. Forms and inputs */
input,
textarea,
select,
.request-form input,
.request-form textarea,
.calculator-form input,
.calculator-form select {
  border: 1px solid var(--premium-border);
  border-radius: 10px;
  color: var(--premium-heading);
  background: rgba(255, 255, 255, 0.035);
  transition: var(--premium-transition);
}

/* Hard fix for native dropdown popups across the whole site.
   Keep the closed select dark, but make the opened native menu readable:
   light neutral menu surface + graphite option text. */
select {
  color: var(--premium-heading) !important;
  background-color: var(--premium-bg-soft) !important;
  color-scheme: light;
}

select option,
select optgroup,
.calculator-form select option,
.request-form select option {
  color: #2f2f33 !important;
  background-color: #f5f5f7 !important;
}

select option:hover,
select option:focus,
.calculator-form select option:hover,
.request-form select option:hover {
  color: #1d1d20 !important;
  background-color: #ececef !important;
}

select option:checked,
.calculator-form select option:checked,
.request-form select option:checked {
  color: #111 !important;
  background-color: #ffcc00 !important;
}

select option:disabled,
.calculator-form select option:disabled,
.request-form select option:disabled {
  color: #6e6e73 !important;
  background-color: #f5f5f7 !important;
}

/* 9. Official social profile buttons in the footer */
.footer .socials {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: min(100%, 245px);
  max-width: 100%;
  margin-top: 6px;
  box-sizing: border-box;
}

.footer .socials .social-link {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 42px;
  height: auto;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #f5f5f7;
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.footer .socials .social-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 204, 0, 0.45);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.footer .socials .social-icon-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  align-items: center;
}

.footer .socials .social-link svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: currentColor;
  stroke: none;
}

.footer .socials .social-link span,
.footer .socials .social-link b,
.footer .socials .social-link small {
  display: block;
  min-width: 0;
}

.footer .socials .social-link b {
  line-height: 1.1;
  font-size: 12px;
}

.footer .socials .social-link small {
  margin-top: 2px;
  color: #aeb6c2;
  font-size: 10px;
  font-weight: 650;
}

.footer .socials .social-link--telegram {
  border-color: rgba(34, 158, 217, 0.55);
  background: linear-gradient(135deg, rgba(34, 158, 217, 0.24), rgba(255, 255, 255, 0.035));
}

.footer .socials .social-link--telegram svg {
  color: #2aabee;
}

.footer .socials .social-link--icon {
  width: 46px !important;
  min-width: 46px !important;
  max-width: 46px !important;
  height: 46px !important;
  min-height: 46px !important;
  flex: 0 0 46px !important;
  aspect-ratio: 1 / 1;
  display: inline-flex !important;
  justify-content: center !important;
  padding: 0 !important;
  border-radius: 13px;
}

.footer .socials .social-link--icon span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.footer .socials .social-link--icon svg {
  width: 21px;
  height: 21px;
}

.footer .socials .social-link--facebook svg {
  color: #1877f2;
}

.footer .socials .social-link--instagram svg {
  color: #e4405f;
}

.footer .socials .social-link--threads svg {
  color: #f5f5f7;
}

.calc-fab.is-footer-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.96);
}

@media (min-width: 781px) and (max-width: 1180px) {
  .footer-top {
    grid-template-columns: minmax(220px, 1.25fr) minmax(115px, 0.75fr) minmax(135px, 0.85fr) minmax(200px, 1.15fr);
    gap: clamp(24px, 3vw, 36px);
  }
}

@media (min-width: 521px) and (max-width: 780px) {
  .footer-contacts {
    grid-column: 1 / -1;
  }

  .footer .socials {
    width: 100%;
    max-width: 245px;
  }
}

@media (max-width: 520px) {
  .footer .socials {
    width: 100%;
    max-width: none;
  }

  .footer .socials .social-link {
    min-height: 46px;
  }
}

/* Completed projects: static responsive portfolio grid */
.works-section {
  background: var(--premium-bg, #121212);
}

.works-section .section-head h2 {
  color: #fff;
}

.works-section .section-head > p {
  color: var(--premium-muted, #a7a7ad);
}

.works-carousel.works-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  margin: 0;
  padding: 4px 2px 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #ffcc00 #242429;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.works-carousel.works-grid::-webkit-scrollbar {
  height: 8px;
}

.works-carousel.works-grid::-webkit-scrollbar-track {
  background: #242429;
  border-radius: 999px;
}

.works-carousel.works-grid::-webkit-scrollbar-thumb {
  background: #ffcc00;
  border-radius: 999px;
}

.works-grid .work-card,
.works-carousel.works-grid .work-card {
  display: flex;
  min-width: clamp(280px, 30vw, 380px);
  width: clamp(280px, 30vw, 380px);
  min-height: 0;
  height: auto;
  flex: none;
  scroll-snap-align: start;
  flex-direction: column;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: #1b1b1f;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2);
}

.works-grid .work-card::after {
  display: none;
}

.work-media {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #242429;
}

.works-grid .work-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.96) contrast(1.04);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.works-grid .work-card:hover .work-media img {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.05);
}

.work-placeholder {
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  background:
    radial-gradient(circle at 72% 22%, rgba(255, 204, 0, 0.18), transparent 28%),
    linear-gradient(145deg, #25252a, #151518);
}

.work-placeholder::before {
  content: "";
  width: 54px;
  height: 54px;
  margin: 0 auto 6px;
  border: 2px solid #ffcc00;
  border-radius: 50%;
  box-shadow: inset 0 0 0 12px rgba(255, 204, 0, 0.08);
}

.work-placeholder span {
  color: #ffcc00;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.work-placeholder small {
  color: #9b9ba2;
}

.works-grid .work-card figcaption {
  position: static;
  display: flex;
  align-items: center;
  min-height: 82px;
  margin: 0;
  padding: 18px 20px;
  border: 0;
  border-top: 3px solid #ffcc00;
  border-radius: 0;
  color: #f5f5f7;
  background: #1b1b1f;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: none;
  opacity: 1;
}

.works-grid .work-card:hover figcaption,
.works-grid .work-card:focus figcaption,
.works-grid .work-card.is-active figcaption {
  transform: none;
  opacity: 1;
}

@media (max-width: 980px) {
  .works-grid .work-card,
  .works-carousel.works-grid .work-card {
    min-width: min(70vw, 360px);
    width: min(70vw, 360px);
  }
}

@media (max-width: 620px) {
  .works-carousel.works-grid {
    gap: 16px;
  }

  .works-grid .work-card,
  .works-carousel.works-grid .work-card {
    min-width: 84vw;
    width: 84vw;
    min-height: 0;
  }

  .works-grid .work-card figcaption {
    min-height: 0;
    padding: 16px 18px 18px;
    font-size: 14px;
  }
}

input:focus,
textarea:focus,
select:focus,
.request-form input:focus,
.request-form textarea:focus,
.calculator-form input:focus,
.calculator-form select:focus {
  border-color: rgba(255, 204, 0, 0.46);
  box-shadow: 0 0 0 4px rgba(255, 204, 0, 0.1);
}

/* Premium solution packages */
.catalog-section .package-card {
  min-height: 0;
  padding: 18px;
  border-color: rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background:
    radial-gradient(circle at 90% 8%, rgba(255, 204, 0, 0.07), transparent 28%),
    #1b1b1f;
}

.catalog-section .package-card:hover {
  border-color: rgba(255, 204, 0, 0.32);
  background:
    radial-gradient(circle at 90% 8%, rgba(255, 204, 0, 0.11), transparent 30%),
    #202024;
}

.catalog-section .package-featured {
  border-color: rgba(255, 204, 0, 0.52);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 204, 0, 0.08);
}

.package-media {
  display: grid;
  place-content: center;
  gap: 10px;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #ffcc00;
  text-align: center;
  background:
    linear-gradient(135deg, transparent 48%, rgba(255, 204, 0, 0.055) 49%, rgba(255, 204, 0, 0.055) 51%, transparent 52%),
    #242429;
}

.package-media svg,
.catalog-section .package-card .package-media svg {
  width: 54px;
  height: 54px;
  margin: 0 auto;
  padding: 12px;
  border: 1px solid rgba(255, 204, 0, 0.25);
  border-radius: 50%;
  color: #ffcc00;
  background: rgba(255, 204, 0, 0.07);
}

.package-media span {
  color: #929299;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-section .package-tag {
  z-index: 2;
  top: 28px;
  right: 28px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 204, 0, 0.2);
  border-radius: 999px;
  color: #ffdc4d;
  background: rgba(18, 18, 18, 0.78);
  backdrop-filter: blur(8px);
}

.catalog-section .package-card h3 {
  margin-bottom: 9px;
  color: #fff;
  font-size: 21px;
}

.catalog-section .package-card > p {
  min-height: 62px;
  margin-bottom: 16px;
  color: #aaaab2;
  font-size: 12px;
  line-height: 1.65;
}

.package-list {
  display: grid;
  gap: 9px;
  min-height: 114px;
  margin: 0 0 20px;
  padding: 0;
  color: #d7d7dc;
  font-size: 12px;
  list-style: none;
}

.package-list li {
  position: relative;
  padding-left: 19px;
}

.package-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #ffcc00;
  font-weight: 900;
}

.catalog-section .package-card > .package-price {
  margin: auto 0 17px;
  color: #fff;
  font-size: 23px;
  letter-spacing: -0.035em;
}

.catalog-section .package-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 11px 14px;
  border: 1px solid #ffcc00;
  border-radius: 9px;
  color: #121212;
  background: #ffcc00;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}

.catalog-section .package-cta:hover {
  color: #121212;
  background: #f2b900;
  transform: translateY(-1px);
}

/* Customer reviews */
.reviews-section .section-head h2 {
  color: #fff;
}

.reviews-section .section-head > p {
  color: var(--premium-muted, #a7a7ad);
}

.reviews-grid {
  align-items: stretch;
  gap: 20px;
}

.review-card {
  display: flex;
  min-height: 350px;
  flex-direction: column;
  padding: 30px;
  border-color: rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 204, 0, 0.075), transparent 34%),
    #1b1b1f;
}

.review-card::before {
  content: "“";
  position: absolute;
  top: 47px;
  right: 25px;
  color: rgba(255, 204, 0, 0.13);
  font-family: Georgia, serif;
  font-size: 82px;
  line-height: 1;
  pointer-events: none;
}

.review-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 204, 0, 0.3);
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.28);
}

.review-label {
  top: 20px;
  right: 20px;
  border: 1px solid rgba(255, 204, 0, 0.25);
  color: #ffdc4d;
  background: rgba(255, 204, 0, 0.08);
  font-size: 8px;
}

.review-card .stars {
  margin-bottom: 22px;
  color: #ffcc00;
  font-size: 14px;
}

.review-card > p {
  position: relative;
  z-index: 1;
  min-height: 0;
  margin: 0 0 28px;
  color: #d0d0d5;
  font-size: 13px;
  line-height: 1.72;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.review-avatar {
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 204, 0, 0.32);
  border-radius: 50%;
  color: #121212;
  background: #ffcc00;
  font-size: 15px;
  font-weight: 900;
}

.review-card .review-author b {
  margin-bottom: 4px;
  color: #fff;
  font-size: 14px;
}

.review-card .review-author small {
  color: #96969e;
  font-size: 10px;
  line-height: 1.4;
}

/* 10. Mobile refinements */
@media (max-width: 780px) {
  .section {
    padding-top: 84px;
    padding-bottom: 84px;
  }

  .service-card,
  .why-card,
  .package-card,
  .request-form,
  .quiz-card {
    border-radius: 16px;
  }

  .review-card {
    min-height: 0;
  }
}

@media (max-width: 520px) {
  .section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .works-carousel .work-card {
    min-height: 300px;
  }
}
