/* ========================================
   LY Homes Bookkeeping — Main Stylesheet
   Aesthetic: Refined editorial minimalism
   Palette: Warm off-white, deep slate, gold accent
   ======================================== */

:root {
  --cream: #f7f4ef;
  --white: #ffffff;
  --slate: #1c2533;
  --slate-mid: #2e3d50;
  --slate-light: #5a6a7e;
  --gold: #b8975a;
  --gold-light: #d4b27a;
  --border: #ddd8cf;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --max-w: 1140px;
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--slate);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 300;
}

/* ---- HEADER / NAV ---- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(247, 244, 239, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links li a {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--slate-light);
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-links li a:hover {
  color: var(--slate);
  background: rgba(28,37,51,0.05);
}

.nav-cta {
  background: var(--slate) !important;
  color: var(--cream) !important;
  padding: 0.45rem 1rem !important;
  border-radius: 3px !important;
}
.nav-cta:hover {
  background: var(--slate-mid) !important;
  color: var(--cream) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--slate);
  transition: 0.2s;
}

/* ---- FLASH MESSAGES ---- */
.flash {
  max-width: var(--max-w);
  margin: 1rem auto;
  padding: 1rem 1.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
}
.flash--success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.flash--error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ---- HERO ---- */
.hero {
  padding-top: var(--nav-h);
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.squarespace-cdn.com/content/v1/637d7137f2e6cd1531337b9d/1778411860519-4BLD7SUB21BZ6D9JRZUT/unsplash-image-5fNmWej4tAA.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.35);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 6rem 2rem;
  color: var(--cream);
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  max-width: 700px;
}

.hero-content h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-content p {
  font-size: 1.05rem;
  color: rgba(247,244,239,0.8);
  max-width: 520px;
  margin-bottom: 2.5rem;
  font-weight: 300;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--gold);
  color: var(--white);
}
.btn--primary:hover { background: var(--gold-light); }

.btn--outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(247,244,239,0.5);
}
.btn--outline:hover {
  border-color: var(--cream);
  background: rgba(247,244,239,0.08);
}

.btn--dark {
  background: var(--slate);
  color: var(--cream);
}
.btn--dark:hover { background: var(--slate-mid); }

/* ---- SECTION SHARED ---- */
section {
  padding: 6rem 2rem;
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 500;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--slate);
}

.section-intro {
  font-size: 1rem;
  color: var(--slate-light);
  max-width: 580px;
  line-height: 1.8;
}

/* ---- SERVICES GRID (home) ---- */
.services-section {
  background: var(--white);
}

.services-header {
  margin-bottom: 3.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.service-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: background 0.2s;
  position: relative;
}

.service-card:hover { background: var(--cream); }

.service-card::after {
  content: '→';
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  font-size: 1.1rem;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s, transform 0.2s;
}
.service-card:hover::after { opacity: 1; transform: translateX(0); }

.service-card-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--border);
  line-height: 1;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--slate);
  line-height: 1.3;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--slate-light);
  line-height: 1.7;
}

/* ---- WHY US (home) ---- */
.why-section {
  background: var(--slate);
  color: var(--cream);
}

.why-section .section-title { color: var(--cream); }
.why-section .section-intro { color: rgba(247,244,239,0.7); max-width: 100%; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.why-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.why-icon {
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
}

.why-item h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--gold-light);
}

.why-item p {
  font-size: 0.875rem;
  color: rgba(247,244,239,0.65);
  line-height: 1.8;
}

/* ---- CTA BAND ---- */
.cta-band {
  background: var(--gold);
  padding: 4rem 2rem;
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cta-band p {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.cta-band .btn--outline { color: var(--white); }

/* ---- SERVICE PAGE LAYOUT ---- */
.service-page {
  padding-top: calc(var(--nav-h) + 0px);
}

.service-hero {
  position: relative;
  height: 52vh;
  min-height: 340px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.service-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.3);
}

.service-hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 3rem 2rem;
  color: var(--cream);
}

.service-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.15;
}

/* ---- SERVICE BODY ---- */
.service-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.service-body .lead {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--slate);
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.service-body p {
  font-size: 0.975rem;
  color: var(--slate-light);
  line-height: 1.85;
  margin-bottom: 2rem;
}

.service-details {
  margin: 3rem 0;
  padding: 2.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
}

.service-details h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--slate);
}

.service-detail-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.service-detail-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.service-detail-item h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--slate);
  margin-bottom: 0.4rem;
}

.service-detail-item p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.service-includes {
  margin: 3rem 0;
}

.service-includes h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--slate);
  margin-bottom: 1.25rem;
}

.service-includes ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.service-includes ul li {
  font-size: 0.9rem;
  color: var(--slate-light);
  padding-left: 1.5rem;
  position: relative;
}

.service-includes ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
}

.service-cta {
  margin-top: 3rem;
  padding: 2.5rem;
  background: var(--slate);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.service-cta p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--cream);
  margin: 0;
  line-height: 1.4;
}

/* ---- CONTACT PAGE ---- */
.contact-page {
  padding-top: var(--nav-h);
  min-height: 90vh;
}

.contact-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: var(--slate);
}

.contact-info p {
  font-size: 0.95rem;
  color: var(--slate-light);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.contact-detail-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.contact-detail-value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-light);
  font-weight: 400;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--slate);
  outline: none;
  transition: border-color 0.2s;
  font-weight: 300;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
}

.form-group textarea {
  min-height: 160px;
  resize: vertical;
}

.form-submit .btn {
  width: 100%;
  text-align: center;
  padding: 1rem;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--slate);
  color: var(--cream);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr;
  gap: 3rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  display: block;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(247,244,239,0.55);
  line-height: 1.75;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 500;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links ul li a,
.footer-contact a {
  font-size: 0.875rem;
  color: rgba(247,244,239,0.65);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links ul li a:hover,
.footer-contact a:hover { color: var(--cream); }

.footer-contact p {
  font-size: 0.875rem;
  color: rgba(247,244,239,0.65);
  margin-bottom: 1.25rem;
}

.footer-contact .btn--outline {
  font-size: 0.78rem;
  padding: 0.6rem 1.25rem;
}

.footer-bottom {
  border-top: 1px solid rgba(247,244,239,0.1);
  text-align: center;
  padding: 1.25rem 2rem;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(247,244,239,0.35);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li a {
    display: block;
    padding: 0.75rem 2rem;
    border-radius: 0;
    font-size: 0.9rem;
  }
  .nav-cta { margin: 0.5rem 1.5rem !important; text-align: center; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }

  .service-cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .hero-content h1 { font-size: 2.6rem; }
  section { padding: 4rem 1.25rem; }
  .service-body { padding: 3rem 1.25rem; }
  .service-details { padding: 1.75rem 1.25rem; }
  .service-cta { padding: 1.75rem 1.25rem; }
}
