:root {
  --accent: #d4a84a;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: 'Playfair Display', serif;
  color: black;
  background: white;
  min-height: 100vh;
  padding-top: 93px;
}

h2 {
  margin: 0;
  padding: 0;
  border: 0;
}

a {
  color: inherit;
}

section,
header {
  scroll-margin-top: 93px;
}

img {
  max-width: 100%;
  display: block;
}

.site-shell {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0px 32px 92px;
}

.logo {
  height: 70px;
  width: 70px;
  padding: 10px;
}

.nav-shell {
  overflow-x: hidden;
  width: 100%;
  max-width: 1500px;
  min-height: 93px;
  margin: 0 auto;
  padding: 12px 32px;
  display: flex;
  gap: 30px;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.10);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px dashed rgba(0, 0, 0, 0.65);
  z-index: 20;
  transition: box-shadow 220ms ease, background 220ms ease;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: black;
  display: block;
}

.brand {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  color: black;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.brand p {
  margin: 0;
  line-height: 1;
}

.brand .accent {
  color: black;
  font-style: italic;
  margin-right: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 0.77rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 17px;
  border-radius: 999px;
  transition: ease-in 80ms background, ease-in 80ms color;
}

.nav-links a:hover {
  background-color: black;
  color: white;
}
.nav-links a.active {
  background-color: var(--accent);
}
.nav-links a.active:hover {
  padding: 13px 15px;
  border: 2px solid black;
  color: black;
}

.seperator {
  border-bottom: 1px dotted black;
}

.hero-visual {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 140px 32px 78px;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(212,169,74,0.12), transparent 24%),
    radial-gradient(circle at 88% 15%, rgba(224,122,59,0.06), transparent 30%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  text-align: center;
  align-items: center;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(58px, 10vw, 110px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  margin: 0 0 100px;
  color: black
}

.hero-title .accent {
  color: black;
  font-style: italic;
  padding-right: 18px;
}

.hero-sub {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.85;
  max-width: 900px;
  margin: 0 auto 34px;
}

.hero-cta {
  display: inline-flex;
  gap: 25px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
  margin-top: 25px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 0 30px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  text-decoration: none;
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: black;
  color: white;
}

.button.secondary {
  border: 1px solid black
}

.section-heading {
  margin-bottom: 36px;
}

.about-copy .about-content {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  text-align: justify;
  font-size: 1.05em;
  line-height: -0.2em;
  margin: 0 0 20px;
  line-height: 1.88;
  max-width: 50vw;
}

.eyebrow {
  font-family: 'Inter', sans-serif; 
  display: inline-block;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 900;
}

#hero-eyebrow {
  margin-bottom: 9px;
}

.eyebrow-container {
  display: inline-block;
  justify-content: center;
  align-items: center;
  width: fit-content;
  padding: 10px 25px;
  border-radius: 999px;
  background-color: var(--accent);
  margin-bottom: 20px;
}

.section-heading h2 {
  margin-bottom: 24px;
  margin-top: 0;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 4vw, 4.4rem);
}

.cert-counter-holder {
  width: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cert-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-radius: 999px;
  background: black;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 24px 80px rgba(0, 0, 0, 0.5);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cert-counter-current,
.cert-counter-divider,
.cert-counter-total {
  color: white
}

.about-grid,
.services,
.testimonials,
.faqs,
.contact-card,
.site-foot,
.experience,
#why,
#certifications {
  padding: 88px 18px;
}

.faq-item {
  border-bottom: 1px solid black;
}

.faq-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  border: 0;
  padding: 22px 0;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.faq-question {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  padding-left: 16px;
}

.faq-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-right: 2px solid black;
  border-bottom: 2px solid black;
  transform: rotate(45deg);
  transition: transform 220ms ease;
  margin-right: 16px;
}

.faq-item.active .faq-icon {
  transform: rotate(-135deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 260ms ease, opacity 220ms ease, padding-bottom 220ms ease;
  margin-left: 32px;
  margin-right: 60px;
}

.faq-item.active .faq-answer {
  max-height: 220px;
  opacity: 1;
  margin-bottom: 16px;
}

.faq-answer p {
  text-align: justify;
  margin: 0;
  font-family: 'Playfair Display', serif;
  line-height: 1.8;
}

.about-grid {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.portrait-wrap {
  position: relative;
  width: 360px;
  max-width: 500px;
  margin: 0 auto;
}

.portrait-ring {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 46%/12%;
  padding: 1em;
  background: black;
}

.portrait-ring::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,0.06);
}

.portrait-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 46%/12%;
  border: 3px solid white;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1), 0 26px 72px rgba(0,0,0,1);
}

.about-copy h2 {
  margin-bottom: 24px;
  margin-top: 0;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 4vw, 4.4rem);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 24px;
}

.why-card {
  padding: 28px 24px 26px;
  border-radius: 18px;
  border: 1px solid rgba(212,169,74,0.22);
  border-radius: 30px;
  background: rgba(255,255,255,0.02);
  box-shadow: 0 28px 75px rgba(0,0,0, 0.1);
  min-height: 300px;
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms;
}

.why-card:hover{
  transform: translateY(-5px);
  border: 1px solid black;
  box-shadow: 0 28px 75px rgba(0,0,0, 0.2);
}

.why-card-header {
  min-height: 75px;
  justify-content: center;
}

.why-card h3 {
  font-family: 'Inter', sans-serif;
  margin: 0 0 14px;
  font-size: 1.2rem;
  letter-spacing: 0.07em;
  font-weight: 900;
}

.why-card p {
  margin: 0;
  line-height: 1.85;
}

.service-list,
.experience-list {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.service-card,
.experience-card {
  position: relative;
  padding: 15px 28px 32px;
  border-radius: 18px;
  border: 1px solid rgba(212,169,74,0.22);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 28px 75px rgba(0,0,0, 0.1);
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.test-card .quotation {
  font-size: 3em;
  font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

.service-card:hover,
.experience-card:hover {
  transform: translateY(-6px);
  border: 1px solid black;
  box-shadow: 0 36px 90px rgba(0,0,0,0.2);
}

.service-num {
  width: 38px;
  height: 38px;
  color: white;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: black;
  font-weight: 700;
  font-size: 0.9rem;
}

.service-card h3,
.experience-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
}

.service-card p,
.experience-card p,
.exp-text {
  margin: 1em 0 0 0;
  line-height: 1.8;
  text-align: justify;
}

.exp-text {
  font-size: 1.1em;
}

.exp-intro {
  text-align: justify;
  font-size: 1.1em;
  margin-bottom: 1.2em;
}

.service-card-header {
  height: auto;
  width: 100%;
  display: inline-flex;
  gap: 15px;
  align-items: center;
}

.cert-carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 26px;
}

.cert-controls {
  position: absolute;
  inset: 50% 0 auto 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 12px;
  pointer-events: none;
}

.cert-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: black;
  border: 1px solid black;
  color: white;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 220ms ease, border-color 220ms ease;
  z-index: 2;
  pointer-events: auto;
}

.cert-btn:hover {
  color: black;
  transform: translateX(-1px);
  background: white;
  border: 1px solid black;
}

.cert-btn:disabled {
  background: grey;
  border: grey;
  cursor: default;
  transform: none;
}

.cert-btn:disabled:hover {
  background: grey;
  border: grey;
  color:white;
  cursor: default;
  transform: none;
}

.cert-prev,
.cert-next {
  position: relative;
  transform: none;
}

.cert-viewport {
  overflow: hidden;
  flex: 1 1 auto;
  max-width: 85%;
  position: relative;
  border-radius: 27px;
  padding: 5px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1), 0 24px 80px rgba(0,0,0,0.18);
}

.cert-track {
  display: flex;
  gap: 24px;
  scroll-snap-type: x mandatory;
  transition: transform 220ms ease;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.cert-track::-webkit-scrollbar {
  display: none;
}

.cert-card {
  min-width: 100%;
  max-width: 100%;
  min-height: min-content;
  background: white;
  position: relative;
  padding: 20px;
  border-radius: 24px;
  border: 4px solid;
  scroll-snap-align: start;
}

.heading-seperator {
  margin: 0.7em;
  border-bottom: 1px dashed black;
}

.cert-card h2 {
  margin: 0.5em 0.5em 0;
}

.cert-card h3 {
  margin: 0.7em 1.2em 1.2em 0.7em;
  font-family: 'Inter', sand-Serif;
}

.cert-content {
  margin-left: 1.4em;
}

.cert-content h4 {
  font-size: 1.1em;
}

.cert-card > small {
  font-style: italic;
  font-size: 1rem;
}

.cert-card p {
  margin: 0;
  line-height: 1.8;
}

.testimonials-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 26px;
}

.contact-card .margined {
  max-width: 760px;
  margin: 0 0 32px;
  line-height: 1.85;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.contact-box {
  padding: 28px 24px;
  border-radius: 18px;
  border: 1px solid black;
  background: rgba(255,255,255,0.015);
  box-shadow: 0 24px 55px rgba(0,0,0,0.16);
}

.contact-box h3 {
  margin: 0 0 10px;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-box a,
.contact-box div {
  font-size: 0.95rem;
  line-height: 1.85;
}

.site-foot {
  padding: 64px 18px;
}

.foot-contacts {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.legal {
  font-size: 0.9rem;
}

.form-space {
  margin: 0 10em 40px;
  text-align: center;
  border: 3px solid transparent;
  background:
    linear-gradient(white, white) padding-box,
    linear-gradient(45deg, #9B111E, #7851A9, #9B111E) border-box;
  background-size: 100% 100%;
}

@media (max-width: 1250px) {
  .menu-toggle {
    display: inline-flex;
    gap: 4px;
    width: 38px;
    height: 38px;
  }

  .site-shell {
    padding: 14px 18px 0;
  }

  .nav-shell {
    min-height: 0;
    gap: 16px;
    flex-wrap: wrap;
    height: auto;
  }

  .logo {
    width: 35px;
    height: 35px;
    padding: 0;
  }

  .nav-links {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: max-height 320ms ease, opacity 220ms ease, transform 220ms ease;
  }

  .topbar.mobile-open .nav-links {
    max-height: 1000px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .topbar.mobile-open {
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
  }

  .nav-links a {
    margin-left: 20px;
    padding: 10px 10px;
    font-size: 0.68rem;
  }

  .nav-links a.active:hover {
    margin-left: 20px;
    padding: 8px 8px;
    font-size: 0.68rem;
  }

  .nav-links a:last-child {
    margin-bottom: 24px;
  }

  .about-grid,
  .contact-grid,
  .testimonials-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    display: flex;
    gap: 1fr;
  }

  .portrait-wrap {
    max-width: 25em;
  }

  .hero-visual {
    padding: 100px 22px 56px;
  }

  .cert-carousel {
    flex-direction: column;
    width: 100%;
  }

  .cert-controls {
    position: static;
    transform: none;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-top: 12px;
    padding: 0;
  }

  .cert-btn {
    position: static;
    transform: none;
    max-width: 320px;
  }

  .cert-viewport {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    flex: 1 1 100%;
    align-self: stretch;
  }

  .cert-card {
    min-width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 1000px) {
  .about-grid {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr;
    align-items: center;
    .portrait-ring {
      max-width: 20em;
    }
  }

  .form-space {
    margin: 24px 0 40px;
  }

  .about-copy .about-content {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    text-align: justify;
    font-size: 1.05em;
    line-height: -0.2em;
    margin: 0 0 20px;
    line-height: 1.88;
    max-width: none;
  }
}

@media (max-width: 700px) {
  .site-shell {
    padding: 14px 18px 0;
  }

  .hero-title {
    font-size: clamp(40px, 15vw, 70px);
  }

  .hero-cta {
    width: 100%;
    display: grid;
  }

  .button {
    width: 100%;
  }

  .cert-carousel {
    gap: 12px;
  }

  .section-heading {
    margin-bottom: 28px;
  }
}
