/*
 Theme Name:   Inspiro Child
 Theme URI:    https://hanlimrealty.com
 Description:  Inspiro Child Theme for Han & Lim Realty
 Author:       Han & Lim Realty
 Author URI:   https://hanlimrealty.com
 Template:     inspiro
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 Text Domain:  inspiro-child
*/
/*
 * Han & Lim Realty - Luxury Real Estate Custom CSS
 * Applied via Inspiro Child Theme
 */

/* ===== 1. Google Fonts Import ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ===== 2. CSS Variables / Color Palette ===== */
:root {
  --hanlim-navy: #1B2A4A;
  --hanlim-gold: #C9A94E;
  --hanlim-gold-hover: #B8942E;
  --hanlim-white: #FFFFFF;
  --hanlim-offwhite: #F8F9FA;
  --hanlim-dark: #0F172A;
  --hanlim-text: #1E293B;
  --hanlim-muted: #64748B;
  --hanlim-border: #E2E8F0;
  --hanlim-success: #059669;
}

/* ===== 3. Typography ===== */
body, p, .entry-content, .site-content, .page-content {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: 16px;
  line-height: 1.6;
  color: var(--hanlim-text);
}

h1, h2, h3, h4, h5, h6,
.entry-title, .page-title, .hero-title {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-weight: 700;
  color: var(--hanlim-navy);
}

h1 { font-size: 44px; line-height: 1.15; }
h2 { font-size: 36px; line-height: 1.2; }
h3 { font-size: 24px; line-height: 1.3; font-weight: 600; }
h4 { font-size: 20px; line-height: 1.3; font-weight: 600; }

.site-title {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-weight: 700 !important;
}

/* ===== 4. Navigation Bar ===== */
.navbar, .site-header, #masthead {
  background-color: transparent !important;
  transition: background-color 0.3s ease !important;
}

.navbar.scrolled, .site-header.scrolled, #masthead.scrolled,
.navbar.fixed, .site-header.fixed {
  background-color: var(--hanlim-navy) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1) !important;
}

.navbar-nav .nav-link,
.main-navigation a,
.site-header a {
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
  color: #FFFFFF !important;
}

.navbar-nav .nav-link:hover,
.main-navigation a:hover {
  color: var(--hanlim-gold) !important;
}

/* Override Inspiro's white header text on hero */
.home .site-header,
.page-template-full-width .site-header {
  background-color: transparent !important;
}

/* ===== 5. Hero Section Override ===== */
.home-hero, .hero-section, 
.entry-content .wp-block-cover,
.section-hero {
  position: relative;
}

.home-hero .wp-block-cover__inner-container,
.hero-content {
  position: relative;
  z-index: 2;
}

/* Gold accent underline for headings */
.gold-underline {
  display: inline-block;
  position: relative;
}
.gold-underline::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--hanlim-gold);
}

/* ===== 6. Button Styles ===== */
.btn, .wp-block-button__link, 
button, input[type="submit"],
.wp-block-button.is-style-fill .wp-block-button__link {
  background-color: var(--hanlim-gold) !important;
  border-color: var(--hanlim-gold) !important;
  color: var(--hanlim-navy) !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  padding: 14px 32px !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  border: none !important;
  box-shadow: none !important;
}

.btn:hover, .wp-block-button__link:hover,
button:hover, input[type="submit"]:hover {
  background-color: var(--hanlim-gold-hover) !important;
  border-color: var(--hanlim-gold-hover) !important;
  color: var(--hanlim-white) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201,169,78,0.3) !important;
}

/* Gold outline button variant */
.btn-outline, .wp-block-button.is-style-outline .wp-block-button__link {
  background-color: transparent !important;
  border: 2px solid var(--hanlim-gold) !important;
  color: var(--hanlim-gold) !important;
}

.btn-outline:hover, .wp-block-button.is-style-outline .wp-block-button__link:hover {
  background-color: var(--hanlim-gold) !important;
  color: var(--hanlim-navy) !important;
}

/* ===== 7. Card Styles ===== */
.service-card, .value-card, .team-card,
.card, .wp-block-columns .wp-block-column {
  background: var(--hanlim-white);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.04);
}

.service-card:hover, .value-card:hover,
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

/* Gold accent top border for cards */
.card-gold-top {
  border-top: 4px solid var(--hanlim-gold) !important;
}

/* ===== 8. Section Backgrounds ===== */
.section-light {
  background-color: var(--hanlim-white);
  padding: 80px 0;
}

.section-alt {
  background-color: var(--hanlim-offwhite);
  padding: 80px 0;
}

.section-dark {
  background-color: var(--hanlim-dark);
  padding: 80px 0;
  color: #CBD5E1;
}

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

/* ===== 9. Footer ===== */
.site-footer, .footer-widgets, #colophon {
  background-color: var(--hanlim-dark) !important;
  color: #CBD5E1 !important;
  padding: 60px 0 30px !important;
}

.site-footer a, .footer-widgets a {
  color: var(--hanlim-gold) !important;
}

.site-footer a:hover, .footer-widgets a:hover {
  color: var(--hanlim-white) !important;
}

.site-footer .widget-title, .footer-widgets .widget-title {
  color: var(--hanlim-white) !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 20px !important;
}

/* ===== 10. Calculator Styling ===== */
.calculator-container, .hlr-calculator {
  background: var(--hanlim-white);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  border: 1px solid var(--hanlim-border);
}

.calculator-container input,
.calculator-container select,
.hlr-calculator input,
.hlr-calculator select {
  border: 2px solid var(--hanlim-border);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  width: 100%;
}

.calculator-container input:focus,
.calculator-container select:focus,
.hlr-calculator input:focus,
.hlr-calculator select:focus {
  border-color: var(--hanlim-gold);
  box-shadow: 0 0 0 3px rgba(201,169,78,0.15);
  outline: none;
}

/* ===== 11. Testimonial Blockquote ===== */
blockquote, .testimonial-block {
  border-left: 4px solid var(--hanlim-gold) !important;
  padding-left: 24px !important;
  font-style: italic !important;
  color: #475569 !important;
  background: transparent !important;
}

/* ===== 12. Stats / Number Display ===== */
.stat-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--hanlim-gold);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--hanlim-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== 13. Award Badge ===== */
.award-chip, .award-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--hanlim-gold), var(--hanlim-gold-hover));
  color: var(--hanlim-white);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  margin: 2px;
}

/* ===== 14. Gold Divider ===== */
.gold-divider, .wp-block-separator.is-style-wide {
  width: 60px;
  height: 3px;
  background: var(--hanlim-gold);
  margin: 20px 0;
  border: none;
}

/* ===== 15. Page Titles with Gold Accent ===== */
.page-title, .entry-title {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.page-title::after, .entry-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--hanlim-gold);
}

/* Center-aligned titles */
.page-title.text-center::after, 
.entry-title.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ===== 16. Team Member Photo ===== */
.team-photo, .team-member img {
  border-radius: 50%;
  width: 200px;
  height: 200px;
  object-fit: cover;
  border: 4px solid var(--hanlim-gold);
  margin-bottom: 16px;
}

/* ===== 17. Contact Info Icons ===== */
.contact-icon {
  color: var(--hanlim-gold);
  margin-right: 8px;
  font-size: 18px;
}

/* ===== 18. HDB Timeline ===== */
.timeline-item {
  position: relative;
  padding: 24px;
  border-left: 3px solid var(--hanlim-gold);
  margin-bottom: 24px;
}

.timeline-item .timeline-number {
  position: absolute;
  left: -16px;
  top: 24px;
  width: 32px;
  height: 32px;
  background: var(--hanlim-navy);
  color: var(--hanlim-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
}

.timeline-item h3 {
  margin-top: 0;
  color: var(--hanlim-navy);
}

.timeline-item .timeline-time {
  color: var(--hanlim-gold);
  font-weight: 600;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ===== 19. Full-width page content ===== */
.page-template-full-width .site-content,
.full-width-content {
  max-width: 100% !important;
  padding: 0 !important;
}

.entry-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* ===== 20. Remove sidebars ===== */
#secondary, .sidebar, .widget-area {
  display: none !important;
}

.site-content {
  display: block !important;
}

/* ===== 21. Remove Inspiro default photography elements ===== */
.home .portfolio, 
.home .gallery,
.home .recent-posts {
  display: none;
}

/* ===== 22. Mobile Responsive ===== */
@media (max-width: 768px) {
  h1 { font-size: 32px !important; }
  h2 { font-size: 28px !important; }
  
  .service-card, .value-card, .team-card,
  .wp-block-columns .wp-block-column {
    padding: 24px !important;
  }
  
  .site-footer .footer-widgets-container,
  .footer-widgets {
    grid-template-columns: 1fr !important;
  }
  
  .site-footer .footer-column {
    margin-bottom: 32px;
  }
  
  .section-light, .section-alt, .section-dark {
    padding: 40px 0;
  }
  
  .calculator-container, .hlr-calculator {
    padding: 24px;
  }
  
  .stat-number {
    font-size: 36px;
  }
  
  .team-photo, .team-member img {
    width: 150px;
    height: 150px;
  }
  
  .timeline-item {
    padding: 16px;
  }
  
  .home-hero, .hero-section {
    min-height: auto;
    padding: 100px 20px 60px;
  }
}

/* ===== 23. Mobile Sticky Bar (matches mu-plugin) ===== */
@media (max-width: 768px) {
  body {
    padding-bottom: 60px;
  }
}

/* ===== 24. WhatsApp Floating Button ===== */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: #25D366;
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37,211,102,0.4);
  transition: all 0.3s ease;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37,211,102,0.5);
}

/* ===== 25. Page Hero Banner ===== */
.page-hero {
  background: linear-gradient(135deg, rgba(27,42,74,0.92), rgba(27,42,74,0.7));
  padding: 120px 20px 80px;
  text-align: center;
  color: white;
}

.page-hero h1 {
  color: white;
  font-size: 44px;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  max-width: 700px;
  margin: 0 auto;
}

/* ===== 26. Social Proof Strip ===== */
.social-proof {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
  padding: 40px 20px;
  background: var(--hanlim-white);
}

.social-proof-item {
  text-align: center;
  flex: 1;
  min-width: 160px;
}

/* ===== 27. Two-column contact layout ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ===== 28. Fix Inspiro hero overlay ===== */
.wp-block-cover.has-background-dim::before {
  z-index: 1;
}

/* ===== 29. Gold border on cards ===== */
.has-gold-border {
  border: 1px solid var(--hanlim-gold) !important;
}

/* ===== 30. Heading with gold accent ===== */
.heading-gold-accent {
  color: var(--hanlim-navy);
  position: relative;
  padding-bottom: 16px;
  margin-bottom: 32px;
}

.heading-gold-accent::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--hanlim-gold);
}
