/* ===========================================================
   [YOUR COMPANY] — Real Estate & Construction
   Shared stylesheet. Edit the variables below to rebrand.
   =========================================================== */

:root {
  /* --- Brand colors (change these to rebrand the whole site) --- */
  --brand:        #4a3728;   /* espresso brown — headings, nav, footer */
  --brand-dark:   #35271c;
  --accent:       #c0996e;   /* caramel — buttons, pills, highlights */
  --accent-dark:  #8a6440;   /* deep caramel — text/links on light */

  /* --- Neutrals --- */
  --ink:      #4a3728;   /* espresso brown — body text */
  --muted:    #7b6a5c;   /* softer brown — secondary text */
  --line:     #e7dccb;   /* borders */
  --bg:       #faf5ea;   /* warm cream — page background */
  --bg-soft:  #f2e9da;   /* deeper beige — alternating sections */
  --surface:  #fffdf8;   /* warm near-white — cards, forms */

  --radius: 12px;
  --shadow: 0 10px 30px rgba(74, 55, 40, 0.08);
  --shadow-lg: 0 20px 50px rgba(74, 55, 40, 0.16);
  --maxw: 1160px;
  --font-head: "Georgia", "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; color: var(--brand); font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p  { color: var(--muted); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.text-center { text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 700;
  margin-bottom: 14px;
}
.section-lead { max-width: 620px; margin: 14px auto 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: var(--brand); }
.btn--primary:hover { background: var(--brand); color: var(--accent); }
.btn--ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--ghost:hover { background: var(--brand); color: var(--surface); }
.btn--dark { background: var(--brand); color: #fff; }
.btn--dark:hover { background: var(--brand-dark); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,245,234,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--brand); color: var(--accent);
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.2rem;
}
.brand__name { font-family: var(--font-head); font-weight: 700; color: var(--brand); font-size: 1.15rem; }
.brand__name small { display: block; font-family: var(--font-body); font-size: .62rem; letter-spacing: .15em; color: var(--muted); text-transform: uppercase; }
.brand__logo { height: 58px; width: auto; display: block; }

.nav__links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav__links a { font-weight: 500; font-size: .95rem; color: var(--ink); position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--accent); transition: width .2s ease;
}
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }
.nav__cta { margin-left: 8px; }

.nav__toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 42px; height: 42px; flex-direction: column; gap: 5px; justify-content: center; align-items: center;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--brand); transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--ink); overflow: hidden;
  min-height: 88vh; display: flex; align-items: center;
  background: var(--bg);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(90deg, rgba(250,245,234,.96) 0%, rgba(250,245,234,.86) 38%, rgba(250,245,234,.45) 72%, rgba(250,245,234,.15) 100%),
    url("../images/hero.jpg") center/cover no-repeat, var(--bg);
  animation: kenburns 22s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.09); }
}
.hero__inner { position: relative; z-index: 1; max-width: 720px; padding-block: 60px; }
.hero h1 { color: var(--brand); }
.hero p { color: var(--muted); font-size: 1.15rem; margin: 20px 0 30px; max-width: 560px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Stats bar ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 10px; }
.stat__num { font-family: var(--font-head); font-size: 2.4rem; color: var(--brand); font-weight: 700; }
.stat__label { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Pillars / feature cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__icon {
  width: 52px; height: 52px; border-radius: 10px; margin-bottom: 18px;
  background: var(--bg-soft); color: var(--brand);
  display: grid; place-items: center; font-size: 1.5rem;
}
.card h3 { margin-bottom: 10px; }

/* ---------- Projects ---------- */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.project {
  border-radius: var(--radius); overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project__img {
  aspect-ratio: 4/3; background: var(--bg-soft) center/cover; position: relative;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.project:hover .project__img { transform: scale(1.07); }
.project__tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--accent); color: var(--brand); font-size: .72rem; font-weight: 700;
  padding: 5px 12px; border-radius: 20px; letter-spacing: .04em; text-transform: uppercase;
}
.project__tag--done { background: var(--brand); color: #fff; }
.project__body { padding: 22px 22px 26px; }
.project__body h3 { margin-bottom: 6px; }
.project__meta { font-size: .85rem; color: var(--accent-dark); font-weight: 600; margin-bottom: 10px; }
.project__body p { font-size: .92rem; }

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split ul { list-style: none; margin-top: 20px; display: grid; gap: 12px; }
.split li { padding-left: 30px; position: relative; color: var(--ink); }
.split li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent-dark); font-weight: 700;
}

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.member { text-align: center; }
.member__photo {
  aspect-ratio: 1; border-radius: var(--radius); background: var(--bg-soft) center/cover;
  margin-bottom: 14px; border: 1px solid var(--line);
}
.member h3 { font-size: 1.05rem; margin-bottom: 2px; }
.member span { font-size: .85rem; color: var(--accent-dark); font-weight: 600; }
.member-qual { font-size: .78rem; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.team-group-label { margin-top: 44px; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote { background: var(--surface); border-radius: var(--radius); padding: 30px; border: 1px solid var(--line); }
.quote p { font-style: italic; color: var(--ink); margin-bottom: 18px; }
.quote__by { display: flex; align-items: center; gap: 12px; }
.quote__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: var(--accent); display: grid; place-items: center; font-weight: 700; }
.quote__by strong { display: block; font-size: .95rem; color: var(--brand); }
.quote__by small { color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; border-radius: var(--radius); padding: 54px; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 560px; margin: 12px auto 26px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-info li { list-style: none; margin-bottom: 22px; }
.contact-info small { display: block; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; color: var(--accent-dark); font-weight: 700; margin-bottom: 4px; }
.contact-info strong { font-weight: 600; color: var(--ink); font-size: 1.05rem; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field { margin-bottom: 18px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: .95rem; color: var(--ink); background: var(--bg-soft);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); background: var(--surface);
}
.form__note { font-size: .82rem; color: var(--muted); margin-top: 8px; }
.form__status { margin-top: 14px; font-weight: 600; }
.form__status.ok { color: var(--brand); }

/* ---------- Page header (interior pages) ---------- */
.page-head {
  background: linear-gradient(180deg, rgba(250,245,234,.88), rgba(242,233,218,.94)), url("../images/hero.jpg") center/cover, var(--bg-soft);
  color: var(--ink); padding: 90px 0 70px; text-align: center;
  border-bottom: 1px solid var(--line);
}
.page-head h1 { color: var(--brand); }
.page-head p { color: var(--muted); max-width: 600px; margin: 12px auto 0; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-dark); color: rgba(255,255,255,.75); padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer a { color: rgba(255,255,255,.75); font-size: .92rem; display: block; margin-bottom: 10px; }
.site-footer a:hover { color: var(--accent); }
.footer-about p { color: rgba(255,255,255,.6); font-size: .92rem; margin-top: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .brand__name { color: #fff; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal--left  { transform: translateX(-40px); }
.reveal--right { transform: translateX(40px); }
.reveal--scale { transform: scale(.94); }

/* Respect users who prefer no motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .hero::before { animation: none; }
}

/* ---------- Featured project (spec card) ---------- */
.project-feature {
  display: grid; grid-template-columns: 1.15fr 1fr;
  border-radius: var(--radius); overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.project-feature__gallery { display: grid; grid-template-rows: 1.7fr 1fr; gap: 6px; background: var(--bg-soft); }
.project-feature__gallery.gallery--solo { grid-template-rows: 1fr; grid-template-columns: 1fr; }
.project-feature__gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.project-feature__gallery img:hover { transform: scale(1.05); }
.project-feature__info { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.project-feature__info .project__tag { position: static; align-self: flex-start; margin-bottom: 14px; }
.project-feature__info h3 { font-size: 1.9rem; margin-bottom: 4px; }
.spec-list { list-style: none; margin-top: 22px; display: grid; }
.spec-list li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.spec-list li span:first-child { color: var(--muted); }
.spec-list li span:last-child { color: var(--ink); font-weight: 600; text-align: right; }
@media (max-width: 820px) {
  .project-feature { grid-template-columns: 1fr; }
  .project-feature__gallery { grid-template-rows: none; grid-template-columns: 1.6fr 1fr; }
  .project-feature__info { padding: 30px; }
}

/* ---------- PMC interiors gallery ---------- */
.pmc-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 16px; }
.pmc-gallery img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.pmc-gallery img:hover { transform: scale(1.04); }
@media (max-width: 820px) { .pmc-gallery { grid-template-columns: 1fr 1fr; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .projects, .quotes { grid-template-columns: 1fr 1fr; }
  .team { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .nav__links {
    position: fixed; inset: 72px 0 auto 0;
    background: var(--surface); flex-direction: column; align-items: flex-start;
    gap: 0; padding: 10px 20px 20px; border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .25s ease; box-shadow: var(--shadow);
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: 12px 0; width: 100%; }
  .nav__cta { margin: 8px 0 0; }
  .nav__toggle { display: flex; }
  .brand__logo { height: 44px; }
  .grid-3, .projects, .quotes, .team { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .cta-band { padding: 36px 22px; }
  /* stronger, even overlay on small screens for headline legibility */
  .hero::before {
    background:
      linear-gradient(180deg, rgba(250,245,234,.90), rgba(248,242,230,.82)),
      url("../images/hero.jpg") center/cover no-repeat, var(--bg);
  }
}
