/* =========================================================
   FRIENDS INTERNATIONAL — COMING SOON / WEBSITE UNDER UPDATING
   Visual system derived strictly from Page 1 of Friends Profile 2026
   Fully responsive from 320px mobile to 2560px ultrawide
   ========================================================= */

:root {
  /* Exact brand palette sampled from Page 1 */
  --brand-white: #FDFDFC;
  --brand-surface: #F6F7F9;
  --brand-red: #D8493A;
  --brand-red-dark: #B9382B;
  --brand-blue: #2D74B3;
  --brand-blue-dark: #1E568A;
  --brand-navy: #0F233B;
  --brand-navy-deep: #0A1829;
  --brand-charcoal: #313130;
  --brand-muted: #5A626A;
  --brand-border: #E5E8EC;

  /* Typography */
  --font-serif: 'Merriweather', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Chevron geometry variables (desktop) */
  --chevron-width: clamp(540px, 57vw, 940px);
  --chevron-indent: clamp(82px, 10vw, 175px);
  --left-gutter: clamp(1.75rem, 5vw, 5.5rem);

  /* Radii & Shadows */
  --radius-sm: 6px;
  --radius-md: 12px;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  color: var(--brand-charcoal);
  background-color: var(--brand-white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.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;
}

.container {
  width: min(1240px, 100% - 3rem);
  margin-inline: auto;
}

/* =========================================================
   HERO — SIGNATURE CHEVRON SPLIT (PAGE 1 HOMAGE)
   ========================================================= */
.hero {
  position: relative;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  background-color: var(--brand-navy);
  overflow: hidden;
}

/* Full-bleed port photograph on the right / backdrop */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  transform: scale(1.03);
  animation: slowDrift 26s ease-in-out infinite alternate;
}

@keyframes slowDrift {
  0% {
    transform: scale(1.03) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.08) translate3d(-1.2%, -0.6%, 0);
  }
}

.hero__media-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(10, 24, 41, 0.34) 0%,
      rgba(10, 24, 41, 0.12) 55%,
      rgba(10, 24, 41, 0.42) 100%
    ),
    linear-gradient(
      180deg,
      rgba(10, 24, 41, 0.14) 0%,
      rgba(10, 24, 41, 0.04) 55%,
      rgba(10, 24, 41, 0.58) 100%
    );
}

/* Foreground shell */
.hero__shell {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Left stacked column (Upper White + Lower Red) */
.hero__left {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* --- UPPER WHITE POLYGON --- */
.hero__upper {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.5rem, 3vw, 2.75rem) var(--left-gutter) clamp(2rem, 3.8vw, 3.25rem);
  z-index: 2;
}

.hero__upper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--chevron-width);
  background-color: var(--brand-white);
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--chevron-indent)) 100%, 0 100%);
  z-index: -1;
  filter: drop-shadow(12px 0 24px rgba(10, 24, 41, 0.18));
}

/* Keep upper text safely inside the narrowest white width */
.hero__topbar,
.hero__copy {
  max-width: calc(var(--chevron-width) - var(--chevron-indent) - var(--left-gutter) - 1.5rem);
}

.hero__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.9rem 1.25rem;
  margin-bottom: clamp(1.5rem, 4vh, 3.25rem);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.brand-logo:hover {
  opacity: 0.88;
}

.brand-logo img {
  height: clamp(42px, 4.2vw, 60px);
  width: auto;
}

/* Status Pill — Website Under Updating */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.88rem;
  border-radius: 999px;
  background-color: rgba(216, 73, 58, 0.08);
  border: 1px solid rgba(216, 73, 58, 0.28);
  color: var(--brand-red-dark);
  font-size: clamp(0.68rem, 0.8vw, 0.76rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  max-width: 100%;
}

.status-pill__dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: var(--brand-red);
  box-shadow: 0 0 0 0 rgba(216, 73, 58, 0.55);
  animation: pulseBeacon 2s infinite;
}

@keyframes pulseBeacon {
  0% {
    box-shadow: 0 0 0 0 rgba(216, 73, 58, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(216, 73, 58, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(216, 73, 58, 0);
  }
}

.hero__copy {
  margin-block: auto;
}

.hero__kicker {
  margin: 0 0 0.6rem;
  font-size: clamp(0.72rem, 0.85vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-blue);
}

.hero__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2rem, 3.5vw, 3.45rem);
  line-height: 1.15;
  letter-spacing: 0.015em;
  color: var(--brand-charcoal);
  overflow-wrap: break-word;
}

.hero__established {
  margin: 0.8rem 0 0.45rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.25rem, 2vw, 1.95rem);
  line-height: 1.25;
  color: var(--brand-red);
}

.hero__domain {
  margin: 0 0 1.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 100%;
  font-family: var(--font-serif);
  font-size: clamp(0.84rem, 1.05vw, 1rem);
  color: var(--brand-blue);
}

.hero__domain-icon {
  display: inline-flex;
  width: 17px;
  height: 17px;
  color: var(--brand-blue);
  flex-shrink: 0;
}

.hero__domain a {
  border-bottom: 1px solid rgba(45, 116, 179, 0.3);
  overflow-wrap: anywhere;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hero__domain a:hover {
  color: var(--brand-blue-dark);
  border-bottom-color: var(--brand-blue-dark);
}

.hero__message {
  margin: 0;
  max-width: 44ch;
  font-size: clamp(0.92rem, 1.02vw, 1rem);
  line-height: 1.68;
  color: var(--brand-muted);
}

.hero__message strong {
  color: var(--brand-charcoal);
  font-weight: 600;
}

/* --- LOWER TERRACOTTA RED POLYGON (VERTEX-LOCKED TO UPPER) --- */
.hero__lower {
  position: relative;
  margin-top: -1px; /* eliminates sub-pixel hairline gap */
  padding: clamp(1.75rem, 3.2vw, 2.75rem) var(--left-gutter) clamp(1.9rem, 3.4vw, 2.85rem);
  color: #ffffff;
  z-index: 2;
}

.hero__lower::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--chevron-width);
  background-color: var(--brand-red);
  clip-path: polygon(0 0, calc(100% - var(--chevron-indent)) 0, 100% 100%, 0 100%);
  z-index: -1;
  filter: drop-shadow(12px 0 24px rgba(10, 24, 41, 0.22));
}

.hero__tagline,
.hero__divider,
.hero__services-inline {
  max-width: calc(var(--chevron-width) - var(--chevron-indent) - var(--left-gutter) - 0.5rem);
}

.hero__tagline {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(0.9rem, 1.15vw, 1.16rem);
  line-height: 1.6;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
}

.hero__divider {
  border: 0;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.48);
  margin: 1.15rem 0 1.1rem;
}

.hero__services-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.55rem;
  font-family: var(--font-serif);
  font-size: clamp(0.84rem, 1vw, 0.98rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.96);
}

.hero__services-inline .sep {
  opacity: 0.55;
  user-select: none;
}

/* --- FLOATING RIGHT STATUS CARD OVER PORT PHOTO (DESKTOP) --- */
.hero__right {
  position: absolute;
  right: clamp(1.5rem, 3.5vw, 3.75rem);
  bottom: clamp(1.5rem, 3vw, 2.75rem);
  z-index: 3;
  width: clamp(245px, 26vw, 340px);
  pointer-events: auto;
}

.hero__badge-card {
  padding: clamp(1.1rem, 1.5vw, 1.45rem);
  border-radius: var(--radius-md);
  background: rgba(15, 35, 59, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 3px solid var(--brand-red);
  color: #ffffff;
  box-shadow: 0 18px 40px -12px rgba(5, 14, 26, 0.55);
}

.hero__badge-header {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.hero__badge-pulse {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: #F4A261;
  box-shadow: 0 0 0 4px rgba(244, 162, 97, 0.22);
}

.hero__badge-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.hero__badge-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-serif);
  font-size: clamp(0.92rem, 1.05vw, 1.02rem);
  font-weight: 700;
  line-height: 1.35;
}

.hero__badge-sub {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
}

.hero__badge-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.92);
}

.hero__badge-meta .dot-sep {
  color: var(--brand-red);
}

/* =========================================================
   MINIMALIST CORPORATE FOOTER
   ========================================================= */
.footer {
  flex-shrink: 0;
  background-color: var(--brand-white);
  border-top: 1px solid var(--brand-border);
  padding: 1.35rem 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.9rem 2rem;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer__logo {
  height: 34px;
  width: auto;
}

.footer__sep {
  color: var(--brand-border);
}

.footer__est {
  font-family: var(--font-serif);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--brand-red);
}

.footer__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.85rem;
  color: var(--brand-muted);
}

.footer__link {
  font-family: var(--font-serif);
  color: var(--brand-blue);
  overflow-wrap: anywhere;
}

.footer__link:hover {
  text-decoration: underline;
}

/* =========================================================
   ACCESSIBILITY — REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero__bg-img,
  .status-pill__dot {
    animation: none;
  }
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================= */

/* Compact laptops & landscape tablets (961px – 1180px) */
@media (max-width: 1180px) and (min-width: 961px) {
  :root {
    --chevron-width: clamp(500px, 59vw, 680px);
    --chevron-indent: clamp(72px, 8.5vw, 112px);
    --left-gutter: clamp(1.5rem, 3.8vw, 3rem);
  }

  .hero__right {
    width: clamp(230px, 26vw, 285px);
    right: 1.5rem;
    bottom: 1.5rem;
  }
}

/* Short-height landscape laptops (e.g., 1280×650, 1366×700) */
@media (max-height: 740px) and (min-width: 961px) {
  .hero__upper {
    padding-top: 1.35rem;
    padding-bottom: 1.6rem;
  }

  .hero__topbar {
    margin-bottom: 1.35rem;
  }

  .hero__lower {
    padding-top: 1.45rem;
    padding-bottom: 1.55rem;
  }

  .hero__divider {
    margin: 0.85rem 0;
  }
}

/* Tablets & Mobile (<= 960px) — Clean vertical stack with overlaid port photo banner */
@media (max-width: 960px) {
  .hero {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(290px, auto);
  }

  /* Unwrap shell so hero__left occupies row 1, while hero__media & hero__right share row 2 */
  .hero__shell {
    display: contents;
  }

  .hero__left {
    grid-row: 1;
    grid-column: 1;
    z-index: 2;
  }

  .hero__media {
    position: relative;
    inset: auto;
    grid-row: 2;
    grid-column: 1;
    min-height: 300px;
    height: 100%;
    z-index: 1;
  }

  .hero__bg-img {
    object-position: center 42%;
  }

  .hero__media-overlay {
    background: linear-gradient(
      180deg,
      rgba(10, 24, 41, 0.22) 0%,
      rgba(10, 24, 41, 0.45) 55%,
      rgba(10, 24, 41, 0.72) 100%
    );
  }

  .hero__upper::before,
  .hero__lower::before {
    width: 100%;
    clip-path: none;
    filter: none;
  }

  .hero__topbar,
  .hero__copy,
  .hero__tagline,
  .hero__divider,
  .hero__services-inline {
    max-width: 100%;
  }

  .hero__upper {
    padding: 2rem clamp(1.25rem, 5vw, 2.5rem) 2.25rem;
  }

  .hero__topbar {
    margin-bottom: 2rem;
  }

  .hero__lower {
    padding: 2rem clamp(1.25rem, 5vw, 2.5rem) 2.25rem;
  }

  /* Overlay the frosted-glass status card cleanly over the port photograph */
  .hero__right {
    position: relative;
    right: auto;
    bottom: auto;
    grid-row: 2;
    grid-column: 1;
    align-self: end;
    justify-self: start;
    width: 100%;
    max-width: 460px;
    padding: 1.5rem clamp(1.25rem, 5vw, 2.5rem);
    z-index: 3;
  }

  .hero__badge-card {
    background: rgba(15, 35, 59, 0.82);
  }
}

/* Mobile phones (<= 600px) */
@media (max-width: 600px) {
  .container {
    width: min(1240px, 100% - 2rem);
  }

  .hero {
    grid-template-rows: auto minmax(270px, auto);
  }

  .hero__upper {
    padding: 1.5rem 1.25rem 1.9rem;
  }

  .hero__topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
  }

  .brand-logo img {
    height: 44px;
  }

  .hero__title {
    font-size: clamp(1.7rem, 8vw, 2.25rem);
  }

  .hero__established {
    font-size: clamp(1.15rem, 5.2vw, 1.45rem);
    margin: 0.65rem 0 0.45rem;
  }

  .hero__domain {
    font-size: clamp(0.76rem, 3.3vw, 0.94rem);
    margin-bottom: 1.15rem;
  }

  .hero__message {
    font-size: 0.92rem;
  }

  .hero__lower {
    padding: 1.65rem 1.25rem 1.9rem;
  }

  .hero__tagline {
    font-size: clamp(0.84rem, 3.6vw, 0.96rem);
    line-height: 1.55;
  }

  .hero__services-inline {
    font-size: clamp(0.8rem, 3.4vw, 0.9rem);
    gap: 0.25rem 0.45rem;
  }

  .hero__media {
    min-height: 270px;
  }

  .hero__right {
    max-width: 100%;
    padding: 1.25rem;
  }

  .hero__badge-card {
    padding: 1.1rem 1.15rem;
  }

  .footer {
    padding: 1.25rem 0;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .footer__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    font-size: 0.82rem;
  }
}

/* Extra-small phones (<= 380px, e.g., iPhone SE 320px / 360px Android) */
@media (max-width: 380px) {
  .hero__upper,
  .hero__lower {
    padding-inline: 1rem;
  }

  .hero__title {
    font-size: 1.55rem;
  }

  .hero__domain {
    font-size: 0.74rem;
    gap: 0.35rem;
  }

  .hero__domain-icon {
    width: 15px;
    height: 15px;
  }

  .status-pill {
    font-size: 0.65rem;
    padding: 0.36rem 0.72rem;
  }

  .hero__right {
    padding: 1rem;
  }

  .footer__brand {
    gap: 0.5rem;
  }

  .footer__logo {
    height: 30px;
  }
}
