:root {
  --navy: #102f3b;
  --navy-2: #173f4e;
  --blue: #2f6e84;
  --blue-light: #eaf4f7;
  --gold: #f5bd36;
  --gold-dark: #d99d12;
  --white: #ffffff;
  --ink: #17313b;
  --muted: #5c7078;
  --line: #d9e6ea;
  --surface: #f4f8f9;
  --shadow: 0 16px 40px rgba(16, 47, 59, 0.12);
  --shadow-soft: 0 8px 24px rgba(16, 47, 59, 0.08);
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 10px 15px;
  background: #000;
  color: #fff;
}
.skip-link:focus { left: 10px; top: 10px; }

.site-header { overflow: hidden; background: #fff; }
.site-header > a { display: block; }
.header-logo {
  width: 100%;
  max-height: 210px;
  object-fit: cover;
  object-position: center;
}
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--navy), var(--navy-2));
  box-shadow: 0 6px 18px rgba(0,0,0,.16);
}
.nav-shell {
  width: min(var(--max), calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-inner a {
  padding: 10px 13px;
  color: #fff;
  border-radius: 8px;
  font-size: .94rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}
.nav-inner a:hover, .nav-inner a.active {
  color: #fff;
  background: rgba(255,255,255,.14);
}
.nav-call {
  padding: 10px 14px;
  color: var(--navy);
  background: var(--gold);
  border-radius: 9px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}
.nav-call:hover { color: var(--navy); background: #ffd168; }
.nav-toggle {
  display: none;
  padding: 9px 13px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
}
.license-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 34px;
  padding: 9px 18px;
  color: #fff;
  background: var(--blue);
  font-size: .9rem;
  font-weight: 750;
  text-align: center;
}

main { overflow: hidden; }
.hero {
  width: min(var(--max), calc(100% - 40px));
  margin: 34px auto 0;
  padding: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: 44px;
  align-items: center;
  background:
    radial-gradient(circle at 92% 10%, rgba(245,189,54,.2), transparent 28%),
    linear-gradient(135deg, #fff 0%, #e7f2f5 100%);
  border: 1px solid #dce9ed;
  border-radius: 26px;
  box-shadow: var(--shadow);
}
.eyebrow {
  margin: 0 0 7px;
  color: var(--blue);
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1, h2, h3 {
  margin-top: 0;
  color: var(--navy);
  line-height: 1.18;
}
h1 {
  margin-bottom: 15px;
  font-size: clamp(2.25rem, 5vw, 4.45rem);
  letter-spacing: -.04em;
}
h2 {
  margin-bottom: 14px;
  font-size: clamp(1.75rem, 3vw, 2.7rem);
  letter-spacing: -.025em;
}
h3 { margin-bottom: 9px; font-size: 1.18rem; }
.hero-copy > p:not(.eyebrow) { max-width: 700px; }
.hero-subtitle {
  color: var(--blue);
  font-size: 1.25rem;
  font-weight: 800;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.button {
  display: inline-block;
  padding: 12px 19px;
  border: 2px solid transparent;
  border-radius: 10px;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(16,47,59,.17);
}
.button.primary { color: #fff; background: var(--navy); }
.button.secondary { color: var(--navy); background: #fff; border-color: var(--navy); }
.button.gold { color: var(--navy); background: var(--gold); }
.button.outline-light { color: #fff; border-color: rgba(255,255,255,.72); }
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.trust-row span {
  padding: 6px 10px;
  color: var(--navy);
  background: rgba(47,110,132,.09);
  border: 1px solid rgba(47,110,132,.18);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.hero-media {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 18px 34px rgba(16,47,59,.2);
}
.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .3s ease;
}
.hero-media:hover img { transform: scale(1.025); }
.hero-symbol {
  min-height: 330px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(16,47,59,.95), rgba(47,110,132,.88)),
    repeating-linear-gradient(45deg, transparent 0 16px, rgba(255,255,255,.06) 16px 17px);
  border-radius: 18px;
  box-shadow: 0 18px 34px rgba(16,47,59,.2);
}
.hero-symbol span {
  color: var(--gold);
  font-size: clamp(5rem, 12vw, 9rem);
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.24));
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 72px auto;
}
.section-heading {
  max-width: 790px;
  margin: 0 auto 32px;
  text-align: center;
}
.section-heading.left { max-width: none; text-align: left; }
.section-heading p:last-child { color: var(--muted); }
.prose-card {
  padding: clamp(24px, 4vw, 46px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.prose-card p:first-child { margin-top: 0; }
.prose-card p:last-child { margin-bottom: 0; }
.prose-card blockquote {
  margin: 18px 0;
  padding: 5px 0 5px 24px;
  border-left: 4px solid var(--gold);
}
.prose-card strong { color: var(--navy); }
.prose-card ul, .prose-card ol { padding-left: 24px; }
.prose-card br { line-height: 1.9; }
.prose-card table { width: 100%; border-collapse: collapse; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px;
}
.service-card {
  min-height: 255px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: #b6d1da;
  box-shadow: var(--shadow);
}
.service-icon {
  width: 43px;
  height: 43px;
  margin-bottom: 17px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: var(--gold);
  border-radius: 12px;
  font-size: 1.25rem;
}
.service-card h3 a { color: var(--navy); text-decoration: none; }
.service-card p { margin: 0 0 18px; color: var(--muted); font-size: .93rem; }
.text-link {
  margin-top: auto;
  color: var(--blue);
  font-weight: 850;
  text-decoration: none;
}
.center { margin-top: 30px; text-align: center; }

.projects-section {
  width: 100%;
  padding: 68px max(20px, calc((100% - var(--max)) / 2));
  background: #e7f1f4;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.project-card {
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 6px solid #fff;
  border-radius: 15px;
  box-shadow: var(--shadow-soft);
}
.project-card a { display: block; overflow: hidden; }
.project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .28s ease;
}
.project-card:hover img { transform: scale(1.035); }

.service-cta {
  padding: 58px max(24px, calc((100% - var(--max)) / 2));
  display: flex;
  justify-content: space-between;
  gap: 36px;
  align-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgba(245,189,54,.18), transparent 24%),
    linear-gradient(120deg, var(--navy), var(--blue));
}
.service-cta h2, .service-cta .eyebrow { color: #fff; }
.service-cta h2 { margin-bottom: 8px; }
.service-cta p { margin: 0; }
.service-cta .hero-actions { flex-shrink: 0; margin-top: 0; }

.site-footer { color: #dfecef; background: #0b242d; }
.footer-grid {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 46px 0 35px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
}
.site-footer h2, .site-footer h3 { color: #fff; }
.site-footer h2 { font-size: 1.65rem; }
.site-footer h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.site-footer p { margin: 0; }
.site-footer a { color: #fff; }
.footer-bottom {
  padding: 17px 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #bdd0d6;
  font-size: .85rem;
  text-align: center;
}

/* Hovhannes Learning Center compatibility */
.welcome-card {
  width: min(1020px, calc(100% - 40px));
  margin: 28px auto 0;
  padding: 25px 30px;
  display: flex;
  gap: 20px;
  background: #fff;
  border-left: 7px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.speech-mark { color: var(--gold); font-family: Georgia, serif; font-size: 5rem; line-height: .85; }
.signature { color: var(--blue); font-size: 1.2rem; font-weight: 850; }
.content-section { width: min(var(--max), calc(100% - 40px)); }
.value-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.value-card { min-height: 190px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow-soft); }
.value-card > span { display: inline-grid; place-items: center; width: 33px; height: 33px; margin-bottom: 14px; background: var(--gold); color: var(--navy); border-radius: 50%; font-weight: 900; }
.value-card p { margin: 0; color: var(--muted); font-size: .93rem; }
.safety-section { padding: 64px 24px; background: linear-gradient(135deg, var(--navy), var(--blue)); }
.section-heading.light h2, .section-heading.light p { color: #fff; }
.safety-list { max-width: 920px; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; list-style: none; }
.safety-list li { position: relative; padding: 17px 18px 17px 50px; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: 12px; }
.safety-list li::before { content: "✓"; position: absolute; left: 17px; top: 15px; color: var(--gold); font-size: 1.25rem; font-weight: 900; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.gallery-card { margin: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-soft); }
.gallery-card a { display: block; overflow: hidden; }
.gallery-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform .25s ease; }
.gallery-card:hover img { transform: scale(1.035); }
.gallery-card figcaption { padding: 13px 15px; color: var(--navy); font-weight: 850; text-align: center; }
.two-column-section { width: min(var(--max), calc(100% - 40px)); margin: 0 auto 68px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.info-panel { padding: 30px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.info-panel.accent { background: var(--blue-light); }
.closing-section { padding: 66px 24px; text-align: center; background: #fff; border-top: 1px solid var(--line); }
.closing-section p { max-width: 780px; margin: 0 auto 18px; }
.closing-quote { color: var(--blue); font-size: 1.3rem; font-weight: 900; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding: 32px; }
  .service-grid, .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-shell { min-height: 58px; }
  .nav-toggle { display: inline-block; }
  .nav-inner {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 1px);
    padding: 10px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--navy);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 12px 22px rgba(0,0,0,.2);
  }
  .nav-inner.open { display: flex; }
  .nav-inner a { padding: 11px 12px; }
}

@media (max-width: 680px) {
  body { font-size: 15px; }
  .header-logo { min-height: 90px; object-fit: cover; }
  .nav-shell { width: calc(100% - 24px); }
  .nav-call { margin-left: auto; font-size: .85rem; }
  .license-bar { font-size: .8rem; }
  .hero { width: calc(100% - 24px); margin-top: 18px; padding: 23px; border-radius: 18px; }
  .hero-symbol { min-height: 220px; }
  .hero-actions .button { width: 100%; }
  .section, .content-section { width: calc(100% - 24px); margin: 50px auto; }
  .service-grid, .project-grid, .value-grid, .safety-list, .gallery-grid, .two-column-section { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .projects-section { width: 100%; padding: 48px 12px; }
  .service-cta { padding: 46px 20px; flex-direction: column; align-items: stretch; }
  .service-cta .hero-actions { width: 100%; }
  .footer-grid { width: calc(100% - 32px); grid-template-columns: 1fr; gap: 26px; }
  .welcome-card { width: calc(100% - 24px); padding: 20px; }
  .speech-mark { display: none; }
  .two-column-section { width: calc(100% - 24px); }
  .safety-section { padding: 48px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
