/*
Theme Name: Whalen Mortgages
Theme URI: https://whalenmortgages.com
Description: Professional mortgage broker WordPress theme for Whalen Mortgages Fort McMurray
Version: 1.0.0
Author: Whalen Mortgages
Author URI: https://whalenmortgages.com
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: whalen-mortgages
Domain Path: /languages
Requires at least: 5.9
Requires PHP: 7.4
*/

/* ============================================
   GLOBAL STYLES
   ============================================ */

:root {
  --primary-blue: #0073e6;
  --secondary-green: #00a651;
  --accent-orange: #f97316;
  --gold-yellow: #fbbf24;
  --dark-text: #1f2937;
  --light-text: #6b7280;
  --border-gray: #e5e7eb;
  --bg-light: #f3f4f6;
  --white: #ffffff;
  --black: #000000;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--dark-text);
  background-color: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 48px;
}

h2 {
  font-size: 32px;
}

h3 {
  font-size: 24px;
}

h4 {
  font-size: 20px;
}

h5 {
  font-size: 18px;
}

h6 {
  font-size: 16px;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-green);
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.col {
  flex: 1;
  min-width: 0;
}

.col-1 { flex: 0 0 calc(8.333% - 1.5rem); }
.col-2 { flex: 0 0 calc(16.666% - 1.5rem); }
.col-3 { flex: 0 0 calc(25% - 1.5rem); }
.col-4 { flex: 0 0 calc(33.333% - 1.5rem); }
.col-5 { flex: 0 0 calc(41.666% - 1.5rem); }
.col-6 { flex: 0 0 calc(50% - 1.5rem); }
.col-7 { flex: 0 0 calc(58.333% - 1.5rem); }
.col-8 { flex: 0 0 calc(66.666% - 1.5rem); }
.col-9 { flex: 0 0 calc(75% - 1.5rem); }
.col-10 { flex: 0 0 calc(83.333% - 1.5rem); }
.col-11 { flex: 0 0 calc(91.666% - 1.5rem); }
.col-12 { flex: 0 0 calc(100% - 1.5rem); }

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

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

.btn-primary:hover {
  background-color: #005bb5;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--secondary-green);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: #008c3a;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

.btn-lg {
  padding: 16px 40px;
  font-size: 18px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-gray);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.site-header-top {
  background-color: var(--dark-text);
  color: var(--white);
  padding: 8px 0;
  font-size: 14px;
}

.site-header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-contact {
  display: flex;
  gap: 2rem;
}

.header-contact a {
  color: var(--white);
  text-decoration: none;
}

.header-contact a:hover {
  color: var(--gold-yellow);
}

.site-header-main {
  padding: 1rem 0;
}

.site-header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-size: 24px;
  font-weight: 900;
  color: var(--primary-blue);
  text-decoration: none;
}

.site-logo:hover {
  color: var(--secondary-green);
}

.site-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.site-nav a {
  color: var(--dark-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.site-nav a:hover {
  color: var(--primary-blue);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  padding: 80px 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-block;
  background-color: rgba(0, 115, 230, 0.8);
  color: var(--white);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.hero h1 {
  color: var(--white);
  font-size: 48px;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

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

.hero-tagline {
  color: var(--gold-yellow);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-trust {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-top: 2rem;
}

/* ============================================
   SECTIONS
   ============================================ */

section {
  padding: 64px 0;
}

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

section.bg-primary {
  background-color: var(--primary-blue);
  color: var(--white);
}

section.bg-primary h1,
section.bg-primary h2,
section.bg-primary h3 {
  color: var(--white);
}

section.bg-gradient {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #005bb5 100%);
  color: var(--white);
}

section.bg-gradient h1,
section.bg-gradient h2,
section.bg-gradient h3 {
  color: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--light-text);
  font-size: 16px;
}

/* ============================================
   CARDS
   ============================================ */

.card {
  background-color: var(--white);
  border-radius: var(--radius-xl);
  padding: 24px;
  border: 1px solid var(--border-gray);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

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

.card-header {
  background-color: var(--primary-blue);
  padding: 16px 24px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  color: var(--white);
  margin: -24px -24px 24px -24px;
}

.card-header h3 {
  color: var(--white);
  margin: 0;
}

.card-header p {
  color: #bfdbfe;
  font-size: 14px;
  margin: 4px 0 0 0;
}

.card-footer {
  background-color: #f9fafb;
  padding: 16px 24px;
  border-top: 1px solid var(--border-gray);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  margin: 24px -24px -24px -24px;
  font-size: 12px;
  color: var(--light-text);
}

/* ============================================
   SERVICE CARDS
   ============================================ */

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  background-color: var(--white);
  border-radius: var(--radius-xl);
  padding: 24px;
  border: 1px solid var(--border-gray);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

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

.service-card-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.service-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14px;
  color: var(--light-text);
  margin-bottom: 16px;
}

.service-card a {
  color: var(--primary-blue);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

/* ============================================
   STATS BAR
   ============================================ */

.stats-bar {
  background-color: var(--primary-blue);
  padding: 24px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat-item {
  color: var(--white);
}

.stat-value {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: #bfdbfe;
}

/* ============================================
   CALCULATOR
   ============================================ */

.calculator-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.calculator-inputs {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  display: block;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 8px;
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: 'Lato', sans-serif;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 115, 230, 0.1);
}

.calculator-results {
  background-color: var(--bg-light);
  padding: 32px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-gray);
}

.calculator-results h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.monthly-payment {
  font-size: 36px;
  font-weight: 900;
  color: var(--primary-blue);
  margin-bottom: 24px;
}

.payment-breakdown {
  border-top: 1px solid var(--border-gray);
  padding-top: 24px;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
}

.breakdown-item span:first-child {
  color: var(--light-text);
}

.breakdown-item span:last-child {
  color: var(--dark-text);
  font-weight: 700;
}

/* ============================================
   RATES TABLE
   ============================================ */

.rates-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Lato', sans-serif;
}

.rates-table tr {
  border-bottom: 1px solid var(--border-gray);
}

.rates-table tr:nth-child(even) {
  background-color: #f0f9ff;
}

.rates-table td {
  padding: 14px 24px;
  font-size: 14px;
}

.rates-table td:first-child {
  font-weight: 700;
  color: var(--dark-text);
}

.rates-table td:last-child {
  font-size: 18px;
  font-weight: 900;
  color: var(--primary-blue);
  text-align: right;
}

/* ============================================
   CONTACT FORM
   ============================================ */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form .form-group {
  margin-bottom: 0;
}

.contact-form button {
  margin-top: 8px;
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial {
  background-color: var(--white);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
}

.testimonial-info h4 {
  margin: 0;
  font-size: 14px;
}

.testimonial-role {
  color: var(--light-text);
  font-size: 12px;
}

.testimonial-rating {
  color: var(--gold-yellow);
  font-size: 12px;
  margin-bottom: 12px;
}

.testimonial-text {
  color: var(--light-text);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-content h2 {
  margin-bottom: 1rem;
}

.about-tagline {
  color: var(--primary-blue);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 1rem;
}

.about-text {
  color: var(--light-text);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.about-blockquote {
  border-left: 4px solid var(--primary-blue);
  background-color: #eff6ff;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px;
  margin: 24px 0;
  font-style: italic;
  color: var(--light-text);
  font-size: 14px;
  line-height: 1.6;
}

.about-info-box {
  background-color: #eff6ff;
  border-left: 4px solid var(--primary-blue);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px;
  font-size: 14px;
  color: var(--light-text);
  line-height: 1.6;
}

.about-info-box p {
  margin-bottom: 12px;
}

.about-info-box a {
  color: var(--primary-blue);
  font-weight: 700;
}

/* ============================================
   BLOG
   ============================================ */

.blog-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.blog-post {
  border-bottom: 1px solid var(--border-gray);
  padding-bottom: 32px;
}

.blog-post:last-child {
  border-bottom: none;
}

.blog-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  font-family: 'Lato', sans-serif;
}

.blog-category {
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
}

.blog-date {
  color: var(--light-text);
  font-size: 12px;
}

.blog-post h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.blog-post h2 a {
  color: var(--dark-text);
  text-decoration: none;
}

.blog-post h2 a:hover {
  color: var(--primary-blue);
}

.blog-excerpt {
  color: var(--light-text);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.blog-read-more {
  color: var(--primary-blue);
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}

.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-box {
  background-color: var(--bg-light);
  padding: 24px;
  border-radius: var(--radius-lg);
}

.sidebar-box h3 {
  font-size: 16px;
  margin-bottom: 16px;
}

.sidebar-box input,
.sidebar-box select {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: 'Lato', sans-serif;
}

.sidebar-categories {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-categories li {
  margin-bottom: 12px;
}

.sidebar-categories a {
  color: var(--primary-blue);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.sidebar-categories a:hover {
  color: var(--secondary-green);
}

.sidebar-cta {
  background-color: var(--primary-blue);
  padding: 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--white);
}

.sidebar-cta h3 {
  color: var(--white);
  margin-bottom: 12px;
}

.sidebar-cta p {
  color: #bfdbfe;
  font-size: 14px;
  margin-bottom: 16px;
}

.sidebar-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-contact a {
  color: var(--primary-blue);
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background-color: var(--dark-text);
  color: var(--white);
  padding: 48px 0 24px 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: 16px;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.6;
}

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

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section ul a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
}

.footer-section ul a:hover {
  color: var(--gold-yellow);
}

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

.footer-copyright {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 18px;
}

.footer-social a:hover {
  color: var(--gold-yellow);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 20px;
  }

  .hero {
    min-height: 400px;
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-tagline {
    font-size: 20px;
  }

  .calculator-wrapper {
    grid-template-columns: 1fr;
  }

  .about-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .blog-wrapper {
    grid-template-columns: 1fr;
  }

  .site-nav {
    gap: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-cards {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 480px) {
  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 24px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero-tagline {
    font-size: 18px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .stats-bar {
    grid-template-columns: 1fr;
  }

  .site-header-top .header-contact {
    flex-direction: column;
    gap: 0.5rem;
  }

  .site-nav {
    flex-direction: column;
    gap: 0.5rem;
  }
}
