/*
Theme Name: Mr.Flame
Theme URI: https://b-king.gr
Author: b-king.gr
Author URI: https://b-king.gr
Description: Standalone WordPress theme for Mr.Flame Καυσόξυλα with services, offers, reviews, appointment form, contact details and Google Maps.
Version: 1.0.0
Text Domain: mr-flame
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
*/

:root {
  --ink: #111318;
  --charcoal: #1c2129;
  --paper: #fbf7ef;
  --cream: #f0e6d2;
  --smoke: #eef3ef;
  --line: #d9d2c4;
  --forest: #385445;
  --forest-dark: #243b31;
  --flame: #d43e2a;
  --ember: #872f2e;
  --amber: #f3bc30;
  --sky: #d9e9f1;
  --white: #ffffff;
  --shadow: 0 20px 55px rgba(17, 19, 24, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

body.nav-open {
  overflow: hidden;
}

.admin-bar .site-header {
  top: 32px;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.icon-sprite {
  display: none;
}

.icon {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  flex: 0 0 auto;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  background: var(--amber);
  color: var(--ink);
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 0.9rem 4vw;
  color: var(--white);
  background: rgba(17, 19, 24, 0.54);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(251, 247, 239, 0.94);
  box-shadow: 0 10px 35px rgba(17, 19, 24, 0.08);
}

.brand {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  font-weight: 800;
  min-width: max-content;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}

.site-nav {
  display: flex;
  gap: 0.25rem;
  justify-content: center;
  align-items: center;
}

.site-nav a,
.header-call {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.header-call:hover,
.header-call:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

.site-header.is-scrolled .site-nav a:hover,
.site-header.is-scrolled .site-nav a:focus-visible,
.site-header.is-scrolled .header-call:hover,
.site-header.is-scrolled .header-call:focus-visible {
  background: var(--smoke);
}

.header-call {
  background: var(--amber);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 8px;
  color: inherit;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  min-height: 84svh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--charcoal);
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 19, 24, 0.9) 0%, rgba(17, 19, 24, 0.62) 42%, rgba(17, 19, 24, 0.24) 100%),
    linear-gradient(0deg, rgba(17, 19, 24, 0.36), rgba(17, 19, 24, 0.1));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(820px, 92vw);
  margin-left: 4vw;
  padding-top: 5rem;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--flame);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--amber);
}

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

h1 {
  max-width: 760px;
  margin-bottom: 1rem;
  font-size: 4.7rem;
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0.85rem;
  font-size: 2.45rem;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.18rem;
  line-height: 1.22;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 720px;
  margin-bottom: 1.6rem;
  font-size: 1.18rem;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.08rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button.primary {
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 14px 32px rgba(243, 188, 48, 0.28);
}

.button.secondary {
  background: var(--forest);
  color: var(--white);
}

.button.ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.quick-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quick-item {
  min-height: 120px;
  display: grid;
  align-content: center;
  gap: 0.25rem;
  padding: 1.2rem 4vw;
  background: var(--paper);
}

.quick-item .icon {
  color: var(--flame);
  font-size: 1.45rem;
}

.quick-item strong {
  font-size: 1.05rem;
}

.quick-item span {
  color: #5f625f;
  font-size: 0.94rem;
}

.section {
  padding: 5.5rem 4vw;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.2rem;
}

.section-heading p:not(.eyebrow) {
  color: #575d59;
  font-size: 1.05rem;
}

.section-heading.compact {
  max-width: 680px;
}

.service-grid,
.offer-grid,
.review-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.service-card,
.offer-card,
.review-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(17, 19, 24, 0.06);
}

.service-card {
  min-height: 248px;
  padding: 1.35rem;
}

.service-card .icon {
  width: 2rem;
  height: 2rem;
  margin-bottom: 1.5rem;
  color: var(--flame);
}

.service-card p,
.offer-card p,
.review-card p {
  color: #5a5d5a;
}

.offers-section {
  background: var(--smoke);
}

.offer-grid {
  grid-template-columns: 1.25fr 1fr 1fr;
}

.offer-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.offer-card.featured {
  color: var(--white);
  background: var(--forest-dark);
  border-color: var(--forest-dark);
}

.offer-card.featured p,
.offer-card.featured li {
  color: rgba(255, 255, 255, 0.78);
}

.offer-card ul {
  padding-left: 1.15rem;
  margin: 0 0 1.2rem;
}

.offer-card a {
  margin-top: auto;
  color: var(--flame);
  font-weight: 800;
}

.offer-card.featured a {
  color: var(--amber);
}

.tag {
  width: fit-content;
  margin-bottom: 1.1rem;
  padding: 0.32rem 0.55rem;
  border-radius: 8px;
  background: var(--amber);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
}

.tag.muted {
  color: var(--forest-dark);
  background: var(--sky);
}

.price-panel {
  margin-top: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(17, 19, 24, 0.06);
  overflow: hidden;
}

.price-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.price-panel-header h3 {
  margin-bottom: 0;
  font-size: 1.42rem;
}

.price-panel-header .button {
  min-width: 150px;
}

.price-table {
  display: grid;
}

.price-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.8fr) minmax(90px, 0.55fr) minmax(180px, 1.2fr) minmax(90px, 0.55fr) minmax(190px, 1.35fr);
  gap: 1rem;
  align-items: center;
  min-height: 66px;
  padding: 0.95rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.price-row:last-child {
  border-bottom: 0;
}

.price-head {
  min-height: 48px;
  color: #626861;
  background: var(--paper);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.price-row strong {
  font-size: 1.08rem;
}

.price-value {
  color: var(--ember);
  font-size: 1.22rem;
  font-weight: 900;
}

.guide-section {
  background: var(--charcoal);
  color: var(--white);
}

.guide-section .eyebrow {
  color: var(--amber);
}

.split-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 3rem;
  align-items: start;
}

.guide-list {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.guide-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  padding: 1.1rem 0;
  background: var(--charcoal);
}

.guide-row span {
  color: rgba(255, 255, 255, 0.72);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 280px;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--paper);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: var(--charcoal);
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.04);
}

.gallery-item:focus-visible {
  outline: 3px solid var(--amber);
}

.reviews-section {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 2rem;
  align-items: start;
  background: var(--cream);
}

.review-score {
  position: sticky;
  top: 6rem;
}

.score-number {
  font-size: 5.2rem;
  font-weight: 900;
  line-height: 0.92;
}

.stars {
  display: flex;
  gap: 0.12rem;
  margin: 0.65rem 0 1rem;
  color: var(--amber);
}

.stars .icon {
  fill: currentColor;
}

.text-link {
  color: var(--ember);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

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

.review-card {
  min-height: 210px;
  padding: 1.35rem;
}

.appointment-section {
  background:
    linear-gradient(rgba(251, 247, 239, 0.9), rgba(251, 247, 239, 0.9)),
    url("assets/storefront.jpg") center / cover;
}

.appointment-section .section-heading {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.appointment-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: min(100%, 1080px);
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 0.42rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.78rem 0.85rem;
  color: var(--ink);
  border: 1px solid #cfc7b8;
  border-radius: 8px;
  background: var(--white);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(243, 188, 48, 0.34);
  border-color: var(--amber);
}

.full {
  grid-column: 1 / -1;
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
  color: var(--forest-dark);
  font-weight: 800;
}

.form-status.is-error {
  color: var(--ember);
}

.button[disabled] {
  cursor: progress;
  opacity: 0.72;
  transform: none;
}

.contact-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  align-items: stretch;
  background: var(--white);
}

.contact-info {
  display: grid;
  align-content: start;
}

.contact-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.contact-list a {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  min-height: 72px;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.contact-list .icon {
  color: var(--flame);
  font-size: 1.4rem;
}

.contact-list span {
  display: grid;
  color: #555c56;
}

.contact-list strong {
  color: var(--ink);
}

.hours {
  margin-top: 1.2rem;
  padding: 1rem;
  border-radius: 8px;
  color: var(--white);
  background: var(--forest-dark);
}

.hours p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.map-panel {
  min-height: 520px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.map-panel iframe {
  width: 100%;
  height: 100%;
  min-height: 520px;
  border: 0;
}

.faq-section {
  background: var(--paper);
}

.faq-list {
  max-width: 920px;
  display: grid;
  gap: 0.75rem;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

summary {
  min-height: 64px;
  display: flex;
  align-items: center;
  padding: 1rem 1.15rem;
  font-weight: 900;
  cursor: pointer;
}

details p {
  margin: 0;
  padding: 0 1.15rem 1.15rem;
  color: #575d59;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(17, 19, 24, 0.88);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  font-size: 1.8rem;
  line-height: 1;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.4rem 4vw;
  color: var(--white);
  background: var(--ink);
}

.site-footer div:first-child {
  display: grid;
  gap: 0.2rem;
}

.site-footer span,
.site-footer p {
  color: rgba(255, 255, 255, 0.68);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--amber);
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: auto auto auto;
  }

  .site-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 72px;
    display: none;
    padding: 1rem 4vw 1.25rem;
    flex-direction: column;
    align-items: stretch;
    background: rgba(251, 247, 239, 0.98);
    color: var(--ink);
    box-shadow: 0 20px 40px rgba(17, 19, 24, 0.12);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    justify-content: center;
    background: var(--smoke);
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .header-call {
    justify-self: end;
  }

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

  .reviews-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .review-score {
    position: static;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  h1 {
    font-size: 3.35rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero {
    min-height: 82svh;
  }

  .hero-content {
    margin-right: 4vw;
  }

  .offer-grid,
  .review-grid,
  .split-layout,
  .appointment-form {
    grid-template-columns: 1fr;
  }

  .offer-card {
    min-height: 240px;
  }

  .price-row {
    grid-template-columns: 1fr 0.6fr 1.2fr 0.6fr;
  }

  .price-row span:last-child {
    grid-column: 1 / -1;
  }

  .price-head span:last-child {
    display: none;
  }

  .full {
    grid-column: auto;
  }

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

  .gallery-item.wide {
    grid-column: span 2;
  }

  .guide-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

@media (max-width: 620px) {
  .admin-bar .site-header {
    top: 46px;
  }

  .site-header {
    grid-template-columns: auto auto;
    gap: 0.75rem;
  }

  .header-call {
    grid-column: 1 / -1;
    width: 100%;
  }

  .site-nav {
    top: 119px;
  }

  h1 {
    font-size: 2.65rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions,
  .form-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

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

  .section {
    padding: 4rem 5vw;
  }

  section[id] {
    scroll-margin-top: 130px;
  }

  .offer-card {
    min-height: 0;
  }

  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .gallery-item.wide {
    grid-column: auto;
  }

  .score-number {
    font-size: 4rem;
  }

  .price-panel-header {
    align-items: stretch;
    flex-direction: column;
  }

  .price-panel-header .button {
    width: 100%;
  }

  .price-head {
    display: none;
  }

  .price-row {
    grid-template-columns: 1fr auto;
    gap: 0.35rem 0.8rem;
    align-items: start;
    min-height: 0;
    padding: 1rem;
  }

  .price-row strong {
    grid-column: 1;
  }

  .price-value {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }

  .price-row span:not(.price-value) {
    grid-column: 1 / -1;
  }

  .map-panel,
  .map-panel iframe {
    min-height: 380px;
  }
}
