/* ANCO Construction — shared styles */
:root {
  --navy: #23265d;        /* logo color */
  --navy-dark: #181a42;
  --navy-light: #3a3e8c;
  --navy-tint: #eef0f8;
  --text: #2b3040;
  --muted: #666d80;
  --bg: #ffffff;
  --radius: 10px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(24, 26, 66, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo img { height: 56px; width: auto; }

.nav-links a {
  color: var(--navy);
  text-decoration: none;
  margin-left: 28px;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-links a:hover { color: var(--navy-light); }

.nav-links a.active {
  color: var(--navy);
  border-bottom: 2px solid var(--navy);
  padding-bottom: 4px;
}

/* Hero */
.hero {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 130px 24px;
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(24, 26, 66, 0.7);
}

.hero > * { position: relative; }

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.15rem;
  color: #e4e6f2;
  max-width: 640px;
  margin: 0 auto 32px;
}

.btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  padding: 14px 34px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s;
}

.btn:hover { background: var(--navy-light); }

/* On dark backgrounds (hero, CTA strip) the solid button flips to white */
.hero .btn, .cta-strip .btn {
  background: #fff;
  color: var(--navy);
}

.hero .btn:hover, .cta-strip .btn:hover { background: #d9dcf0; }

.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  margin-left: 12px;
}

.hero .btn-outline { background: transparent; color: #fff; }

.hero .btn-outline:hover { background: #fff; color: var(--navy); }

/* Sections */
section { padding: 72px 0; }

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 48px;
}

.soft { background: var(--navy-tint); }

/* Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(24, 26, 66, 0.1);
}

.card img { height: 200px; width: 100%; object-fit: cover; }

.card-body { padding: 22px; }

.card-body h3 { margin-bottom: 8px; font-size: 1.15rem; color: var(--navy); }

.card-body p { color: var(--muted); font-size: 0.95rem; }

/* About split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split img { border-radius: var(--radius); height: 360px; width: 100%; object-fit: cover; }

.split h2 { font-size: 1.8rem; color: var(--navy); margin-bottom: 16px; }

.split p { color: var(--muted); margin-bottom: 14px; }

@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat h3 { font-size: 2.4rem; color: var(--navy); }

.stat p { color: var(--muted); font-weight: 500; }

/* Page banner (inner pages) */
.banner {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 64px 24px;
}

.banner h1 { font-size: 2.4rem; font-weight: 800; }

.banner p { color: #c3c6e4; margin-top: 8px; }

/* Service rows */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 36px 0;
}

.service-row img { border-radius: var(--radius); height: 280px; width: 100%; object-fit: cover; }

.service-row h3 { font-size: 1.4rem; color: var(--navy); margin-bottom: 10px; }

.service-row p { color: var(--muted); }

.service-row ul { margin-top: 12px; padding-left: 20px; color: var(--muted); }

@media (max-width: 800px) {
  .service-row { grid-template-columns: 1fr; }
  .service-row.reverse img { order: -1; }
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info h3 { margin: 18px 0 4px; font-size: 1.05rem; color: var(--navy); }

.contact-info p { color: var(--muted); }

form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin: 16px 0 6px;
}

form input, form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cdd1e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}

form input:focus, form textarea:focus {
  outline: 2px solid var(--navy);
  border-color: transparent;
}

form button {
  margin-top: 20px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

/* CTA strip */
.cta-strip {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 56px 24px;
}

.cta-strip h2 { font-size: 1.7rem; margin-bottom: 20px; }

/* Footer contact strip */
.footer-contact {
  background: var(--navy-dark);
  color: #c7c9e6;
  padding: 48px 24px 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-contact .grid-3 {
  gap: 32px;
}

.footer-contact h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 8px;
}

.footer-contact p, .footer-contact a {
  color: #c7c9e6;
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-contact a:hover { color: #fff; }

/* Footer */
footer {
  background: var(--navy-dark);
  color: #a9adcf;
  text-align: center;
  padding: 28px 24px;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

footer a { color: #ffffff; text-decoration: none; }
