/*
Theme Name: Finca Reserve Commercial
Theme URI: https://fincareserve.com
Author: Finca Reserve Commercial
Description: Commercial real estate property listings theme for Finca Reserve Commercial.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: finca-reserve
*/

/* =========================================
   CSS VARIABLES
   ========================================= */
:root {
  --primary:   #080B3F;
  --secondary: #A49262;
  --white:     #ffffff;
  --light:     #f5f5f0;
  --gray:      #6b7280;
  --gray-light:#e5e7eb;
  --font-main: 'Montserrat', sans-serif;
  --radius:    4px;
  --shadow:    0 2px 12px rgba(8,11,63,0.10);
}

/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-main);
  background: var(--light);
  color: var(--primary);
  font-size: 16px;
  line-height: 1.6;
}

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

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

/* =========================================
   HEADER / NAV
   ========================================= */
.site-header {
  background: var(--primary);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.site-logo img {
  height: 78px;
  width: auto;
}

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

.site-nav a {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.site-nav a:hover,
.site-nav .current-menu-item a {
  color: var(--secondary);
  border-bottom-color: var(--secondary);
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: 0.3s;
}

/* =========================================
   PAGE HERO / TITLE BAR
   ========================================= */
.page-hero {
  background: var(--primary);
  padding: 48px 40px 40px;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-hero .hero-accent {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--secondary);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* =========================================
   CONTAINER
   ========================================= */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================
   LISTINGS GRID
   ========================================= */
.listings-section {
  padding: 56px 0 72px;
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* Property Card */
.property-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(8,11,63,0.16);
}

.card-accent-bar {
  height: 5px;
  background: var(--secondary);
}

.card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.property-card:hover .card-image img {
  transform: scale(1.04);
}

.card-image .card-type-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
}

.card-body {
  padding: 20px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
  line-height: 1.3;
}

.card-address {
  font-size: 0.82rem;
  color: var(--secondary);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.card-description {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.55;
  flex: 1;
}

.card-footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
}

.btn-details {
  display: inline-block;
  background: var(--secondary);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: var(--radius);
  transition: background 0.2s;
}

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

/* =========================================
   SINGLE PROPERTY
   ========================================= */
.single-property-wrap {
  padding: 56px 0 72px;
}

.property-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--secondary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.property-back:hover { color: var(--primary); }

.property-gallery {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 36px;
  aspect-ratio: 16/6;
}

.property-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

.property-main h1 {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.property-main .prop-address {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.property-description {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.75;
}

.property-sidebar {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.sidebar-accent { height: 5px; background: var(--secondary); }

.sidebar-inner { padding: 24px; }

.sidebar-inner h3 {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 600;
  margin-bottom: 16px;
}

.prop-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-light);
  font-size: 0.88rem;
}

.prop-detail-row:last-of-type { border-bottom: none; }

.prop-detail-label { color: var(--gray); }
.prop-detail-value { font-weight: 700; color: var(--primary); }

.btn-contact-full {
  display: block;
  text-align: center;
  background: var(--primary);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px;
  border-radius: var(--radius);
  margin-top: 20px;
  transition: background 0.2s;
}

.btn-contact-full:hover { background: var(--secondary); color: var(--white); }

/* =========================================
   CONTACT PAGE
   ========================================= */
.contact-section {
  padding: 56px 0 72px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.contact-detail {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.contact-detail strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 2px;
}

/* Contact Form */
.contact-form .form-group {
  margin-bottom: 18px;
}

.contact-form label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 0.9rem;
  color: var(--primary);
  background: var(--white);
  transition: border-color 0.2s;
}

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

.contact-form textarea { height: 140px; resize: vertical; }

.btn-submit {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 14px 36px;
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit:hover { background: var(--secondary); }

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 28px 40px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.site-footer a { color: var(--secondary); }
.site-footer a:hover { color: var(--white); }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
  .listings-grid { grid-template-columns: 1fr; }
  .property-detail-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .site-header { padding: 0 20px; }
  .site-nav { display: none; flex-direction: column; position: absolute; top: 80px; left: 0; width: 100%; background: var(--primary); padding: 16px 20px; gap: 0; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav-toggle { display: block; }
  .page-hero { padding: 32px 20px; }
  .page-hero h1 { font-size: 1.5rem; }
  .listings-section, .single-property-wrap, .contact-section { padding: 40px 0 56px; }
}
