/* ===========================================================
   Who We Are — Albatross Software Services
   Standalone section styles (header/footer excluded)
   =========================================================== */

:root {
  --bg:            #05060a;
  --card-bg:       #f5f6f8;
  --panel-bg:      #0d0f16;
  --panel-border:  rgba(255, 255, 255, 0.07);
  --text-body:     #aab0c0;
  --text-heading:  #f5f6f8;
  --accent:        #f6a623;
  --accent-soft:   rgba(246, 166, 35, 0.35);
  --cert-title:    #1c1f2a;
  --cert-sub:      #6b7180;

  --max-width: 1320px;
  --gutter: clamp(20px, 4vw, 60px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.who-we-are {
  background: var(--bg);
  padding: clamp(48px, 8vw, 96px) var(--gutter) clamp(56px, 8vw, 100px);
  overflow: hidden;
}

/* ---------------------------------------------------------
   Heading + decorative wave lines
   --------------------------------------------------------- */

.wwa-heading {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: var(--max-width);
  margin: 0 auto clamp(40px, 6vw, 72px);
  height: clamp(120px, 16vw, 200px);
}

.wwa-heading h1 {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0 24px;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--accent);
  text-align: center;
}

.wave {
  position: absolute;
  top: 50%;
  width: min(48vw, 620px);
  height: 100%;
  transform: translateY(-50%);
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1.4;
}

.wave-left {
  left: -60px;
}

.wave-right {
  right: -60px;
  transform: translateY(-50%) scaleX(-1);
}

/* ---------------------------------------------------------
   Intro: copy + certification grid
   --------------------------------------------------------- */

.wwa-intro {
  max-width: var(--max-width);
  margin: 0 auto clamp(48px, 7vw, 88px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.wwa-copy p {
  margin: 0;
  color: var(--text-body);
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
  line-height: 1.85;
  font-weight: 300;
}

.wwa-certs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.cert-card {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 125px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cert-card:hover,
.cert-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

.cert-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.cert-card img {
  width: 100px;
  height: 95px;
  object-fit: contain;
  flex-shrink: 0;
}

.cert-card > span {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--cert-title);
  line-height: 1.3;
}

.cert-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cert-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cert-title);
  line-height: 1.3;
}

.cert-sub {
  font-size: 0.78rem;
  color: var(--cert-sub);
  line-height: 1.4;
}

/* ---------------------------------------------------------
   Photo gallery
   --------------------------------------------------------- */

.wwa-gallery {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

/* ---------------------------------------------------------
   Certificate preview modal
   --------------------------------------------------------- */

.cert-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 6, 10, 0.82);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.cert-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.cert-modal-box {
  position: relative;
  max-width: min(560px, 92vw);
  max-height: 88vh;
  background: var(--card-bg);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
  transform: scale(0.94);
  transition: transform 0.2s ease;
}

.cert-modal-overlay.is-open .cert-modal-box {
  transform: scale(1);
}

.cert-modal-img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: calc(88vh - 20px);
  object-fit: contain;
  border-radius: 6px;
}

.cert-modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--text-heading);
  color: #05060a;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, background 0.15s ease;
}

.cert-modal-close:hover,
.cert-modal-close:focus-visible {
  background: var(--accent);
  transform: scale(1.08);
}

body.cert-modal-lock {
  overflow: hidden;
}

/* ---------------------------------------------------------
   Responsive breakpoints
   --------------------------------------------------------- */

@media (max-width: 980px) {
  .wwa-intro {
    grid-template-columns: 1fr;
  }

  .wwa-gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .wave {
    width: 34vw;
  }
}

@media (max-width: 700px) {
  .wwa-certs {
    grid-template-columns: 1fr 1fr;
  }

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

  .wave {
    display: none;
  }

  .wwa-heading {
    height: auto;
    padding: 20px 0;
  }
}

@media (max-width: 460px) {
  .wwa-certs {
    grid-template-columns: 1fr;
  }

  .wwa-gallery {
    grid-template-columns: 1fr;
  }

  .cert-card {
    min-height: auto;
  }

  .cert-modal-close {
    top: -10px;
    right: -10px;
  }
}

/* ---------------------------------------------------------
   Reduced motion
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .gallery-item img,
  .cert-card,
  .cert-modal-overlay,
  .cert-modal-box,
  .cert-modal-close {
    transition: none;
  }
}