/* ==============================
   CRAFTERS REALTY — Global Styles
   ============================== */

:root {
  --color-navy: #0f2545;
  --color-navy-light: #1a3a6b;
  --color-gold: #c9a84c;
  --color-gold-light: #e8c97a;
  --color-white: #ffffff;
  --color-off-white: #f8f9fb;
  --color-light-gray: #eef0f4;
  --color-mid-gray: #8892a4;
  --color-dark-gray: #3d4a5c;
  --color-text: #1e2a3a;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --radius: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(15,37,69,0.08);
  --shadow-md: 0 4px 20px rgba(15,37,69,0.12);
  --shadow-lg: 0 8px 40px rgba(15,37,69,0.16);
  --transition: all 0.25s ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
input, textarea, select, button { font-family: inherit; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--color-navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { color: var(--color-dark-gray); line-height: 1.75; }

/* ---- LAYOUT ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 80px 0;
}
.section--gray {
  background: var(--color-off-white);
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header p {
  max-width: 560px;
  margin: 12px auto 0;
  font-size: 1.05rem;
  color: var(--color-mid-gray);
}
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 12px;
}

/* ---- NAVIGATION ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-light-gray);
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__logo-icon {
  width: 36px;
  height: 36px;
  background: var(--color-navy);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav__logo-icon svg { width: 20px; height: 20px; fill: var(--color-gold); }
.nav__logo-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.1;
}
.nav__logo-text span {
  display: block;
  font-size: 0.65rem;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-mid-gray);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__link {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-dark-gray);
  transition: var(--transition);
}
.nav__link:hover { background: var(--color-light-gray); color: var(--color-navy); }
.nav__link--active { color: var(--color-navy); font-weight: 600; }
.nav__cta {
  padding: 9px 20px;
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  margin-left: 8px;
}
.nav__cta:hover { background: var(--color-navy-light); }

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  margin: 5px 0;
  transition: var(--transition);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}
.btn--primary {
  background: var(--color-gold);
  color: var(--color-navy);
}
.btn--primary:hover { background: var(--color-gold-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--outline {
  background: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}
.btn--outline:hover { background: rgba(255,255,255,0.1); }
.btn--navy {
  background: var(--color-navy);
  color: var(--color-white);
}
.btn--navy:hover { background: var(--color-navy-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* ---- STAT CARDS ---- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.stat-card {
  background: var(--color-white);
  border: 1px solid var(--color-light-gray);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-card__value {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1;
}
.stat-card__label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-mid-gray);
  margin-top: 8px;
}
.stat-card__accent {
  color: var(--color-gold);
}

/* ---- CARDS ---- */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-light-gray);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--color-light-gray);
}
.card__img-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 3rem;
}
.card__body { padding: 24px; }
.card__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(201,168,76,0.12);
  color: var(--color-gold);
  margin-bottom: 12px;
}
.card__title { font-size: 1.1rem; margin-bottom: 6px; }
.card__subtitle { font-size: 0.85rem; color: var(--color-mid-gray); margin-bottom: 16px; }

/* ---- METRICS TABLE ---- */
.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  border-top: 1px solid var(--color-light-gray);
  padding-top: 16px;
}
.metric {
  display: flex;
  flex-direction: column;
}
.metric__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-mid-gray);
}
.metric__value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-top: 2px;
}
.metric__value--profit { color: #1a8a4a; }

/* ---- FOOTER ---- */
.footer {
  background: var(--color-navy);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 28px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__logo-text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 8px;
}
.footer__tagline { font-size: 0.85rem; max-width: 300px; }
.footer__col-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 14px;
}
.footer__links li + li { margin-top: 8px; }
.footer__links a { font-size: 0.88rem; transition: var(--transition); }
.footer__links a:hover { color: var(--color-white); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 0.8rem;
}

/* ---- FORMS ---- */
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--color-light-gray);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(15,37,69,0.08);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }

/* ---- PAGE HERO ---- */
.page-hero {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  padding: 64px 0;
  text-align: center;
  color: var(--color-white);
}
.page-hero h1 { color: var(--color-white); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.75); max-width: 500px; margin: 0 auto; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav__links--open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--color-white);
    padding: 16px;
    border-bottom: 1px solid var(--color-light-gray);
    box-shadow: var(--shadow-md);
    gap: 4px;
  }
  .nav__link { width: 100%; padding: 12px 16px; }
  .nav__cta { margin-left: 0; width: 100%; justify-content: center; }
  .section { padding: 56px 0; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
  .form-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 2rem; }
}
