/*
Theme Name: SpeedCameraCheck Child
Theme URI: https://speedcameracheck.co.uk
Description: A clean, playful child theme for GeneratePress built for the Speed Camera Check website.
Author: [Your Name or Brand]
Author URI: https://speedcameracheck.co.uk
Template: generatepress
Version: 1.0.0
*/

/* --- Import parent styles --- */
@import url("../generatepress/style.css");

/* --- Global Typography & Layout --- */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: #f6f9f8;
  color: #333;
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: #3CBC8D;
  text-decoration: none;
  transition: 0.3s;
}
a:hover {
  color: #2a8b6c;
}

/* --- Header & Navigation --- */
.site-header {
  background-color: #3CBC8D;
  color: #fff;
  padding: 15px 0;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Site title / logo text */
.main-title,
.site-branding a {
  color: #fff !important;
  font-weight: 600;
}

/* Primary navigation background */
.main-navigation {
  background-color: #3CBC8D;
  border-top: 1px solid rgba(255,255,255,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

/* Menu links (desktop + mobile) */
.main-navigation .main-nav ul li a,
.main-navigation .menu-toggle,
.main-navigation .mobile-bar-items a {
  color: #000 !important;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.3px;
}

/* Hover + focus + current item states */
.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.sfHover > a,
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current_page_item > a {
  color: #000 !important;
  background-color: rgba(255,255,255,0.2);
  transition: all 0.3s ease;
}

/* Dropdown background and links */
.main-navigation ul ul {
  background-color: #3CBC8D;
}
.main-navigation ul ul li a {
  color: #000 !important;
}
.main-navigation ul ul li a:hover {
  background-color: rgba(255,255,255,0.25);
  color: #000 !important;
}

/* Mobile menu toggle button */
.menu-toggle {
  background: transparent;
  color: #000 !important;
  border: 2px solid rgba(0,0,0,0.3);
  border-radius: 8px;
  padding: 8px 12px;
}
.menu-toggle:hover {
  background: rgba(255,255,255,0.3);
}

/* --- Buttons --- */
button,
input[type="submit"],
.wp-block-button__link {
  background-color: #3CBC8D;
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}
button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
  background-color: #34a77a;
  box-shadow: 0 4px 12px rgba(60,188,141,0.3);
}

/* --- Cards / Forms / Results Styling --- */
.speedcheck-form,
.speedcheck-results,
.driver-photo-page {
  max-width: 650px;
  margin: 40px auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 30px;
}

.speedcheck-results .speedcheck-header,
.driver-photo-header {
  background-color: #3CBC8D;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
  padding: 20px;
  border-radius: 16px 16px 0 0;
}

/* --- Tables --- */
.speedcheck-results table,
.driver-photo-page table {
  width: 100%;
  border-collapse: collapse;
}
.speedcheck-results td,
.driver-photo-page td {
  padding: 12px 10px;
  border-bottom: 1px solid #eee;
  font-size: 1rem;
}
.speedcheck-results td:first-child,
.driver-photo-page td:first-child {
  font-weight: 600;
  color: #555;
  width: 40%;
}

/* --- Notice Boxes --- */
.result-summary,
.product-intro {
  background: #eafff6;
  border-left: 5px solid #3CBC8D;
  padding: 15px 20px;
  border-radius: 10px;
  font-weight: 500;
  margin-bottom: 20px;
}

/* --- Disclaimer --- */
.disclaimer {
  font-size: 0.85rem;
  color: #666;
  margin-top: 30px;
  background: #f9f9f9;
  border-radius: 10px;
  padding: 15px;
  border-left: 4px solid #ccc;
}

/* --- Footer --- */
.site-footer {
  background-color: #3CBC8D;
  color: #000;
  text-align: center;
  padding: 30px 20px;
  font-size: 0.95rem;
  border-top: 1px solid rgba(0,0,0,0.1);
}

/* Footer links */
.site-footer a {
  color: #000 !important;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: #000 !important;
  opacity: 0.8;
}

/* Footer widget areas (if used) */
.footer-widgets {
  background-color: #3CBC8D;
  color: #000;
  padding: 40px 20px;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.footer-widgets a {
  color: #000 !important;
  text-decoration: none;
}

.footer-widgets a:hover {
  color: #000 !important;
  opacity: 0.8;
}

/* Footer credits / bottom bar */
.site-info {
  background-color: #3CBC8D;
  color: #000;
  padding: 15px;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.site-info a {
  color: #000 !important;
}

/* --- Responsive --- */
@media (max-width: 480px) {
  .speedcheck-form,
  .speedcheck-results,
  .driver-photo-page {
    margin: 20px;
    padding: 20px;
  }
}
