/* ============================================
   Gullicksen & Co Realty — Brand Stylesheet
   Colors: Navy #00235A | Gold #C5A44E | Red #6B0F0F
   ============================================ */

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

:root {
  --navy: #00235A;
  --gold: #C5A44E;
  --red: #6B0F0F;
  --white: #FFFFFF;
  --light-gray: #F5F5F5;
  --dark-gray: #333;
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--dark-gray);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--navy); }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
.navbar {
  background: var(--navy);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 75px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.navbar-brand img {
  height: 45px;
  width: auto;
}

.navbar-brand .gold { color: var(--gold); }

.navbar-logo {
  height: 65px;
  width: auto;
  margin-left: 10px;
  border-radius: 4px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  background: #8B1A1A;
  text-align: center;
  overflow: hidden;
}

.hero-banner {
  width: 100%;
  line-height: 0;
  padding: 0;
}

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

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/gullicksen-banner-dark.png') center/cover no-repeat;
  opacity: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero h1 .gold { color: var(--gold); }

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-gold:hover {
  background: #d4b35d;
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(197,164,78,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--navy);
}

/* --- Section Styles --- */
.section {
  padding: 80px 0;
}

.section-dark {
  background: var(--navy);
  color: var(--white);
}

.section-light {
  background: var(--light-gray);
}

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

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.section-dark .section-header h2 { color: var(--white); }

.section-header .underline {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto;
}

/* --- Featured Listings --- */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.listing-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.listing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.listing-img {
  height: 240px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  position: relative;
}

.listing-img .badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--red);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.listing-info {
  padding: 24px;
}

.listing-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 8px;
}

.listing-address {
  color: var(--dark-gray);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.listing-details {
  display: flex;
  gap: 20px;
  color: #666;
  font-size: 0.9rem;
}

.listing-details span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- About Teaser --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-text h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 16px;
}

.about-text p {
  margin-bottom: 16px;
  color: #555;
}

.about-image {
  text-align: center;
}

.about-image img {
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* --- Stats Bar --- */
.stats {
  background: var(--navy);
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item h3 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.stat-item p {
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--red) 0%, var(--navy) 100%);
  padding: 64px 0;
  text-align: center;
  color: var(--white);
}

.cta-section h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 24px;
}

/* --- Footer --- */
.footer {
  background: #001530;
  color: #aaa;
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 32px;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.footer-brand p { font-size: 0.9rem; line-height: 1.7; }

.footer h4 {
  color: var(--gold);
  font-family: var(--font-heading);
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { color: #aaa; font-size: 0.9rem; }
.footer ul a:hover { color: var(--gold); }

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid #1a2a40;
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

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

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea { height: 150px; resize: vertical; }

/* --- Page Header (inner pages) --- */
.page-header {
  background: linear-gradient(135deg, var(--navy), #001740);
  padding: 80px 0;
  text-align: center;
  color: var(--white);
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.page-header p {
  font-size: 1.1rem;
  opacity: 0.8;
}

/* --- Team Grid --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
}

.team-card {
  text-align: center;
  padding: 32px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--navy);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 2rem;
}

.team-card h3 {
  font-family: var(--font-heading);
  color: var(--navy);
  margin-bottom: 4px;
}

.team-card .role {
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
  }
  
  .nav-links.open { display: flex; }
  
  .hero h1 { font-size: 2rem; }
  .hero { height: 70vh; }
  
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  
  .footer-grid { grid-template-columns: 1fr 1fr; }
  
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item h3 { font-size: 1.3rem; word-break: break-word; }
  .stat-item p { font-size: 0.75rem; }

  .navbar-logo { height: 40px; }
  .navbar-brand { flex-shrink: 1; min-width: 0; }
  .eagle { height: 30px; }
  
  .listings-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .gallery-main img { height: 260px; }
}

/* ========== Breadcrumb ========== */
.breadcrumb-section {
  background: #f0f2f5;
  padding: 14px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid #ddd;
}
.breadcrumb-section .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.breadcrumb-section a { color: var(--navy); text-decoration: none; }
.breadcrumb-section a:hover { color: var(--gold); }
.breadcrumb-section span { color: #666; }

/* ========== Listing Detail ========== */
.listing-detail { padding: 40px 0 60px; }
.listing-detail .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.gallery-main { width: 100%; border-radius: 8px; overflow: hidden; background: #f5f5f5; }
.gallery-main img { width: 100%; height: 420px; object-fit: cover; display: block; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumbs .thumb { width: 80px; height: 60px; object-fit: cover; border-radius: 4px; cursor: pointer; border: 2px solid transparent; opacity: 0.7; transition: all 0.2s; }
.gallery-thumbs .thumb.active,
.gallery-thumbs .thumb:hover { border-color: var(--gold); opacity: 1; }
.detail-price { font-size: 2.2rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.detail-info h1 { font-size: 1.6rem; margin-bottom: 2px; color: #222; }
.detail-address { color: #666; margin-bottom: 20px; font-size: 1.05rem; }
.detail-stats { display: flex; gap: 24px; margin-bottom: 20px; flex-wrap: wrap; }
.detail-stat { text-align: center; min-width: 70px; }
.stat-number { display: block; font-size: 1.5rem; font-weight: 700; color: var(--navy); }
.stat-label { font-size: 0.8rem; color: #888; text-transform: uppercase; letter-spacing: 0.5px; }
.detail-features { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.feature-tag { background: #e8edf3; color: var(--navy); padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; font-weight: 500; }
.detail-description { margin-top: 16px; }
.detail-description h3 { margin-bottom: 10px; color: var(--navy); }
.detail-description p { color: #444; line-height: 1.7; margin-bottom: 12px; }
