/*
Theme Name: Mr Backyards Theme
Theme URI: https://www.cebuhub.com
Author: Ariel Lim (CebuHub Web Applications Services)
Author URI: https://www.cebuhub.com
Description: Custom, high-converting, responsive real estate WordPress theme built for Mr Backyards Australia. Developed by Ariel Lim (CebuHub Web Applications Services).
Version: 1.0.0
Text Domain: mrbackyards
*/

:root {
  --primary: #1b4332;
  --primary-dark: #081c15;
  --primary-light: #2d6a4f;
  --accent: #40916c;
  --accent-hover: #2d6a4f;
  --highlight: #d97706;
  --highlight-hover: #b45309;
  --success: #16a34a;
  --bg-light: #f4f9f5;
  --bg-card: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-heading: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: #ffffff;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: 2.25rem;
}

h2 {
  font-size: 1.85rem;
}

h3 {
  font-size: 1.45rem;
}

h4 {
  font-size: 1.2rem;
}

p {
  margin-bottom: 1.25rem;
  color: #334155;
}

ul,
ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* TOP BAR */
.top-bar {
  background-color: var(--primary-dark);
  color: #e2e8f0;
  font-size: 0.875rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-bar-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-bar-info span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.top-bar-phones {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.top-bar-phones a {
  color: #93c5fd;
  font-weight: 500;
  font-size: 0.825rem;
}

.top-bar-phones a:hover {
  color: #ffffff;
}

/* HEADER & NAV */
.site-header {
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 1.25rem;
  gap: 1.25rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none !important;
  flex-shrink: 0;
  white-space: nowrap;
}

.site-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.site-logo-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  display: inline-block;
}

.nav-menu {
  display: flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.nav-menu a {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.4rem 0;
  position: relative;
  white-space: nowrap;
  display: inline-block;
  line-height: 1.2;
}

.nav-menu a:hover,
.nav-menu .current-menu-item>a {
  color: var(--accent);
  text-decoration: none;
}

.nav-menu .current-menu-item>a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--accent);
  border-radius: 2px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  height: 42px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none !important;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.btn-highlight {
  background-color: var(--highlight);
  color: #ffffff;
}

.btn-highlight:hover {
  background-color: var(--highlight-hover);
  color: #ffffff;
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-lg {
  height: 48px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-sm {
  height: 36px;
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

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

/* HERO SECTION */
.hero-section {
  background: linear-gradient(135deg, #081c15 0%, #1b4332 50%, #2d6a4f 100%);
  color: #ffffff;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-title,
.hero-content h1,
.hero-section h1 {
  color: #ffffff !important;
  font-size: 2.75rem;
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.hero-lead,
.hero-content p,
.hero-section p {
  color: #cbd5e1 !important;
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-badge {
  background-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* LEAD FORM CARD */
.lead-form-card {
  background-color: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  color: var(--text-main);
  border: 1px solid var(--border);
}

.lead-form-card h3 {
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  text-align: center;
}

.lead-form-card p.form-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13, 92, 117, 0.15);
}

select.form-control {
  background-color: #ffffff;
}

/* MAIN CONTENT LAYOUT */
.main-layout {
  padding: 3.5rem 0;
  flex: 1;
}

.page-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #ffffff;
  padding: 3rem 0;
  margin-bottom: 2.5rem;
}

.page-banner h1 {
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.page-banner p {
  color: #e2e8f0;
  font-size: 1.1rem;
  margin-bottom: 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: 2.5rem;
}

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

.main-content {
  background-color: #ffffff;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.widget-box {
  background-color: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.widget-box h3 {
  font-size: 1.15rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

/* OPTIONS CARDS SECTION */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2.5rem 0;
}

/* TEAM PROFILE CARD */
.team-profile-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 4rem;
}

.team-profile-grid {
  display: grid;
  grid-template-columns: minmax(250px, 320px) 1fr;
  gap: 3rem;
  align-items: center;
}

.team-profile-image {
  text-align: center;
}

.team-profile-image img {
  width: 100%;
  max-width: 320px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 5px solid #ffffff;
}

.team-actions {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

/* CONTACT PAGE CARD */
.contact-page-card {
  background-color: #ffffff;
  padding: 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.option-card {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.option-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.option-card h3 {
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* STATE DIRECTORY GRID */
.state-directory {
  background-color: var(--bg-light);
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.state-card {
  background-color: #ffffff;
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: border-color 0.2s ease;
}

.state-card:hover {
  border-color: var(--accent);
}

.state-name {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.05rem;
}

.state-phone {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
}

/* FAQ ACCORDION */
.faq-item {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  padding: 1.25rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  background-color: #ffffff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 1.25rem 1.25rem 1.25rem;
  color: #475569;
}

/* BLOG LAYOUT & CARDS */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.blog-card {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.blog-card-img {
  height: 200px;
  background-color: var(--bg-light);
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-meta {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: flex;
  gap: 0.75rem;
}

.blog-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.blog-card-title a {
  color: var(--primary);
}

.blog-card-title a:hover {
  color: var(--accent);
}

.blog-card-excerpt {
  font-size: 0.925rem;
  color: #475569;
  margin-bottom: 1.25rem;
  flex: 1;
}

/* FOOTER */
.site-footer {
  background-color: var(--primary-dark);
  color: #94a3b8;
  padding-top: 3.5rem;
  padding-bottom: 2rem;
  margin-top: auto;
  border-top: 4px solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background-color: var(--accent);
}

.footer-col p {
  color: #cbd5e1;
  font-size: 0.925rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 0.925rem;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav-menu {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 768px) {
  .header-cta-text {
    display: none;
  }

  .header-cta-btn {
    padding: 0;
    height: 38px;
    width: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
  }

  .header-cta-btn i {
    margin: 0;
    font-size: 1.1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .team-profile-card {
    padding: 1.5rem;
    margin-bottom: 2.5rem;
  }

  .team-profile-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .team-profile-image img {
    max-width: 220px;
    margin: 0 auto;
  }

  .team-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .team-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .contact-page-card {
    padding: 1.25rem 0.75rem;
  }

  .contact-page-card .lead-form-card {
    padding: 1rem 0.5rem;
    box-shadow: none;
    border: none;
  }

  .lead-form-card {
    padding: 1.25rem 1rem;
  }
}

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

  .top-bar-phones {
    display: none;
  }

  .hero-content h1 {
    font-size: 2rem;
  }
}