﻿:root {
  --primary-blue: #1b2b48;
  --primary-blue-2: #243a61;
  --accent-red: #d32f2f;
  --accent-red-deep: #b32121;
  --pure-white: #ffffff;
  --light-gray: #f4f4f4;
  --light-gray-2: #ebedf1;
  --text-dark: #333333;
  --text-mid: #4b5568;
  --gold-tint: #e6d4a6;
  --max-width: 1120px;
  --radius-sm: 0.45rem;
  --radius-md: 0.8rem;
  --radius-lg: 1.1rem;
  --shadow-soft: 0 10px 30px rgba(27, 43, 72, 0.1);
  --shadow-card: 0 14px 36px rgba(27, 43, 72, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-dark);
  background: radial-gradient(circle at 20% 0%, #ffffff 0%, #fbfbfc 45%, #f7f8fa 100%);
  font-family: "Segoe UI", "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: var(--primary-blue);
}

p {
  color: var(--text-mid);
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--primary-blue);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
}

h2 {
  font-size: clamp(1.45rem, 2.7vw, 2.2rem);
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

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

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 25;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #d8dee8;
  box-shadow: 0 6px 20px rgba(16, 33, 58, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 1rem;
}

.brand {
  position: relative;
}

.brand::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-red));
  opacity: 0.12;
}

.brand img {
  width: 210px;
  height: auto;
}

.nav-toggle {
  border: 1px solid var(--primary-blue);
  color: var(--primary-blue);
  background: var(--pure-white);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}

.nav-toggle:hover {
  background: #f8fafc;
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.site-nav {
  position: absolute;
  top: 78px;
  left: 0;
  right: 0;
  background: var(--pure-white);
  border-bottom: 1px solid #dce2eb;
  display: none;
  flex-direction: column;
}

.site-nav a {
  padding: 0.9rem 1rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-top: 1px solid #eef1f5;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--accent-red);
  background: #fbfcff;
}

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

.hero {
  position: relative;
  overflow: hidden;
  color: var(--pure-white);
  padding: clamp(4.7rem, 10vw, 7.2rem) 0;
  background:
    linear-gradient(125deg, rgba(27, 43, 72, 0.95), rgba(36, 58, 97, 0.95)),
    repeating-linear-gradient(
      -45deg,
      rgba(230, 212, 166, 0.08) 0,
      rgba(230, 212, 166, 0.08) 8px,
      rgba(255, 255, 255, 0) 8px,
      rgba(255, 255, 255, 0) 18px
    );
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero::before {
  width: 320px;
  height: 320px;
  right: -120px;
  top: -120px;
  background: radial-gradient(circle, rgba(211, 47, 47, 0.3) 0%, rgba(211, 47, 47, 0) 72%);
}

.hero::after {
  width: 300px;
  height: 300px;
  left: -120px;
  bottom: -150px;
  background: radial-gradient(circle, rgba(230, 212, 166, 0.3) 0%, rgba(230, 212, 166, 0) 72%);
}

.hero h1,
.page-hero h1 {
  line-height: 1.08;
  margin-bottom: 0.65rem;
}

.hero h1 {
  color: var(--pure-white);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
}

.hero-content {
  max-width: 780px;
  position: relative;
  z-index: 1;
}

.hero-content p {
  color: #e8edf6;
  max-width: 62ch;
  margin-bottom: 1.4rem;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  font-size: 0.79rem;
  color: #f0dca8;
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(240, 220, 168, 0.45);
  border-radius: 999px;
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 0.82rem 1.35rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(180deg, #ffffff, #f0f3f8);
  color: var(--primary-blue);
  box-shadow: 0 6px 14px rgba(15, 26, 48, 0.25);
}

.btn-primary:hover {
  background: #ffffff;
  box-shadow: 0 10px 18px rgba(15, 26, 48, 0.28);
}

.btn-accent {
  background: linear-gradient(180deg, var(--accent-red), var(--accent-red-deep));
  color: var(--pure-white);
  box-shadow: 0 8px 16px rgba(179, 33, 33, 0.35);
}

.btn-accent:hover {
  background: linear-gradient(180deg, #dd3f3f, var(--accent-red));
}

.services,
.content-section,
.trust {
  padding: clamp(3.2rem, 7vw, 5.6rem) 0;
}

.services h2,
.trust h2,
.content-section h2 {
  margin-bottom: 1.1rem;
}

.services {
  position: relative;
}

.services::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 5% 5%, rgba(27, 43, 72, 0.04), transparent 35%),
    radial-gradient(circle at 95% 95%, rgba(211, 47, 47, 0.04), transparent 32%);
  pointer-events: none;
}

.trust {
  background: linear-gradient(180deg, #f2f4f8 0%, #f8f9fb 100%);
  border-top: 1px solid #e5e8ee;
  border-bottom: 1px solid #e5e8ee;
}

.service-grid,
.split,
.contact-layout {
  display: grid;
  gap: 1.2rem;
}

.service-card,
.content-card,
.trust-box {
  border: 1px solid #dfe5ee;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  padding: clamp(1.25rem, 2vw, 1.65rem);
  box-shadow: var(--shadow-soft);
}

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-red));
}

.service-card ul {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
  color: var(--text-mid);
}

.service-card li {
  margin-bottom: 0.35rem;
}

.service-title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.service-title img {
  width: 38px;
  height: 38px;
  padding: 0.35rem;
  border-radius: 0.45rem;
  background: linear-gradient(145deg, var(--primary-blue), var(--primary-blue-2));
  box-shadow: 0 8px 14px rgba(20, 35, 62, 0.2);
}

.page-hero {
  padding: clamp(3.8rem, 7vw, 5rem) 0 1.6rem;
  background:
    linear-gradient(180deg, #eef2f8 0%, #ffffff 100%),
    radial-gradient(circle at top right, rgba(211, 47, 47, 0.09), transparent 30%);
}

.page-hero p {
  max-width: 72ch;
}

.alt {
  background: linear-gradient(180deg, #f6f7fa 0%, #f0f2f6 100%);
  border-top: 1px solid #e3e8f0;
  border-bottom: 1px solid #e3e8f0;
}

/* About page color accents */
.about-page .page-hero,
body:has(a.active[href="about.html"]) .page-hero {
  background:
    linear-gradient(125deg, rgba(27, 43, 72, 0.92), rgba(36, 58, 97, 0.88)),
    radial-gradient(circle at 88% 20%, rgba(211, 47, 47, 0.34), rgba(211, 47, 47, 0) 38%);
}

.about-page .page-hero h1,
.about-page .page-hero p,
body:has(a.active[href="about.html"]) .page-hero h1,
body:has(a.active[href="about.html"]) .page-hero p {
  color: #ffffff;
}

.about-page .content-section .content-card,
body:has(a.active[href="about.html"]) .content-section .content-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #dfe5ee;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.about-page .content-section .content-card::after,
body:has(a.active[href="about.html"]) .content-section .content-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-red));
}

.about-page .content-section.alt,
body:has(a.active[href="about.html"]) .content-section.alt {
  background:
    linear-gradient(180deg, #edf2f9 0%, #f5f8fc 100%);
}

.about-page .content-section.alt .content-card,
body:has(a.active[href="about.html"]) .content-section.alt .content-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

/* Contact page facelift */
.contact-page .page-hero,
body:has(a.active[href="contact.html"]) .page-hero {
  background:
    linear-gradient(125deg, rgba(27, 43, 72, 0.94), rgba(36, 58, 97, 0.9)),
    radial-gradient(circle at 86% 16%, rgba(211, 47, 47, 0.3), rgba(211, 47, 47, 0) 40%);
}

.contact-page .page-hero h1,
.contact-page .page-hero p,
body:has(a.active[href="contact.html"]) .page-hero h1,
body:has(a.active[href="contact.html"]) .page-hero p {
  color: #ffffff;
}

.contact-page .content-section,
body:has(a.active[href="contact.html"]) .content-section {
  background:
    radial-gradient(circle at 6% 6%, rgba(27, 43, 72, 0.05), transparent 35%),
    radial-gradient(circle at 95% 90%, rgba(211, 47, 47, 0.06), transparent 34%);
}

.contact-page .contact-layout .content-card,
body:has(a.active[href="contact.html"]) .contact-layout .content-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #dfe5ee;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.contact-page .contact-layout .content-card::after,
body:has(a.active[href="contact.html"]) .contact-layout .content-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-red));
}

.contact-page .contact-form,
body:has(a.active[href="contact.html"]) .contact-form {
  margin-top: 1.1rem;
  padding: 0.95rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f1;
  background: linear-gradient(180deg, #fdfefe 0%, #f7f9fc 100%);
}

.contact-page .contact-form .btn-accent,
body:has(a.active[href="contact.html"]) .contact-form .btn-accent {
  margin-top: 0.2rem;
}

.contact-page .map-wrap,
body:has(a.active[href="contact.html"]) .map-wrap {
  box-shadow: 0 14px 30px rgba(27, 43, 72, 0.14);
  border: 1px solid #c6d1e1;
}

.contact-page .content-card p a,
body:has(a.active[href="contact.html"]) .content-card p a {
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.contact-form {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}

label {
  font-weight: 600;
  color: var(--primary-blue);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #c7cfdb;
  border-radius: 0.5rem;
  padding: 0.72rem;
  font: inherit;
  background: #fcfdff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #4568a3;
  box-shadow: 0 0 0 3px rgba(69, 104, 163, 0.18);
}

.map-wrap {
  border: 1px solid #cfd7e4;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 320px;
  box-shadow: var(--shadow-soft);
}

.map-wrap iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
}

.form-note {
  margin: 0.45rem 0 0;
  font-weight: 600;
}

.site-footer {
  position: relative;
  background: linear-gradient(120deg, #15243d, var(--primary-blue));
  color: var(--pure-white);
  padding: 1.45rem 0;
  margin-top: 2.6rem;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.05) 0,
    rgba(255, 255, 255, 0.05) 10px,
    rgba(255, 255, 255, 0) 10px,
    rgba(255, 255, 255, 0) 24px
  );
  pointer-events: none;
}

.site-footer a {
  color: var(--pure-white);
}

.site-footer p {
  color: #e7edf7;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

@media (min-width: 760px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    border: 0;
    gap: 0.45rem;
    background: transparent;
  }

  .site-nav a {
    border: 0;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
  }

  .site-nav a:hover,
  .site-nav a.active {
    background: #eef2f8;
  }

  .service-grid,
  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem;
  }

  .contact-layout {
    grid-template-columns: 1.2fr 1fr;
    gap: 1.35rem;
  }

  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 1040px) {
  .service-card,
  .content-card,
  .trust-box {
    border-radius: var(--radius-lg);
  }

  .service-card:hover,
  .content-card:hover,
  .trust-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
}
