/* =========================================================
   FICORP WEBSITE
   Main editable design variables
   ========================================================= */

:root {
  --beige: #d8d1c9;
  --white: #f8f8f7;
  --text: #303a42;
  --text-soft: #4a535a;
  --teal: #00A88E;
  --dark-circle: #26343d;
  --card: rgba(255, 255, 255, 0.78);
  --border: rgba(48, 58, 66, 0.14);
  --header-height: 72px;
}

@font-face {
  font-family: "Garet";
  src: url("assets/fonts/Garet-Book.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Garet";
  src: url("assets/fonts/Garet-Book.woff2") format("woff2");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: "Garet", Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

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

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

.section {
  min-height: 760px;
  display: flex;
  align-items: center;
  padding: 100px 6vw;
  overflow: hidden;
}

.section-beige { background: var(--beige); }
.section-white { background: var(--white); }

.section-inner {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.narrow { width: min(900px, 100%); }

/* ---------------------------------------------------------
   NAVIGATION
   --------------------------------------------------------- */

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(248, 248, 247, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transform: translateY(-100%);
  transition: transform .25s ease, border-color .25s ease;
}

.site-header.visible {
  transform: translateY(0);
  border-color: var(--border);
}

.brand-mini {
  font-size: .9rem;
  letter-spacing: .12em;
  font-weight: 800;
}

.site-nav {
  display: flex;
  gap: 28px;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.site-nav a:hover { color: var(--teal); }

.menu-toggle { display: none; }

/* ---------------------------------------------------------
   HEADINGS
   --------------------------------------------------------- */

h1, h2, h3, p { margin-top: 0; }

h2 {
  font-size: clamp(3rem, 5.2vw, 5.2rem);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -.035em;
  text-align: center;
}

.hero {
  min-height: 100vh;
  justify-content: center;
  text-align: center;
}

.hero-content {
  width: min(760px, 100%);
  display: flex;
  align-items: center;
  flex-direction: column;
}

.hero-logo {
  width: 96px;
  max-height: 110px;
  object-fit: contain;
  margin-bottom: clamp(90px, 14vh, 150px);
}

.hero h1 {
  font-size: clamp(3.5rem, 6.3vw, 6.6rem);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 800;
  margin-bottom: clamp(70px, 12vh, 125px);
}

.hero h1 span { color: var(--teal); }

.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 270px;
  min-height: 74px;
  padding: 18px 28px;
  border: 1.5px solid var(--teal);
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: none;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.outline-button:hover {
  background: var(--teal);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------------------------------------------------------
   ABOUT
   --------------------------------------------------------- */

.about { text-align: center; }

.section-logo {
  width: 68px;
  height: 68px;
  object-fit: contain;
  margin: 0 auto 52px;
}

.about h2 { margin-bottom: 40px; }

.about-copy {
  max-width: 860px;
  margin: 0 auto;
  font-size: clamp(1.1rem, 1.8vw, 1.42rem);
  line-height: 1.62;
  letter-spacing: .02em;
}

.about-copy p + p { margin-top: 28px; }

/* ---------------------------------------------------------
   SERVICES
   --------------------------------------------------------- */

.services { align-items: flex-start; }

.services h2 { margin: 0 0 100px; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.service-card {
  position: relative;
  min-height: 360px;
  padding: 88px 30px 42px;
  background: var(--card);
}

.icon-circle {
  position: absolute;
  top: -54px;
  left: 50%;
  transform: translateX(-50%);
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: var(--dark-circle);
  display: grid;
  place-items: center;
}

.icon-circle svg {
  width: 58px;
  height: 58px;
  fill: none;
  stroke: var(--teal);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  line-height: 1.3;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 800;
}

.service-card p {
  position: relative;
  margin: 28px 0 0;
  padding-left: 24px;
  font-size: 1.22rem;
  line-height: 1.4;
}

.service-card p::before {
  content: "•";
  position: absolute;
  left: 0;
}

/* ---------------------------------------------------------
   IMPACT
   --------------------------------------------------------- */

.impact { align-items: flex-start; }

.impact h2 { margin-bottom: 80px; }

.impact-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.impact-stats {
  display: grid;
  gap: 54px;
}

.stat {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  align-items: center;
}

.stat-icon svg {
  width: 110px;
  height: 90px;
  fill: none;
  stroke: var(--teal);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat strong {
  display: block;
  font-size: clamp(3.4rem, 5vw, 5.4rem);
  line-height: .95;
  font-weight: 800;
}

.stat span {
  display: block;
  margin-top: 12px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .03em;
}

/* Six-step cycle: CSS approximation that can be replaced with an SVG later */
.cycle-wrap {
  display: flex;
  justify-content: center;
}

.professional-cycle {
  position: relative;
  width: min(500px, 80vw);
  aspect-ratio: 1;
  border: 3px solid var(--text);
  border-radius: 50%;
}

.professional-cycle::before {
  content: "";
  position: absolute;
  inset: 23%;
  border: 2px solid var(--text);
  border-radius: 50%;
}

.cycle-center {
  position: absolute;
  inset: 30%;
  z-index: 2;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 800;
  font-size: clamp(1rem, 1.6vw, 1.45rem);
  line-height: 1.15;
}

.cycle-item {
  position: absolute;
  width: 32%;
  text-align: center;
  font-size: clamp(.58rem, 1vw, .78rem);
  font-weight: 800;
}

.item-1 { top: 13%; left: 34%; }
.item-2 { top: 27%; right: 4%; }
.item-3 { top: 59%; right: 4%; }
.item-4 { bottom: 13%; left: 34%; }
.item-5 { top: 59%; left: 4%; }
.item-6 { top: 27%; left: 4%; }

/* ---------------------------------------------------------
   CONTACT
   --------------------------------------------------------- */

.contact { align-items: flex-start; }

.contact-heading {
  max-width: 900px;
  margin: 0 auto 62px;
  text-align: center;
}

.contact-heading h2 { margin-bottom: 22px; }

.contact-heading p {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.12rem;
  line-height: 1.6;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
}

.contact-details {
  padding-right: 70px;
  border-right: 1px solid var(--teal);
}

.contact-intro {
  max-width: 480px;
  font-size: 1.18rem;
  line-height: 1.65;
  margin-bottom: 40px;
}

.contact-detail {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 26px;
}

.contact-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--dark-circle);
  color: var(--teal);
  display: grid;
  place-items: center;
  font-size: 1.8rem;
}

.contact-detail h3 {
  margin-bottom: 3px;
  font-size: .94rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.contact-detail a,
.contact-detail address {
  font-size: 1.08rem;
  font-style: normal;
}

.contact-detail a:hover { color: var(--teal); }

.form-panel label {
  display: block;
  margin: 0 0 9px;
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.form-panel input,
.form-panel textarea {
  width: 100%;
  border: 1px solid rgba(48, 58, 66, .08);
  border-radius: 0;
  padding: 17px 18px;
  margin-bottom: 24px;
  background: rgba(255,255,255,.82);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  outline: none;
}

.form-panel input:focus,
.form-panel textarea:focus {
  border-color: var(--teal);
}

.form-panel textarea {
  min-height: 200px;
  resize: vertical;
}

.form-panel .outline-button {
  min-width: 280px;
  min-height: 62px;
  text-transform: uppercase;
}

.form-status {
  min-height: 1.5em;
  margin-top: 14px;
  font-size: .92rem;
}

/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */

footer {
  padding: 28px 6vw;
  background: var(--dark-circle);
  color: #fff;
  text-align: center;
  font-size: .78rem;
}

footer p { margin: 0; }

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 900px) {
  .section { min-height: auto; padding: 100px 7vw; }

  .site-header { transform: translateY(0); }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    width: min(320px, 86vw);
    padding: 30px;
    flex-direction: column;
    background: var(--white);
    border-left: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transform: translateX(110%);
    transition: transform .25s ease;
  }

  .site-nav.open { transform: translateX(0); }

  .menu-toggle {
    display: grid;
    gap: 5px;
    border: 0;
    background: transparent;
    padding: 10px;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text);
  }

  .hero { min-height: 100svh; }

  .service-grid,
  .impact-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .service-grid { gap: 90px; }

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

  .impact-layout { gap: 60px; }

  .contact-details {
    padding: 0 0 45px;
    border-right: 0;
    border-bottom: 1px solid var(--teal);
  }
}

@media (max-width: 600px) {
  .section { padding: 88px 6vw; }

  .hero-logo {
    width: 82px;
    margin-bottom: 75px;
  }

  .hero h1 { margin-bottom: 75px; }

  .outline-button {
    width: 100%;
    min-width: 0;
  }

  .services h2,
  .impact h2 { margin-bottom: 75px; }

  .service-card { padding-left: 25px; padding-right: 25px; }

  .stat {
    grid-template-columns: 82px 1fr;
    gap: 15px;
  }

  .stat-icon svg {
    width: 78px;
    height: 70px;
  }

  .impact-stats { gap: 38px; }

  .professional-cycle { width: min(430px, 92vw); }

  .contact-layout { gap: 48px; }

  .contact-detail {
    grid-template-columns: 58px 1fr;
    gap: 16px;
  }

  .contact-icon {
    width: 52px;
    height: 52px;
    font-size: 1.35rem;
  }

  .form-panel .outline-button { width: 100%; }
}
