/*
Theme Name: Gables Apartments
Theme URI: https://gables-apts.com
Description: Custom theme for The Gables Apartments — San Antonio, TX
Version: 1.0.0
Author: Developer
Text Domain: gables
*/

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

:root {
  --navy: #1D3B4E;
  --navy-dark: #142A38;
  --brown: #6A3612;
  --brown-light: #b86125;
  --cream: #FAF8F5;
  --white: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --border: #e0ddd8;
  --shadow: 0 1px 3px rgba(0,0,0,.08);
  --radius: 4px;
  --max-w: 1140px;
  --header-h: 56px;
  --sidebar-w: 300px;
  --gap: 30px;
  --transition: .25s ease;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brown); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brown-light); }
img { max-width: 100%; height: auto; display: block; }

/* === Container === */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* === Header === */
.site-header {
  background: var(--navy);
  height: var(--header-h);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.site-branding a {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .3px;
}
.site-branding a:hover { color: var(--cream); }

/* Nav */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
}
.main-nav a {
  color: rgba(255,255,255,.85);
  font-size: .85rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover,
.main-nav .current-menu-item a {
  background: rgba(255,255,255,.12);
  color: var(--white);
}

/* Mobile toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* === Hero (front page) === */
.hero {
  background: var(--navy-dark);
  color: var(--white);
  padding: 48px 0 40px;
  text-align: center;
}
.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.hero p {
  font-size: 1.05rem;
  opacity: .85;
  max-width: 600px;
  margin: 0 auto;
}

/* === Content area === */
.site-content {
  padding: 36px 0 50px;
}

/* Front page — single column */
.front-content { max-width: 860px; margin: 0 auto; }

/* Inner pages — content + sidebar */
.content-sidebar {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: var(--gap);
  align-items: start;
}
.primary-content { min-width: 0; }

/* === Posts / Cards === */
.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}
.post-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,.1); }
.post-card h2 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}
.post-card h2 a { color: var(--navy); }
.post-card h2 a:hover { color: var(--brown); }
.post-meta {
  font-size: .8rem;
  color: var(--text-light);
  margin-bottom: 10px;
}
.post-excerpt { font-size: .95rem; line-height: 1.65; }
.read-more {
  display: inline-block;
  margin-top: 10px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--brown);
}

/* Post thumbnail */
.post-thumb {
  margin-bottom: 14px;
  border-radius: var(--radius);
  overflow: hidden;
}
.post-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Single post */
.single-content h1 { font-size: 1.6rem; margin-bottom: 8px; color: var(--navy); }
.single-content .post-meta { margin-bottom: 18px; }
.single-content .entry-content { font-size: .95rem; line-height: 1.75; }
.single-content .entry-content p { margin-bottom: 16px; }
.single-content .entry-content h2,
.single-content .entry-content h3 { margin: 24px 0 10px; color: var(--navy); }
.single-content .entry-content img { border-radius: var(--radius); margin: 16px 0; }
.single-content .entry-content blockquote {
  border-left: 3px solid var(--brown);
  padding: 10px 18px;
  margin: 16px 0;
  background: rgba(106,54,18,.04);
  color: var(--text-light);
  font-style: italic;
}

/* Page */
.page-content h1 { font-size: 1.5rem; margin-bottom: 16px; color: var(--navy); }
.page-content .entry-content { font-size: .95rem; line-height: 1.75; }
.page-content .entry-content p { margin-bottom: 16px; }

/* === Sidebar === */
.sidebar .widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.sidebar .widget-title {
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--navy);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brown);
}
.sidebar .widget ul { list-style: none; }
.sidebar .widget li {
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
}
.sidebar .widget li:last-child { border-bottom: none; }
.sidebar .widget li a { color: var(--text); }
.sidebar .widget li a:hover { color: var(--brown); }

/* === Pagination === */
.pagination {
  display: flex;
  gap: 6px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .85rem;
  color: var(--text);
  background: var(--white);
  transition: all var(--transition);
}
.pagination a:hover { border-color: var(--brown); color: var(--brown); }
.pagination .current {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}


/* === Footer === */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.7);
  padding: 28px 0;
  font-size: .82rem;
  text-align: center;
}
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: var(--white); }

/* === Comments === */
.comments-area { margin-top: 24px; }
.comments-area .post-card { padding: 24px 28px; }
.comments-title { font-size: 1.15rem; margin-bottom: 16px; color: var(--navy); }
.comment-list { list-style: none; }
.comment-list .comment {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.comment-list .comment:last-child { border-bottom: none; }
.comment-author { font-weight: 600; font-size: .9rem; }
.comment-author img { border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.comment-metadata { font-size: .78rem; color: var(--text-light); margin-bottom: 6px; }
.comment-metadata a { color: var(--text-light); }
.comment-content { font-size: .9rem; line-height: 1.6; }
.reply a {
  font-size: .78rem;
  font-weight: 600;
  color: var(--brown);
  text-transform: uppercase;
  letter-spacing: .3px;
}

/* Comment form */
.comment-respond { margin-top: 20px; }
.comment-reply-title { font-size: 1.1rem; margin-bottom: 12px; color: var(--navy); }
.comment-form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  max-width: 480px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .9rem;
  font-family: inherit;
  transition: border-color var(--transition);
  background: var(--white);
}
.comment-form textarea { max-width: 100%; min-height: 120px; resize: vertical; }
.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 2px rgba(29,59,78,.1);
}
.comment-form p { margin-bottom: 12px; }
.comment-form .form-submit input {
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}
.comment-form .form-submit input:hover { background: var(--navy-dark); }
.comment-form .comment-form-cookies-consent { display: flex; align-items: center; gap: 6px; }
.comment-form .comment-form-cookies-consent input { width: auto; max-width: none; }

/* === WP Default Widgets === */
.widget_search .search-form {
  display: flex;
  gap: 6px;
}
.widget_search .search-field {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .85rem;
}
.widget_search .search-field:focus {
  outline: none;
  border-color: var(--navy);
}
.widget_search .search-submit {
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: .85rem;
  cursor: pointer;
}
.widget_search .search-submit:hover { background: var(--navy-dark); }

/* === Post Navigation === */
.post-navigation {
  margin-top: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
}
.post-navigation a { color: var(--navy); font-weight: 500; }
.post-navigation a:hover { color: var(--brown); }
.nav-links { display: flex; justify-content: space-between; width: 100%; }

/* === Responsive === */
@media (max-width: 900px) {
  :root { --sidebar-w: 250px; }
}
@media (max-width: 768px) {
  :root { --header-h: 50px; }

  .menu-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--navy);
    padding: 10px 20px 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { display: block; padding: 10px 12px; }

  .content-sidebar {
    grid-template-columns: 1fr;
  }
  .sidebar { order: 2; }

  .hero h1 { font-size: 1.5rem; }
  .hero { padding: 32px 0 28px; }
}
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .post-card { padding: 18px 20px; }
  .hero h1 { font-size: 1.3rem; }
}

