/* ============================================
   AKPINAR PM — Design System (Ocean Theme)
   ============================================ */

:root {
  /* Core palette */
  --color-primary: #0066FF;
  --color-primary-hover: #0052cc;
  --color-owner-brand: #0B1C33;
  --color-status-available: #10B981;
  --color-status-alert: #FF4500;
  --color-lease-up: #0066FF;

  /* Light mode (default) */
  --bg-body: #ffffff;
  --bg-card: #ffffff;
  --bg-card-alt: #f8fafc;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --border-color: #e5e7eb;
}

body.dark-mode {
  --bg-body: #111827;
  --bg-card: #1f2937;
  --bg-card-alt: #374151;
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --border-color: #374151;
}

/* Owner section keeps Deep Navy in BOTH modes — overridden in .audience-card--owner */
/* (no variable needed; we set background directly on the card) */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-body);
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

/* ============================================
   HEADER (Authority — Deep Navy always)
   ============================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background-color: #0B1C33;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.logo {
  font-weight: 800;
  font-size: 26px;
  color: #fff;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover {
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-owner-login {
  padding: 0.5rem 1.25rem;
  border: 2px solid #fff;
  border-radius: 8px;
  color: #fff !important;
  font-weight: 600;
  transition: background-color 0.2s, color 0.2s;
}

.btn-owner-login:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.theme-toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

.theme-toggle .icon-moon {
  display: none;
}

body.dark-mode .theme-toggle .icon-sun {
  display: none;
}

body.dark-mode .theme-toggle .icon-moon {
  display: inline;
}

/* ============================================
   HERO (Full-screen, search card on bottom)
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=1920&q=85') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11, 28, 51, 0.3) 0%, rgba(11, 28, 51, 0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 2rem 10rem;
  max-width: 720px;
}

.hero-title {
  margin: 0 0 0.75rem;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero-subhead {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.hero-search-card {
  position: absolute;
  left: 50%;
  bottom: -2.5rem;
  transform: translateX(-50%);
  z-index: 20;
  width: calc(100% - 3rem);
  max-width: 720px;
  padding: 1.5rem 2rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

body.dark-mode .hero-search-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}

.search-field {
  flex: 1;
  min-width: 140px;
}

.search-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.search-field input {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-body);
}

.search-field input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.2);
}

.btn-search {
  padding: 0.75rem 1.5rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.btn-search:hover {
  background: var(--color-primary-hover);
}

/* ============================================
   AUDIENCE SECTION (60/30/10)
   ============================================ */

.audience {
  padding: 6rem 2rem 4rem;
}

.audience-grid {
  display: grid;
  grid-template-columns: 60% 30% 10%;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

body.dark-mode .audience-grid {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.audience-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 280px;
}

/* Owner card — Deep Navy ALWAYS (both modes) */
.audience-card--owner {
  background-color: #0B1C33;
  color: #fff;
}

.audience-card--owner .audience-title,
.audience-card--owner .audience-text {
  color: #fff;
}

.audience-card--owner .btn-primary {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.2s;
  align-self: flex-start;
}

.audience-card--owner .btn-primary:hover {
  background: var(--color-primary-hover);
}

/* Tenant card — theme-aware */
.audience-card--tenant {
  background: var(--bg-card);
  border-left: 1px solid var(--border-color);
  color: var(--text-primary);
}

.audience-card--tenant .audience-title {
  color: var(--text-primary);
}

.audience-card--tenant .audience-text {
  color: var(--text-secondary);
}

.audience-card--tenant .btn-tenant {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.2s, color 0.2s;
  align-self: flex-start;
}

.audience-card--tenant .btn-tenant:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Vendor card */
.audience-card--vendor {
  background: var(--bg-card-alt);
  border-left: 1px solid var(--border-color);
  align-items: center;
  justify-content: center;
}

.audience-vendor-link {
  font-weight: 600;
  color: var(--color-primary);
}

.audience-vendor-link:hover {
  text-decoration: underline;
}

.audience-title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.audience-text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ============================================
   FEATURED PROPERTIES (Portfolio)
   ============================================ */

.portfolio {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  margin: 0 0 2rem;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  text-align: center;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.property-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: transform 0.2s, box-shadow 0.2s;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

body.dark-mode .property-card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.property-image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

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

.property-name {
  margin: 1rem 1.25rem 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.status-badge {
  display: inline-block;
  margin: 0 1.25rem 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-badge--available {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
}

.status-badge--lease-up {
  background: rgba(0, 102, 255, 0.15);
  color: var(--color-lease-up);
}

.status-badge--maintenance {
  background: rgba(255, 69, 0, 0.15);
  color: #FF4500;
}

/* ============================================
   COOKIE CONSENT
   ============================================ */

.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  max-width: 380px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.cookie-banner.hidden {
  display: none;
}

.cookie-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex: 1;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-cookie-accept {
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-cookie-accept:hover {
  background: var(--color-primary-hover);
}

.btn-cookie-decline {
  padding: 0.5rem 1rem;
  background: var(--bg-card-alt);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-cookie-decline:hover {
  background: var(--border-color);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .audience-card--owner,
  .audience-card--tenant,
  .audience-card--vendor {
    min-height: auto;
    padding: 2rem;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .audience-card--tenant,
  .audience-card--vendor {
    border-top: 1px solid var(--border-color);
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .header {
    flex-wrap: wrap;
    padding: 1rem;
    gap: 1rem;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 1.25rem;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero-content {
    padding: 0 1.5rem 8rem;
  }

  .hero-search-card {
    width: calc(100% - 2rem);
    padding: 1.25rem;
    bottom: -2rem;
  }

  .search-form {
    flex-direction: column;
  }

  .search-field {
    min-width: 100%;
  }

  .btn-search {
    width: 100%;
  }

  .audience {
    padding: 5rem 1rem 3rem;
  }

  .portfolio {
    padding: 3rem 1rem;
  }

  .cookie-banner {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
    flex-wrap: wrap;
  }
}

/* ============================================
   CONTACT / FOOTER
   ============================================ */

.contact {
  padding: 3rem 2rem;
  background: var(--bg-card-alt);
  border-top: 1px solid var(--border-color);
}

.contact-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.contact-text {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--text-secondary);
}

.contact-link {
  font-weight: 600;
  color: var(--color-primary);
}

.contact-link:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .logo {
    font-size: 22px;
  }

  .nav a {
    font-size: 0.9rem;
  }

  .btn-owner-login {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
  }
}
