:root {
  --blue: #278ba3;
  --menu: #2f9eaf;
  --white: #ffffff;
  --black: #000000;

  /* spațiere comună */
  --pad-y: clamp(20px, 4vh, 48px);
  --pad-x: clamp(24px, 4vw, 64px);
  --gap-x: clamp(24px, 3vw, 56px);
  --gap-y: clamp(18px, 4vh, 48px);

  /* ambele poze au exact aceeași mărime: încap pe jumătate din înălțimea ecranului */
  --row-h: calc((100vh - 2 * var(--pad-y) - var(--gap-y)) / 2);
  --photo-w: min(100%, calc(var(--row-h) * 16 / 9), 720px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background-color: var(--black);
  font-family: Georgia, serif;
  color: var(--white);
  overflow-x: hidden;
}

/* ---------- DESKTOP ----------
   coloane:  [poză / logo]  [meniu]  [poză / citat]
   rând 1:   logo + titlu | meniu  | poza schi
   rând 2:   poza scufund.| meniu + citat ----->
*/
.page {
  width: 100%;
  max-width: 1720px;
  height: 100vh;
  min-height: 560px;
  margin: 0 auto;
  padding: var(--pad-y) var(--pad-x);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: var(--gap-x);
  row-gap: var(--gap-y);
  align-items: center;
}

.brand       { grid-column: 1; grid-row: 1; }
.menu-top    { grid-column: 2; grid-row: 1; }
.photo-ski   { grid-column: 3; grid-row: 1; }
.photo-dive  { grid-column: 1; grid-row: 2; }
.menu-bottom { grid-column: 2 / 4; grid-row: 2; }

/* poze: același format 16:9 și aceeași lățime */
.photo-cell { display: flex; min-width: 0; }
.photo-ski  { justify-content: flex-start; }  /* lipită de meniu */
.photo-dive { justify-content: flex-end; }    /* lipită de meniu */

.photo {
  display: block;
  width: var(--photo-w);
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
}

/* logo + titlu */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.5vh, 16px);
  text-align: center;
}

.brand .logo {
  height: calc(var(--row-h) * 0.5);
  max-height: 180px;
  min-height: 100px;
  width: auto;
  object-fit: contain;
}

.brand h1 {
  font-size: clamp(20px, 1.9vw, 30px);
  text-transform: uppercase;
  font-weight: bold;
  margin: 0;
  white-space: nowrap;
  user-select: none;
}
.brand h1 .alb { color: var(--white); }
.brand h1 .albastru { color: var(--blue); }

/* meniuri */
.menu-link {
  color: var(--menu);
  text-decoration: none;
  font-size: clamp(16px, 1.45vw, 22px);
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.3s ease;
  user-select: none;
}
.menu-link:hover { color: var(--white); }
.menu-link.acasa { color: var(--white); }
.mobile-only { display: none; }

.menu-top {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 3vh, 25px);
  padding-right: 18px;
  border-right: 2px solid var(--white);
}

.menu-bottom {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2.5vh, 22px);
  padding-left: 18px;
  border-left: 2px solid var(--white);
}

.bottom-links {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 3vh, 25px);
}

.quote {
  margin-top: clamp(4px, 1.5vh, 16px);
  font-style: italic;
  font-size: clamp(17px, 1.6vw, 24px);
  line-height: 1.6;
  max-width: 480px;
  user-select: none;
}

/* ---------- TABLETĂ / ecrane joase ---------- */
@media (max-width: 1024px), (max-height: 520px) {
  .page {
    height: auto;
    min-height: 0;
    grid-template-rows: auto auto;
  }
  :root { --photo-w: 100%; }
  .brand .logo { height: auto; width: clamp(150px, 20vw, 230px); }
}

/* ---------- TELEFON ---------- */
@media (max-width: 760px) {
  .page {
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding: 28px 18px 40px;
  }

  .brand .logo { width: 170px; }
  .brand h1 { font-size: 23px; white-space: normal; }

  .menu-top {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    border-right: none;
    border-top: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    padding: 14px 0;
    width: 100%;
  }
  .menu-link { font-size: 16px; }
  .mobile-only { display: inline; }

  .photo-cell { width: 100%; }

  .menu-bottom {
    border-left: none;
    padding-left: 0;
    align-items: center;
    text-align: center;
  }
  .bottom-links { display: none; }  /* sunt deja în meniul de sus */
  .quote { margin-top: 0; font-size: 19px; }
}
