/* ============================================
   Lofty Ideas, LLC — Styles
   Classic & Elegant · Midnight Blue + Mint
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #2c3e50;
  background-color: #faf9f7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: #1B3A5C;
}

/* --- Utilities --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: #1B3A5C;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  z-index: 1000;
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 16px;
}

/* --- Section shared --- */
.section-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #5fb3a0;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 20px;
}

.section-title--light {
  color: #f0f7f4;
}

.section-sub {
  font-size: 1.05rem;
  color: #5a6c7d;
  max-width: 600px;
  line-height: 1.8;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 6px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: #5fb3a0;
  color: #fff;
  border-color: #5fb3a0;
}

.btn-primary:hover {
  background-color: #4e9e8b;
  border-color: #4e9e8b;
}

.btn-ghost {
  background-color: transparent;
  color: #1B3A5C;
  border-color: #1B3A5C;
}

.btn-ghost:hover {
  background-color: #1B3A5C;
  color: #fff;
}

.btn-full {
  width: 100%;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(27, 58, 92, 0.08);
  transition: box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 2px 24px rgba(27, 58, 92, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #1B3A5C;
}

.logo--light {
  color: #f0f7f4;
}

.logo-icon {
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #3d5a78;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: #5fb3a0;
  transition: width 0.25s ease;
}

.nav-link:hover {
  color: #1B3A5C;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: #5fb3a0;
  border: 1.5px solid #5fb3a0;
  padding: 8px 18px;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.nav-cta:hover {
  background-color: #5fb3a0;
  color: #fff;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}

.nav-toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #1B3A5C;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  padding-top: 72px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: #faf9f7;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #5fb3a0;
  margin-bottom: 20px;
}

.hero-headline {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  color: #1B3A5C;
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero-accent {
  color: #5fb3a0;
  font-style: italic;
  font-weight: 400;
}

.hero-sub {
  font-size: 1.1rem;
  color: #5a6c7d;
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1B3A5C;
}

.stat-label {
  font-size: 0.8rem;
  color: #7a8a9a;
  letter-spacing: 0.02em;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background-color: #d4ddd6;
  flex-shrink: 0;
}

/* Hero image */
.hero-image-wrap {
  position: relative;
}

.hero-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(27, 58, 92, 0.12);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-image-accent {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(95, 179, 160, 0.25) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* --- Services --- */
.services {
  padding: 100px 0;
  background-color: #fff;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-sub {
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background-color: #faf9f7;
  border: 1px solid #e8ede9;
  border-radius: 12px;
  padding: 40px 36px;
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: #5fb3a0;
  box-shadow: 0 8px 32px rgba(95, 179, 160, 0.1);
  transform: translateY(-4px);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background-color: rgba(95, 179, 160, 0.1);
  color: #5fb3a0;
  margin-bottom: 24px;
}

.service-card:hover .service-icon {
  background-color: #5fb3a0;
  color: #fff;
}

.service-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: #1B3A5C;
}

.service-desc {
  font-size: 0.95rem;
  color: #5a6c7d;
  line-height: 1.75;
}

/* --- About --- */
.about {
  padding: 100px 0;
  background-color: #faf9f7;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(27, 58, 92, 0.1);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-image-secondary {
  position: absolute;
  bottom: -32px;
  right: -32px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(27, 58, 92, 0.12);
  border: 4px solid #faf9f7;
}

.about-image-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-content .section-title {
  margin-bottom: 24px;
}

.about-text {
  font-size: 1rem;
  color: #5a6c7d;
  line-height: 1.85;
  margin-bottom: 16px;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.about-value {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #2c3e50;
}

.about-value-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(95, 179, 160, 0.12);
  color: #5fb3a0;
}

/* --- Community --- */
.community {
  padding: 100px 0;
  background-color: #1B3A5C;
  position: relative;
  overflow: hidden;
}

.community::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(95, 179, 160, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.community-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.community-content .section-eyebrow {
  color: #8fd4c4;
}

.community-text {
  font-size: 1.05rem;
  color: rgba(240, 247, 244, 0.75);
  line-height: 1.85;
  margin-bottom: 16px;
}

.community-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 56px;
  text-align: left;
}

.community-feature {
  padding: 24px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.community-feature:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(95, 179, 160, 0.3);
}

.feature-number {
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #5fb3a0;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: block;
}

.feature-title {
  font-size: 1.1rem;
  color: #f0f7f4;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 0.9rem;
  color: rgba(240, 247, 244, 0.6);
  line-height: 1.7;
}

/* --- CTA / Contact --- */
.cta {
  padding: 100px 0;
  background-color: #fff;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.section-eyebrow--dark {
  color: #5fb3a0;
}

.cta-text {
  font-size: 1.05rem;
  color: #5a6c7d;
  line-height: 1.85;
  margin-bottom: 40px;
}

.cta-contacts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cta-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  color: #2c3e50;
  transition: color 0.2s ease;
}

.cta-contact-item:hover {
  color: #5fb3a0;
}

.cta-contact-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background-color: rgba(95, 179, 160, 0.1);
  color: #5fb3a0;
  flex-shrink: 0;
}

/* Form */
.cta-form-wrap {
  background-color: #faf9f7;
  border: 1px solid #e8ede9;
  border-radius: 16px;
  padding: 40px;
}

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

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1B3A5C;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #2c3e50;
  background-color: #fff;
  border: 1.5px solid #d4ddd6;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input::placeholder {
  color: #a0b0a8;
}

.form-input:focus {
  border-color: #5fb3a0;
  box-shadow: 0 0 0 3px rgba(95, 179, 160, 0.12);
}

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

.form-note {
  font-size: 0.8rem;
  color: #8a9a92;
  margin-top: 12px;
  text-align: center;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  margin-top: 20px;
  border-radius: 8px;
  background-color: rgba(95, 179, 160, 0.1);
  border: 1px solid rgba(95, 179, 160, 0.25);
  color: #2d7a68;
  font-size: 0.9rem;
  font-weight: 500;
}

/* --- Footer --- */
.footer {
  background-color: #152d47;
  color: rgba(240, 247, 244, 0.6);
  padding: 64px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-tagline {
  font-size: 0.9rem;
  margin-top: 12px;
  line-height: 1.7;
  max-width: 280px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(240, 247, 244, 0.6);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #5fb3a0;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: right;
  font-size: 0.9rem;
}

.footer-contact a {
  color: rgba(240, 247, 244, 0.6);
  transition: color 0.2s ease;
}

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

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(240, 247, 244, 0.35);
}

/* --- Scroll Reveal (progressive enhancement) --- */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-grid {
    gap: 40px;
  }

  .about-grid {
    gap: 48px;
  }

  .cta-grid {
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 40px;
    gap: 24px;
    background-color: #faf9f7;
    border-left: 1px solid rgba(27, 58, 92, 0.1);
    box-shadow: -8px 0 32px rgba(27, 58, 92, 0.08);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 105;
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 1rem;
  }

  .nav-cta {
    margin-top: 8px;
  }

  .hero {
    padding-top: 72px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0 60px;
  }

  .hero-image-wrap {
    order: -1;
  }

  .hero-image {
    border-radius: 10px;
  }

  .hero-image-accent {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    text-align: center;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 16px;
  }

  .hero-stat-divider {
    display: none;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image-secondary {
    right: 0;
    bottom: -24px;
  }

  .about-values {
    grid-template-columns: 1fr;
  }

  .community-features {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cta-grid {
    grid-template-columns: 1fr;
  }

  .cta-form-wrap {
    padding: 28px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-links {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-contact {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-headline {
    font-size: 2rem;
  }

  .service-card {
    padding: 28px 24px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }

  .service-card:hover {
    transform: none;
  }

  .nav-menu {
    transition: none;
  }
}
