/*
Theme Name: Mobiles Freeway
Theme URI: https://mobilesfreewaylimited.shop
Author: Mobiles Freeway Limited
Author URI: https://mobilesfreewaylimited.shop
Description: Professional WordPress theme for Mobiles Freeway Limited – Apple, Samsung, Google Pixel phones & discounted O2 SIM deals. UK based.
Version: 1.1.0
License: GNU General Public License v2 or later
Text Domain: mobiles-freeway
Tags: e-commerce, mobile, phones, custom-menu, featured-images, responsive-layout
*/

/* ===== CSS Variables ===== */
:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --accent: #f97316;
  --accent-hover: #ea580c;
  --secondary: #3b82f6;
  --text: #1e293b;
  --text-light: #64748b;
  --bg: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --success: #22c55e;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
  --transition: all 0.3s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== Typography ===== */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--primary); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; }
p { color: var(--text-light); margin-bottom: 1rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.35);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}
.btn-secondary {
  background: var(--secondary);
  color: var(--white);
}
.btn-secondary:hover {
  background: #2563eb;
  transform: translateY(-2px);
}

/* ===== Header ===== */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}
.logo span { color: var(--accent); }
.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--accent), #fb923c);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
}
.main-nav ul {
  display: flex;
  gap: 32px;
  align-items: center;
}
.main-nav a {
  font-weight: 500;
  color: var(--text);
  position: relative;
}
.main-nav a:hover, .main-nav a.active { color: var(--accent); }
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.header-cta { display: flex; gap: 12px; align-items: center; }
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--primary);
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
  color: white;
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(249,115,22,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content h1 {
  color: white;
  margin-bottom: 20px;
}
.hero-content h1 span { color: var(--accent); }
.hero-content p {
  color: #cbd5e1;
  font-size: 1.15rem;
  margin-bottom: 32px;
  max-width: 480px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249,115,22,0.15);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(249,115,22,0.3);
}
.hero-phones {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.phone-card-hero {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 24px 20px;
  text-align: center;
  width: 140px;
  transition: var(--transition);
}
.phone-card-hero:hover {
  transform: translateY(-8px);
  background: rgba(255,255,255,0.12);
}
.phone-card-hero .icon { font-size: 2.5rem; margin-bottom: 10px; }
.phone-card-hero h4 { color: white; font-size: 0.95rem; margin-bottom: 4px; }
.phone-card-hero span { color: #94a3b8; font-size: 0.8rem; }

/* ===== Section Common ===== */
.section { padding: 80px 0; }
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
}
.section-header .subtitle {
  display: inline-block;
  background: rgba(249,115,22,0.1);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}

/* ===== Brands ===== */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.brand-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.brand-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}
.brand-card .brand-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--bg);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
}
.brand-card h3 { margin-bottom: 10px; }
.brand-card p { font-size: 0.95rem; margin-bottom: 20px; }
.brand-card .btn { width: 100%; justify-content: center; }

/* ===== Featured Phones ===== */
.phones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}
.phone-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.phone-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.phone-image {
  background: linear-gradient(145deg, #f1f5f9, #e2e8f0);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
}
.phone-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}
.phone-info { padding: 20px; }
.phone-info .brand { font-size: 0.8rem; color: var(--text-light); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.phone-info h3 { margin: 6px 0 8px; font-size: 1.1rem; }
.phone-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}
.phone-price .current { font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.phone-price .old { font-size: 0.95rem; color: var(--text-light); text-decoration: line-through; }
.phone-info .btn { width: 100%; justify-content: center; padding: 12px; }

/* ===== O2 Deals ===== */
.deals-section {
  background: linear-gradient(135deg, #0f172a, #1e3a5f);
  color: white;
}
.deals-section h2, .deals-section .section-header p { color: white; }
.deals-section .subtitle {
  background: rgba(249,115,22,0.2);
  color: #fdba74;
}
.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.deal-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}
.deal-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-4px);
}
.deal-card .deal-tag {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 14px;
}
.deal-card h3 { color: white; margin-bottom: 8px; }
.deal-card p { color: #94a3b8; font-size: 0.95rem; }
.deal-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  margin: 16px 0 8px;
}
.deal-price span { font-size: 1rem; font-weight: 500; color: #94a3b8; }
.deal-features { margin: 16px 0 24px; }
.deal-features li {
  color: #cbd5e1;
  font-size: 0.9rem;
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.deal-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
}

/* ===== Why Us ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  background: rgba(249,115,22,0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--accent);
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; margin: 0; }

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(90deg, var(--accent), #fb923c);
  border-radius: 20px;
  padding: 50px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: white; margin: 0 0 8px; }
.cta-banner p { color: rgba(255,255,255,0.9); margin: 0; }
.cta-banner .btn {
  background: white;
  color: var(--accent);
  font-weight: 700;
}
.cta-banner .btn:hover {
  background: var(--primary);
  color: white;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--primary);
  color: #94a3b8;
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo { color: white; margin-bottom: 16px; }
.footer-brand p { font-size: 0.95rem; max-width: 280px; }
.footer-col h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col a:hover { color: var(--accent); }
.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: 12px;
  font-size: 0.9rem;
}
.footer-bottom a { color: #94a3b8; }
.footer-bottom a:hover { color: var(--accent); }

/* ===== Page Header ===== */
.page-header {
  background: linear-gradient(135deg, #0f172a, #1e3a5f);
  color: white;
  padding: 60px 0;
  text-align: center;
}
.page-header h1 { color: white; margin-bottom: 10px; }
.page-header p { color: #94a3b8; max-width: 500px; margin: 0 auto; }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-item .icon {
  width: 48px;
  height: 48px;
  background: rgba(249,115,22,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* ===== About ===== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.about-text h2 { margin-bottom: 16px; }
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}
.stat-box {
  text-align: center;
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stat-box .number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}
.stat-box .label { font-size: 0.85rem; color: var(--text-light); }

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-content p { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .brands-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid, .about-content { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .main-nav, .header-cta .btn-outline { display: none; }
  .mobile-toggle { display: block; }
  .main-nav.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }
  .main-nav.active ul { flex-direction: column; gap: 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { text-align: center; justify-content: center; }
  .hero { padding: 60px 0 70px; }
}
@media (max-width: 480px) {
  .phones-grid { grid-template-columns: 1fr; }
  .deal-card { padding: 20px; }
}
