/* ============================================
   Fenner Flips — Luxury Real Estate Investment
   Colors: Black + Gold + White
   Fonts: Montserrat + Roboto
   ============================================ */

/* Fonts loaded via <link> in HTML head for faster rendering */

:root {
  --black: #111111;
  --charcoal: #1a1a1a;
  --dark: #222222;
  --dark-accent: #2a2a2a;
  --gold: #8B6914;
  --gold-light: #B8941F;
  --gold-pale: #D4B84A;
  --gold-muted: rgba(139, 105, 20, 0.15);
  --white: #FFFFFF;
  --off-white: #FAFAF8;
  --cream: #F5F3EE;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 20px 40px -12px rgba(0,0,0,0.2);
  --shadow-gold: 0 4px 20px rgba(139, 105, 20, 0.15);
  --radius: 4px;
  --max-width: 1200px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', system-ui, -apple-system, sans-serif;
  color: var(--gray-800);
  line-height: 1.7;
  background: var(--white);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--black); text-decoration: none; transition: color var(--transition); }

/* ---- Navigation ---- */
.nav {
  background: var(--white);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo img {
  height: 75px;
  width: auto;
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--gray-600);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  margin: 5px 0;
  transition: 0.3s;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  color: var(--white);
  padding: 140px 24px;
  text-align: center;
  overflow: hidden;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.7) 100%);
}
.hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero h1 span { color: var(--gold-pale); }
.hero p {
  font-size: 1.15rem;
  font-weight: 300;
  opacity: 0.9;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}
.hero-divider {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 32px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 16px 40px;
  border-radius: var(--radius);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover { background: var(--gold-light); }
.btn-white {
  background: var(--white);
  color: var(--black);
}
.btn-black {
  background: var(--black);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn-outline-dark {
  background: transparent;
  border: 1px solid var(--gray-300);
  color: var(--black);
}
.btn-outline-dark:hover { border-color: var(--gold); color: var(--gold); }
.btn-full { width: 100%; }

.btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- Sections ---- */
.section {
  padding: 100px 24px;
}
.section-dark {
  background: var(--charcoal);
  color: var(--white);
}
.section-dark .section-header p { color: rgba(255,255,255,0.6); }
.section-dark .card { background: var(--dark-accent); border: 1px solid rgba(255,255,255,0.06); }
.section-dark .card h3 { color: var(--white); }
.section-dark .card p { color: rgba(255,255,255,0.6); }
.section-cream { background: var(--cream); }
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header h2 {
  font-size: 2.4rem;
  color: var(--black);
  margin-bottom: 16px;
}
.section-dark .section-header h2 { color: var(--white); }
.section-header p {
  color: var(--gray-500);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
}
.section-label {
  display: inline-block;
  color: var(--gold);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
.section-divider {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 20px;
}

/* ---- Grid ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-2-top { align-items: start; }

/* ---- Cards ---- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 36px;
  transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.card-icon {
  width: 56px;
  height: 56px;
  background: var(--gold-muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--black);
}
.card p { color: var(--gray-500); font-size: 0.95rem; font-weight: 300; line-height: 1.7; }
.card-dark { background: var(--charcoal); color: var(--white); border: 1px solid rgba(255,255,255,0.06); }
.card-dark h3 { color: var(--gold-pale); }
.card-dark p { color: rgba(255,255,255,0.7); }
.card-testimonial {
  background: var(--cream);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.card-testimonial p { font-style: italic; margin-top: 8px; }
.card-spacing { margin-bottom: 24px; }

/* ---- Image Cards ---- */
.card-image {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  transition: all var(--transition);
}
.card-image:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.card-image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.card-image-body { padding: 28px; }
.card-image-body h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--black); }
.card-image-body p { color: var(--gray-500); font-size: 0.95rem; font-weight: 300; line-height: 1.7; }

/* ---- Stats ---- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
.stat { text-align: center; padding: 24px 0; }
.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.stats-vertical {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 40px;
}

/* ---- Steps ---- */
.steps { counter-reset: step; }
.step {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 36px;
}
.step-number {
  counter-increment: step;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
}
.step-content h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--black);
}
.step-content p { color: var(--gray-500); font-size: 0.95rem; font-weight: 300; }

/* ---- Project Cards ---- */
.project-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  transition: all var(--transition);
}
.project-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.project-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.project-img {
  aspect-ratio: 4/3;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: 0.85rem;
  position: relative;
}
.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-img-label {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--black);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.project-info { padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.project-info h3 { font-size: 1.05rem; margin: 0; color: var(--black); white-space: nowrap; }
.project-info p { color: var(--gray-500); font-size: 0.9rem; font-weight: 300; }
.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}
.project-tag {
  background: var(--cream);
  color: var(--gray-700);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---- FAQ ---- */
.faq-item {
  border-bottom: 1px solid var(--gray-200);
  padding: 24px 0;
}
.faq-question {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--black);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--gold);
  transition: transform 0.2s;
}
.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--gray-500);
  font-size: 0.95rem;
  line-height: 1.8;
  font-weight: 300;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  padding-top: 16px;
}

/* ---- Forms ---- */
.form { max-width: 560px; }
.form-group { margin-bottom: 24px; }
.form-group label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  color: var(--gray-700);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: 'Roboto', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  transition: border-color var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
}
.form-group textarea { min-height: 120px; resize: vertical; }

.form-header h2 {
  font-size: 2rem;
  color: var(--black);
  margin-bottom: 16px;
}
.form-header p {
  color: var(--gray-500);
  margin-bottom: 32px;
  font-weight: 300;
}

/* ---- Contact Info ---- */
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--gold-muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-item h4 {
  font-size: 0.85rem;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.contact-item p { color: var(--gray-500); font-size: 0.95rem; font-weight: 300; }

/* ---- CTA Banner ---- */
.cta-banner {
  background: var(--charcoal);
  color: var(--white);
  padding: 80px 24px;
  text-align: center;
}
.cta-banner h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}
.cta-banner p {
  opacity: 0.7;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
}

/* ---- Footer ---- */
.footer {
  background: var(--black);
  color: rgba(255,255,255,0.5);
  padding: 60px 24px 24px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 300px;
  font-weight: 300;
}
.footer-logo {
  height: 65px;
  width: auto;
  margin-bottom: 16px;
}
.footer h4 {
  color: var(--white);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 20px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  font-weight: 300;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

/* ---- About Page ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-photo {
  aspect-ratio: 4/5;
  background: var(--gray-100);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: 0.9rem;
  overflow: hidden;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-content h2 {
  font-size: 2.2rem;
  color: var(--black);
  margin-bottom: 20px;
}
.about-content p {
  color: var(--gray-500);
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 300;
}

.credentials-grid { display: flex; gap: 20px; flex-wrap: wrap; }
.credential {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.06);
}
.credential-icon {
  font-size: 1.4rem;
}
.credential-text h4 {
  font-size: 0.85rem;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.credential-text p { font-size: 0.85rem; color: var(--gray-500); font-weight: 300; }

/* ---- Page Header ---- */
.page-header {
  background: var(--charcoal);
  color: var(--white);
  padding: 64px 24px;
  text-align: center;
}
.page-header h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.page-header p {
  color: rgba(255,255,255,0.5);
  font-size: 1.05rem;
  font-weight: 300;
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.pt-48 { padding-top: 48px; }
.narrow { max-width: 640px; margin: 0 auto; }
.narrow-md { max-width: 720px; }
.narrow-lg { max-width: 800px; }

/* ---- Mobile Responsive ---- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid rgba(0,0,0,0.06);
  }
  .nav-toggle { display: block; }

  .hero { padding: 80px 24px; min-height: 400px; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }

  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  .section { padding: 64px 24px; }
  .section-header h2 { font-size: 1.8rem; }
  .section-header { margin-bottom: 40px; }

  .page-header h1 { font-size: 2rem; }
  .page-header { padding: 48px 24px; }

  /* Hide large logo on mobile — it overlaps heading */
  .section > img[alt="Fenner Flips"] { display: none !important; }

  /* Stack before/after photos vertically on mobile */
  .project-images { grid-template-columns: 1fr 1fr; }

  /* Wrap project info row on small screens */
  .project-info { flex-wrap: wrap; }
}

@media (max-width: 375px) {
  .hero h1 { font-size: 1.8rem; }
  .hero { padding: 60px 16px; }
  .btn { padding: 14px 28px; font-size: 0.75rem; }
  .btn-group { flex-direction: column; align-items: center; }
  .section { padding: 48px 16px; }
  .card { padding: 28px; }
  .stat-number { font-size: 2.2rem; }
  .nav { padding: 0 16px; }
}
