/* =========================================================
   Homzeg — shared stylesheet
   Identity derived from athinio-desktop-design.pdf
   (D-Bay / Tatweer Misr desktop landing page)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root{
  /* ---- light surface ---- */
  --bg:#f8f4ee;
  --bg-alt:#efe6d8;
  --surface:#faf7f2;
  --border:rgba(33,28,23,0.12);
  --text:#211c17;
  --text-muted:rgba(33,28,23,0.64);

  /* ---- dark surface ---- */
  --dark:#14100c;
  --dark-2:#1f1a15;
  --on-dark:#f5f1ea;
  --on-dark-muted:rgba(245,241,234,0.74);
  --border-on-dark:rgba(245,241,234,0.16);

  /* ---- accents ---- */
  --accent:#1c4f5e;       /* deep teal — primary */
  --accent-hover:#153e4a;
  --accent-2:#3f7f90;     /* lighter teal — hero CTAs, links */
  --accent-tint:#dbe9ef;
  --gold:#b8703f;         /* terracotta — eyebrows on light bg */
  --gold-on-dark:#c9a463; /* warm gold — eyebrows on dark bg */
  --red:#c0503a;
  --whatsapp:#1c4f5e;
  --whatsapp-hover:#153e4a;

  /* ---- type ---- */
  --font-serif:'Lora', Georgia, 'Times New Roman', serif;
  --font-sans:'Manrope', -apple-system, 'Segoe UI', sans-serif;

  --radius-pill:999px;
  --radius-card:14px;
  --container:1180px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:var(--font-sans);
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
.container{width:100%; max-width:var(--container); margin:0 auto; padding:0 24px;}

/* ---------- type ---------- */
h1,h2,h3,h4{
  font-family:var(--font-serif); font-weight:500; letter-spacing:-0.01em;
  margin:0;
}
h1{font-size:52px; line-height:1.08;}
h2{font-size:34px; line-height:1.15;}
h3{font-size:22px; line-height:1.3;}
p{margin:0; line-height:1.7;}
.eyebrow{
  font-size:12px; font-weight:700; letter-spacing:0.14em; text-transform:uppercase;
  color:var(--gold);
}
.eyebrow.on-dark{color:var(--gold-on-dark);}
.lead{font-size:16px; color:var(--text-muted); max-width:560px;}
.lead.on-dark{color:var(--on-dark-muted);}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:14px 26px; border-radius:var(--radius-pill);
  font-family:var(--font-sans); font-size:14px; font-weight:700;
  border:1px solid transparent; cursor:pointer; white-space:nowrap;
  transition:background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-solid{background:var(--accent); color:#fff;}
.btn-solid:hover{background:var(--accent-hover);}
.btn-accent2{background:var(--accent-2); color:#fff;}
.btn-accent2:hover{background:var(--accent);}
.btn-outline{border-color:var(--border); color:var(--text);}
.btn-outline:hover{border-color:var(--text);}
.btn-outline.on-dark{border-color:rgba(245,241,234,0.5); color:var(--on-dark);}
.btn-outline.on-dark:hover{border-color:var(--on-dark);}
.btn-sm{padding:10px 18px; font-size:13px;}
.btn-whatsapp{background:var(--whatsapp); color:#fff;}
.btn-whatsapp:hover{background:var(--whatsapp-hover);}
.btn-whatsapp i{font-size:16px;}

/* ---------- header ---------- */
.site-header{
  position:sticky; top:0; z-index:40;
  background:rgba(248,244,238,0.92); backdrop-filter:blur(8px);
  border-bottom:1px solid var(--border);
  transition:transform .25s ease;
}
.site-header.header-hidden{transform:translateY(-100%);}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  height:76px; gap:24px;
}
.logo{
  font-family:var(--font-serif); font-size:20px; font-weight:600;
  letter-spacing:0.12em; text-transform:lowercase; color:var(--text);
}
.logo span{color:var(--gold);}
.nav{display:flex; align-items:center; gap:28px;}
.nav a{font-size:14px; font-weight:600; color:var(--text-muted);}
.nav a:hover{color:var(--text);}
.header-actions{display:flex; align-items:center; gap:12px;}
.lang-toggle{
  font-family:var(--font-sans); font-size:12px; font-weight:700;
  padding:9px 16px; border-radius:var(--radius-pill);
  border:1px solid var(--border); background:transparent; color:var(--text);
  cursor:pointer;
}
.lang-toggle:hover{border-color:var(--text);}
.nav-toggle{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width:36px; height:36px; border:1px solid var(--border); border-radius:8px;
  background:transparent; cursor:pointer;
}
.nav-toggle span{display:block; width:16px; height:2px; margin:0 auto; background:var(--text);}

/* ---------- hero (dark, athinio-style gradient) ---------- */
.hero{
  position:relative; overflow:hidden;
  color:var(--on-dark);
  display:flex; align-items:center;
  min-height:640px;
}
.hero-bg{
  position:absolute; inset:0; z-index:0;
  background:
    radial-gradient(ellipse 640px 420px at 12% -10%, rgba(63,127,144,0.32), transparent 60%),
    radial-gradient(ellipse 560px 420px at 92% 108%, rgba(201,164,99,0.18), transparent 55%),
    repeating-linear-gradient(115deg, rgba(245,241,234,0.03) 0 1px, transparent 1px 88px),
    linear-gradient(180deg, var(--dark) 0%, var(--dark-2) 55%, var(--dark) 100%);
}
.hero .container{position:relative; z-index:1;}
.hero-inner{display:flex; flex-direction:column; gap:20px; max-width:640px; padding:96px 0;}
.hero h1 .accent-line, .masthead h1 .accent-line{color:#a7cdd6;}
.hero-cta-row{display:flex; flex-wrap:wrap; gap:14px; margin-top:6px;}

/* ---------- developer masthead (shorter hero) ---------- */
.masthead{
  position:relative; overflow:hidden; color:var(--on-dark);
  padding:88px 0 56px 0;
}
.masthead-bg{
  position:absolute; inset:0; z-index:0;
  background-image:
    linear-gradient(180deg, rgba(10,14,18,0.38) 0%, rgba(10,14,18,0.58) 45%, rgba(6,9,12,0.9) 100%),
    url('../assets/cover main.jpeg');
  background-size:cover;
  background-position:center 60%;
}
.masthead h1{font-size:44px; margin-top:12px;}
.masthead-cta-row{display:flex; flex-wrap:wrap; gap:14px; margin-top:24px;}
.masthead-stats{
  display:flex; flex-wrap:wrap; gap:32px; margin-top:32px;
  padding-top:28px; border-top:1px solid var(--border-on-dark);
}
.masthead-stat{display:flex; flex-direction:column; gap:4px;}
.masthead-stat b{font-family:var(--font-serif); font-size:22px; font-weight:500;}
.masthead-stat span{font-size:12px; letter-spacing:0.08em; text-transform:uppercase; color:var(--on-dark-muted);}

/* ---------- sections ---------- */
section{padding:88px 0;}
section[id]{scroll-margin-top:90px;}
.section-alt{background:var(--bg-alt);}
.section-dark{background:var(--dark); color:var(--on-dark);}
.section-head{display:flex; flex-direction:column; gap:12px; margin-bottom:44px; max-width:640px;}

/* ---------- grids & cards ---------- */
.grid{display:grid; gap:24px;}
.grid-3{grid-template-columns:repeat(3, minmax(0,1fr));}
.grid-4{grid-template-columns:repeat(4, minmax(0,1fr));}

.card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-card);
  padding:28px; display:flex; flex-direction:column; gap:12px;
}
.card .dot{width:8px; height:8px; border-radius:999px; background:var(--gold);}

/* ---------- project cards ---------- */
.project-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-card);
  overflow:hidden; display:flex; flex-direction:column;
}
.project-media{
  height:180px; position:relative;
}
.project-media.photo-salt{
  background-image:linear-gradient(180deg, rgba(10,14,18,0) 55%, rgba(10,14,18,0.55) 100%), url('../assets/salt-hero.jpg');
  background-size:cover;
  background-position:center;
}
.project-media.photo-dbay{
  background-image:linear-gradient(180deg, rgba(10,14,18,0) 55%, rgba(10,14,18,0.55) 100%), url('../assets/dbay-card.webp');
  background-size:cover;
  background-position:center;
}
.project-media.photo-fouka{
  background-image:linear-gradient(180deg, rgba(10,14,18,0) 55%, rgba(10,14,18,0.55) 100%), url('../assets/fouka-bay-card.webp');
  background-size:cover;
  background-position:center 88%;
}
.project-badge{
  position:absolute; top:14px; left:14px;
  font-size:10px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase;
  background:rgba(20,16,12,0.65); color:var(--on-dark);
  padding:6px 12px; border-radius:var(--radius-pill);
}
.project-body{padding:22px 24px 24px 24px; display:flex; flex-direction:column; gap:12px; flex:1;}
.project-loc{font-size:11px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:var(--gold);}
.project-blurb{font-size:14px; color:var(--text-muted); line-height:1.65;}
.project-meta{
  display:flex; flex-direction:column; gap:4px;
  padding-top:14px; margin-top:auto; border-top:1px solid var(--border);
}
.project-meta .price-label{font-size:10px; letter-spacing:0.1em; text-transform:uppercase; color:var(--text-muted);}
.project-meta .price{font-family:var(--font-serif); font-size:19px; font-weight:600;}
.project-meta .terms{font-size:12px; color:var(--text-muted);}
.project-cta-row{display:flex; gap:8px; margin-top:6px;}
.project-cta-row .btn{flex:1; padding-left:12px; padding-right:12px;}

/* ---------- payment plan form ---------- */
.plan-layout{display:grid; grid-template-columns:1fr 320px; gap:24px; max-width:1040px; align-items:start;}
.plan-form{
  display:flex; flex-direction:column; gap:20px;
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-card);
  padding:32px;
}
.form-row{display:grid; grid-template-columns:1fr 1fr; gap:20px;}
.plan-form label{display:flex; flex-direction:column; gap:8px; font-size:13px; font-weight:600; color:var(--text);}
.plan-form input{
  font-family:var(--font-sans); font-size:14px; font-weight:400; color:var(--text);
  padding:12px 14px; border:1px solid var(--border); border-radius:8px; background:var(--bg);
  transition:border-color .15s ease, background .15s ease;
}
.plan-form input:focus{outline:2px solid var(--accent-2); outline-offset:1px;}
.plan-form input.field-filled{border-color:var(--whatsapp); background:var(--accent-tint);}
.plan-form .btn{align-self:flex-start;}
.plan-note{font-size:12px; color:var(--text-muted); margin-top:-6px;}
.plan-note a{color:var(--accent-2); text-decoration:underline;}
.plan-note a:hover{color:var(--accent);}

.plan-preview{
  background:#eef5ea; border:1px solid var(--border); border-radius:var(--radius-card);
  padding:20px; display:flex; flex-direction:column; gap:12px;
  position:sticky; top:100px;
}
.plan-preview-header{display:flex; align-items:center; gap:8px; font-size:11px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; color:var(--whatsapp);}
.plan-preview-header i{font-size:15px;}
.plan-preview-bubble{
  background:#fff; border-radius:12px; padding:14px 16px; font-size:12.5px; line-height:1.8;
  color:var(--text); white-space:pre-line; box-shadow:0 2px 6px rgba(0,0,0,0.06);
  min-height:150px;
}
.plan-preview-bubble .placeholder-text{color:var(--text-muted); font-style:italic;}
.plan-preview-note{font-size:11px; color:var(--text-muted); line-height:1.6;}

@media (max-width:900px){
  .plan-layout{grid-template-columns:1fr;}
  .plan-preview{position:static;}
}

.section-disclaimer{
  margin:40px auto 0 auto; padding-top:20px; border-top:1px solid var(--border);
  font-size:12px; line-height:1.9; color:var(--text-muted);
  max-width:820px; text-align:center;
}

@media (max-width:720px){
  .form-row{grid-template-columns:1fr;}
}

/* ---------- gallery carousel ---------- */
.gallery-section{background:var(--dark); color:var(--on-dark); padding:88px 0;}
.gallery-track{
  display:flex; gap:16px; overflow-x:auto; scroll-snap-type:x mandatory;
  scroll-padding-left:24px;
  padding:4px 4px 12px 4px; margin:0 -4px;
  scrollbar-width:none; -ms-overflow-style:none;
}
.gallery-track::-webkit-scrollbar{display:none;}
.gallery-slide{
  position:relative; flex:0 0 auto; width:320px; height:420px;
  border-radius:var(--radius-card); overflow:hidden; scroll-snap-align:start;
  background-size:cover; background-position:center;
}
.gallery-slide::after{
  content:''; position:absolute; inset:0; z-index:0;
  background:linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.6) 100%);
}
.gallery-slide-label{
  position:absolute; left:16px; bottom:16px; z-index:1;
  font-size:12px; font-weight:700; letter-spacing:0.06em; text-transform:uppercase;
  color:#fff; background:rgba(10,14,18,0.55); padding:8px 14px; border-radius:var(--radius-pill);
}
.gallery-nav{display:flex; gap:10px; margin-top:24px; justify-content:flex-end;}
.gallery-arrow{
  width:44px; height:44px; border-radius:999px; border:1px solid var(--border-on-dark);
  background:transparent; color:var(--on-dark); display:flex; align-items:center; justify-content:center;
  cursor:pointer;
}
.gallery-arrow:hover{border-color:var(--on-dark);}

@media (max-width:720px){
  .gallery-slide{width:78vw; height:360px;}
}

/* ---------- CTA band ---------- */
.cta-band{
  background:var(--dark); color:var(--on-dark);
  border-radius:var(--radius-card);
  padding:56px 48px; display:flex; align-items:center; justify-content:space-between;
  gap:24px; flex-wrap:wrap;
}

/* ---------- floating whatsapp ---------- */
.floating-whatsapp{
  position:fixed; right:24px; bottom:24px; z-index:50;
  width:56px; height:56px; border-radius:999px;
  background:var(--whatsapp); color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 12px 28px rgba(0,0,0,0.28);
  opacity:0; transform:translateY(16px) scale(0.9); pointer-events:none;
  transition:opacity .25s ease, transform .25s ease, background .15s ease;
}
.floating-whatsapp.visible{opacity:1; transform:translateY(0) scale(1); pointer-events:auto;}
.floating-whatsapp:hover{background:var(--whatsapp-hover);}
.floating-whatsapp i{font-size:24px;}

@media (max-width:720px){
  .floating-whatsapp{right:16px; bottom:16px; width:52px; height:52px;}
  .floating-whatsapp i{font-size:21px;}
}

/* ---------- cookie notice ---------- */
.cookie-banner{
  position:fixed; z-index:70; left:24px; bottom:24px;
  width:min(420px, calc(100vw - 140px));
  background:var(--dark); color:var(--on-dark);
  border-radius:var(--radius-card);
  box-shadow:0 20px 50px rgba(0,0,0,0.35);
  padding:16px 16px 0 16px;
  opacity:0; transform:translateY(16px); pointer-events:none;
  transition:opacity .3s ease, transform .3s ease;
  overflow:hidden;
}
.cookie-banner.visible{opacity:1; transform:translateY(0); pointer-events:auto;}
.cookie-banner-inner{display:flex; align-items:flex-start; gap:12px; padding-bottom:14px;}
.cookie-text{font-size:12.5px; line-height:1.6; color:var(--on-dark-muted); flex:1; margin:0;}
.cookie-text a{color:var(--accent-2); text-decoration:underline;}
.cookie-text-short{display:none;}
.cookie-actions{display:flex; align-items:center; gap:8px; flex:none;}
.cookie-agree{
  background:var(--accent-2); color:#fff; border:none; border-radius:999px;
  padding:8px 16px; font-family:var(--font-sans); font-size:12px; font-weight:700; cursor:pointer; white-space:nowrap;
}
.cookie-agree:hover{background:var(--accent);}
.cookie-close{
  background:transparent; border:none; color:var(--on-dark-muted); cursor:pointer;
  width:26px; height:26px; flex:none; display:flex; align-items:center; justify-content:center;
  font-size:16px; line-height:1; border-radius:999px;
}
.cookie-close:hover{color:var(--on-dark); background:rgba(245,241,234,0.12);}
.cookie-progress-track{position:absolute; left:0; right:0; bottom:0; height:3px; background:rgba(245,241,234,0.14);}
.cookie-progress-bar{height:100%; width:100%; background:var(--whatsapp);}

@media (max-width:640px){
  .cookie-banner{left:12px; right:12px; bottom:84px; width:auto;}
  .cookie-text-full{display:none;}
  .cookie-text-short{display:inline;}
}

/* ---------- footer ---------- */
.site-footer{background:var(--dark); color:var(--on-dark-muted); padding:64px 0 0 0;}
.footer-inner{
  display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:40px;
  padding-bottom:40px; border-bottom:1px solid var(--border-on-dark);
}
.footer-brand .logo{color:var(--on-dark);}
.footer-brand p{margin-top:14px; font-size:14px; max-width:320px;}
.site-footer h4{
  font-family:var(--font-sans); font-size:12px; font-weight:700; letter-spacing:0.1em;
  text-transform:uppercase; color:var(--on-dark); margin-bottom:14px;
}
.site-footer .footer-links, .site-footer .footer-contact{display:flex; flex-direction:column; gap:10px; font-size:14px;}
.site-footer .footer-links a:hover, .site-footer .footer-contact a:hover{color:var(--on-dark);}
.footer-disclaimer{
  padding:24px 24px 0 24px; font-size:11px; line-height:1.9;
  color:var(--on-dark-muted); text-align:center;
}
.footer-disclaimer p{max-width:920px; margin:0 auto;}
.footer-bottom{display:flex; align-items:center; justify-content:space-between; padding:22px 24px; font-size:12px;}

/* ---------- privacy / legal doc ---------- */
.doc{max-width:720px; display:flex; flex-direction:column; gap:36px; margin:0 auto;}
.doc-header{display:flex; flex-direction:column; gap:10px; padding-bottom:28px; border-bottom:1px solid var(--border);}
.doc-toc{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-card);
  padding:24px 28px;
}
.doc-toc h2{
  font-family:var(--font-sans); font-size:12px; font-weight:700; letter-spacing:0.1em;
  text-transform:uppercase; color:var(--gold); margin:0 0 14px 0;
}
.doc-toc ol{margin:0; padding:0; list-style:none; columns:2; column-gap:32px;}
.doc-toc li{font-size:13.5px; line-height:1.6; margin-bottom:8px; break-inside:avoid; text-align:start;}
.doc-toc a{color:var(--accent-2);}
.doc-toc a:hover{color:var(--accent); text-decoration:underline;}
.doc-header .updated{font-size:13px; color:var(--text-muted);}
.doc section{padding:0; display:flex; flex-direction:column; gap:10px; scroll-margin-top:100px;}
.doc section ul{margin:4px 0 0 0; padding-inline-start:20px; display:flex; flex-direction:column; gap:6px;}
.doc section li{font-size:14.5px; line-height:1.7; color:var(--text-muted);}
.doc section p{font-size:14.5px; color:var(--text-muted);}
.doc section a{color:var(--accent-2); text-decoration:underline;}

/* ---------- thank-you ---------- */
.confirm{
  min-height:64vh; display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; gap:20px; padding:80px 24px;
}
.icon-ring{
  width:64px; height:64px; border-radius:999px;
  border:1px solid rgba(28,79,94,0.3); background:var(--accent-tint);
  display:flex; align-items:center; justify-content:center;
}
.icon-ring svg{width:26px; height:26px; stroke:var(--accent);}
.confirm .lead{max-width:440px;}
.confirm .cta-row{display:flex; align-items:center; gap:18px; margin-top:6px; flex-wrap:wrap; justify-content:center;}
.confirm .link{font-size:13px; font-weight:600; color:var(--text-muted);}
.confirm .link:hover{color:var(--accent);}

/* ---------- responsive ---------- */
@media (max-width:900px){
  .grid-3, .grid-4{grid-template-columns:repeat(2, minmax(0,1fr));}
  .footer-inner{grid-template-columns:1fr 1fr;}
  h1{font-size:40px;}
  h2{font-size:28px;}
}

@media (max-width:720px){
  .header-inner{height:58px;}
  .logo{font-size:17px;}
  .nav{
    position:fixed; inset:58px 0 auto 0; flex-direction:column; align-items:flex-start;
    gap:0; background:var(--bg); border-bottom:1px solid var(--border);
    padding:8px 24px 16px 24px; transform:translateY(-8px); opacity:0; pointer-events:none;
    transition:opacity .15s ease, transform .15s ease;
  }
  .nav a{padding:12px 0; width:100%; border-bottom:1px solid var(--border);}
  .site-header.nav-open .nav{opacity:1; transform:translateY(0); pointer-events:auto;}
  .header-actions .btn-sm{display:none;}
  .nav-toggle{display:flex;}
  .grid-3, .grid-4{grid-template-columns:1fr;}
  .footer-inner{grid-template-columns:1fr; gap:32px;}
  .cta-band{flex-direction:column; align-items:flex-start; padding:40px 28px;}
  h1{font-size:32px;}

  .hero{min-height:0;}
  .hero-inner{padding:36px 0; gap:14px;}

  .masthead{padding:32px 0 28px 0;}
  .masthead h1{margin-top:8px;}
  .masthead .lead{font-size:14.5px; margin-top:10px !important;}
  .masthead-cta-row{gap:10px; margin-top:16px;}
  .masthead-cta-row .btn{padding:12px 20px; font-size:13.5px;}
  .masthead-stats{gap:16px; margin-top:18px; padding-top:16px;}
  .masthead-stat b{font-size:18px;}
  .masthead-stat span{font-size:11px;}
}
