/*
Theme Name: Stefanidis Approved Cars
Theme URI: https://stefanidiscars.example
Author: Stefanidis Approved Cars
Description: A custom WordPress theme for Stefanidis Approved Cars with a polished Greek homepage.
Version: 1.1.3
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: stefanidis-cars
*/

:root {
  --navy: #082b52;
  --navy-2: #0f3c6b;
  --ink: #102f56;
  --muted: #516174;
  --line: #dce4ee;
  --soft: #f5f8fb;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(10, 37, 64, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--muted);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  overflow: hidden;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: auto;
  height: 42px;
  object-fit: contain;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a,
.primary-menu a {
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.nav-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.nav-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
}

.site-header.nav-open .mobile-nav {
  display: block;
}

.mobile-nav-inner {
  padding: 20px 0 28px;
}

.mobile-menu {
  display: grid;
  gap: 0;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.mobile-menu a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.mobile-cta {
  width: 100%;
}

body.nav-open {
  overflow: hidden;
}

.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 30px;
  border: 1px solid var(--navy);
  border-radius: 4px;
  background: var(--navy);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(8, 43, 82, 0.18);
}

.button.secondary {
  background: transparent;
  color: var(--navy);
  box-shadow: none;
}

.hero {
  --hero-height: min(88vh, 860px);
  position: relative;
  min-height: var(--hero-height);
  background-color: var(--navy);
  background-image: var(--hero-bg, none);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(8, 43, 82, 0.48);
  z-index: 1;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: var(--hero-height);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: 110px 0;
}

.hero-copy h1,
.hero-copy .lead {
  color: var(--white);
}

.hero-copy .lead {
  color: rgba(255, 255, 255, 0.88);
}

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

.hero .button.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--navy-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: 0;
}

h1 {
  max-width: 520px;
  margin-bottom: 24px;
  font-size: clamp(42px, 5vw, 62px);
  font-weight: 900;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 900;
}

h3 {
  margin-bottom: 12px;
  font-size: 19px;
  font-weight: 900;
}

.lead {
  max-width: 450px;
  margin-bottom: 34px;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.section {
  padding: 86px 0;
}

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

.section-intro {
  max-width: 760px;
  margin: 0 auto 44px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  min-height: 230px;
  padding: 34px 26px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  color: var(--navy);
}

.icon svg {
  width: 40px;
  height: 40px;
  stroke-width: 1.8;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  background: linear-gradient(90deg, #ffffff 0%, #f8fbfd 100%);
}

.page-hero-section.split {
  padding-top: 72px;
  min-height: 560px;
}

.page-hero-section.section {
  padding-top: 96px;
  padding-bottom: 48px;
}

.inner-page .section {
  padding: 110px 0;
}

.inner-page .split-copy {
  padding: 96px 0;
}

.inner-page .split-image {
  min-height: 560px;
  height: auto;
}

.inner-page h1 {
  font-size: clamp(44px, 5vw, 68px);
  max-width: 640px;
}

.inner-page .lead,
.inner-page .split-copy p,
.inner-page .section-intro p {
  font-size: 20px;
}

.inner-page .why {
  padding: 110px 0;
}

.inner-page .stats {
  padding: 96px 0;
}

.inner-page .contact {
  padding-top: 110px;
  padding-bottom: 120px;
}

.inner-page .service-grid {
  gap: 28px;
}

.inner-page .service-card {
  padding: 36px 28px;
}

.page-copy {
  padding: 76px 0 88px;
  background: linear-gradient(180deg, #f8fbfd 0%, #ffffff 100%);
}

.page-copy-shell {
  max-width: 1120px;
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: 34px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.page-copy-head {
  align-self: start;
}

.page-copy h2 {
  max-width: 420px;
  margin: 0 0 18px;
  color: var(--navy);
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.12;
}

.page-copy h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 19px;
  line-height: 1.2;
}

.page-copy p {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
}

.page-copy-lead p {
  max-width: 430px;
  color: var(--muted);
  font-size: 16px;
}

.page-copy a {
  color: var(--navy);
  font-weight: 700;
}

.page-copy-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.page-copy-card,
.page-copy-media {
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 14px 35px rgba(10, 37, 64, 0.06);
}

.page-copy-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-copy-card p:last-child,
.page-copy-lead p:last-child {
  margin-bottom: 0;
}

.page-copy-media {
  display: flex;
  flex-direction: column;
  justify-content: center;
  grid-row: span 2;
}

.page-copy figure {
  margin: 0;
}

.page-copy img {
  display: block;
  width: 100%;
  max-height: 170px;
  object-fit: contain;
  border-radius: 4px;
}

.page-copy figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.inner-page .why-item {
  padding: 12px 0 28px;
}

.inner-page .stat strong {
  font-size: clamp(42px, 5vw, 56px);
}

.split-copy {
  width: min(500px, calc(100% - 48px));
  margin-left: max(24px, calc((100vw - 1120px) / 2));
  padding: 72px 0;
}

.split-copy a:not(.button) {
  color: var(--navy);
  font-weight: 700;
}

.split-image {
  height: 500px;
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.why {
  padding: 62px 0 58px;
  background:
    linear-gradient(90deg, rgba(8, 43, 82, 0.94), rgba(14, 59, 101, 0.92)),
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.22), transparent 34%);
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
}

.why h2,
.why h3 {
  color: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 42px;
}

.why-item {
  min-height: 150px;
  padding: 0 32px;
  border-right: 1px solid rgba(255, 255, 255, 0.35);
}

.why-item:last-child {
  border-right: 0;
}

.why .icon {
  margin-bottom: 14px;
  color: var(--white);
}

.stats {
  padding: 34px 0 42px;
  background: #fbfdff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  text-align: center;
}

.stat strong {
  display: block;
  color: var(--navy);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.1;
}

.contact {
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin: 32px 0;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-weight: 600;
}

.contact-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.contact-list a {
  color: inherit;
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--navy);
}

.contact-list svg {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  color: var(--navy);
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 36px;
  border-radius: 6px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  font: inherit;
}

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

.contact-form button,
.contact-form .wpcf7-submit {
  width: 100%;
  cursor: pointer;
}

.contact-form .wpcf7-form {
  display: grid;
  gap: 18px;
}

.contact-form .wpcf7-form p {
  margin: 0;
}

.contact-form .wpcf7-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.contact-form .wpcf7-form input:not([type="submit"]),
.contact-form .wpcf7-form textarea,
.contact-form .wpcf7-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  font: inherit;
  background: var(--white);
}

.contact-form .wpcf7-form textarea {
  min-height: 130px;
  padding-top: 14px;
  resize: vertical;
}

.contact-form .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 3px;
  background: var(--navy);
  color: var(--white);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form .wpcf7-not-valid-tip {
  margin-top: 6px;
  color: #b42318;
  font-size: 13px;
}

.contact-form .wpcf7-response-output {
  margin: 0;
  padding: 12px 14px;
  border-radius: 3px;
  font-size: 14px;
}

.steps-grid,
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.values-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-card,
.value-card {
  padding: 32px 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.step-number {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--navy);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.step-card h3,
.value-card h3 {
  margin-bottom: 12px;
}

.value-card .icon svg {
  width: 28px;
  height: 28px;
  margin-bottom: 16px;
  color: var(--navy);
}

.process-steps,
.values-band {
  background: var(--soft);
}

.site-footer {
  background:
    linear-gradient(90deg, rgba(6, 35, 66, 0.98), rgba(7, 48, 86, 0.98)),
    #082b52;
  color: rgba(255, 255, 255, 0.78);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.9fr 1.1fr;
  gap: 56px;
  padding: 58px 0;
}

.footer-logo {
  margin-bottom: 22px;
}

.footer-logo img {
  display: block;
  width: auto;
  height: 48px;
  object-fit: contain;
}

.site-footer h3 {
  color: var(--white);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.footer-links a {
  text-decoration: none;
}

.socials {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: var(--white);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.socials a:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-1px);
}

.socials svg {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14px;
}

.footer-bottom nav {
  display: flex;
  gap: 40px;
}

.menu-toggle {
  display: none;
}

@media (max-width: 980px) {
  .primary-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-inner {
    gap: 16px;
  }

  .hero-inner,
  .split,
  .contact-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .hero {
    --hero-height: min(78vh, 680px);
  }

  .hero-inner {
    min-height: var(--hero-height);
  }

  .hero-copy {
    padding: 80px 0;
  }

  .service-grid,
  .why-grid,
  .stats-grid,
  .steps-grid,
  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-copy {
    width: min(680px, calc(100% - 48px));
    margin: 0 auto;
  }

  .split-image {
    height: 420px;
    min-height: 420px;
  }

  .inner-page .section,
  .inner-page .why,
  .inner-page .contact {
    padding: 80px 0;
  }

  .inner-page .split-copy {
    padding: 64px 0;
  }

  .inner-page .split-image {
    min-height: 360px;
  }

  .page-copy {
    padding: 64px 0 72px;
  }

  .page-copy-shell {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .page-copy h2,
  .page-copy-lead p {
    max-width: 680px;
  }

  .page-copy-content {
    grid-template-columns: 1fr;
  }

  .page-copy-media {
    grid-row: auto;
  }

  .page-copy img {
    max-height: 130px;
  }

  .why-item:nth-child(2) {
    border-right: 0;
  }

  .why-item {
    margin-bottom: 32px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 32px, 1120px);
  }

  .header-inner {
    min-height: 68px;
  }

  .brand-logo {
    height: 34px;
  }

  .button {
    width: 100%;
  }

  .site-header .button {
    width: auto;
    padding: 0 16px;
  }

  .hero {
    --hero-height: min(72vh, 620px);
  }

  .hero-copy {
    padding: 56px 0 72px;
  }

  .section {
    padding: 62px 0;
  }

  .service-grid,
  .why-grid,
  .stats-grid,
  .steps-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .why-item,
  .why-item:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
    padding-bottom: 28px;
  }

  .why-item:last-child {
    border-bottom: 0;
  }

  .contact-form {
    padding: 22px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .footer-bottom nav {
    flex-direction: column;
    gap: 10px;
  }
}

.cars-archive {
  padding-top: 110px;
  padding-bottom: 120px;
}

.cars-cta {
  padding: 72px 0 80px;
  background: linear-gradient(180deg, #f8fbfd 0%, #ffffff 100%);
}

.cars-cta .section-intro {
  max-width: 640px;
  margin: 0 auto;
}

.cars-cta .button {
  margin-top: 8px;
}

.car-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.car-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.car-card-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  text-decoration: none;
}

.car-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--soft);
}

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

.car-card-price {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 12px;
  border-radius: 4px;
  background: rgba(8, 43, 82, 0.92);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
}

.car-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
}

.car-card-title {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.3;
}

.car-card-specs {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.car-card-external {
  padding: 0 20px 16px;
  color: var(--navy-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.cars-empty {
  display: grid;
  gap: 18px;
  justify-items: center;
  padding: 48px 24px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  background: var(--soft);
  text-align: center;
}

.car-single {
  padding-top: 110px;
  padding-bottom: 120px;
}

.car-single-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 36px;
  align-items: start;
}

.car-single-gallery {
  display: grid;
  gap: 14px;
}

.car-single-main {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.car-single-main img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.car-single-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.car-single-thumbs img {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 4px;
  object-fit: cover;
}

.car-single-copy h1 {
  margin-bottom: 12px;
}

.car-single-price {
  margin: 0 0 24px;
  color: var(--navy);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 900;
  line-height: 1.1;
}

.car-single-specs {
  display: grid;
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.car-single-specs li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.car-single-specs span {
  color: var(--muted);
  font-size: 14px;
}

.car-single-specs strong {
  color: var(--ink);
  font-size: 15px;
  text-align: right;
}

.car-single-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

  .car-single-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .car-grid {
    grid-template-columns: 1fr;
  }

  .car-single-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
