/* =====================
   CODEX HOMES LLC — CSS
   ===================== */

:root {
  --navy: #1E2D5C;
  --navy-dark: #141E3F;
  --orange: #B82818;
  --orange-light: #CC3828;
  --white: #FFFFFF;
  --gray-light: #F5F5F5;
  --gray-mid: #CCCCCC;
  --gray-text: #555555;
  --max-width: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Arial', sans-serif;
  color: #222;
  background: #fff;
}

a { text-decoration: none; color: inherit; }

/* ---- NAV ---- */
nav {
  background: #D0D0D0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 70px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.nav-logo svg { display: block; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--orange);
}

.nav-cta {
  background: var(--orange);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--orange-light); }

/* ---- HERO ---- */
.hero {
  background: var(--navy-dark);
  background-image: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1920&q=80');
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 40px;
  position: relative;
}


.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,20,50,0.70) 0%, rgba(10,20,50,0.62) 100%);
  z-index: 0;
}
.hero-content {
  max-width: 820px;
  z-index: 1;
}

.hero-logo {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-tagline {
  color: var(--gray-mid);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
}

.hero h1 {
  font-size: 52px;
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 18px;
  color: #B0BAD0;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover { background: var(--orange-light); transform: translateY(-1px); }

.btn-outline {
  border: 2px solid var(--gray-mid);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }

/* ---- SECTIONS ---- */
.section-light { padding: 80px 40px; background: var(--white); }
.section-dark  { padding: 60px 40px; background: var(--navy); }
.section-cta   { padding: 80px 40px; background: var(--orange); }

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

.section-title {
  font-size: 36px;
  font-weight: 900;
  color: var(--navy);
  text-align: center;
  margin-bottom: 12px;
}

.section-dark .section-title { color: var(--white); }

.section-sub {
  text-align: center;
  color: var(--gray-text);
  font-size: 17px;
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto 48px;
}

/* ---- CARDS ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 24px;
}

.card {
  background: var(--gray-light);
  border-top: 4px solid var(--orange);
  padding: 32px 24px;
  border-radius: 6px;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.10); }

.card-icon { font-size: 32px; margin-bottom: 14px; }

.card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
}

.card p {
  font-size: 15px;
  color: var(--gray-text);
  line-height: 1.6;
}

/* ---- STATS ---- */
.stats {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 32px;
}

.stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-num {
  font-size: 48px;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  color: var(--gray-mid);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* ---- SERVICES GRID ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.service-card {
  border: 1px solid #E0E0E0;
  border-radius: 6px;
  padding: 28px 24px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.service-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  border-color: var(--orange);
}

.service-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 15px;
  color: var(--gray-text);
  line-height: 1.6;
  margin-bottom: 16px;
}

.link-arrow {
  color: var(--orange);
  font-weight: 700;
  font-size: 14px;
  transition: letter-spacing 0.2s;
}

/* ---- PHOTO GALLERY ---- */
.photo-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 12px;
  margin-top: 48px;
  margin-bottom: 16px;
}

.photo-tile {
  overflow: hidden;
  border-radius: 6px;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.photo-tile:hover img {
  transform: scale(1.04);
}

.photo-large {
  grid-row: 1 / 3;
}

.gallery-note {
  text-align: center;
  font-size: 13px;
  color: #999;
  font-style: italic;
  margin-top: 12px;
}
.link-arrow:hover { letter-spacing: 0.5px; }

/* ---- CTA SECTION ---- */
.cta-inner {
  text-align: center;
}

.section-cta h2 {
  font-size: 36px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 14px;
}

.section-cta p {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.section-cta .btn-primary {
  background: var(--white);
  color: var(--orange);
}
.section-cta .btn-primary:hover {
  background: #F0F0F0;
}

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: var(--navy);
  padding: 60px 40px;
  text-align: center;
}

.page-hero h1 {
  font-size: 42px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 10px;
}

.page-hero p {
  color: #B0BAD0;
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.orange-bar {
  height: 4px;
  background: var(--orange);
  width: 60px;
  margin: 16px auto 0;
}

/* ---- SERVICES PAGE ---- */
.services-full {
  padding: 80px 40px;
  background: var(--white);
}

.service-block {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
  padding: 48px 0;
  border-bottom: 1px solid #E8E8E8;
}

.service-block:last-child { border-bottom: none; }

.service-block-num {
  font-size: 72px;
  font-weight: 900;
  color: var(--orange);
  opacity: 0.25;
  line-height: 1;
}

.service-block h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
}

.service-block p {
  font-size: 16px;
  color: var(--gray-text);
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-list li::before {
  content: "→ ";
  color: var(--orange);
  font-weight: 700;
}

.service-list li {
  font-size: 15px;
  color: var(--gray-text);
}

/* ---- ABOUT PAGE ---- */
.about-section {
  padding: 80px 40px;
}

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

.about-text h2 {
  font-size: 32px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 16px;
}

.about-text p {
  font-size: 16px;
  color: var(--gray-text);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-visual {
  background: var(--navy);
  border-radius: 8px;
  padding: 48px 36px;
  color: var(--white);
}

.about-visual h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cred-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cred-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: #C0CAD8;
}

.cred-list li::before {
  content: "✓";
  color: var(--orange);
  font-weight: 900;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.values-section {
  padding: 80px 40px;
  background: var(--gray-light);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.value-item {
  text-align: center;
  padding: 32px 20px;
}

.value-item .value-icon {
  font-size: 40px;
  margin-bottom: 14px;
  display: block;
}

.value-item h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.value-item p {
  font-size: 14px;
  color: var(--gray-text);
  line-height: 1.6;
}

/* ---- CONTACT PAGE ---- */
.contact-section {
  padding: 80px 40px;
  background: var(--white);
}

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

.contact-info h2 {
  font-size: 28px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 20px;
}

.contact-info p {
  font-size: 16px;
  color: var(--gray-text);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--gray-text);
}

.contact-item .icon {
  width: 40px;
  height: 40px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  color: var(--navy);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

/* FORM */
.contact-form {
  background: var(--gray-light);
  border-radius: 8px;
  padding: 40px 36px;
}

.contact-form h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #D0D0D0;
  border-radius: 4px;
  font-size: 15px;
  font-family: Arial, sans-serif;
  color: #333;
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--orange);
}

textarea { resize: vertical; min-height: 120px; }

.form-submit {
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 14px 32px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s;
}
.form-submit:hover { background: var(--orange-light); }

/* ---- FOOTER ---- */
footer {
  background: var(--navy-dark);
  padding: 48px 40px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand strong {
  font-size: 16px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 1px;
}

.footer-brand span {
  font-size: 13px;
  color: var(--gray-mid);
  font-style: italic;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--gray-mid);
  font-size: 14px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--orange); }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact span {
  font-size: 14px;
  color: var(--gray-mid);
}

.footer-copy {
  text-align: center;
  font-size: 13px;
  color: #666;
  padding: 16px 0;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .hero h1 { font-size: 34px; }
  .about-grid, .contact-grid, .service-block { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section-light, .section-dark, .section-cta,
  .services-full, .about-section, .contact-section { padding: 60px 20px; }
}
