:root {
  --navy-980: #031022;
  --navy-950: #061a38;
  --navy-900: #0a254d;
  --blue-700: #205bd3;
  --gold: #b7832b;
  --gold-soft: #f4ead8;
  --ink: #0d1728;
  --muted: #64748b;
  --line: #e7ecf3;
  --paper: #f8fafc;
  --white: #ffffff;
  --shadow: 0 22px 65px rgba(6, 26, 56, 0.14);
  --radius-xl: 30px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  transition: box-shadow 0.25s ease;
}

.site-header.scrolled {
  box-shadow: 0 8px 28px rgba(6, 26, 56, 0.08);
}

.header-inner {
  min-height: 82px;
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr auto;
  gap: 22px;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand strong {
  display: block;
  color: var(--navy-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.14rem;
  line-height: 1.05;
}

.brand span {
  display: block;
  margin-top: 5px;
  color: var(--gold);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 22px;
}

.main-nav a {
  position: relative;
  padding: 10px 0;
  color: var(--navy-950);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.2s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-toggle {
  display: flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}

.lang-btn {
  min-width: 42px;
  padding: 8px 10px;
  border: 0;
  border-radius: 999px;
  color: var(--navy-950);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.lang-btn.active {
  color: white;
  background: var(--navy-950);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 0;
  border-radius: 14px;
  background: var(--navy-950);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: white;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: white;
  background: var(--navy-950);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(6, 26, 56, 0.18);
}

.btn-small {
  min-height: 42px;
  padding: 11px 17px;
  font-size: 0.75rem;
}

.btn-light {
  color: var(--gold);
  background: white;
  border-color: rgba(183, 131, 43, 0.45);
}

.profile-hero {
  padding: 36px 0 70px;
  background:
    radial-gradient(circle at 80% 20%, rgba(183, 131, 43, 0.09), transparent 28%),
    linear-gradient(180deg, #fff 0%, var(--paper) 100%);
}

.profile-card-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
  gap: 34px;
  align-items: stretch;
  min-height: 660px;
  overflow: hidden;
  border: 1px solid rgba(183, 131, 43, 0.60);
  border-radius: 22px;
  background: white;
  box-shadow: var(--shadow);
}

.profile-content {
  position: relative;
  z-index: 2;
  padding: clamp(34px, 5vw, 58px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.20em;
  text-transform: uppercase;
}

.profile-content h1,
.section-head h2,
.contact-info-panel h2 {
  margin: 0;
  color: var(--navy-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.75rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.subtitle {
  margin: 18px 0 24px;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.bio {
  max-width: 690px;
  margin: 0 0 30px;
  color: var(--navy-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.9;
}

.service-grid-mini {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
  max-width: 680px;
  padding: 20px 20px 8px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 42px rgba(6, 26, 56, 0.09);
}

.mini-service {
  min-height: 72px;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 15px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.mini-service:last-child {
  border-bottom: 0;
}

.icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--gold);
  background: var(--gold-soft);
  font-size: 1.4rem;
  font-weight: 900;
}

.mini-service strong {
  color: var(--navy-950);
  font-size: 0.98rem;
  line-height: 1.35;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 26px;
}

.profile-visual {
  position: relative;
  min-height: 660px;
}

.profile-visual::before {
  content: "";
  position: absolute;
  inset: 0 0 0 -100px;
  z-index: 1;
  background: linear-gradient(90deg, white 0%, rgba(255,255,255,0.78) 16%, rgba(255,255,255,0) 38%);
  pointer-events: none;
}

.portrait {
  width: 100%;
  height: 100%;
  min-height: 660px;
  object-fit: cover;
  object-position: center top;
}

.membership-badge {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 72px;
  width: min(450px, 88%);
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 22px;
  align-items: center;
  padding: 22px 30px;
  border: 0;
  border-right: 0;
  border-radius: 0;
  color: white;
  background:
    radial-gradient(circle at 92% 14%, rgba(36, 73, 129, 0.52), transparent 38%),
    linear-gradient(135deg, #031225 0%, #08285a 100%);
  box-shadow: 0 18px 42px rgba(6, 26, 56, 0.24);
}

.membership-logo {
  width: 86px;
  height: 86px;
  object-fit: contain;
}

.membership-badge p {
  margin: 0;
  max-width: 300px;
  color: #ffffff;
  font-size: 1.28rem;
  line-height: 1.38;
  font-weight: 500;
}

.section {
  padding: 88px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2,
.contact-info-panel h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.section-head p:not(.eyebrow),
.contact-info-panel > p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.services-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}

.service-menu {
  display: grid;
  gap: 13px;
}

.service-button {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(6, 26, 56, 0.05);
  transition: 0.2s ease;
}

.service-button:hover,
.service-button.active {
  transform: translateY(-2px);
  border-color: rgba(183, 131, 43, 0.55);
  box-shadow: var(--shadow);
}

.service-button .icon {
  width: 46px;
  height: 46px;
}

.service-button strong {
  display: block;
  margin-bottom: 4px;
  color: var(--navy-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}

.service-button span:last-child {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.service-detail {
  position: sticky;
  top: 104px;
  align-self: start;
  min-height: 500px;
  padding: 42px;
  border-radius: var(--radius-xl);
  color: white;
  background:
    linear-gradient(150deg, rgba(6, 26, 56, 0.96), rgba(10, 37, 77, 0.88)),
    url("https://images.unsplash.com/photo-1589391886645-d51941baf7fb?auto=format&fit=crop&w=1400&q=84") center / cover;
  box-shadow: var(--shadow);
}

.service-detail-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 20px;
  color: var(--gold);
  background: rgba(255,255,255,0.12);
  font-size: 1.8rem;
}

.service-detail h3 {
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1;
}

.service-detail p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
}

.service-detail ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
}

.service-detail li {
  position: relative;
  padding-left: 26px;
  color: rgba(255,255,255,0.84);
}

.service-detail li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 900;
}

.education-section {
  background: white;
}

.education-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
}

.timeline {
  display: grid;
  gap: 14px;
}

.edu-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
}

.edu-year {
  color: var(--gold);
  font-weight: 950;
  letter-spacing: 0.05em;
}

.edu-card h3 {
  margin: 0 0 7px;
  color: var(--navy-950);
  font-family: Georgia, "Times New Roman", serif;
}

.edu-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.process-section {
  color: white;
  background: var(--navy-950);
}

.process-section .section-head h2 {
  color: white;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.process-card {
  padding: 26px;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.07);
}

.process-card span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 16px;
  color: var(--gold);
  background: rgba(183,131,43,0.16);
  font-weight: 950;
}

.process-card h3 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
}

.process-card p {
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
}

.contact-section {
  color: white;
  background:
    linear-gradient(90deg, rgba(6,26,56,0.96), rgba(6,26,56,0.90)),
    url("https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=1900&q=84") center / cover;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 24px;
}

.contact-info-panel,
.contact-form {
  padding: 38px;
  border-radius: var(--radius-xl);
}

.contact-info-panel {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
}

.contact-info-panel h2 {
  color: white;
}

.contact-info-panel > p {
  color: rgba(255,255,255,0.76);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.contact-cards div {
  padding: 17px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.09);
}

.contact-cards strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-cards span {
  display: block;
  color: rgba(255,255,255,0.88);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.contact-form {
  display: grid;
  gap: 16px;
  color: var(--ink);
  background: white;
  box-shadow: var(--shadow);
}

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

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--navy-950);
  font-weight: 850;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 13px 15px;
  outline: none;
  background: var(--paper);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(183, 131, 43, 0.12);
}

.form-status {
  margin: 0;
  min-height: 22px;
  color: var(--gold);
  font-weight: 850;
}

.legal-note {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  background: white;
}

.legal-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
  text-align: center;
}

.footer {
  color: rgba(255,255,255,0.74);
  background: var(--navy-980);
}

.footer-inner {
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 48px;
  height: 48px;
}

.footer-brand strong {
  display: block;
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}

.footer-brand p {
  margin: 4px 0 0;
}

.footer a {
  color: white;
  font-weight: 900;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .header-inner {
    grid-template-columns: 1fr auto auto;
  }

  .menu-toggle {
    display: block;
    order: 2;
  }

  .main-nav {
    position: fixed;
    top: 82px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow);
  }

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

  .header-actions {
    order: 3;
  }

  .header-actions .btn {
    display: none;
  }

  .profile-card-section,
  .services-layout,
  .education-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .profile-visual {
    min-height: 520px;
  }

  .portrait {
    min-height: 520px;
  }

  .profile-visual::before {
    inset: -120px 0 0;
    background: linear-gradient(180deg, white 0%, rgba(255,255,255,0.55) 16%, rgba(255,255,255,0) 42%);
  }

  .service-detail {
    position: relative;
    top: 0;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .brand img {
    width: 50px;
    height: 50px;
  }

  .brand strong {
    font-size: 1rem;
  }

  .brand span {
    font-size: 0.55rem;
  }

  .language-toggle {
    display: none;
  }

  .profile-hero {
    padding-top: 20px;
  }

  .profile-card-section {
    border-radius: 18px;
  }

  .profile-content {
    padding: 30px 22px;
  }

  .profile-content h1 {
    font-size: clamp(2.4rem, 11vw, 3.6rem);
  }

  .service-grid-mini,
  .process-grid,
  .contact-cards,
  .form-row,
  .edu-card {
    grid-template-columns: 1fr;
  }

  .profile-visual,
  .portrait {
    min-height: 430px;
  }  .membership-badge {
    right: 0;
    bottom: 26px;
    width: min(92%, 400px);
    grid-template-columns: 62px 1fr;
    gap: 14px;
    padding: 16px 18px;
  }

  .membership-logo {
    width: 58px;
    height: 58px;
  }

  .membership-badge p {
    max-width: none;
    font-size: 0.96rem;
    line-height: 1.34;
  }

  .section {
    padding: 68px 0;
  }

  .service-detail,
  .contact-info-panel,
  .contact-form {
    padding: 28px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 0;
  }
}


/* Updated official full logo */
.brand-full img {
  width: min(390px, 42vw);
  height: auto;
  max-height: 72px;
  object-fit: contain;
}

.brand-full {
  min-width: 0;
}

.footer-brand-full img {
  width: min(330px, 80vw);
  height: auto;
  max-height: 70px;
  object-fit: contain;
  filter: none;
  background: transparent;
}

@media (max-width: 720px) {
  .brand-full img {
    width: min(270px, 62vw);
    max-height: 58px;
  }
}


/* Official full logo */
.brand-official img {
  width: min(440px, 42vw);
  height: auto;
  max-height: 72px;
  object-fit: contain;
}

.brand-official {
  min-width: 0;
}

.footer-brand-official {
  display: inline-flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 16px;
  background: #ffffff;
}

.footer-brand-official img {
  width: min(380px, 82vw);
  height: auto;
  max-height: 70px;
  object-fit: contain;
  filter: none !important;
}

@media (max-width: 720px) {
  .brand-official img {
    width: min(295px, 68vw);
    max-height: 58px;
  }

  .footer-brand-official img {
    width: min(300px, 80vw);
  }
}


/* Clear official logo: icon image + real HTML text for sharpness */
.brand-text-logo {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.brand-text-logo img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.brand-copy strong {
  display: block;
  color: #061a38;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.15vw, 2.25rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  white-space: nowrap;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

.brand-copy em {
  display: block;
  color: #2b51aa;
  font-style: normal;
  font-size: clamp(0.78rem, 1.1vw, 1.08rem);
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.1;
  white-space: nowrap;
}

.footer-text-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 16px;
  background: #ffffff;
}

.footer-text-logo img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: none !important;
}

.footer-brand-copy {
  display: grid;
  gap: 5px;
}

.footer-brand-copy strong {
  color: #061a38;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  line-height: 1;
}

.footer-brand-copy em {
  color: #2b51aa;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .brand-text-logo {
    gap: 10px;
  }

  .brand-text-logo img {
    width: 54px;
    height: 54px;
  }

  .brand-copy strong {
    font-size: clamp(1rem, 4.8vw, 1.35rem);
    white-space: normal;
  }

  .brand-copy em {
    font-size: 0.56rem;
    letter-spacing: 0.11em;
    white-space: normal;
  }

  .footer-text-logo img {
    width: 48px;
    height: 48px;
  }

  .footer-brand-copy strong {
    font-size: 1rem;
  }

  .footer-brand-copy em {
    font-size: 0.58rem;
  }
}


/* Header overlap fix */
.header-inner {
  min-height: 86px;
  display: grid;
  grid-template-columns: minmax(500px, 620px) minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.brand-text-logo {
  max-width: 620px;
  overflow: hidden;
}

.brand-text-logo img {
  width: 70px;
  height: 70px;
}

.brand-copy strong {
  font-size: clamp(1.35rem, 1.55vw, 1.85rem);
  line-height: 1;
  letter-spacing: -0.025em;
}

.brand-copy em {
  font-size: clamp(0.68rem, 0.82vw, 0.92rem);
  letter-spacing: 0.14em;
}

.main-nav {
  justify-content: center;
  gap: 18px;
  min-width: 0;
}

.main-nav a {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

/* Switch to the mobile menu earlier to avoid crowding on laptops/tablets */
@media (max-width: 1450px) {
  .header-inner {
    grid-template-columns: 1fr auto auto;
  }

  .menu-toggle,
  .menu-button {
    display: block;
    order: 2;
  }

  .main-nav {
    position: fixed;
    top: 86px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow);
  }

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

  .main-nav a {
    font-size: 0.9rem;
  }

  .header-actions {
    order: 3;
  }
}

@media (max-width: 720px) {
  .header-inner {
    min-height: 76px;
  }

  .brand-text-logo img {
    width: 52px;
    height: 52px;
  }

  .brand-copy strong {
    font-size: clamp(1rem, 4.4vw, 1.28rem);
    white-space: normal;
  }

  .brand-copy em {
    font-size: 0.54rem;
    letter-spacing: 0.10em;
    white-space: normal;
  }
}


/* Final clean header layout */
.header-inner {
  min-height: 88px;
  display: grid;
  grid-template-columns: minmax(390px, 560px) minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
}

.brand-text-logo {
  justify-self: start;
  max-width: 560px;
}

.brand-text-logo img {
  width: 64px;
  height: 64px;
}

.brand-copy strong {
  font-size: clamp(1.28rem, 1.45vw, 1.72rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.brand-copy em {
  font-size: clamp(0.64rem, 0.76vw, 0.86rem);
  letter-spacing: 0.13em;
}

.main-nav {
  position: static;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  min-width: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.main-nav a {
  font-size: 0.74rem;
  letter-spacing: 0.055em;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  white-space: nowrap;
}

.language-toggle {
  flex-shrink: 0;
}

.header-actions .btn {
  display: inline-flex;
  flex-shrink: 0;
}

.menu-toggle,
.menu-button {
  display: none;
}

/* Switch to mobile menu before the header gets crowded */
@media (max-width: 1280px) {
  .header-inner {
    grid-template-columns: 1fr auto auto;
    gap: 16px;
  }

  .menu-toggle,
  .menu-button {
    display: block;
    order: 2;
  }

  .main-nav {
    position: fixed;
    top: 88px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow);
  }

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

  .main-nav a {
    padding: 14px 0;
    font-size: 0.9rem;
  }

  .header-actions {
    order: 3;
    gap: 10px;
  }

  .header-actions .btn {
    display: none;
  }
}

@media (max-width: 720px) {
  .header-inner {
    min-height: 76px;
  }

  .brand-text-logo {
    gap: 10px;
  }

  .brand-text-logo img {
    width: 50px;
    height: 50px;
  }

  .brand-copy strong {
    font-size: clamp(0.96rem, 4.2vw, 1.22rem);
    white-space: normal;
  }

  .brand-copy em {
    font-size: 0.52rem;
    letter-spacing: 0.10em;
    white-space: normal;
  }
}


/* Footer real logo: icon image + sharp HTML text, not one flat image */
.footer-real-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.footer-real-logo img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: none !important;
}

.footer-logo-copy {
  display: grid;
  gap: 5px;
}

.footer-logo-copy strong {
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.footer-logo-copy em {
  color: #8ea6e8;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .footer-real-logo img {
    width: 48px;
    height: 48px;
  }

  .footer-logo-copy strong {
    font-size: 1rem;
    white-space: normal;
  }

  .footer-logo-copy em {
    font-size: 0.58rem;
    white-space: normal;
  }
}


/* Redesigned services section */
.services-section {
  background:
    radial-gradient(circle at 50% 10%, rgba(255,255,255,0.96), rgba(244,247,251,0.96) 52%, rgba(239,243,248,0.96) 100%),
    linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
}

.services-container {
  width: min(1080px, calc(100% - 40px));
}

.services-head {
  margin-bottom: 34px;
}

.service-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}

.service-card {
  min-height: 178px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 20px;
  border: 1px solid #e6ebf4;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(8, 23, 51, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover,
.service-card.active {
  transform: translateY(-2px);
  border-color: #8faaf0;
  box-shadow: 0 16px 38px rgba(8, 23, 51, 0.10);
}

.service-card-icon-wrap {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #f1f4fa;
}

.service-card.active .service-card-icon-wrap {
  background: var(--navy-950);
}

.service-card-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.service-card strong {
  display: block;
  color: var(--navy-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.service-card-hint {
  margin-top: auto;
  color: #4c6dcc;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  line-height: 1.35;
  text-transform: uppercase;
}

.service-showcase {
  display: grid;
  grid-template-columns: 0.98fr 1.32fr;
  overflow: hidden;
  border: 1px solid #e6ebf4;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 46px rgba(8, 23, 51, 0.08);
}

.service-showcase-media {
  min-height: 395px;
}

.service-showcase-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.service-showcase-content {
  padding: 34px 34px 38px;
}

.service-showcase-content .eyebrow {
  margin-bottom: 14px;
}

.service-showcase-content h3 {
  margin: 0 0 12px;
  color: var(--navy-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 0.97;
  letter-spacing: -0.05em;
}

.service-detail-summary {
  max-width: 610px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.service-bullet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 24px;
}

.service-bullet-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f6f8fc;
}

.service-bullet-pill span {
  color: #4c6dcc;
  font-size: 1rem;
  font-weight: 900;
}

.service-bullet-pill strong {
  color: var(--navy-950);
  font-size: 0.98rem;
  line-height: 1.35;
}

.service-detail-btn {
  min-width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2e56cb 0%, #3f67dc 100%);
}

.services-layout .service-detail,
.services-layout .service-menu {
  all: unset;
}

/* remove old service styles in this new section */
.service-button,
.service-detail-icon {
  display: none !important;
}

@media (max-width: 980px) {
  .service-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-showcase {
    grid-template-columns: 1fr;
  }

  .service-showcase-media {
    min-height: 290px;
  }
}

@media (max-width: 640px) {
  .services-container {
    width: min(100% - 28px, 1080px);
  }

  .service-menu-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 150px;
  }

  .service-showcase-content {
    padding: 24px 22px 26px;
  }

  .service-showcase-content h3 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .service-bullet-grid {
    grid-template-columns: 1fr;
  }
}


/* Final services layout fix */
.services-section .services-layout {
  display: block !important;
}

.service-menu-grid {
  width: min(960px, 100%);
  margin: 0 auto 34px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  min-height: 180px;
  padding: 24px 22px;
  overflow: hidden;
}

.service-card strong {
  width: 100%;
  font-size: clamp(1.12rem, 1.45vw, 1.45rem);
  line-height: 1.02;
  word-break: normal;
  overflow-wrap: normal;
}

.service-card-hint {
  max-width: 150px;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
}

.service-showcase {
  width: min(960px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  overflow: hidden;
}

.service-showcase-media {
  min-height: 390px;
}

.service-showcase-content {
  padding: 42px 40px;
}

.service-showcase-content h3 {
  max-width: 520px;
  font-size: clamp(2.7rem, 4.6vw, 4.15rem);
  line-height: 0.96;
}

.service-detail-summary {
  max-width: 520px;
}

.service-bullet-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-bullet-pill {
  min-height: 56px;
  padding: 14px 16px;
}

.service-bullet-pill strong {
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .service-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(720px, 100%);
  }

  .service-showcase {
    width: min(720px, 100%);
    grid-template-columns: 1fr;
  }

  .service-showcase-media {
    min-height: 300px;
  }
}

@media (max-width: 640px) {
  .service-menu-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 145px;
  }

  .service-showcase-content {
    padding: 26px 22px;
  }

  .service-showcase-content h3 {
    font-size: clamp(2.1rem, 11vw, 3rem);
  }

  .service-bullet-grid {
    grid-template-columns: 1fr;
  }
}


/* Clickable category behavior */
.service-card {
  scroll-margin-top: 110px;
}

.service-showcase {
  scroll-margin-top: 112px;
}

.service-card:focus-visible {
  outline: 3px solid rgba(46, 86, 203, 0.35);
  outline-offset: 4px;
}

.service-card-hint::after {
  content: " ↓";
}


/* Professional service icons */
.service-card-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #ede5d6;
}

.service-card.active .service-card-icon-wrap {
  background: #ede5d6;
}

.service-card-icon {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  color: #b7832b;
  line-height: 0;
}

.service-card-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card-icon svg * {
  vector-effect: non-scaling-stroke;
}


/* Background section refinement */
.education-section {
  background:
    radial-gradient(circle at 20% 20%, rgba(183, 131, 43, 0.06), transparent 28%),
    #ffffff;
}

.education-section .section-head h2 {
  max-width: 640px;
}


/* Professional detailed service content */
.service-detail-note {
  margin: -6px 0 24px;
  padding: 18px 20px;
  border-left: 3px solid var(--gold);
  border-radius: 14px;
  color: #334155;
  background: #f8fafc;
  line-height: 1.72;
}

.service-bullet-grid {
  gap: 14px;
}

.service-bullet-pill {
  align-items: flex-start;
  min-height: 64px;
  background: #f8fafc;
  border: 1px solid #edf1f6;
}

.service-bullet-pill span {
  margin-top: 1px;
  color: var(--gold);
}

.service-bullet-pill strong {
  font-weight: 800;
}

.service-card-icon svg,
.service-card-icon svg * {
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card-icon {
  color: var(--gold);
}




/* Maple Tech Solutions logo credit */
.developer-credit-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  text-align: right;
}

.developer-credit-logo a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  max-width: 230px;
}

.developer-credit-logo img {
  width: 210px;
  height: auto;
  max-height: 70px;
  object-fit: contain;
  filter: none !important;
}

@media (max-width: 720px) {
  .developer-credit-logo {
    align-items: flex-start;
    text-align: left;
  }

  .developer-credit-logo img {
    width: 190px;
  }
}


/* Official Maple Tech Solutions logo */
.developer-credit-logo img {
  width: min(360px, 82vw);
  max-height: 115px;
  object-fit: contain;
  filter: none !important;
}

.developer-credit-logo a {
  max-width: 380px;
}

@media (max-width: 720px) {
  .developer-credit-logo img {
    width: min(300px, 82vw);
    max-height: 95px;
  }
}


/* Simple Maple Tech footer credit */
.developer-credit-logo {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  text-align: right;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
}

.developer-credit-logo span {
  white-space: nowrap;
}

.developer-credit-logo a {
  display: inline-flex;
  align-items: center;
  max-width: 180px;
}

.developer-credit-logo img {
  width: 155px !important;
  max-height: 48px !important;
  object-fit: contain;
  filter: none !important;
}

@media (max-width: 720px) {
  .developer-credit-logo {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    text-align: left;
  }

  .developer-credit-logo img {
    width: 145px !important;
    max-height: 45px !important;
  }
}


/* Dynamic moving service card */
.service-showcase {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  animation: serviceFloat 7s ease-in-out infinite;
}

.service-showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0%, transparent 38%, rgba(255,255,255,0.30) 50%, transparent 62%, transparent 100%);
  transform: translateX(-120%);
  animation: serviceShine 6.5s ease-in-out infinite;
}

.service-showcase-media { overflow: hidden; }

.service-showcase-media img {
  transform-origin: center;
  animation: serviceImageMotion 12s ease-in-out infinite alternate;
  transition: transform 0.6s ease, filter 0.6s ease;
}

.service-showcase:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(8, 23, 51, 0.14);
}

.service-showcase:hover .service-showcase-media img { filter: saturate(1.05) contrast(1.03); }

.service-showcase-content h3,
.service-detail-summary,
.service-detail-note { animation: serviceTextRise 0.65s ease both; }

.service-bullet-pill {
  animation: servicePillRise 0.58s ease both;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.service-bullet-pill:nth-child(1) { animation-delay: 0.04s; }
.service-bullet-pill:nth-child(2) { animation-delay: 0.08s; }
.service-bullet-pill:nth-child(3) { animation-delay: 0.12s; }
.service-bullet-pill:nth-child(4) { animation-delay: 0.16s; }
.service-bullet-pill:nth-child(5) { animation-delay: 0.20s; }
.service-bullet-pill:nth-child(6) { animation-delay: 0.24s; }

.service-bullet-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(8, 23, 51, 0.08);
  background: #ffffff;
}

.service-animate .service-showcase-content { animation: serviceContentChange 0.55s ease both; }
.service-animate .service-showcase-media img { animation: serviceImageChange 0.7s ease both, serviceImageMotion 12s ease-in-out infinite alternate; }

@keyframes serviceFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes serviceShine { 0%, 70% { transform: translateX(-120%); opacity: 0; } 78% { opacity: 1; } 100% { transform: translateX(120%); opacity: 0; } }
@keyframes serviceImageMotion { 0% { transform: scale(1.04) translate3d(-6px, 0, 0); } 50% { transform: scale(1.08) translate3d(8px, -4px, 0); } 100% { transform: scale(1.05) translate3d(-3px, 5px, 0); } }
@keyframes serviceContentChange { 0% { opacity: 0; transform: translateY(16px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes serviceImageChange { 0% { opacity: 0.72; transform: scale(1.12); } 100% { opacity: 1; transform: scale(1.04); } }
@keyframes serviceTextRise { 0% { opacity: 0; transform: translateY(12px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes servicePillRise { 0% { opacity: 0; transform: translateY(12px); } 100% { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .service-showcase,
  .service-showcase::after,
  .service-showcase-media img,
  .service-bullet-pill,
  .service-showcase-content h3,
  .service-detail-summary,
  .service-detail-note { animation: none !important; }
}


/* Background cards without dates */
.edu-card.no-date {
  grid-template-columns: 1fr;
  padding: 28px 34px;
}

.edu-card.no-date h3 {
  margin-bottom: 10px;
}

@media (max-width: 720px) {
  .edu-card.no-date {
    padding: 24px;
  }
}


/* Experience card date and years label */
.edu-card.experience-card {
  gap: 18px;
  border-color: rgba(183, 131, 43, 0.24);
  background:
    linear-gradient(135deg, rgba(183, 131, 43, 0.08), rgba(255, 255, 255, 0.96));
}

.experience-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 2px;
}

.experience-meta span {
  color: var(--gold);
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.experience-meta strong {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--navy-950);
  background: #f3ead8;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}


/* Keep email on one line */
.contact-card-email {
  grid-column: 1 / -1;
}

.contact-card-email span,
.contact-card-email a {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

.contact-card-email a {
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

@media (max-width: 720px) {
  .contact-card-email {
    grid-column: auto;
  }

  .contact-card-email span,
  .contact-card-email a {
    white-space: normal;
  }
}


/* Show full service images without cropping */
.service-showcase-media {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.96), rgba(239, 243, 248, 0.96));
}

.service-showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center center;
  padding: 0;
}


/* Service categories styled like the reference design */
.services-section .services-container {
  width: min(1300px, calc(100% - 40px));
}

.service-menu-grid {
  width: min(1240px, 100%);
  margin: 0 auto 36px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.service-card {
  min-height: 304px;
  padding: 36px 34px 28px;
  border-radius: 28px;
  border: 1px solid #e3e8f3;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 10px 34px rgba(8, 23, 51, 0.05);
  justify-content: flex-start;
  gap: 22px;
}

.service-card:hover,
.service-card.active {
  transform: translateY(-3px);
  border-color: #9fb2f2;
  box-shadow: 0 18px 42px rgba(8, 23, 51, 0.10);
}

.service-card-icon-wrap {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  background: #efe9dc;
  flex: 0 0 auto;
}

.service-card.active .service-card-icon-wrap {
  background: #efe9dc;
}

.service-card-icon {
  font-size: 2rem;
  color: #bc8b2f;
  line-height: 1;
}

.service-card strong {
  width: 100%;
  color: var(--navy-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 2vw, 2.05rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.service-card-hint {
  margin-top: auto;
  max-width: 190px;
  color: #4c6dcc;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.15;
  text-transform: uppercase;
}

@media (max-width: 1180px) {
  .service-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(860px, 100%);
  }

  .service-card {
    min-height: 250px;
  }
}

@media (max-width: 640px) {
  .service-menu-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card {
    min-height: 210px;
    padding: 28px 24px 24px;
    border-radius: 24px;
  }

  .service-card-icon-wrap {
    width: 74px;
    height: 74px;
  }

  .service-card strong {
    font-size: clamp(1.45rem, 7vw, 1.85rem);
  }

  .service-card-hint {
    font-size: 0.82rem;
  }
}


/* Copyright line */
.copyright-line {
  width: 100%;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.78rem;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .copyright-line {
    margin-top: 8px;
  }
}


/* Final fixed footer layout */
.footer {
  background: var(--navy-950);
  color: white;
  padding: 46px 0 30px;
}

.footer-clean {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  align-items: center;
  gap: 28px 44px;
}

.footer-real-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.footer-real-logo img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: none !important;
  flex: 0 0 auto;
}

.footer-logo-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.footer-logo-copy strong {
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 1.5vw, 1.34rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.footer-logo-copy em {
  color: #8ea6e8;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.footer-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 34px;
}

.footer-top-link {
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.footer-top-link:hover {
  color: #d8bb86;
}

.developer-credit-logo {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  text-align: right;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  white-space: nowrap;
}

.developer-credit-logo a {
  display: inline-flex;
  align-items: center;
  max-width: 150px;
}

.developer-credit-logo img {
  width: 130px !important;
  max-height: 40px !important;
  object-fit: contain;
  filter: none !important;
}

.copyright-line {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 920px) {
  .footer-clean {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-right {
    width: 100%;
    justify-content: space-between;
    gap: 18px;
  }

  .copyright-line {
    text-align: left;
  }
}

@media (max-width: 620px) {
  .footer {
    padding: 36px 0 26px;
  }

  .footer-right {
    flex-direction: column;
    align-items: flex-start;
  }

  .developer-credit-logo {
    justify-content: flex-start;
    text-align: left;
  }

  .footer-real-logo img {
    width: 50px;
    height: 50px;
  }

  .footer-logo-copy strong {
    white-space: normal;
  }

  .footer-logo-copy em {
    white-space: normal;
    font-size: 0.58rem;
  }

  .developer-credit-logo img {
    width: 120px !important;
    max-height: 38px !important;
  }
}


/* Hidden anti-spam field for Formspree */
.form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  pointer-events: none !important;
}


/* Final header fit fix - prevents the navigation from being cut off on desktop/zoomed screens */
.header-inner {
  grid-template-columns: minmax(320px, 500px) minmax(0, 1fr) auto;
  gap: 18px;
}

.brand-text-logo {
  max-width: 500px;
  gap: 14px;
}

.brand-text-logo img {
  width: 58px;
  height: 58px;
}

.brand-copy strong {
  font-size: clamp(1.12rem, 1.18vw, 1.45rem);
}

.brand-copy em {
  font-size: clamp(0.58rem, 0.68vw, 0.78rem);
  letter-spacing: 0.12em;
}

.main-nav {
  gap: 16px;
}

.main-nav a {
  font-size: 0.70rem;
  letter-spacing: 0.045em;
}

.header-actions {
  gap: 10px;
}

.header-actions .btn-small {
  padding: 10px 13px;
  font-size: 0.68rem;
}

@media (max-width: 1450px) {
  .header-inner {
    grid-template-columns: 1fr auto auto;
    gap: 14px;
  }

  .menu-toggle,
  .menu-button {
    display: block;
    order: 2;
  }

  .main-nav {
    position: fixed;
    top: 88px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow);
  }

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

  .main-nav a {
    padding: 14px 0;
    font-size: 0.9rem;
  }

  .header-actions .btn {
    display: none;
  }
}

/* Updated developer credit: Maplovo Tech Solutions */
.developer-credit-logo a {
  max-width: 190px;
}

.developer-credit-logo img {
  width: 170px !important;
  max-height: 64px !important;
}

@media (max-width: 640px) {
  .developer-credit-logo a {
    max-width: 170px;
  }

  .developer-credit-logo img {
    width: 155px !important;
    max-height: 58px !important;
  }
}
