/*
Theme Name: RAD-AR Recycling
Theme URI: https://autokasacjabaruchowo.pl
Author: RAD-AR
Author URI: https://autokasacjabaruchowo.pl
Description: Motyw WordPress dla RAD-AR Recycling — kasacja pojazdów i skup złomu w Baruchowie. W pełni responsywny, zoptymalizowany pod SEO.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rad-ar
Tags: one-column, custom-menu, custom-logo, featured-images, translation-ready
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.4
*/

/* ============================================
   Global Styles
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --yellow: #FFC107;
  --yellow-dark: #e6ac00;
  --dark: #2D2A26;
  --dark-bg: #3A3632;
  --text: #444;
  --text-light: #666;
  --white: #fff;
  --light-bg: #f9f9f9;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --max-w: 1140px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
}

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

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   Top Bar
   ============================================ */
.top-bar {
  background: var(--white);
  border-bottom: 1px solid #eee;
  font-size: 13px;
  color: var(--text-light);
  padding: 6px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar a {
  color: var(--text-light);
  transition: color .2s;
}

.top-bar a:hover { color: var(--dark); }

.top-bar-left {
  display: flex;
  gap: 20px;
  align-items: center;
}

.top-bar-right a {
  font-size: 16px;
}

/* ============================================
   Header / Navbar
   ============================================ */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  color: var(--dark);
}

.site-logo span {
  line-height: 1.1;
}

.site-logo small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
}

.site-logo img,
.site-logo .custom-logo {
  height: 60px;
  width: auto;
  max-width: none;
}

/* WordPress Nav Menu */
.main-navigation {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius);
  transition: background .2s, color .2s;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a,
.main-navigation .current_page_item > a {
  color: var(--dark);
  background: #f5f5f5;
}

/* Dropdown submenu */
.main-navigation .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  border-radius: var(--radius);
  min-width: 220px;
  padding: 8px 0;
  z-index: 200;
  flex-direction: column;
}

.main-navigation li:hover > .sub-menu {
  display: flex;
}

.main-navigation .sub-menu a {
  padding: 10px 18px;
  font-size: 14px;
  border-radius: 0;
}

.main-navigation .sub-menu a:hover {
  background: var(--light-bg);
}

/* Menu item with children indicator */
.main-navigation .menu-item-has-children > a::after {
  content: ' \25BE';
  font-size: 11px;
}

.btn-cta,
a.btn-cta {
  display: inline-block;
  background: var(--yellow);
  color: var(--dark) !important;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-size: 15px;
  transition: background .2s, transform .1s;
}

.btn-cta:hover,
a.btn-cta:hover {
  background: var(--yellow-dark);
  transform: translateY(-1px);
}

/* CTA button in menu */
.main-navigation .menu-item-cta > a {
  background: var(--yellow);
  color: var(--dark) !important;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius);
}

.main-navigation .menu-item-cta > a:hover {
  background: var(--yellow-dark);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--dark);
  border-radius: 2px;
  transition: .3s;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  background: linear-gradient(135deg, #2D2A26 0%, #4a4540 100%);
  color: var(--white);
  overflow: hidden;
}

.hero-inner {
  display: flex;
  align-items: center;
  min-height: 520px;
  gap: 40px;
}

.hero-content {
  flex: 1;
  padding: 60px 0;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,193,7,.15);
  color: var(--yellow);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  color: var(--white);
}

.hero p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,.8);
  max-width: 520px;
  margin-bottom: 28px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-hero {
  display: inline-block;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: .2s;
}

.btn-hero-primary {
  background: var(--yellow);
  color: var(--dark);
}

.btn-hero-primary:hover {
  background: var(--yellow-dark);
}

.btn-hero-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.4);
}

.btn-hero-secondary:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.1);
}

.hero-image {
  flex: 1;
  position: relative;
  z-index: 1;
}

.hero-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

/* ============================================
   USP Strip
   ============================================ */
.usp-strip {
  padding: 50px 0;
  background: var(--white);
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.usp-item {
  padding: 10px;
}

.usp-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.usp-item h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.usp-item p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ============================================
   Sections — General
   ============================================ */
.section {
  padding: 70px 0;
}

.section-light { background: var(--light-bg); }
.section-white { background: var(--white); }

.section-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 20px;
  line-height: 1.3;
}

.section-title::before {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background: var(--yellow);
  margin-bottom: 14px;
}

.section-title-center {
  text-align: center;
}

.section-title-center::before {
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-light);
  max-width: 680px;
  margin-bottom: 30px;
}

.two-col {
  display: flex;
  gap: 50px;
  align-items: center;
}

.two-col > * { flex: 1; }

.two-col img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.check-list {
  margin-top: 18px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-size: 15px;
}

.check-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--yellow);
  font-weight: 800;
  font-size: 16px;
}

/* ============================================
   About / O nas
   ============================================ */
.about-section {
  background: var(--light-bg);
  padding: 70px 0;
}

.about-inner {
  display: flex;
  gap: 50px;
  align-items: center;
}

.about-content { flex: 1.2; }
.about-image { flex: 1; }

.about-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
  font-size: 14px;
}

.info-grid div {
  background: var(--white);
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid #eee;
}

.info-grid strong {
  display: block;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 2px;
}

/* ============================================
   Page Header
   ============================================ */
.page-header {
  background: var(--white);
  padding: 50px 0 40px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.page-header h1 {
  font-size: 34px;
  font-weight: 800;
  color: var(--dark);
}

.page-header h1::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background: var(--yellow);
  margin: 14px auto 0;
}

/* ============================================
   Service Pages
   ============================================ */
.service-intro {
  padding: 50px 0 30px;
  max-width: 800px;
  margin: 0 auto;
}

.service-intro p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.8;
}

.service-features {
  padding: 30px 0 50px;
}

.service-features h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
}

.service-features .check-list li {
  font-size: 16px;
  margin-bottom: 14px;
}

/* FAQ / Accordion */
.faq-section {
  padding: 50px 0 70px;
  background: var(--light-bg);
}

.faq-section h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 24px;
  text-align: center;
}

.faq-section .section-subtitle {
  text-align: center;
  margin: 0 auto 30px;
}

.accordion { max-width: 760px; margin: 0 auto; }

.accordion-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  padding: 18px 22px;
  background: none;
  border: none;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background .2s;
  font-family: inherit;
}

.accordion-header:hover { background: #fafafa; }

.accordion-header::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--yellow);
  transition: transform .3s;
}

.accordion-item.open .accordion-header::after {
  content: '\2212';
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.accordion-body-inner {
  padding: 0 22px 18px;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

.accordion-item.open .accordion-body {
  max-height: 300px;
}

.service-image-section {
  padding: 0 0 50px;
}

.service-image-section img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ============================================
   Gallery
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 50px 0 70px;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 36px;
  color: white;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

/* ============================================
   Documents
   ============================================ */
.documents-list {
  padding: 50px 0 70px;
  max-width: 700px;
  margin: 0 auto;
}

.doc-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

.doc-item:last-child { border-bottom: none; }

.doc-icon {
  width: 40px;
  height: 40px;
  background: var(--light-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.doc-item a {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  transition: color .2s;
}

.doc-item a:hover {
  color: var(--yellow-dark);
}

/* ============================================
   Contact
   ============================================ */
.contact-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 50px 0 40px;
  text-align: center;
}

.contact-icon-item .ci-icon {
  width: 56px;
  height: 56px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 22px;
}

.contact-icon-item h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.contact-icon-item p {
  font-size: 14px;
  color: var(--text-light);
}

.contact-layout {
  display: flex;
  gap: 50px;
  padding: 0 0 60px;
}

.contact-info { flex: 1; }
.contact-form-wrap { flex: 1; }

.contact-info h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}

.contact-info p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 10px;
}

.contact-info-list li {
  padding: 6px 0;
  font-size: 14px;
  padding-left: 28px;
  position: relative;
}

.contact-info-list li .dashicon {
  position: absolute;
  left: 0;
  top: 8px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  transition: border-color .2s;
  background: var(--light-bg);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--yellow);
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-form .btn-cta {
  align-self: flex-start;
  padding: 14px 36px;
}

.map-wrap {
  padding: 0 0 60px;
}

.map-wrap iframe {
  width: 100%;
  height: 350px;
  border: none;
  border-radius: var(--radius);
}

/* ============================================
   CTA Bar (Pre-Footer)
   ============================================ */
.cta-bar {
  background: var(--dark);
  color: var(--white);
  padding: 26px 0;
}

.cta-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.cta-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,.7);
}

.cta-bar-left strong {
  color: var(--white);
  font-size: 18px;
}

.cta-phones {
  display: flex;
  gap: 30px;
  align-items: center;
}

.cta-phone {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cta-phone-icon {
  width: 42px;
  height: 42px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.cta-phone-label {
  font-size: 12px;
  color: rgba(255,255,255,.6);
}

.cta-phone-number {
  font-size: 18px;
  font-weight: 700;
  color: var(--yellow);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--dark-bg);
  color: rgba(255,255,255,.5);
  text-align: center;
  padding: 20px 0;
  font-size: 13px;
}

/* WordPress specific: default content styling */
.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6 {
  color: var(--dark);
  margin-bottom: 16px;
  line-height: 1.3;
}

.entry-content p {
  margin-bottom: 16px;
}

.entry-content ul, .entry-content ol {
  margin-left: 20px;
  margin-bottom: 16px;
  list-style: disc;
}

.entry-content img {
  border-radius: var(--radius);
}

/* WordPress alignment classes */
.alignleft { float: left; margin: 0 20px 10px 0; }
.alignright { float: right; margin: 0 0 10px 20px; }
.aligncenter { display: block; margin: 0 auto 20px; }

/* WP Block editor width */
.wp-block-group .wp-block-group__inner-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 992px) {
  .hero-inner { flex-direction: column; }
  .hero-image { display: none; }
  .hero h1 { font-size: 30px; }
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { flex-direction: column; }
  .about-inner { flex-direction: column; }
  .contact-layout { flex-direction: column; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .top-bar { display: none; }

  .main-navigation {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
    padding: 16px;
    gap: 4px;
  }

  .main-navigation.open {
    display: flex;
  }

  .main-navigation ul {
    flex-direction: column;
    width: 100%;
  }

  .main-navigation .sub-menu {
    position: static;
    box-shadow: none;
    padding-left: 16px;
    display: flex;
  }

  .main-navigation li:hover > .sub-menu {
    display: flex;
  }

  .hamburger { display: flex; }

  .site-header .container { position: relative; }

  .hero h1 { font-size: 26px; }
  .hero-content { padding: 40px 0; }

  .usp-grid { grid-template-columns: 1fr 1fr; gap: 20px; }

  .section { padding: 50px 0; }
  .section-title { font-size: 24px; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-icons { grid-template-columns: 1fr; gap: 20px; }

  .cta-bar .container { flex-direction: column; text-align: center; }
  .cta-phones { flex-direction: column; }

  .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gallery-grid img { height: 150px; }
  .hero-buttons { flex-direction: column; }
  .site-logo img,
  .site-logo .custom-logo { height: 48px; }
}
