/*
Theme Name: RCN Motors
Theme URI: https://rcnmotors.co.uk
Description: Custom theme for RCN Motors Ltd
Author: Glan Davies
Version: 1.0
*/

/* =====================================================
   GLOBAL ROOT VARIABLES
   ===================================================== */

:root {
  --brand-green: #0b4f32;
  --brand-green-light: #1b6f48;
  --brand-green-dark: #063924;

  --text-dark: #111827;
  --text-muted: #6b7280;

  --bg-light: #f3f4f6;
  --bg-white: #ffffff;

  --card-radius: 14px;
  --card-shadow: 0 6px 20px rgba(0,0,0,0.08);
  --card-shadow-hover: 0 14px 32px rgba(0,0,0,0.12);
}

/* =====================================================
   RESET + BASE TYPOGRAPHY
   ===================================================== */

body {
  margin: 0;
  background: var(--bg-light);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
}

h1, h2, h3, h4 {
  margin: 0 0 0.5rem;
  font-weight: 700;
  color: var(--text-dark);
}

p {
  margin: 0 0 1rem;
  line-height: 1.6;
}

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

/* =====================================================
   GLOBAL LAYOUT — CONTAINERS / SECTIONS
   ===================================================== */

.section {
  padding: 3rem 1.5rem;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
}

/* =====================================================
   HEADER + NAVIGATION
   ===================================================== */

.site-header {
  background: var(--bg-white);
  padding: 1rem 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
}

.site-logo img {
  height: 52px;
}

.nav-menu {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-menu li a:hover {
  color: var(--brand-green);
}

/* Mobile Nav */
@media (max-width: 820px) {
  .nav-menu {
    display: none;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--brand-green);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-green-dark);
}

.btn-outline {
  background: #fff;
  border: 1px solid var(--brand-green);
  color: var(--brand-green);
}

.btn-outline:hover {
  background: var(--brand-green);
  color: #fff;
}

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

.hero {
  display: grid;
  grid-template-columns: 1.6fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hero-title {
  font-size: 2.4rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 34rem;
}

.hero-meta {
  display: flex;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Search card */

.hero-card {
  background: linear-gradient(135deg,#daf7e9,#f1fff7);
  border-radius: 24px;
  padding: 1.8rem;
  box-shadow: var(--card-shadow);
}

.hero-card-title {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.hero-card-fields {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.hero-card input,
.hero-card select {
  width: 100%;
  padding: .55rem .7rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
}

/* Mobile hero */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   FEATURED VEHICLES
   ===================================================== */

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.car-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 1.2rem;
}

@media (max-width:900px){
  .car-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width:600px){
  .car-grid { grid-template-columns:1fr; }
}

.car-card {
  background: var(--bg-white);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 0.2s ease;
}

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

.car-card-image img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.car-card-body {
  padding: 1.2rem;
}

.car-card-footer {
  padding: 1rem;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
}

.car-card-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.car-card-excerpt {
  color: var(--text-muted);
}

.featured-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--brand-green);
  color:#fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  text-transform: uppercase;
  z-index: 10;
}

/* =====================================================
   CONTACT STRIP
   ===================================================== */

.contact-strip {
  background: #e6f4ec;
}

.contact-strip-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

@media(max-width:768px){
  .contact-strip-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =====================================================
   BACKGROUND WATERMARK
   ===================================================== */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:url('https://rcnmotors.co.uk/wp-content/uploads/2025/11/rcn_watermark-1.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: .08;
  z-index:-1;
}
/* =====================================================
   HEADER REDESIGN — RCN MOTORS
   ===================================================== */

.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.6rem 0;
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO */
.site-logo a {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-green-dark);
  text-decoration: none;
}

/* MENU */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 4px;
  transition: 0.2s ease;
}

/* Underline hover animation */
.nav-menu li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--brand-green);
  transition: width 0.25s ease;
}

.nav-menu li a:hover::after {
  width: 100%;
}

.nav-menu li a:hover {
  color: var(--brand-green-dark);
}

/* CALL BUTTON */
.header-call {
  margin-left: 1.5rem;
}

.header-call a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--brand-green);
  color: #fff !important;
  text-decoration: none;
  font-size: 0.9rem;
  border: 1px solid var(--brand-green-dark);
  transition: 0.25s ease;
}

.header-call a:hover {
  background: var(--brand-green-dark);
}

/* MOBILE MENU */
@media (max-width: 820px) {
  .nav-menu {
    display: none;
  }
}
/* ---------------- HEADER BAR ---------------- */

.site-header {
  background: var(--brand-green);
  padding: 0.6rem 0;
  position: relative;
  z-index: 20;
}

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

.site-logo a {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.03em;
}

.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: 0.2s ease;
}

.nav-menu a:hover {
  opacity: 0.8;
}

.header-call .btn {
  background: #fff;
  color: var(--brand-green);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-weight: 600;
}

.header-call .btn:hover {
  background: var(--brand-green-dark);
  color: #fff;
}

/* mobile layout */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    text-align: center;
  }
  .nav-menu ul {
    flex-direction: column;
    gap: 0.7rem;
  }
}
/* ================= HEADER (FINAL BUILD) ================= */

.site-header {
  background: var(--brand-green);
  padding: 0.75rem 0;
  position: relative;
  z-index: 50;
  box-shadow: 0 3px 12px rgba(0,0,0,0.12);
}

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

.site-logo a {
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: 0.2s ease;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.nav-menu a:hover {
  border-bottom: 2px solid #ffffff;
  opacity: 0.9;
}

/* Call Button */
.header-call-btn {
  background: #ffffff;
  color: var(--brand-green);
  font-weight: 700;
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: 0.25s ease;
}

.header-call-btn:hover {
  background: var(--brand-green-dark);
  color: #fff;
  transform: translateY(-2px);
}

/* Mobile */
@media (max-width: 840px) {
  .header-inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .nav-menu ul {
    flex-direction: column;
    gap: 0.7rem;
  }
}
/* ================= HEADER TEXT COLOR FIX ================= */

/* Logo text */
.site-logo a {
  color: #ffffff !important;
}

/* Main navigation links */
.nav-menu a {
  color: #ffffff !important;
}

/* Main navigation hover */
.nav-menu a:hover {
  color: #ffffff;
  opacity: 0.85;
  border-bottom-color: #ffffff;
}

/* Phone button - keep text readable */
.header-call-btn {
  color: var(--brand-green) !important;
}

/* Optional: Make phone button text white instead */
.header-call-btn:hover {
  color: #ffffff !important;
}
/* ================= FIX PHONE BUTTON STYLING ================= */

/* Phone button container */
.header-call-btn {
  background: var(--brand-green);     /* Green pill button */
  border: 1px solid var(--brand-green);
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;

  /* Phone icon / label text stays white */
  color: #ffffff !important;
}

/* Phone number inside button — BRAND GREEN (same as “About RCN Motors”) */
.header-call-btn span,
.header-call-btn .phone-number {
  color: #ffffff !important; /* White label */
}

/* If you want the numeric digits highlighted differently */
.header-call-btn strong,
.header-call-btn b {
  color: #ffffff !important; /* Force all text white */
}

/* Hover state — slightly darker green but still readable */
.header-call-btn:hover {
  background: var(--brand-green-dark);
  border-color: var(--brand-green-dark);
  color: #ffffff !important;
}
