/* Urban Terrace Hurghada. Mobile first; desktop layout from 900px. Tokens match site/design/Tokens.dc.html. */

@font-face { font-family: "Fraunces"; src: url(fonts/fraunces-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url(fonts/manrope-var.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --bg: #F5EEEB;
  --surface: #FFFFFF;
  --text: #1C1C1C;
  --body: #4A4542;
  --muted: #6B6460;
  --line: #E8DEDA;
  --accent: #1F5F6B;
  --accent-hover: #174C56;
  --tint: #E3EEEF;
  --terracotta: #C98B7E;
  --kicker: #8F5244;
  --night: #14191C;
  --shadow: 0 8px 24px rgba(20, 25, 28, 0.08);
  --radius: 16px;
  --serif: "Fraunces", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 "Manrope", system-ui, sans-serif; -webkit-text-size-adjust: 100%; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; }

.wrap { max-width: 1248px; margin: 0 auto; padding: 0 24px; }
.section { padding: 56px 0; }
.section-flush-top { padding-top: 0; }
.band-white { background: var(--surface); }
.kicker { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--kicker); }
.h2 { margin: 0 0 24px; font: 600 32px/1.1 var(--serif); letter-spacing: -0.01em; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 4px 16px; margin-bottom: 24px; }
.section-head .h2 { margin: 0; }
.body-copy { margin: 0 0 24px; color: var(--body); }

.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; stroke-width: 1.75; }
.icon-fill { fill: currentColor; stroke: none; }

/* Buttons, links, chips */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px; background: var(--accent); color: #FFFFFF; font-weight: 600; font-size: 17px; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--accent-hover); color: #FFFFFF; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-inv { background: var(--bg); color: var(--accent); font-weight: 700; }
.btn-inv:hover { background: #FFFFFF; color: var(--accent); }
.link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; font-size: 15px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--accent); color: #FFFFFF; font-size: 14px; font-weight: 600; line-height: 1.2; }
.chip .icon { width: 14px; height: 14px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--text); font-size: 14px; font-weight: 700; line-height: 1.2; }
.badge[hidden] { display: none; }
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* Nav: transparent over the hero, solid once the hero has scrolled away (script.js) */
.site-header { position: sticky; top: 0; z-index: 20; height: 64px; margin-bottom: -64px; color: #FFFFFF; transition: background 0.2s, box-shadow 0.2s, color 0.2s; }
.site-header.is-solid { background: rgba(245, 238, 235, 0.97); box-shadow: 0 1px 0 rgba(20, 25, 28, 0.08); color: var(--text); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px 0 20px; }
.wordmark { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.wordmark:hover { color: inherit; }
.wordmark b { font: 600 19px/1.05 var(--serif); letter-spacing: -0.01em; white-space: nowrap; }
@media (max-width: 359px) {
  .wordmark b { font-size: 17px; }
  .site-header .btn-sm { padding: 0 14px; font-size: 14px; }
}
.wordmark span { font-size: 10px; font-weight: 700; letter-spacing: 0.24em; line-height: 1.4; }

/* Hero */
.hero { position: relative; height: min(100svh, 860px); min-height: 620px; overflow: hidden; background: var(--night); color: #FFFFFF; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero-shade { position: absolute; inset: 0; background: rgba(20, 25, 28, 0.52); }
.hero-content { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 16px; padding-bottom: 40px; }
.hero-kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.18em; color: var(--bg); }
.hero h1 { margin: 0; max-width: 940px; font: 600 40px/1.08 var(--serif); letter-spacing: -0.015em; }
.hero-line { margin: 0; max-width: 620px; font-size: 17px; line-height: 1.5; color: var(--bg); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 8px; }
.hero-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: #FFFFFF; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.hero-link:hover { color: #FFFFFF; }
.hero-link .icon { width: 18px; height: 18px; stroke-width: 1.75; }

/* Stat row: scrolls sideways on phones */
.stats { background: var(--surface); border-bottom: 1px solid var(--line); }
.stats .wrap { padding: 0; }
.stats ul { list-style: none; margin: 0; padding: 20px 24px; display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 24px; scrollbar-width: none; }
.stats ul::-webkit-scrollbar { display: none; }
.stats li { flex: 0 0 auto; display: flex; flex-direction: column; gap: 6px; color: var(--accent); scroll-snap-align: start; }
.stats li > span { display: flex; flex-direction: column; gap: 6px; }
.stats b { font-size: 15px; line-height: 1.2; color: var(--text); }
.stats small { font-size: 13px; line-height: 1.2; color: var(--muted); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { display: block; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--line); cursor: zoom-in; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile-big { grid-column: span 2; aspect-ratio: auto; height: 260px; }
.tile-big img { object-position: 50% 62%; }
.tile-wide { grid-column: span 2; aspect-ratio: auto; height: 200px; }
.tile-wide img { object-position: 50% 45%; }

/* Value-prop and review cards */
.cards { display: grid; gap: 16px; }
.card { padding: 24px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.card h3 { margin: 0 0 6px; font-size: 19px; line-height: 1.3; font-weight: 700; }
.card p { margin: 0; color: var(--body); }
.card-icon { width: 44px; height: 44px; margin-bottom: 16px; border-radius: 999px; background: var(--tint); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.card-icon .icon { width: 22px; height: 22px; }
.review { display: flex; flex-direction: column; }
.stars { display: flex; gap: 2px; margin-bottom: 12px; }
.stars .icon { width: 16px; height: 16px; }
.review blockquote { flex: 1; margin: 0 0 16px; font-size: 17px; line-height: 1.55; }
.review .review-meta { font-size: 14px; color: var(--muted); }
.review-meta strong { color: var(--text); }
.cards + .link { margin-top: 12px; }

/* The studio */
.studio { display: grid; gap: 28px; }
.studio-photos { display: grid; gap: 10px; }
.studio-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.amenities { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.amenities li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--accent); font-size: 15px; line-height: 1.35; }
.amenities .icon { width: 20px; height: 20px; }
.amenities span { color: var(--text); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 12px 0; cursor: pointer; font-weight: 700; line-height: 1.4; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 20px; height: 20px; color: var(--accent); stroke-width: 1.75; transition: transform 0.2s; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq p { margin: 0 0 18px; font-size: 15px; color: var(--body); }

/* Location */
.location { display: grid; grid-template-areas: "head" "map" "list"; }
.location-head { grid-area: head; }
.location-list { grid-area: list; }
.map-card { grid-area: map; height: 260px; margin-bottom: 20px; border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--accent); text-decoration: none; background-color: var(--tint); background-image: linear-gradient(#D3E2E4 1px, transparent 1px), linear-gradient(90deg, #D3E2E4 1px, transparent 1px); background-size: 32px 32px; }
.map-card .icon { width: 40px; height: 40px; }
.map-card span { padding: 6px 14px; border-radius: 999px; background: #FFFFFF; color: var(--text); font-size: 14px; font-weight: 600; }
.map-card:hover span { text-decoration: underline; }
.distances { list-style: none; margin: 0 0 20px; padding: 0; border-top: 1px solid var(--line); }
.distances li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.distances li span + span { color: var(--muted); }
.taxi { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 15px; color: var(--body); }
.taxi .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--accent); }

/* Final CTA band */
.cta { padding: 56px 0; background: var(--accent); color: #FFFFFF; }
.cta h2 { margin: 0 0 8px; font: 600 36px/1.1 var(--serif); letter-spacing: -0.01em; }
.cta p { margin: 0 0 28px; font-size: 17px; color: var(--tint); }
.cta .btn-inv { width: 100%; }
.socials { display: flex; gap: 12px; margin-top: 28px; }
.socials a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.5); color: #FFFFFF; }
.socials a:hover { background: rgba(255, 255, 255, 0.12); color: #FFFFFF; }
.socials .icon { width: 20px; height: 20px; }

/* Footer */
.site-footer { padding: 40px 0 48px; background: var(--night); color: #D9D0CC; font-size: 14px; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 16px; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--bg); }
.footer-name { margin-bottom: 4px !important; font: 600 20px/1.3 var(--serif); color: var(--bg); }
.footer-links { display: flex; gap: 20px; }
.footer-note { color: #A39892; }

/* Lightbox */
.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(20, 25, 28, 0.96); color: #FFFFFF; }
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: transparent; }
.lb-top { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 20px; font-size: 14px; color: #D9D0CC; }
.lb-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 12px; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.lb-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 8px 20px; }
.lb-caption { flex: 1; margin: 0; text-align: center; font-size: 15px; }
.lb-btn { flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 999px; background: transparent; color: #FFFFFF; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, 0.12); }
.lb-close { border: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Desktop */
@media (min-width: 900px) {
  body { font-size: 18px; }
  .section { padding: 96px 0; }
  .section-flush-top { padding-top: 0; }
  .kicker { font-size: 13px; }
  .h2 { font-size: 48px; line-height: 1.08; letter-spacing: -0.015em; margin-bottom: 40px; }
  .h2-narrow { max-width: 720px; }
  .section-head { margin-bottom: 32px; }
  .link { font-size: 16px; }

  .site-header { height: 80px; margin-bottom: -80px; }
  .site-header .wrap { padding: 0 24px; }
  .wordmark { flex-direction: row; align-items: baseline; gap: 10px; }
  .wordmark b { font-size: 24px; line-height: 1; }
  .wordmark span { font-size: 11px; }
  .btn-sm { min-height: 48px; padding: 0 24px; font-size: 16px; }

  .hero { height: 820px; min-height: 0; }
  .hero-content { gap: 20px; padding-bottom: 144px; }
  .hero-kicker { font-size: 13px; letter-spacing: 0.2em; }
  .hero h1 { font-size: 72px; line-height: 1.02; letter-spacing: -0.02em; }
  .hero-line { font-size: 20px; }
  .hero-actions { gap: 12px 28px; }
  .hero .btn { min-height: 56px; padding: 0 32px; font-size: 18px; }
  .chip { padding: 7px 14px; font-size: 15px; }

  .stats { position: relative; z-index: 2; margin-top: -64px; background: none; border: 0; }
  .stats .wrap { padding: 0 24px; }
  .stats ul { flex-wrap: wrap; justify-content: space-between; gap: 24px 32px; padding: 28px 32px; overflow: visible; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
  .stats li { flex: 1 1 140px; flex-direction: row; align-items: center; gap: 14px; }
  .stats li .icon { width: 28px; height: 28px; }
  .stats li > span { gap: 2px; }
  .stats b { font-size: 16px; }
  .stats small { font-size: 14px; }

  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 240px; gap: 16px; }
  .tile { aspect-ratio: auto; }
  .tile-big { grid-row: span 2; height: auto; }
  .tile-big img { object-position: 50% 60%; }
  .tile-wide { height: auto; }

  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .card { padding: 32px; }
  .card h3 { font-size: 22px; margin-bottom: 8px; }
  .card-icon { width: 48px; height: 48px; margin-bottom: 20px; }
  .card-icon .icon { width: 24px; height: 24px; }
  .stars { margin-bottom: 16px; }
  .review blockquote { font-size: 18px; margin-bottom: 20px; }
  .review .review-meta { font-size: 15px; }
  .cards + .link { margin-top: 20px; }

  .studio { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .studio-photos { gap: 16px; }
  .studio-photos img { aspect-ratio: 3 / 2; }
  .body-copy { margin-bottom: 32px; }
  .amenities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .amenities li { gap: 12px; padding: 14px 0; font-size: 16px; }

  .faq-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; align-items: start; }
  .faq summary { gap: 24px; padding: 18px 0; font-size: 19px; }
  .faq summary .icon { width: 22px; height: 22px; }
  .faq p { max-width: 680px; margin-bottom: 22px; font-size: 17px; }

  .location { grid-template-columns: 1.4fr 1fr; grid-template-areas: "map head" "map list"; column-gap: 64px; align-items: start; }
  .location-head { align-self: end; }
  .location-head .h2 { font-size: 40px; margin-bottom: 28px; }
  .map-card { height: 440px; margin: 0; }
  .map-card .icon { width: 44px; height: 44px; }
  .distances { margin-bottom: 24px; }
  .distances li { padding: 14px 0; font-size: 17px; }
  .taxi { font-size: 16px; }

  .cta { padding: 80px 0; }
  .cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
  .cta h2 { font-size: 56px; line-height: 1.05; letter-spacing: -0.02em; }
  .cta p { margin: 0; font-size: 20px; }
  .cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
  .cta .btn-inv { width: auto; min-height: 56px; padding: 0 36px; font-size: 18px; }
  .socials { margin-top: 0; }

  .site-footer { padding: 48px 0 56px; font-size: 15px; }
  .site-footer .wrap { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
  .footer-name { font-size: 24px; }
  .footer-links { gap: 24px; }

  .lb-stage { gap: 24px; padding: 0 24px; }
  .lb-caption { font-size: 16px; }
}
