/* =========================================
   I&K Real Estate Services — Stylesheet
   ========================================= */

/* --- Variables --- */
:root {
  --navy:       #1B3A5C;
  --navy-dark:  #112540;
  --navy-mid:   #234872;
  --gold:       #C8A951;
  --gold-light: #DBBF6A;
  --cream:      #F8F5F0;
  --white:      #FFFFFF;
  --gray:       #6B7280;
  --gray-light: #9CA3AF;
  --dark:       #1F2937;
  --border:     #E5DDD0;

  --shadow-sm:  0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 24px rgba(0,0,0,0.09);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.14);

  --radius:     12px;
  --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--cream);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); }
h3 { font-size: 1.5rem; }

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 169, 81, 0.35);
}

.btn-outline {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.35);
  margin-left: 12px;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
}

/* --- Section Shared --- */
section { padding: 100px 0; }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-header h2 {
  color: var(--navy);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 480px;
  margin: 0 auto;
}

.gold { color: var(--gold); }


/* =========================================
   NAVIGATION
   ========================================= */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 24px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  background: var(--navy-dark);
  padding: 14px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
}

.logo-mark {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
}
.logo-mark .amp { color: var(--gold); }

.logo-name {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.2px;
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* =========================================
   HERO
   ========================================= */

.hero {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(42,88,140,0.5) 0%, transparent 60%),
    linear-gradient(150deg, var(--navy-dark) 0%, var(--navy) 55%, #234872 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Subtle pattern overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.015) 0px,
      rgba(255,255,255,0.015) 1px,
      transparent 1px,
      transparent 40px
    );
  pointer-events: none;
}

/* Decorative gold accent line */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 28px 80px;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
  max-width: 680px;
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.65);
  max-width: 420px;
  margin-bottom: 44px;
  line-height: 1.7;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
}
.hero-scroll-hint span {
  display: block;
  width: 1.5px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(200,169,81,0.8), transparent);
  margin: 0 auto;
  animation: scrollHint 2s ease-in-out infinite;
}
@keyframes scrollHint {
  0%, 100% { opacity: 0.8; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.6); }
}


/* =========================================
   STATS BAR
   ========================================= */

.stats-bar {
  background: var(--navy-dark);
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat {
  padding: 28px 48px;
  text-align: center;
}
.stat-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}


/* =========================================
   ABOUT
   ========================================= */

.about {
  background: var(--white);
}

.founders-block {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.founders-avatars {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.partner-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy));
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 5px rgba(200, 169, 81, 0.1);
}

.founders-avatar-overlap {
  margin-left: -18px;
  background: linear-gradient(135deg, #2A5A8C, var(--navy-mid));
  z-index: 1;
}

.founders-name {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 6px;
  width: 100%;
  text-align: center;
}

.partner-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  text-align: center;
}

.founders-bio {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.85;
  text-align: center;
}

.mission-statement {
  max-width: 780px;
  margin: 0 auto;
  padding: 32px 40px;
  background: var(--cream);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--dark);
  line-height: 1.85;
}


/* =========================================
   PORTFOLIO
   ========================================= */

.portfolio {
  background: var(--cream);
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.property-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border);
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Property Image */
.property-img {
  position: relative;
  height: 210px;
  background-color: var(--navy-mid);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.property-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: rgba(255,255,255,0.18);
}

/* Hide placeholder when image loads successfully */
.property-img.has-image .property-img-placeholder {
  display: none;
}

.property-img-placeholder svg {
  width: 56px;
  height: 56px;
}

.property-location-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 20px;
  z-index: 1;
}

/* Property Body */
.property-body {
  padding: 22px;
}

.property-type-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 6px;
}

.property-street {
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 16px;
}

.property-specs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.property-specs li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--gray);
}

.property-specs li svg {
  width: 16px;
  height: 16px;
  color: var(--navy-mid);
  flex-shrink: 0;
}

.property-rent {
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.rent-amount {
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--navy);
}

.rent-period {
  font-size: 0.875rem;
  color: var(--gray-light);
}


/* =========================================
   CONTACT
   ========================================= */

.contact {
  background: var(--navy);
}

.contact .section-label { color: var(--gold); }
.contact .section-header h2 { color: var(--white); }
.contact .section-desc { color: rgba(255,255,255,0.55); }

.contact-form {
  max-width: 680px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}

.optional {
  font-weight: 400;
  color: rgba(255,255,255,0.35);
  font-size: 0.75rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: border-color var(--transition), background var(--transition);
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.28);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,0.11);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-group select option {
  background: var(--navy-dark);
  color: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-note {
  margin-top: 14px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  text-align: center;
}


/* =========================================
   FOOTER
   ========================================= */

.footer {
  background: var(--navy-dark);
  padding: 56px 28px 40px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 28px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 32px;
}

.footer-nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--gold); }

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.2);
}


/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 1100px) {
  .property-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  section { padding: 72px 0; }

  /* Nav */
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 28px 28px;
    gap: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1rem; }

  /* Hero */
  .hero-content { padding: 110px 28px 80px; }
  .btn-outline { margin-left: 0; margin-top: 12px; display: block; width: fit-content; }

  /* Stats */
  .stats-container { flex-wrap: wrap; }
  .stat { padding: 20px 28px; }
  .stat-divider { display: none; }

  /* About */
  .partners-grid { flex-direction: column; gap: 48px; }
  .partners-divider { display: none; }
  .mission-statement { padding: 24px 24px; }

  /* Portfolio */
  .property-grid { grid-template-columns: 1fr; }

  /* Contact */
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }

  .stat { padding: 16px 20px; }
  .mission-statement { border-radius: 0; margin: 0 -28px; }
}
