/*
Theme Name: Match Point Offers
Theme URI: https://matchpointoffers.com
Author: Match Point Offers
Author URI: https://matchpointoffers.com
Description: A professional single-page real estate theme for Match Point Offers. Helping homeowners sell their homes with flat-rate solutions.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: matchpoint-offers
Tags: one-page, real-estate, business, custom-logo, full-width-template
*/

/* =========================================================
   CSS RESET & BASE
========================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --red:      #CC1111;
  --red-dark: #A50D0D;
  --black:    #1A1A1A;
  --gold:     #E8890A;
  --gold-lt:  #F5A623;
  --white:    #FFFFFF;
  --gray-bg:  #F5F5F5;
  --gray-mid: #E0E0E0;
  --gray-txt: #555555;
  --nav-h:    80px;
  --radius:   6px;
  --shadow:   0 4px 20px rgba(0,0,0,0.12);
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
}

/* =========================================================
   UTILITY
========================================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--black);
  margin-bottom: 20px;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--gray-txt);
  max-width: 640px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(204,17,17,0.35); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--red); }

/* =========================================================
   FLOATING NAVIGATION
========================================================= */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.10);
  transition: box-shadow var(--transition), background var(--transition);
}

#site-header.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.site-logo img {
  height: 56px;
  width: auto;
  transition: var(--transition);
}

.site-logo:hover img { opacity: 0.85; }

/* Main Nav */
.main-nav { display: flex; align-items: center; gap: 8px; }

.main-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--black);
  padding: 8px 18px;
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: var(--transition);
}

.main-nav a:hover { color: var(--red); }
.main-nav a:hover::after { transform: scaleX(1); }

.main-nav .nav-cta {
  background: var(--red);
  color: var(--white) !important;
  border-radius: var(--radius);
  padding: 10px 22px;
}
.main-nav .nav-cta::after { display: none; }
.main-nav .nav-cta:hover { background: var(--red-dark) !important; transform: translateY(-1px); }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--black);
  border-radius: 3px;
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =========================================================
   HERO / HOME SECTION
========================================================= */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--black);
  padding-top: var(--nav-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(26,26,26,0.92) 40%, rgba(165,13,13,0.75) 100%);
  z-index: 1;
}

/* Subtle pattern overlay */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.015) 0px,
      rgba(255,255,255,0.015) 1px,
      transparent 1px,
      transparent 40px
    );
  z-index: 0;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  background:
    url('https://images.unsplash.com/photo-1570129477492-45c003edd2be?w=1600&auto=format&fit=crop&q=80')
    center/cover no-repeat;
  opacity: 0.30;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,137,10,0.18);
  border: 1px solid rgba(232,137,10,0.45);
  color: var(--gold-lt);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 40px;
  margin-bottom: 24px;
}

.hero-badge::before {
  content: '⚡';
  font-size: 0.9em;
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  color: var(--white);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  max-width: 760px;
}

.hero-title .accent { color: var(--gold-lt); }
.hero-title .accent-red { color: #FF4444; }

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.80);
  max-width: 580px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 60px;
}

/* Stats bar */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.stat-item {}
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.stat-number span { color: var(--gold-lt); }
.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* Services strip below hero */
.services-strip {
  background: var(--red);
  padding: 22px 0;
}

.services-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

.services-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.services-list li::before { content: '✓'; font-weight: 900; color: var(--gold-lt); }

/* =========================================================
   ABOUT SECTION
========================================================= */
#about {
  padding: 100px 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-img-wrap {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
  background: var(--gray-bg);
}

.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Floating accent card */
.about-accent {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--red);
  color: var(--white);
  border-radius: 10px;
  padding: 20px 24px;
  box-shadow: 0 8px 32px rgba(204,17,17,0.30);
  text-align: center;
  min-width: 160px;
}
.about-accent-number {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
}
.about-accent-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.88;
  margin-top: 4px;
}

.about-text {}
.about-text .section-lead { margin-bottom: 28px; }

/* Solutions cards */
.solutions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0;
}

.solution-card {
  background: var(--gray-bg);
  border-radius: var(--radius);
  padding: 20px;
  border-left: 4px solid var(--red);
  transition: var(--transition);
}
.solution-card:hover {
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.solution-icon { font-size: 1.6rem; margin-bottom: 8px; }
.solution-title { font-size: 0.95rem; font-weight: 700; color: var(--black); margin-bottom: 4px; }
.solution-desc  { font-size: 0.82rem; color: var(--gray-txt); line-height: 1.5; }

/* Flat-rate highlight */
.flat-rate-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, var(--black), #333);
  color: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 8px;
}

.flat-rate-icon { font-size: 2rem; flex-shrink: 0; }
.flat-rate-text {}
.flat-rate-title { font-size: 1.1rem; font-weight: 700; }
.flat-rate-sub   { font-size: 0.85rem; color: rgba(255,255,255,0.65); margin-top: 2px; }

/* =========================================================
   WHY CHOOSE US
========================================================= */
#why {
  padding: 80px 0;
  background: var(--gray-bg);
}

.why-header { text-align: center; margin-bottom: 56px; }
.why-header .section-lead { margin: 0 auto; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.why-card {
  background: var(--white);
  border-radius: 12px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.why-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transform: scaleX(0);
  transition: var(--transition);
}

.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.why-card:hover::after { transform: scaleX(1); }

.why-icon {
  width: 64px;
  height: 64px;
  background: rgba(204,17,17,0.10);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
  transition: var(--transition);
}
.why-card:hover .why-icon { background: var(--red); }

.why-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.why-desc  { font-size: 0.88rem; color: var(--gray-txt); line-height: 1.6; }

/* =========================================================
   CONTACT SECTION
========================================================= */
#contact {
  padding: 100px 0;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-info {}
.contact-info .section-lead { margin-bottom: 40px; }

.contact-details { display: flex; flex-direction: column; gap: 24px; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  background: var(--gray-bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.contact-item:hover .contact-item-icon { background: var(--red); }

.contact-item-text {}
.contact-item-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray-txt); margin-bottom: 2px; }
.contact-item-value { font-size: 1rem; font-weight: 600; color: var(--black); }
.contact-item-value a:hover { color: var(--red); }

/* Contact Form */
.contact-form-wrap {
  background: var(--gray-bg);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.contact-form-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 28px;
  color: var(--black);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--gray-mid);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--black);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(204,17,17,0.12);
}

.form-group textarea { resize: vertical; min-height: 110px; }

.form-submit { width: 100%; margin-top: 8px; }

/* =========================================================
   FOOTER
========================================================= */
#site-footer {
  background: var(--black);
  color: var(--white);
  padding: 70px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.footer-brand {}

.footer-logo {
  margin-bottom: 20px;
  display: inline-block;
}
.footer-logo img { height: 52px; width: auto; filter: brightness(1.1); }

.footer-tagline {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.58);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 24px;
}

.footer-social { display: flex; gap: 12px; }
.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
  color: rgba(255,255,255,0.7);
}
.social-link:hover { background: var(--red); color: var(--white); }

.footer-col-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.58);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--gold-lt); padding-left: 4px; }

.footer-contact-list { display: flex; flex-direction: column; gap: 14px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact-icon { font-size: 1rem; margin-top: 2px; color: var(--red); flex-shrink: 0; }
.footer-contact-text { font-size: 0.88rem; color: rgba(255,255,255,0.65); line-height: 1.5; }
.footer-contact-text a { color: rgba(255,255,255,0.65); }
.footer-contact-text a:hover { color: var(--gold-lt); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px 0;
}

.footer-copy {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.38);
}

.footer-legal { display: flex; gap: 24px; }
.footer-legal a {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.38);
  transition: var(--transition);
}
.footer-legal a:hover { color: var(--white); }

/* =========================================================
   PRIVACY PAGE
========================================================= */
.privacy-hero {
  background: var(--black);
  padding: calc(var(--nav-h) + 60px) 0 60px;
  text-align: center;
  color: var(--white);
}

.privacy-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 16px; }
.privacy-hero p  { color: rgba(255,255,255,0.60); font-size: 1rem; }

.privacy-content {
  padding: 80px 0;
  max-width: 820px;
  margin: 0 auto;
}

.privacy-content h2 {
  font-size: 1.4rem;
  color: var(--black);
  margin: 40px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gray-mid);
}
.privacy-content h2:first-child { margin-top: 0; }

.privacy-content p,
.privacy-content ul {
  font-size: 0.97rem;
  color: var(--gray-txt);
  line-height: 1.8;
  margin-bottom: 16px;
}

.privacy-content ul {
  padding-left: 20px;
  list-style: disc;
}

.privacy-content a { color: var(--red); }
.privacy-content a:hover { text-decoration: underline; }

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

@media (max-width: 768px) {
  :root { --nav-h: 68px; }

  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    gap: 4px;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
    pointer-events: none;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .main-nav a {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 1rem;
  }
  .main-nav a:hover { background: var(--gray-bg); }
  .main-nav .nav-cta { text-align: center; margin-top: 8px; }

  .about-grid    { grid-template-columns: 1fr; gap: 48px; }
  .about-accent  { bottom: -12px; right: 12px; }
  .solutions-grid { grid-template-columns: 1fr; }
  .why-grid      { grid-template-columns: 1fr; }
  .contact-grid  { grid-template-columns: 1fr; gap: 48px; }
  .form-row      { grid-template-columns: 1fr; }

  .footer-top    { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal  { flex-wrap: wrap; justify-content: center; }

  .hero-stats { gap: 24px; }
  .services-list { gap: 16px; }
  .services-list li { font-size: 0.78rem; }
}

@media (max-width: 480px) {
  .hero-actions  { flex-direction: column; }
  .hero-actions .btn { text-align: center; }
  .contact-form-wrap { padding: 24px; }
}
