/*
Theme Name:  FC Conveyancing
Theme URI:   https://fcconveyancing.com.au/
Author:      FC Conveyancing
Author URI:  https://fcconveyancing.com.au/
Description: Professional Elementor-compatible WordPress theme for FC Conveyancing – Melbourne property conveyancing specialists. Supports Elementor Page Builder, Header/Footer Builder, and Theme Styles.
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fc-conveyancing
Tags:        elementor, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, sticky-header, theme-options, translation-ready
Requires at least: 6.0
Tested up to:      6.7
Requires PHP:      8.0
*/

/* =============================================================
   CSS CUSTOM PROPERTIES – Brand palette & typography tokens
   ============================================================= */
:root {
  /* --- Primary brand palette --- */
  --fcc-navy:        #1E3A5F;   /* Deep navy – primary brand */
  --fcc-navy-dark:   #122537;   /* Darker navy for hover/footer */
  --fcc-navy-light:  #2D5B8E;   /* Lighter navy for gradients   */
  --fcc-gold:        #C8892A;   /* Warm gold – accent           */
  --fcc-gold-light:  #E5A94B;   /* Light gold for hover         */

  /* --- Neutral / background --- */
  --fcc-bg-light:    #F6F8FA;   /* Off-white page background    */
  --fcc-bg-section:  #FFFFFF;   /* Section white                */
  --fcc-bg-dark:     #0F1E2D;   /* Very dark navy for footer    */
  --fcc-border:      #DDE3EC;   /* Subtle border                */

  /* --- Text --- */
  --fcc-text:        #2C2C2C;   /* Body text                    */
  --fcc-text-muted:  #6B7280;   /* Muted / secondary text       */
  --fcc-text-white:  #FFFFFF;   /* White text on dark BG        */

  /* --- Typography --- */
  --fcc-font-head:   'Montserrat', 'Segoe UI', Arial, sans-serif;
  --fcc-font-body:   'Open Sans', 'Helvetica Neue', Arial, sans-serif;

  /* --- Spacing --- */
  --fcc-space-xs:    0.5rem;
  --fcc-space-sm:    1rem;
  --fcc-space-md:    2rem;
  --fcc-space-lg:    4rem;
  --fcc-space-xl:    6rem;

  /* --- Radii & shadows --- */
  --fcc-radius:      6px;
  --fcc-radius-lg:   12px;
  --fcc-shadow:      0 2px 16px rgba(30,58,95,0.10);
  --fcc-shadow-hover:0 6px 32px rgba(30,58,95,0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--fcc-font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--fcc-text);
  background: var(--fcc-bg-light);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--fcc-navy);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover,
a:focus {
  color: var(--fcc-gold);
  outline: none;
}
a:focus-visible {
  outline: 2px solid var(--fcc-gold);
  outline-offset: 3px;
}

/* =============================================================
   TYPOGRAPHY
   ============================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--fcc-font-head);
  font-weight: 700;
  line-height: 1.25;
  color: var(--fcc-navy);
  margin-top: 0;
  margin-bottom: 0.6em;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p { margin-top: 0; margin-bottom: 1.2em; }

ul, ol { padding-left: 1.4em; }

blockquote {
  border-left: 4px solid var(--fcc-gold);
  padding: 1em 1.5em;
  margin: 1.5em 0;
  background: var(--fcc-bg-light);
  border-radius: 0 var(--fcc-radius) var(--fcc-radius) 0;
  font-style: italic;
  color: var(--fcc-text-muted);
}

/* =============================================================
   LAYOUT CONTAINERS
   ============================================================= */
.site-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1 0 auto;
}

.fcc-container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.fcc-section {
  padding-block: var(--fcc-space-lg);
}

/* =============================================================
   SKIP LINK (Accessibility)
   ============================================================= */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1.5rem;
  background: var(--fcc-navy);
  color: #fff;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

/* =============================================================
   HEADER
   ============================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 12px rgba(30,58,95,0.10);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(30,58,95,0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 2rem;
}

/* Logo */
.site-branding {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-branding a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.custom-logo {
  height: 52px;
  width: auto;
}

.site-title-text {
  font-family: var(--fcc-font-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--fcc-navy);
  line-height: 1.15;
}
.site-title-text span {
  color: var(--fcc-gold);
}

/* Primary Nav */
.primary-navigation {
  display: flex;
  align-items: center;
}

.primary-navigation .nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
}

.primary-navigation .nav-menu li {
  position: relative;
}

.primary-navigation .nav-menu a {
  display: block;
  padding: 0.5rem 1rem;
  font-family: var(--fcc-font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fcc-text);
  letter-spacing: 0.02em;
  border-radius: var(--fcc-radius);
  transition: color 0.2s, background 0.2s;
}
.primary-navigation .nav-menu a:hover,
.primary-navigation .nav-menu .current-menu-item > a {
  color: var(--fcc-navy);
  background: var(--fcc-bg-light);
}

/* Dropdown */
.primary-navigation .nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border-radius: var(--fcc-radius);
  box-shadow: var(--fcc-shadow-hover);
  padding: 0.5rem 0;
  display: none;
  list-style: none;
  z-index: 100;
}
.primary-navigation .nav-menu li:hover > .sub-menu {
  display: block;
}
.primary-navigation .nav-menu .sub-menu a {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  border-radius: 0;
}

/* CTA in header */
.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* Mobile hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--fcc-navy);
}
.menu-toggle svg {
  display: block;
  width: 28px;
  height: 28px;
}

/* =============================================================
   BUTTONS
   ============================================================= */
.btn,
.wp-block-button__link,
button[type="submit"],
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.75em 1.75em;
  border-radius: var(--fcc-radius);
  font-family: var(--fcc-font-head);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  line-height: 1;
}

.btn-primary,
button[type="submit"],
input[type="submit"] {
  background: var(--fcc-gold);
  color: #fff;
  border-color: var(--fcc-gold);
}
.btn-primary:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  background: var(--fcc-gold-light);
  border-color: var(--fcc-gold-light);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(200,137,42,0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--fcc-navy);
  border-color: var(--fcc-navy);
}
.btn-secondary:hover {
  background: var(--fcc-navy);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--fcc-navy);
  border-color: #fff;
}
.btn-white:hover {
  background: var(--fcc-gold);
  border-color: var(--fcc-gold);
  color: #fff;
}

/* =============================================================
   HERO (fallback for non-Elementor pages)
   ============================================================= */
.fcc-hero {
  background: linear-gradient(135deg, var(--fcc-navy-dark) 0%, var(--fcc-navy) 60%, var(--fcc-navy-light) 100%);
  color: #fff;
  padding: var(--fcc-space-xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.fcc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff08" d="M0,96L48,112C96,128,192,160,288,165.3C384,171,480,149,576,128C672,107,768,85,864,96C960,107,1056,149,1152,154.7C1248,160,1344,128,1392,112L1440,96L1440,320L0,320Z"/></svg>') center bottom / cover no-repeat;
}
.fcc-hero h1 {
  color: #fff;
  margin-bottom: 1rem;
}
.fcc-hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 2rem;
}
.fcc-hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================================
   CARDS (Service / Blog post)
   ============================================================= */
.fcc-card {
  background: #fff;
  border-radius: var(--fcc-radius-lg);
  overflow: hidden;
  box-shadow: var(--fcc-shadow);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
}
.fcc-card:hover {
  box-shadow: var(--fcc-shadow-hover);
  transform: translateY(-3px);
}
.fcc-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.fcc-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.fcc-card:hover .fcc-card-image img {
  transform: scale(1.04);
}
.fcc-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.fcc-card-meta {
  font-size: 0.8rem;
  color: var(--fcc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.fcc-card-title {
  font-size: 1.15rem;
  font-family: var(--fcc-font-head);
  font-weight: 700;
  color: var(--fcc-navy);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}
.fcc-card-excerpt {
  font-size: 0.9rem;
  color: var(--fcc-text-muted);
  margin-bottom: 1.25rem;
  flex: 1;
}
.fcc-card-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--fcc-gold);
  display: flex;
  align-items: center;
  gap: 0.3em;
}
.fcc-card-link:hover { color: var(--fcc-navy); }

/* =============================================================
   SERVICE BOXES
   ============================================================= */
.fcc-service-box {
  padding: 2rem;
  border-radius: var(--fcc-radius-lg);
  background: #fff;
  border: 1px solid var(--fcc-border);
  box-shadow: var(--fcc-shadow);
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.fcc-service-box:hover {
  box-shadow: var(--fcc-shadow-hover);
  transform: translateY(-3px);
  border-color: var(--fcc-navy);
}
.fcc-service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--fcc-navy), var(--fcc-navy-light));
  border-radius: var(--fcc-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: #fff;
  font-size: 1.5rem;
}

/* =============================================================
   TESTIMONIALS
   ============================================================= */
.fcc-testimonial {
  background: #fff;
  padding: 2rem;
  border-radius: var(--fcc-radius-lg);
  box-shadow: var(--fcc-shadow);
  position: relative;
}
.fcc-testimonial::before {
  content: '\201C';
  font-size: 5rem;
  line-height: 1;
  color: var(--fcc-gold);
  opacity: 0.25;
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  font-family: Georgia, serif;
}
.fcc-testimonial-text {
  font-style: italic;
  color: var(--fcc-text);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.8;
}
.fcc-testimonial-author {
  font-weight: 700;
  color: var(--fcc-navy);
  font-size: 0.875rem;
}

/* =============================================================
   TRUST BADGES
   ============================================================= */
.fcc-trust-bar {
  background: var(--fcc-bg-light);
  border-top: 1px solid var(--fcc-border);
  border-bottom: 1px solid var(--fcc-border);
  padding: 1.25rem 0;
}
.fcc-trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}
.fcc-trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fcc-navy);
}
.fcc-trust-icon {
  color: var(--fcc-gold);
  font-size: 1.4rem;
}

/* =============================================================
   FORMS
   ============================================================= */
.fcc-form-wrap input[type="text"],
.fcc-form-wrap input[type="email"],
.fcc-form-wrap input[type="tel"],
.fcc-form-wrap select,
.fcc-form-wrap textarea,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--fcc-border);
  border-radius: var(--fcc-radius);
  font-family: var(--fcc-font-body);
  font-size: 0.95rem;
  color: var(--fcc-text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.fcc-form-wrap input:focus,
.fcc-form-wrap textarea:focus,
.wpcf7 input:focus,
.wpcf7 textarea:focus {
  border-color: var(--fcc-navy);
  box-shadow: 0 0 0 3px rgba(30,58,95,0.12);
}

.fcc-form-wrap label,
.wpcf7 label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--fcc-navy);
  margin-bottom: 0.4rem;
}

.wpcf7-submit {
  background: var(--fcc-gold);
  color: #fff;
  border: 2px solid var(--fcc-gold);
  border-radius: var(--fcc-radius);
  padding: 0.75em 2em;
  font-family: var(--fcc-font-head);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.wpcf7-submit:hover {
  background: var(--fcc-gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(200,137,42,0.35);
}

/* =============================================================
   BLOG – ARCHIVE & SINGLE
   ============================================================= */
.fcc-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.fcc-blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--fcc-text-muted);
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.fcc-blog-cat-badge {
  display: inline-block;
  background: var(--fcc-navy);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15em 0.6em;
  border-radius: 3px;
}

.entry-content {
  max-width: 780px;
}
.entry-content h2,
.entry-content h3 {
  margin-top: 2rem;
}

.single-post-header {
  background: linear-gradient(135deg, var(--fcc-navy-dark), var(--fcc-navy));
  color: #fff;
  padding: 4rem 0;
}
.single-post-header h1 {
  color: #fff;
}

/* Pagination */
.fcc-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.fcc-pagination a,
.fcc-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--fcc-radius);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1.5px solid var(--fcc-border);
  color: var(--fcc-navy);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.fcc-pagination a:hover,
.fcc-pagination span.current {
  background: var(--fcc-navy);
  color: #fff;
  border-color: var(--fcc-navy);
}

/* =============================================================
   SIDEBAR
   ============================================================= */
.sidebar-widget {
  background: #fff;
  border-radius: var(--fcc-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--fcc-shadow);
}
.sidebar-widget-title {
  font-size: 1rem;
  font-family: var(--fcc-font-head);
  font-weight: 700;
  color: var(--fcc-navy);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--fcc-gold);
}

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer {
  background: var(--fcc-bg-dark);
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
}

.footer-main {
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
}

.footer-brand .site-title-text {
  color: #fff;
  font-size: 1.3rem;
}
.footer-tagline {
  margin-top: 0.75rem;
  opacity: 0.7;
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-heading {
  font-family: var(--fcc-font-head);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fcc-gold);
  margin-bottom: 1rem;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-nav ul li { margin-bottom: 0.5rem; }
.footer-nav a {
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--fcc-gold); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
}
.footer-contact-icon { color: var(--fcc-gold); flex-shrink: 0; margin-top: 2px; }

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}
.footer-social a:hover {
  background: var(--fcc-gold);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-legal-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-legal-links a {
  color: rgba(255,255,255,0.55);
  font-size: 0.8rem;
}
.footer-legal-links a:hover { color: var(--fcc-gold); }

/* =============================================================
   404 & SEARCH RESULTS
   ============================================================= */
.error-404,
.search-page {
  padding: 6rem 0;
  text-align: center;
}
.error-404 .error-code {
  font-size: 7rem;
  font-weight: 800;
  color: var(--fcc-navy);
  opacity: 0.12;
  line-height: 1;
  display: block;
}

.search-form-wrap input[type="search"] {
  width: 100%;
  max-width: 480px;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--fcc-border);
  border-radius: var(--fcc-radius) 0 0 var(--fcc-radius);
  font-size: 0.95rem;
  outline: none;
}

/* =============================================================
   ELEMENTOR OVERRIDES / INTEGRATION
   ============================================================= */
.elementor-section-wrap,
.elementor-widget-container {
  font-family: var(--fcc-font-body);
}

.e-con-inner {
  --container-max-width: 1200px;
}

/* Ensure Elementor full-width pages have no gaps */
.elementor-template-full-width .site-main {
  padding: 0;
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --fcc-space-lg: 3rem;
    --fcc-space-xl: 4rem;
  }

  .header-inner { height: 68px; }

  .primary-navigation {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 1.5rem;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    z-index: 999;
  }
  .primary-navigation.is-open {
    transform: translateY(0);
  }
  .primary-navigation .nav-menu {
    flex-direction: column;
    gap: 0.25rem;
  }
  .primary-navigation .nav-menu .sub-menu {
    position: static;
    box-shadow: none;
    padding-left: 1rem;
    display: block;
  }

  .menu-toggle { display: flex; }
  .header-cta .btn { display: none; }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .fcc-blog-grid {
    grid-template-columns: 1fr;
  }

  .fcc-hero-actions {
    flex-direction: column;
    align-items: center;
  }
}
