/* ===================================================
   Property Evolutions – Main Stylesheet
   =================================================== */

/* ---------- Reset & Variables ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0d2340;
  --navy-light: #163360;
  --gold:       #c9a227;
  --gold-light: #e6c05a;
  --white:      #ffffff;
  --off-white:  #f5f6f8;
  --gray:       #6b7280;
  --gray-light: #e5e7eb;
  --dark:       #111827;
  --radius:     8px;
  --shadow:     0 4px 24px rgba(0,0,0,.10);
  --transition: .25s ease;
  --max-w:      1160px;
  --font-head:  'Playfair Display', Georgia, serif;
  --font-body:  'Inter', 'Segoe UI', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }

/* ---------- Utilities ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.section--alt { background: var(--off-white); }
.tag {
  display: inline-block; font-size: .75rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--navy); line-height: 1.2; margin-bottom: 16px;
}
.section-sub { color: var(--gray); max-width: 640px; margin-bottom: 56px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius);
  font-weight: 600; font-size: .95rem; cursor: pointer;
  transition: var(--transition); border: 2px solid transparent;
}
.btn--primary { background: var(--gold); color: var(--navy); }
.btn--primary:hover { background: var(--gold-light); }
.btn--outline { border-color: var(--white); color: var(--white); }
.btn--outline:hover { background: rgba(255,255,255,.12); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-light); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: rgba(13,35,64,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201,162,39,.25);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__logo { display: flex; flex-direction: row; align-items: center; gap: 12px; line-height: 1.1; }
.nav__logo-img { width: 44px; height: 44px; flex-shrink: 0; }
.nav__logo-text { display: flex; flex-direction: column; }
.nav__logo-main { font-family: var(--font-head); font-size: 1.25rem; color: var(--white); font-weight: 700; letter-spacing: .02em; }
.nav__logo-sub { font-size: .65rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.nav__links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav__links a { color: rgba(255,255,255,.82); font-size: .875rem; font-weight: 500; letter-spacing: .04em; transition: color var(--transition); }
.nav__links a:hover { color: var(--gold); }
.nav__cta { margin-left: 16px; }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav__burger span { display: block; width: 26px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }
.nav__mobile { display: none; position: fixed; top: 72px; left: 0; right: 0; background: var(--navy); padding: 24px; z-index: 899; border-bottom: 2px solid var(--gold); }
.nav__mobile.open { display: block; }
.nav__mobile ul { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.nav__mobile ul a { color: rgba(255,255,255,.88); font-size: 1rem; font-weight: 500; }
.nav__mobile ul a:hover { color: var(--gold); }
.nav__mobile .btn { width: 100%; justify-content: center; margin-top: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(135deg, rgba(13,35,64,.90) 0%, rgba(22,51,96,.75) 60%, rgba(13,35,64,.85) 100%), url('images/hero-bg.jpg') center/cover no-repeat;
  background-color: var(--navy); overflow: hidden;
}
.hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 80px; background: linear-gradient(to top, var(--white), transparent); }
.hero__content { position: relative; z-index: 1; padding: 140px 0 80px; }
.hero__eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.hero__eyebrow::before { content: ''; display: block; width: 32px; height: 2px; background: var(--gold); }
.hero__title { font-family: var(--font-head); font-size: clamp(2.4rem, 6vw, 4.25rem); color: var(--white); line-height: 1.1; margin-bottom: 24px; max-width: 780px; }
.hero__title span { color: var(--gold); }
.hero__desc { color: rgba(255,255,255,.82); font-size: 1.1rem; max-width: 560px; margin-bottom: 40px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 72px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,.15); }
.hero__stat-num { font-family: var(--font-head); font-size: 2.25rem; color: var(--gold); font-weight: 700; line-height: 1; }
.hero__stat-label { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.65); margin-top: 4px; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about__img-placeholder { width: 100%; aspect-ratio: 4/3; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.3); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.about__img-wrap { position: relative; }
.about__img-badge { position: absolute; bottom: -24px; right: -24px; background: var(--gold); color: var(--navy); border-radius: var(--radius); padding: 20px 24px; font-weight: 700; text-align: center; box-shadow: var(--shadow); }
.about__img-badge span { display: block; font-size: 2rem; line-height: 1; }
.about__text { padding-left: 16px; }
.about__pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.about__pillar { background: var(--off-white); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 16px 18px; }
.about__pillar h4 { font-size: .9rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.about__pillar p  { font-size: .82rem; color: var(--gray); }

/* ---------- Services ---------- */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card { background: var(--white); border: 1px solid var(--gray-light); border-radius: 12px; padding: 36px 28px; transition: var(--transition); position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: var(--transition); }
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.service-card:hover::before { transform: scaleX(1); }
.service-card__icon { width: 52px; height: 52px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 1.4rem; }
.service-card h3 { font-family: var(--font-head); font-size: 1.1rem; color: var(--navy); margin-bottom: 10px; }
.service-card p { font-size: .875rem; color: var(--gray); line-height: 1.6; }

/* ---------- Process ---------- */
.process__steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.process__steps::before { content: ''; position: absolute; top: 36px; left: 10%; right: 10%; height: 2px; background: linear-gradient(to right, var(--gold), var(--navy-light)); z-index: 0; }
.process__step { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 12px; position: relative; z-index: 1; }
.process__step-num { width: 72px; height: 72px; border-radius: 50%; background: var(--navy); color: var(--gold); font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 3px solid var(--gold); margin-bottom: 20px; }
.process__step h4 { font-size: .9rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.process__step p  { font-size: .8rem; color: var(--gray); }

/* ---------- Markets ---------- */
.markets__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 56px; }
.market-card { background: var(--navy); border-radius: 16px; overflow: hidden; color: var(--white); }
.market-card__header { padding: 32px 32px 24px; background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy) 100%); border-bottom: 2px solid var(--gold); }
.market-card__header h3 { font-family: var(--font-head); font-size: 1.6rem; margin-bottom: 6px; }
.market-card__header p { color: rgba(255,255,255,.65); font-size: .875rem; }
.market-card__body { padding: 28px 32px 32px; }
.market-card__counties { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.market-card__counties li { display: flex; align-items: flex-start; gap: 12px; font-size: .9rem; color: rgba(255,255,255,.85); }
.market-card__counties li::before { content: '▸'; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.market-card__counties li strong { color: var(--white); }

/* ---------- Projects ---------- */
.projects__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); background: var(--white); border: 1px solid var(--gray-light); transition: var(--transition); }
.project-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,.14); }
.project-card__img { width: 100%; aspect-ratio: 16/10; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.3); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; overflow: hidden; }
.project-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.project-card:hover .project-card__img img { transform: scale(1.05); }
.projects__filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.projects__filter button { padding: 8px 20px; border-radius: 99px; border: 1.5px solid var(--gray-light); background: var(--white); font-size: .82rem; font-weight: 600; cursor: pointer; transition: var(--transition); color: var(--gray); }
.projects__filter button:hover, .projects__filter button.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.project-card__body { padding: 20px 22px 24px; }
.project-card__meta { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.project-card__body h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.project-card__body p  { font-size: .82rem; color: var(--gray); }

/* ---------- FAQ ---------- */
.faq__list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: var(--white); border: 1px solid var(--gray-light); border-radius: var(--radius); overflow: hidden; }
.faq__question { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; cursor: pointer; font-weight: 600; color: var(--navy); font-size: .95rem; transition: background var(--transition); user-select: none; }
.faq__question:hover { background: var(--off-white); }
.faq__icon { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; transition: var(--transition); }
.faq__item.open .faq__icon { transform: rotate(45deg); background: var(--gold); color: var(--navy); }
.faq__answer { display: none; padding: 16px 24px 20px; font-size: .9rem; color: var(--gray); line-height: 1.7; border-top: 1px solid var(--gray-light); }
.faq__item.open .faq__answer { display: block; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.contact__info h3 { font-family: var(--font-head); font-size: 1.5rem; color: var(--navy); margin-bottom: 16px; }
.contact__info p { color: var(--gray); margin-bottom: 32px; }
.contact__details { display: flex; flex-direction: column; gap: 20px; }
.contact__detail { display: flex; align-items: flex-start; gap: 14px; }
.contact__detail-icon { width: 40px; height: 40px; background: var(--navy); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.contact__detail-text span { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }
.contact__detail-text p { font-size: .9rem; color: var(--dark); }
.contact__form { background: var(--off-white); border-radius: 16px; padding: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--gray-light); border-radius: var(--radius); font-family: var(--font-body); font-size: .9rem; color: var(--dark); background: var(--white); transition: border-color var(--transition); outline: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,.75); padding: 64px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand-name { font-family: var(--font-head); font-size: 1.35rem; color: var(--white); font-weight: 700; margin-bottom: 4px; }
.footer__brand-sub { font-size: .65rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer__brand-desc { font-size: .85rem; line-height: 1.7; max-width: 300px; }
.footer__col h4 { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__col ul a { font-size: .875rem; color: rgba(255,255,255,.7); transition: color var(--transition); }
.footer__col ul a:hover { color: var(--gold); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; font-size: .8rem; color: rgba(255,255,255,.45); }
.footer__bottom a { color: var(--gold); }

/* ---------- Back to top ---------- */
#backToTop { position: fixed; bottom: 32px; right: 32px; width: 44px; height: 44px; background: var(--gold); color: var(--navy); border: none; border-radius: 50%; font-size: 1.1rem; cursor: pointer; box-shadow: var(--shadow); display: none; align-items: center; justify-content: center; z-index: 800; transition: var(--transition); }
#backToTop:hover { background: var(--gold-light); transform: translateY(-2px); }
#backToTop.visible { display: flex; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .process__steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .process__steps::before { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .about__grid { grid-template-columns: 1fr; }
  .about__text { padding-left: 0; }
  .about__img-badge { right: 0; }
  .markets__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__form { padding: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .projects__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .services__grid { grid-template-columns: 1fr; }
  .projects__grid { grid-template-columns: 1fr; }
  .about__pillars { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 24px; }
}
