/* =========================================================
   HYM Investments - main.css
   Includes:
   - Fullscreen video hero
   - Transparent header on top
   - Sticky header style after scroll (.is-scrolled)
   - Vision/Mission section
   - Finalized footer layout
   ========================================================= */

/* ---------- CSS Reset / Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Container ---------- */
.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* ---------- Header (Sticky + changes on scroll) ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  transition: background-color 200ms ease, box-shadow 200ms ease, padding 200ms ease;
  background: transparent;
  box-shadow: none;
  padding: 18px 0;
}

/* On scroll: add this class via JS (document.body or header) */
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 10px 0;
}

/* header layout */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Logo wrapper (hidden on hero top state if you want) */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
}

/* Header logo: file is 270x200, but display smaller */
.brand img{
  height: 56px;   /* change if you want bigger */
  width: auto;
  display: block;
  object-fit: contain;
}

/* Hide logo at top of page (your requirement: no logo initially) */
.site-header.is-hero .brand {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 200ms ease, transform 200ms ease;
}

/* Show logo when scrolled */
.site-header.is-scrolled .brand,
.site-header:not(.is-hero) .brand {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 200ms ease, transform 200ms ease;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* CTA button style (transparent on hero) */
.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(6px);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2px;
  transition: transform 120ms ease, background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

.nav a:hover {
  transform: translateY(-1px);
  background: rgba(0, 0, 0, 0.25);
}

.nav a:active {
  transform: translateY(0);
}

/* Scrolled header link color (your requirement: #848586 shade) */
.site-header.is-scrolled .nav a {
  background: transparent;
  border-color: rgba(132, 133, 134, 0.45);
  color: #848586;
  backdrop-filter: none;
}

.site-header.is-scrolled .nav a:hover {
  background: rgba(132, 133, 134, 0.10);
  border-color: rgba(132, 133, 134, 0.65);
}

/* Arabic switch button */
.nav a.lang {
  font-weight: 700;
}

/* ---------- Hero Video Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
}

/* Video should cover full screen */
.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dark overlay for readability */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.30) 40%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

/* Center overlay content (optional) */
.hero-content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px 0 60px; /* leaves room for header */
}

.hero-content .hero-logo {
  width: min(520px, 86%);
  margin: 0 auto;
  filter: drop-shadow(0 14px 24px rgba(0,0,0,0.35));
}

/* ---------- Content Section (Vision / Mission) ---------- */
.section {
  padding: 70px 0;
  background: #fff;
}

.section .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.section h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 700;
  color: #666;
}

.section p {
  margin: 0;
  color: #666;
  max-width: 520px;
  font-size: 16px;
  line-height: 1.75;
}

/* ---------- Footer (Finalized Layout) ---------- */
.site-footer {
  background: #4f555a; /* close to your dark grey sample */
  color: rgba(255, 255, 255, 0.88);
}

/* Top footer content */
.footer-top {
  padding: 44px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
}

/* Left column: logo + phone */

/* Footer logo - make it bigger (targets the IMG) */
.footer-logo img{
  height: 160px;     /* change to 180px or 200px if needed */
  width: auto;
  display: block;
  margin-bottom: 14px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.25));
}


.footer-brand .phone-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 8px;
}

/* Phone icon (simple CSS icon placeholder) */
.footer-brand .phone-ico {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  position: relative;
  flex: 0 0 18px;
}
.footer-brand .phone-ico::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
  right: 3px;
  bottom: 3px;
  border-radius: 1px;
}

/* Footer headings + lists */
.footer-col h4 {
  margin: 0 0 14px;
  font-size: 16px;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.92);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin: 9px 0;
  color: rgba(255, 255, 255, 0.80);
}

.footer-col a {
  color: rgba(255, 255, 255, 0.80);
  transition: color 150ms ease;
}

.footer-col a:hover {
  color: #fff;
}

/* Social icons row (LinkedIn + Instagram) */
.footer-social-wrap{
  margin-top: 14px;
  display: flex;
  justify-content: flex-start;
}

.social{
  display: flex;
  align-items: center;
  gap: 14px;
}

.social a{
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


/* Bottom bar */
.footer-bottom {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.10);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-links a:hover {
  color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .section .grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .brand .logo {
    height: 48px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 0;
  }

  .nav a {
    padding: 9px 14px;
    font-size: 13px;
  }

  .hero-content {
    padding-top: 110px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Floating WhatsApp button */
.whatsapp-float{
  position: fixed;
  left: 22px;
  bottom: 22px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 28px rgba(0,0,0,.18);
  z-index: 9999;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.whatsapp-float svg{
  width: 46px;
  height: 46px;
  display: block;
}

.whatsapp-float:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(0,0,0,.22);
}

/* Optional: slightly smaller on mobile */
@media (max-width: 600px){
  .whatsapp-float{
    width: 56px;
    height: 56px;
    left: 16px;
    bottom: 16px;
  }
  .whatsapp-float svg{
    width: 30px;
    height: 30px;
  }
}
