/*
Theme Name: Homebuilding Starter
Theme URI: https://example.com/
Author: Amin
Author URI: https://example.com/
Description: Minimal starter theme with the provided styles.
Version: 1.0.1
License: GNU GPL v2 or later
Text Domain: homebuilding-starter
*/

:root{
  --green:#2F4F47;
  --green-accent:#3e6d61;
  --nude:#F5F1E8;
  --ink:#0B0C0C;
  --muted:#6b7280;
  --border:#e6e1d6;
  --white:#ffffff;
}

*{box-sizing:border-box}
html,body{
  margin:0; padding:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--ink); background:var(--white);
}
img{max-width:100%; height:auto; display:block}
a{color:var(--green); text-decoration:none}
a:hover{text-decoration:underline}

.wrap{max-width:1100px; margin:0 auto; padding:0 20px}

/* ===== Header & Logo ===== */
.header{
  position:sticky; top:0; z-index:1000;
  background:var(--white); border-bottom:1px solid var(--border);
}
.header .wrap{
  display:flex; align-items:center; justify-content:space-between; gap:24px;
}

/* لوگوی انتخابی وردپرس */
.custom-logo{ height:56px; width:auto; display:block; }

/* اگر لوگو نداشتی، عنوان سایت */
.brand{ font-weight:700; font-size:20px; color:var(--ink); }

/* ===== Primary Menu (WP outputs: <nav class="nav"><ul class="menu">...) ===== */
.header .menu{
  list-style:none; display:flex; gap:20px; margin:0; padding:0;
}
.header .menu li a{
  font-weight:600; text-decoration:none; color:var(--green);
}
.header .menu li a:hover{ text-decoration:underline; }

/* دکمه همبرگر (اگه بعداً لازم شد) */
.header .primary-menu{
  list-style:none;
  display:flex;
  gap:20px;
  margin:0;
  padding:0;
}

.header .primary-menu li a{
  font-weight:600;
  text-decoration:none;
  color:var(--green);
}

.header .primary-menu li a:hover{
  text-decoration:underline;
}

/* ===== Content helpers (دلخواه) ===== */
.hero{ background:var(--nude); padding:80px 0 70px; border-bottom:1px solid var(--border) }
.hero h1{ font-size:clamp(32px,5vw,56px); margin:0 0 12px; color:var(--green) }
.hero p{ font-size:clamp(16px,2.5vw,20px); color:#374151; max-width:820px }
.actions{ margin:18px 0 10px; display:flex; gap:12px; flex-wrap:wrap }
.btn{ display:inline-block; border-radius:10px; font-weight:700; padding:12px 18px }
.btn.primary{ background:var(--green); color:#fff }
.btn.ghost{ border:2px solid var(--green); color:var(--green) }

/* ===== Mobile ===== */
@media (max-width:768px){
  .header .wrap{ flex-direction:column; align-items:flex-start; gap:12px; }
  .header .menu{ flex-direction:column; gap:12px; }
}
.header .nav { display: block; }
.header .menu{ list-style:none; margin:0; padding:0; display:flex; gap:16px; }
.header .menu li{ display:inline-block; }
.header .menu a{ font-weight:600; color:var(--green); text-decoration:none; }
.header .menu a:hover{ text-decoration:underline; }