/* ==========================================================================
   Angee Homes — Bold & Friendly stylesheet
   Layout and spacing use Tailwind utilities (CDN, configured in index.html);
   the reusable components below keep the markup readable.
   ========================================================================== */

:root {
  --navy: #0F2742;
  --navy-700: #1D4F86;
  --navy-50: #F3F6F9;
  --navy-100: #E1E7EE;
  --amber: #F2A33A;
  --amber-600: #E08E1F;
  --amber-50: #FFF6E8;
  --muted: #4C5F75;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
}
.skip-link:focus { left: 8px; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

/* Navigation */
.nav-link { color: var(--navy); transition: color .2s; }
.nav-link:hover { color: var(--navy-700); }
#navbar.is-scrolled { box-shadow: 0 6px 24px rgba(15, 39, 66, .08); }

/* Buttons */
.btn-navy {
  background: var(--navy);
  color: #fff;
  display: inline-block;
  transition: background-color .2s, transform .2s;
}
.btn-navy:hover { background: var(--navy-700); color: #fff; }

.btn-amber {
  background: var(--amber);
  color: var(--navy);
  border: 0;
  cursor: pointer;
  transition: background-color .2s, transform .2s;
}
.btn-amber:hover { background: var(--amber-600); }
.btn-amber:disabled { opacity: .7; cursor: wait; }

/* Form fields */
.field {
  width: 100%;
  border: 1.5px solid #D5DDE6;
  border-radius: 10px;
  padding: 13px 14px;
  font-size: 16px;
  background: #fff;
  color: var(--navy);
  transition: border-color .2s, box-shadow .2s;
}
.field:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(29, 79, 134, .15);
}
.field.is-invalid { border-color: #B42318; }

/* Headings */
.section-title {
  font-size: clamp(32px, 3.8vw, 50px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* Services */
.service-card {
  background: var(--navy-50);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .25s, box-shadow .25s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 39, 66, .10);
}
.icon-tile {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-link { font-weight: 700; margin-top: auto; color: var(--navy); }
.card-link:hover { color: var(--navy-700); }

/* Process */
.step-card {
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
}

/* Projects */
.project-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--navy-100);
  margin: 0;
}
.photo-placeholder {
  aspect-ratio: 4 / 3;
  background-color: #C9D3DE;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .25) 0 2px, transparent 2px 14px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6B7F95;
}
.project-caption {
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tag {
  background: var(--navy-50);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
}

/* FAQ */
.faq-item {
  background: var(--navy-50);
  border-radius: 14px;
  padding: 20px 24px;
}
.faq-item summary {
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Featured ADU service */
.adu-feature {
  background: var(--navy);
  color: #fff;
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}
.adu-feature-img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}
@media (min-width: 900px) {
  .adu-feature { grid-template-columns: 1.1fr 1fr; }
}
