/* =========================================================
   HU BUILDERS & CO — main stylesheet
   Modern architecture & construction site
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&display=swap');

:root {
  --primary-color: #1a1a1a;
  --secondary-color: #c9892a;
  --secondary-dark: #a06f1f;
  --secondary-soft: #f5e6c8;
  --accent-color: #c9892a;
  --ink: #161616;
  --text: #2b2b2b;
  --text-dark: #1a1a1a;
  --text-light: #6b6b6b;
  --text-muted: #9a9a9a;
  --light-bg: #f7f4ef;
  --paper: #faf8f4;
  --white: #ffffff;
  --border-color: rgba(0, 0, 0, 0.08);
  --line-light: rgba(255, 255, 255, 0.1);

  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 24px;

  --shadow-sm: 0 4px 18px rgba(0, 0, 0, 0.06);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 16px 48px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.18);

  --container: 1240px;
  --header-h: 80px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color 0.25s var(--ease); }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; }
input, textarea, button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--secondary-color);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.15;
}

p { margin-bottom: 1rem; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(26, 26, 26, 0.98);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.header-container {
  max-width: var(--container);
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo h1 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
}

.nav-menu a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding: 6px 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--secondary-color);
  transition: width 0.3s var(--ease);
}

.nav-menu a:hover { color: var(--white); }
.nav-menu a:hover::after { width: 100%; }

@media (max-width: 900px) {
  .nav-menu {
    gap: 16px;
    font-size: 0.85rem;
  }
  .nav-menu a { font-size: 0.82rem; }
}

@media (max-width: 640px) {
  .nav-menu { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 28px 80px;
  overflow: hidden;
  color: var(--white);
}

.hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55) saturate(1.05);
  z-index: 0;
  animation: heroZoom 18s var(--ease) both;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.45) 0%, rgba(10,10,10,0.6) 60%, rgba(10,10,10,0.85) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  padding: 0 8px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6.4vw, 5.2rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  max-width: 18ch;
  margin-bottom: 24px;
  animation: fadeInUp 0.9s var(--ease) both;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
  max-width: 56ch;
  margin-bottom: 36px;
  animation: fadeInUp 0.9s 0.15s var(--ease) both;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--secondary-color);
  color: var(--white);
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 0;
  box-shadow: 0 14px 30px rgba(201, 137, 42, 0.35);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  animation: fadeInUp 0.9s 0.3s var(--ease) both;
}

.cta-button:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(201, 137, 42, 0.45);
}

/* ---------- Section primitives ---------- */
section { padding: 110px 28px; }
@media (min-width: 1024px) { section { padding: 140px 28px; } }

.section-header {
  max-width: var(--container);
  margin: 0 auto 64px;
  text-align: center;
}

.section-header h3 {
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 60ch;
  margin: 0 auto;
}

/* ---------- About ---------- */
.about { background: var(--white); }

.about-container {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}

@media (min-width: 900px) {
  .about-container { grid-template-columns: 1.05fr 1fr; gap: 80px; }
}

.about-content h3 {
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  margin-bottom: 22px;
}

.about-content p {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.stats-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (min-width: 600px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-card {
  background: var(--paper);
  border: 1px solid var(--border-color);
  padding: 24px 18px;
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.stat-card h4 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--secondary-color);
  margin-bottom: 6px;
}

.stat-card p {
  color: var(--text-light);
  font-size: 0.78rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* ---------- Project grids (residential / commercial) ---------- */
.residential { background: var(--paper); }
.commercial { background: var(--light-bg); }

.projects-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 700px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } }

.project-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.project-image {
  height: 240px;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--ease);
}

.project-card:hover .project-image { transform: scale(1.05); }

.project-info {
  padding: 26px 26px 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-info h4 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.project-info p {
  color: var(--text-light);
  font-size: 0.96rem;
  flex: 1;
}

.project-tag {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 14px;
  background: var(--secondary-soft);
  color: var(--secondary-dark);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  align-self: flex-start;
}

/* ---------- Services ---------- */
.services { background: var(--white); }

.service-row {
  max-width: var(--container);
  margin: 0 auto 90px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.service-row:last-child { margin-bottom: 0; }

@media (min-width: 900px) {
  .service-row { grid-template-columns: 1fr 1fr; gap: 70px; }
}

.service-row-reverse .service-content { order: 2; }
.service-row-reverse .service-image { order: 1; }

@media (max-width: 899px) {
  .service-row-reverse .service-content,
  .service-row-reverse .service-image { order: initial; }
}

.service-content h4 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 18px;
}

.service-content p {
  color: var(--text-light);
  font-size: 1.02rem;
  margin-bottom: 22px;
}

.service-list {
  display: grid;
  gap: 12px;
}

.service-list li {
  position: relative;
  padding-left: 32px;
  color: var(--text);
  font-size: 0.98rem;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 20px;
  height: 2px;
  background: var(--secondary-color);
  transform: translateY(-50%);
}

.service-image {
  height: 380px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ---------- Process ---------- */
.process { background: var(--ink); color: var(--white); }
.process .section-header h3 { color: var(--white); }
.process .section-header p { color: rgba(255,255,255,0.7); }

.process-timeline {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 700px) { .process-timeline { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .process-timeline { grid-template-columns: repeat(5, 1fr); } }

.process-step {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.process-step:hover {
  transform: translateY(-4px);
  background: rgba(201, 137, 42, 0.08);
  border-color: var(--secondary-color);
}

.step-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 14px;
  line-height: 1;
}

.process-step h4 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.process-step p {
  color: rgba(255,255,255,0.7);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.step-image {
  height: 140px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
}

/* ---------- Featured ---------- */
.featured { background: var(--paper); }

.featured-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 800px) {
  .featured-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 320px 320px;
    gap: 28px;
  }
  .featured-card-large {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.featured-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 280px;
  box-shadow: var(--shadow-sm);
  isolation: isolate;
}

.featured-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s var(--ease);
  z-index: 0;
}

.featured-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.85) 100%);
  z-index: 1;
}

.featured-card:hover .featured-image { transform: scale(1.06); }

.featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px;
  z-index: 2;
  color: var(--white);
}

.featured-overlay h4 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.featured-overlay p {
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- Contact ---------- */
.contact { background: var(--white); }

.contact-container {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: start;
}

@media (min-width: 1000px) {
  .contact-container { grid-template-columns: 1.2fr 1fr; gap: 80px; }
}

.contact-content h3 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 18px;
}

.contact-content > p {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 36px;
  max-width: 56ch;
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 40px;
}

@media (min-width: 600px) {
  .contact-info { grid-template-columns: repeat(3, 1fr); }
}

.info-card {
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}

.info-card h5 {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.info-card p {
  font-size: 0.95rem;
  color: var(--text);
  margin: 0;
  line-height: 1.55;
}

.info-card a:hover { color: var(--secondary-color); }

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: 0.98rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.contact-form textarea { resize: vertical; min-height: 130px; }

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(201, 137, 42, 0.12);
}

.contact-form button {
  margin-top: 6px;
  justify-self: flex-start;
}

.contact-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.78);
  padding: 70px 28px 30px;
}

.footer-container {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-light);
}

@media (min-width: 700px) {
  .footer-container { grid-template-columns: 1.5fr 1fr 1fr; }
}

.footer h5 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-content p { color: rgba(255,255,255,0.6); font-size: 0.95rem; margin: 0; }

.footer-links ul,
.footer-legal ul {
  display: grid;
  gap: 10px;
}

.footer-links a,
.footer-legal a {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}

.footer-links a:hover,
.footer-legal a:hover { color: var(--secondary-color); }

.footer-bottom {
  max-width: var(--container);
  margin: 24px auto 0;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  margin: 0;
}

.footer-bottom a { color: rgba(255,255,255,0.7); }
.footer-bottom a:hover { color: var(--secondary-color); }

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ---------- Small-screen tuning ---------- */
@media (max-width: 600px) {
  section { padding: 80px 20px; }
  .hero { padding: calc(var(--header-h) + 30px) 20px 60px; }
  .header-container { padding: 0 20px; }
  .footer { padding: 60px 20px 24px; }
  .stat-card h4 { font-size: 1.6rem; }
}
