:root {
  --primary:       #3d4e7a;
  --primary-dark:  #2c3858;
  --primary-light: #4e649c;
  --accent:        #697eb4;
  --white:         #ffffff;
  --gray-light:    #e6e6e6;
  --gray-bg:       #f4f5f8;
  --gray-text:     #555;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #222;
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: -0.02em;
  font-weight: 700;
}

/* ─── HEADER ─────────────────────────────────────── */
header {
  background: var(--primary-dark);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 58px;
  width: auto;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.25s;
}

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

.nav-cta {
  background: var(--white) !important;
  color: var(--primary-dark) !important;
  padding: 0.6rem 1.5rem;
  border-radius: 25px;
  font-weight: 700 !important;
  transition: background 0.25s, color 0.25s !important;
}

.nav-cta:hover {
  background: var(--gray-light) !important;
}

/* ─── HERO ───────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 48vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero-desk.jpg');
  background-size: cover;
  background-position: center 30%;
  filter: brightness(0.4);
}

.hero-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  color: var(--white);
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  max-width: 750px;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--white);
  position: relative;
  display: inline;
}

.hero h1 em::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 3px;
  background: var(--primary-light);
  transform-origin: center;
  transform: scaleX(1);
}

.hero h1:hover em::after {
  animation: line-draw 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes line-draw {
  0%   { transform: scaleX(1); transform-origin: right; }
  42%  { transform: scaleX(0); transform-origin: right; }
  58%  { transform: scaleX(0); transform-origin: left;  }
  100% { transform: scaleX(1); transform-origin: left;  }
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.8;
  max-width: 620px;
  color: rgba(255,255,255,0.88);
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--primary-light);
  color: var(--white);
  padding: 0.85rem 2.2rem;
  border-radius: 28px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.25s;
  box-shadow: 0 4px 16px rgba(78,100,156,0.5);
}
.btn-primary:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(44,56,88,0.5);
}

.btn-outline {
  border: 2px solid rgba(255,255,255,0.6);
  color: var(--white);
  padding: 0.85rem 2.2rem;
  border-radius: 28px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.25s;
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

/* ─── SECTION BASE ───────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-lead {
  color: var(--gray-text);
  font-size: 1.1rem;
  max-width: 600px;
  line-height: 1.8;
}

/* ─── INTRO STRIP ────────────────────────────────── */
.intro-strip {
  background: var(--primary);
  color: var(--white);
  padding: 3rem 2rem;
  text-align: center;
}

.intro-strip blockquote {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-style: italic;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
  opacity: 0.95;
}

.intro-strip blockquote strong { font-style: normal; }

/* ─── SOLUTIONS ──────────────────────────────────── */
.solutions {
  padding: 6rem 2rem;
  background: var(--gray-bg);
}

.solutions-header {
  max-width: 1200px;
  margin: 0 auto 3.5rem;
}

.solutions-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.solution-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(44,56,88,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid transparent;
}

.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(44,56,88,0.16);
  border-color: var(--primary-light);
}

.solution-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.solution-card-body {
  padding: 1.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.solution-card-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 0.5rem;
}

.solution-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.solution-card p {
  color: var(--gray-text);
  font-size: 0.97rem;
  line-height: 1.75;
  flex: 1;
}

/* ─── CONTACT CTA ────────────────────────────────── */
.contact-cta {
  background: var(--primary-dark);
  padding: 5rem 2rem;
  color: var(--white);
}

.contact-cta-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.contact-cta-inner h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.contact-cta-inner p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 520px;
}

.contact-cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .contact-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .contact-cta-actions {
    flex-direction: column;
    width: 100%;
  }
  .contact-cta-actions .btn-primary,
  .contact-cta-actions .btn-outline {
    text-align: center;
  }
}

/* ─── CONTACT PAGE ───────────────────────────────── */
.contact-hero {
  position: relative;
  min-height: 34vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.contact-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/visual-industrial-security-pcs7.jpg');
  background-size: cover;
  background-position: center 45%;
  filter: brightness(0.32);
}

.contact-hero-content {
  position: relative;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 3.5rem 2rem 4rem;
  color: var(--white);
}

.contact-hero-content .section-eyebrow {
  color: var(--white);
  font-size: 0.9rem;
  opacity: 0.9;
}

.contact-hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0.5rem 0 0.75rem;
}

.contact-hero-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 480px;
  line-height: 1.7;
}

.contact-form-section {
  background: var(--gray-bg);
  padding: 5rem 2rem 7rem;
}

.contact-form-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 20px;
  padding: 3.5rem 4rem;
  box-shadow: 0 8px 48px rgba(44,56,88,0.10);
}

.contact-form-card .form-group label {
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-form-card .form-group input,
.contact-form-card .form-group textarea {
  background: var(--gray-bg);
  border: 1.5px solid var(--gray-light);
  color: #1a2238;
}

.contact-form-card .form-group input:focus,
.contact-form-card .form-group textarea:focus {
  background: var(--white);
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(78,100,156,0.15);
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.form-alt {
  font-size: 0.92rem;
  color: var(--gray-text);
}

.form-alt a {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 600;
}

.form-alt a:hover { text-decoration: underline; }

/* ─── THANK YOU PAGE ─────────────────────────────── */
.thankyou-page {
  position: relative;
  min-height: calc(100vh - 82px - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.thankyou-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/thankyou.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.45);
}

.thankyou-content {
  position: relative;
  color: var(--white);
  padding: 3rem 2rem;
  max-width: 560px;
}

.thankyou-content h2 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.thankyou-content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

@media (max-width: 700px) {
  .contact-form-card {
    padding: 2.5rem 1.5rem;
    border-radius: 14px;
  }
  .form-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .form-submit { width: 100%; text-align: center; }
}

/* ─── CONTACT BANNER ─────────────────────────────── */
.contact-banner {
  background: var(--primary-dark);
  padding: 5rem 2rem;
  color: var(--white);
}

.contact-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-banner h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.contact-banner p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-details {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-detail-item span:first-child {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-detail-item a,
.contact-detail-item span:last-child {
  color: var(--white);
  text-decoration: none;
  font-size: 1rem;
  transition: opacity 0.2s;
}

.contact-detail-item a:hover { opacity: 0.75; }

/* FORM */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--white);
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  background: #ffffff;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  color: #1a2238;
  font-family: inherit;
  font-size: 0.97rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #888;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(105,126,180,0.35);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-submit {
  align-self: flex-start;
  background: var(--primary-light);
  color: var(--white);
  border: none;
  padding: 0.9rem 2.5rem;
  border-radius: 28px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 16px rgba(78,100,156,0.4);
}

.form-submit:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* ─── FOOTER ─────────────────────────────────────── */
footer {
  background: #1a2238;
  color: rgba(255,255,255,0.6);
  padding: 2rem 2.5rem;
  font-size: 0.88rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.footer-logo img {
  height: 34px;
  width: auto;
  opacity: 0.65;
  flex-shrink: 0;
}

.footer-text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
}

footer a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  margin: 0 0.75rem;
  transition: color 0.2s;
}

footer a:hover { color: var(--white); }

.footer-links {
  margin-top: 0.75rem;
}

/* ─── MOBILE NAV TOGGLE ──────────────────────────── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 900px) {
  .solutions-grid {
    grid-template-columns: 1fr;
  }

  .contact-banner-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

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

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .nav-links.open { display: flex; }

  nav { position: relative; }

  .hero { min-height: 70vh; }
  .hero h1 { font-size: 2.2rem; }

  .solutions { padding: 4rem 1.5rem; }
  .contact-banner { padding: 4rem 1.5rem; }

  .form-row { grid-template-columns: 1fr; }

  .form-submit { width: 100%; text-align: center; }
}
