/* ================================
   AJ HOMES LLC — STYLES
   Palette: Red / White / Black
   ================================ */

:root {
  --black: #0a0a0a;
  --black-2: #131313;
  --ink: #1a1a1a;
  --gray-1: #f6f6f6;
  --gray-2: #ededed;
  --gray-3: #8a8a8a;
  --gray-4: #4a4a4a;
  --white: #ffffff;
  --red: #c8102e;
  --red-dark: #9c0a23;
  --red-soft: rgba(200, 16, 46, 0.1);

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

  --container: 1240px;
  --radius: 6px;
  --radius-lg: 14px;
  --shadow-1: 0 6px 24px rgba(0, 0, 0, 0.08);
  --shadow-2: 0 20px 60px rgba(0, 0, 0, 0.18);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
  color: var(--black);
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h3 { font-size: 1.35rem; font-family: var(--font-body); font-weight: 700; }
em { font-style: italic; color: var(--red); font-weight: 700; }
.red { color: var(--red); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

.section { padding: 110px 0; }
@media (max-width: 768px) { .section { padding: 70px 0; } }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gray-4);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
}
.eyebrow.center { display: flex; justify-content: center; }
.eyebrow.light { color: rgba(255, 255, 255, 0.85); }
.eyebrow .bar {
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--red);
}

.lead { font-size: 1.1rem; color: var(--gray-4); max-width: 620px; margin: 0 auto; }
.section-head { margin-bottom: 64px; }
.section-head.center { text-align: center; }
.section-head.light h2,
.section-head.light .lead { color: var(--white); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-sm { padding: 10px 18px; font-size: 0.78rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(200, 16, 46, 0.35); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--ink); transform: translateY(-2px); }
.btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.4); }
.btn-ghost:hover { background: var(--white); color: var(--black); border-color: var(--white); }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: all var(--transition);
  padding: 22px 0;
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.08em;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  border-radius: var(--radius);
  letter-spacing: 0;
}
.brand-mark.big { width: 54px; height: 54px; font-size: 1.4rem; }
.brand-text { font-size: 1rem; }
.brand-text em { color: var(--red); font-style: normal; }
.brand-logo {
  height: 44px;
  width: auto;
  display: block;
  background: var(--white);
  padding: 4px 8px;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.brand-llc {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  color: var(--red);
  padding-left: 2px;
}
.footer-logo {
  height: 70px;
  width: auto;
  display: block;
  background: var(--white);
  padding: 6px 12px;
  border-radius: var(--radius);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  position: relative;
  transition: color var(--transition);
}
.nav-links a:not(.btn):hover { color: var(--red); }
.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: center;
}
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 4px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}
.lang-switch a,
.lang-switch span {
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition);
  padding: 0 8px;
}
.lang-switch a:hover { color: var(--white); }
.lang-switch a::after { display: none !important; }
.lang-switch .active { color: var(--red); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--white);
  transition: all var(--transition);
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--black);
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    transition: right var(--transition);
    gap: 24px;
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.05rem; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=2200&q=85');
  background-size: cover;
  background-position: center;
  animation: slowZoom 22s ease-in-out infinite alternate;
}
@keyframes slowZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10, 10, 10, 0.92) 0%,
    rgba(10, 10, 10, 0.75) 40%,
    rgba(10, 10, 10, 0.45) 100%
  );
}
.hero-content {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 140px 28px 80px;
  width: 100%;
}
.hero h1 {
  color: var(--white);
  max-width: 820px;
  margin-bottom: 24px;
}
.hero h1 em { color: var(--red); }
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  margin: 0 0 40px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}
.hero-meta {
  display: flex;
  gap: 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 32px;
  max-width: 720px;
  flex-wrap: wrap;
}
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta strong {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}
.hero-meta span {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-cue span {
  width: 3px;
  height: 8px;
  background: var(--white);
  border-radius: 2px;
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(0); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

@media (max-width: 768px) {
  .hero-meta { gap: 28px; }
  .hero-meta strong { font-size: 1.8rem; }
}

/* ---------- LAYOUT GRID ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; gap: 50px; }
}

/* ---------- ABOUT ---------- */
.about { background: var(--white); }
.about-img { position: relative; }
.about-img img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  aspect-ratio: 4/5;
  object-fit: cover;
}
.about-img-tag {
  position: absolute;
  bottom: 30px; left: -30px;
  background: var(--red);
  color: var(--white);
  padding: 22px 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
}
.about-img-tag strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
}
.about-img-tag span {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-top: 4px;
}
.about-bullets {
  margin: 28px 0 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}
.about-bullets li {
  position: relative;
  padding-left: 28px;
  color: var(--gray-4);
  font-size: 0.95rem;
}
.about-bullets li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 0;
  width: 18px; height: 18px;
  background: var(--red);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 600px) {
  .about-bullets { grid-template-columns: 1fr; }
  .about-img-tag { left: 20px; bottom: 20px; padding: 16px 22px; }
}

/* ---------- SERVICES ---------- */
.services { background: var(--gray-1); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 960px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: all var(--transition);
  position: relative;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2);
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--red);
  transition: width var(--transition);
}
.service-card:hover::after { width: 100%; }
.service-img {
  height: 220px;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}
.service-card:hover .service-img { transform: scale(1.06); }
.service-body { padding: 28px; }
.service-body h3 { margin-bottom: 10px; color: var(--black); }
.service-body p { color: var(--gray-4); margin: 0; font-size: 0.95rem; }

/* ---------- GALLERY ---------- */
.gallery { background: var(--white); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  grid-auto-flow: dense;
  gap: 18px;
}
.g-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--gray-2);
}
.g-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s ease;
}
.g-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(200, 16, 46, 0.5), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.g-item:hover img { transform: scale(1.08); }
.g-item:hover::after { opacity: 1; }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .g-wide, .g-tall { grid-column: auto; grid-row: auto; }
}

.gallery-cta {
  margin-top: 56px;
  text-align: center;
}
.gallery-cta p {
  font-size: 1rem;
  color: var(--gray-4);
  margin: 0 0 18px;
  letter-spacing: 0.03em;
}

/* ---------- WHY US ---------- */
.why {
  position: relative;
  color: var(--white);
  overflow: hidden;
}
.why-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1600566753190-17f0baa2a6c3?auto=format&fit=crop&w=2200&q=85');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.why-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.94), rgba(10, 10, 10, 0.85));
}
.why-inner { position: relative; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
@media (max-width: 960px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

.why-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(6px);
  transition: all var(--transition);
}
.why-card:hover {
  background: rgba(200, 16, 46, 0.12);
  border-color: var(--red);
  transform: translateY(-4px);
}
.why-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 14px;
}
.why-card h3 { color: var(--white); margin-bottom: 8px; }
.why-card p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- CONTACT ---------- */
.contact { background: var(--gray-1); }
.contact-info h2 { margin-bottom: 18px; }
.contact-info > p { color: var(--gray-4); margin-bottom: 36px; }
.contact-list { display: flex; flex-direction: column; gap: 22px; margin-top: 24px; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 18px;
}
.ci {
  flex-shrink: 0;
  width: 50px; height: 50px;
  background: var(--white);
  border: 1px solid var(--gray-2);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--red);
}
.contact-list strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-4);
  margin-bottom: 4px;
}
.contact-list a, .contact-list span {
  color: var(--black);
  font-size: 1.02rem;
  font-weight: 500;
  transition: color var(--transition);
}
.contact-list a:hover { color: var(--red); }

.contact-form {
  background: var(--white);
  padding: 44px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
}
.contact-form h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 28px;
  color: var(--black);
}
.contact-form label {
  display: block;
  margin-bottom: 18px;
}
.contact-form label span {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-4);
  margin-bottom: 8px;
  font-weight: 600;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--gray-2);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--black);
  background: var(--white);
  transition: border-color var(--transition);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
}
.contact-form textarea { resize: vertical; min-height: 100px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) {
  .row-2 { grid-template-columns: 1fr; }
  .contact-form { padding: 28px; }
}
.form-note {
  margin: 16px 0 0;
  padding: 12px 16px;
  background: var(--red-soft);
  color: var(--red-dark);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 28px;
}
.footer-inner { display: flex; flex-direction: column; gap: 36px; }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-brand strong {
  display: block;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
}
.footer-brand em { color: var(--red); font-style: normal; }
.footer-brand span {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--red); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-credit a {
  color: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: color var(--transition), border-color var(--transition);
}
.footer-credit a:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
