/* ==========================================================================
   Fermec — Coming Soon
   Betonstar corporate web design language, applied to the Fermec identity.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


@font-face {
  font-family: "Montserrat";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Montserrat";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */
:root {
  --font: "Montserrat", sans-serif;

  --ink: #1d1d1d;
  --black: #050708;
  --muted: #505050;
  --gray: #959aa1;
  --gray-tile: #abb0b4;
  --gray-stripe: #858c93;
  --surface: #edeef4;
  --line: #e2e3e9;
  --white: #ffffff;

  --header-h: 88px;
  --stripe-h: 14px;
  --container: 1100px;
  --gutter: 24px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 0.84, 0.3, 1);
}

/* --------------------------------------------------------------------------
   3. Reset / base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-synthesis: none;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
figure,
ul {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

address {
  font-style: normal;
}

::selection {
  background: var(--ink);
  color: var(--white);
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 50;
}

.header-bar {
  position: relative;
  height: var(--header-h);
  background: var(--gray);
}

.header-inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2.4vw, 34px);
}

.header-stripe {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--stripe-h);
  background-color: var(--gray);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M1.4 1.4h8.05l3.15 3.15H4.55v8.05l-3.15-3.15Z' fill='%23ffffff' fill-opacity='0.16'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: left bottom;
  background-size: 14px var(--stripe-h);
}

/* Logo tile ---------------------------------------------------------------- */
.logo-tile {
  position: absolute;
  left: 0;
  top: -30px;
  width: 240px;
  height: 181px;
  overflow: hidden;
  z-index: 3;
}

.logo-tile__link {
  display: block;
  width: 100%;
  height: 100%;
}

.logo-tile__logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
}

/* Navigation --------------------------------------------------------------- */
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  color: #f8f8f8;
  transition: color 0.25s var(--ease);
}

.main-nav a:hover {
  color: var(--white);
}

.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  background: var(--white);
}

.main-nav .nav-phone {
  margin-left: 4px;
  padding-left: 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.header-call {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: var(--white);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.header-call svg {
  width: 18px;
  height: 18px;
}

.header-call:hover {
  background: var(--white);
  color: var(--gray);
}

/* Language ----------------------------------------------------------------- */
.lang {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 0;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.25s var(--ease);
}

.lang button:hover,
.lang button[aria-pressed="true"] {
  color: var(--white);
}

.lang button img {
  width: 20px;
  height: 15px;
  object-fit: cover;
}

.lang-sep {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.35);
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  min-height: clamp(500px, 64vh, 660px);
  background: var(--ink);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 48px;
  padding-top: clamp(72px, 9vh, 104px);
  padding-bottom: clamp(40px, 5vh, 64px);
}

.hero-main {
  display: flex;
  flex-direction: column;
  gap: 28px;
  animation: riseIn 1s var(--ease) 0.25s both;
}

.hero-title {
  font-size: clamp(54px, 8.4vw, 118px);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white);
}

.hero-title span {
  display: block;
}

.hero-title__strong {
  font-weight: 800;
}

.hero-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 40px;
}

.hero-lead {
  font-size: 17px;
  line-height: 1.55;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.8);
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  transition: border-color 0.25s var(--ease), gap 0.25s var(--ease);
}

.hero-link svg {
  width: 18px;
  height: 18px;
}

.hero-link:hover {
  gap: 15px;
  border-color: var(--white);
}

/* --------------------------------------------------------------------------
   6. Contact
   -------------------------------------------------------------------------- */
.contact {
  background: var(--surface);
  padding: clamp(64px, 8vw, 96px) 0 clamp(72px, 9vw, 104px);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 550px) 430px;
  gap: 60px;
  align-items: start;
}

.contact-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-eyebrow::before {
  content: "";
  width: 38px;
  height: 2px;
  background: var(--gray-stripe);
  flex: none;
}

.contact-title {
  margin-top: 20px;
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.contact-title__strong {
  display: block;
  font-weight: 800;
}

.contact-title__light {
  display: block;
  font-weight: 300;
}

.contact-intro {
  margin-top: 22px;
  max-width: 480px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
}

.contact-list {
  margin-top: 46px;
  display: grid;
  gap: 28px;
  max-width: 470px;
}

.contact-item h3 {
  margin: 0 0 8px;
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-item address,
.contact-value {
  display: block;
  margin-top: 0;
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
}

.contact-value {
  display: inline-block;
}

.contact-value:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-map {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding-bottom: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid rgba(29, 29, 29, 0.25);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.contact-map svg {
  width: 12px;
  height: 12px;
}

.contact-map:hover {
  border-color: var(--ink);
}

/* Coming soon card --------------------------------------------------------- */
.coming-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--ink);
  color: var(--white);
  padding: clamp(28px, 3.4vw, 42px);
  overflow: hidden;
}

.coming-card > * {
  position: relative;
  z-index: 1;
}

.coming-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.coming-badge__square {
  width: 8px;
  height: 8px;
  background: var(--gray-tile);
}

.coming-card__mark {
  width: 180px;
  height: auto;
  margin-top: 30px;
}

.coming-card__title {
  margin-top: 22px;
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--white);
}

.coming-card__title strong {
  font-weight: 800;
}

.coming-card__text {
  margin-top: 12px;
  max-width: 340px;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
}

.coming-card__bottom {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.btn-arrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 52px;
  padding-left: 20px;
  border: 1px solid var(--white);
  background: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.btn-arrow__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: -1px -1px -1px 0;
  background: var(--ink);
  color: var(--white);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.btn-arrow__icon svg {
  width: 19px;
  height: 19px;
}

.btn-arrow:hover {
  background: var(--gray-tile);
  border-color: var(--gray-tile);
  color: var(--ink);
}

.btn-arrow:hover .btn-arrow__icon {
  background: var(--ink);
  color: var(--white);
}

.coming-card__call {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 16px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.coming-card__call strong {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--white);
  text-transform: none;
}

.coming-card__call:hover strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   7. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--gray);
  color: var(--white);
}

.footer-top {
  padding: 72px 0 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 32px;
  align-items: start;
}

.footer-brand {
  display: block;
}

.footer-brand img {
  display: block;
  width: 200px;
  height: auto;
}

.footer-col h3 {
  margin-bottom: 15px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li {
  font-size: 13.5px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.86);
}

.footer-col li + li {
  margin-top: 5px;
}

.footer-col a {
  transition: color 0.2s var(--ease);
}

.footer-col a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-social {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 10px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.85);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.footer-social a:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--gray);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  position: relative;
  background-color: var(--gray);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M4 4h23l9 9H13v23l-9-9Z' fill='%23ffffff' fill-opacity='0.16'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 40px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-height: 91px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.92);
}

.footer-copy {
  font-weight: 600;
  letter-spacing: 0.04em;
}

.footer-legal {
  text-align: center;
}

.to-top {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  color: var(--white);
  flex: none;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.to-top svg {
  width: 15px;
  height: 15px;
}

.to-top:hover {
  background: var(--white);
  color: var(--gray);
  border-color: var(--white);
}

/* --------------------------------------------------------------------------
   8. Floating contact widget
   -------------------------------------------------------------------------- */
.float-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: 200px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 18px 45px -12px rgba(0, 0, 0, 0.38);
  overflow: hidden;
  animation: riseIn 0.8s var(--ease) 0.7s both;
}

.float-widget a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  transition: background-color 0.2s var(--ease);
}

.float-widget a + a {
  border-top: 1px solid #e8e8ea;
}

.float-widget a:hover {
  background: #f6f6f7;
}

.float-widget svg {
  width: 20px;
  height: 20px;
  flex: none;
}

/* --------------------------------------------------------------------------
   9. Motion
   -------------------------------------------------------------------------- */
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   10. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .header-inner {
    gap: 22px;
  }

  .main-nav {
    gap: 22px;
  }

  .main-nav .nav-phone {
    padding-left: 22px;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 44px;
  }

  .footer-grid {
    gap: 26px;
  }
}

@media (max-width: 1024px) {
  .logo-tile {
    width: 220px;
    height: 171px;
    top: -28px;
  }

  .main-nav .nav-phone {
    display: none;
  }

}

@media (max-width: 1024px) {
  .float-widget {
    display: none;
  }
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .header-call {
    display: grid;
  }

  .logo-tile {
    width: 190px;
    height: 148px;
    top: -22px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .contact-main {
    max-width: 100%;
  }

  .coming-card {
    max-width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-social {
    justify-content: flex-start;
  }

  .hero-content {
    padding-top: 84px;
    padding-bottom: 28px;
  }

}

@media (max-width: 720px) {
  :root {
    --header-h: 72px;
    --stripe-h: 12px;
  }

  .header-inner {
    gap: 14px;
  }

  .logo-tile {
    width: 168px;
    height: 130px;
    top: -18px;
  }

  .lang button span {
    display: none;
  }

  .lang button {
    padding: 9px 2px;
  }

  .hero-content {
    padding-top: 70px;
    padding-bottom: 24px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-foot {
    gap: 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .contact {
    padding: 54px 0 68px;
  }

  .contact-title {
    font-size: clamp(34px, 9vw, 46px);
  }

  .contact-intro {
    font-size: 14.5px;
  }

  .contact-item address,
  .contact-value {
    font-size: 15.5px;
  }

  .coming-card {
    padding: 28px 24px 26px;
  }

  .coming-card__mark {
    width: 150px;
  }

  .coming-card__title {
    font-size: 24px;
  }

  .footer-top {
    padding: 46px 0 40px;
  }

  .footer-brand img {
    width: 170px;
  }

  .footer-bottom__inner {
    flex-wrap: wrap;
    gap: 6px 18px;
    padding: 18px 0;
    min-height: 0;
  }

  .footer-legal {
    text-align: left;
  }

  .to-top {
    margin-left: auto;
  }

}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-brand {
    grid-column: auto;
  }
}

@media (max-width: 420px) {
  .container {
    width: calc(100% - 40px);
  }

  .logo-tile {
    width: 152px;
    height: 120px;
  }

  .footer-bottom__inner {
    font-size: 10.5px;
  }
}

@media (max-width: 360px) {
  .header-call {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   11. Reduced motion / print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .site-header,
  .float-widget,
  .to-top,
  .hero-link {
    display: none;
  }

  .hero {
    min-height: 360px;
  }

  .footer-bottom::before {
    display: none;
  }
}
