/*
Theme Name: FixADent Simple
Theme URI: https://example.com/fixadent-simple
Author: FixADent
Author URI: https://example.com
Description: A simple mobile responsive paintless dent repair theme with home, gallery, and contact page templates.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fixadent-simple
*/

:root {
  --black: #07090d;
  --panel: rgba(8, 10, 14, 0.84);
  --line: rgba(255, 255, 255, 0.16);
  --muted: #c7c7c7;
  --white: #ffffff;
  --gold: #f8b82e;
  --gold-dark: #d99813;
  --red: #e32620;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--white);
  background: var(--black);
  font-family: "Inter", Arial, sans-serif;
}

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

svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.site-header {
  position: absolute;
  z-index: 10;
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(4, 6, 9, 0.96), rgba(4, 6, 9, 0.7));
  backdrop-filter: blur(8px);
}

.top-bar,
.nav,
.hero-content {
  width: min(100% - 2rem, 112rem);
  margin-inline: auto;
}

.top-bar {
  display: flex;
  min-height: 4.65rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.top-bar p,
.phone-link,
.top-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
}

.top-bar svg,
.phone-link {
  color: var(--gold);
}

.top-bar span::before {
  content: "•";
  margin-inline: 0.35rem 0.5rem;
}

.top-actions {
  gap: 2rem;
}

.phone-link {
  border-left: 1px solid var(--line);
  padding-left: 1.65rem;
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0;
}

.phone-link svg {
  color: var(--gold);
}

.nav {
  display: grid;
  min-height: 10.4rem;
  grid-template-columns: minmax(14rem, 24rem) 1fr auto;
  align-items: center;
  gap: 2.25rem;
}

.logo {
  position: relative;
  display: inline-grid;
  width: fit-content;
  padding-top: 1.25rem;
  font-style: italic;
  line-height: 0.9;
}

.logo strong {
  position: relative;
  z-index: 1;
  color: var(--white);
  font-size: clamp(2.35rem, 4vw, 4.7rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  text-shadow: 0.16rem 0.16rem 0 #000;
}

.logo small {
  color: var(--red);
  font-size: clamp(0.68rem, 1.1vw, 1.05rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.car-line {
  position: absolute;
  top: 0.25rem;
  left: -0.35rem;
  width: 105%;
  height: 2.6rem;
  border-top: 0.3rem solid #ffcc16;
  border-radius: 60% 80% 0 0;
  transform: skewX(-18deg);
}

.car-line::after {
  content: "";
  position: absolute;
  right: -1.35rem;
  bottom: -0.45rem;
  width: 4rem;
  height: 1.6rem;
  border-top: 0.26rem solid #ffb000;
  border-right: 0.26rem solid #ffb000;
  border-radius: 0 100% 0 0;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2vw, 2.8rem);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  padding-block: 0.75rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 0.16rem;
  background: var(--gold);
  opacity: 0;
  transform: scaleX(0.5);
  transition: 180ms ease;
}

.nav-links a:hover::after,
.nav-links .active::after {
  opacity: 1;
  transform: scaleX(1);
}

.estimate-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 3.85rem;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  border-radius: 0.38rem;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
}

.estimate-button,
.primary-button {
  color: #101215;
  background: linear-gradient(180deg, #ffc74d, var(--gold));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.estimate-button {
  min-width: 17rem;
  padding-inline: 1.55rem;
}

.estimate-button svg {
  width: 1.45rem;
  height: 1.45rem;
  color: #101215;
}

.menu-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.menu-button {
  display: none;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 7, 10, 0.98) 0%, rgba(5, 7, 10, 0.9) 31%, rgba(5, 7, 10, 0.45) 55%, rgba(5, 7, 10, 0.16) 100%),
    linear-gradient(180deg, rgba(5, 7, 10, 0.15), rgba(5, 7, 10, 0.9)),
    url("https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&w=2200&q=82") center right / cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 28% 68%, rgba(255, 184, 46, 0.12), transparent 19rem);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  align-items: center;
  padding-top: 16.5rem;
  padding-bottom: 4rem;
}

.hero-copy {
  width: min(100%, 48rem);
}

h1 {
  margin: 0;
  max-width: 50rem;
  font-size: clamp(3.2rem, 5.3vw, 6.2rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0.35rem 1.5rem rgba(0, 0, 0, 0.42);
}

.accent-line {
  display: block;
  width: 7.1rem;
  height: 0.18rem;
  margin: 2.8rem 0 2.1rem;
  background: var(--gold);
}

.hero-copy > p {
  max-width: 45rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.2rem, 1.7vw, 1.85rem);
  line-height: 1.55;
}

.service-strip {
  display: grid;
  max-width: 48rem;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 3.2rem;
}

.service-strip article {
  display: grid;
  min-height: 5.6rem;
  place-items: center;
  gap: 0.75rem;
  border-right: 1px solid var(--line);
  padding-inline: 1rem;
  text-align: center;
}

.service-strip article:first-child {
  border-left: 0;
}

.service-strip article:last-child {
  border-right: 0;
}

.service-strip svg {
  width: 2.65rem;
  height: 2.65rem;
  color: var(--gold);
}

.service-strip span {
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3.5rem;
}

.primary-button,
.secondary-button {
  min-width: 18.5rem;
  padding-inline: 1.8rem;
}

.primary-button svg {
  color: #101215;
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: rgba(4, 6, 9, 0.38);
}

.inner-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(5, 7, 10, 0.2), rgba(5, 7, 10, 0.98) 34rem),
    url("https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&w=2200&q=78") center top / cover fixed,
    var(--black);
}

.page-hero,
.content-band {
  width: min(100% - 2rem, 112rem);
  margin-inline: auto;
}

.page-hero {
  display: flex;
  min-height: 38rem;
  align-items: flex-end;
  padding-top: 17rem;
  padding-bottom: 4.5rem;
}

.page-hero > div {
  width: min(100%, 54rem);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--gold);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.page-hero p:last-child {
  max-width: 48rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.4vw, 1.45rem);
  line-height: 1.65;
}

.content-band {
  padding-bottom: 5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.gallery-card,
.contact-panel,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(7, 9, 13, 0.82);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.gallery-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
}

.gallery-card div {
  padding: 1.35rem;
}

.gallery-card h2,
.contact-panel h2,
.contact-card h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.25rem, 1.7vw, 1.8rem);
  line-height: 1.05;
  text-transform: uppercase;
}

.gallery-card p,
.contact-panel p,
.contact-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(20rem, 0.6fr);
  gap: 1.5rem;
}

.contact-panel,
.contact-card {
  padding: clamp(1.35rem, 3vw, 2.5rem);
}

.contact-form {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.38rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  font: inherit;
  padding: 0.95rem 1rem;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 0.2rem rgba(248, 184, 46, 0.14);
}

.contact-form button {
  border: 0;
  cursor: pointer;
}

.contact-card {
  align-self: start;
}

.contact-detail {
  display: grid;
  gap: 0.35rem;
  border-top: 1px solid var(--line);
  margin-top: 1.35rem;
  padding-top: 1.35rem;
}

.contact-detail span {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-detail a {
  font-size: 1.4rem;
  font-weight: 900;
}

@media (max-width: 1180px) {
  .top-bar {
    min-height: 3.8rem;
    font-size: 0.8rem;
  }

  .phone-link {
    font-size: 1.05rem;
  }

  .nav {
    min-height: 7.5rem;
    grid-template-columns: minmax(13rem, 18rem) auto auto;
    gap: 1rem;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    background: rgba(5, 7, 10, 0.96);
    padding: 0.75rem;
  }

  .nav-links a {
    padding: 0.95rem 1rem;
  }

  .menu-button {
    display: grid;
    width: 3.35rem;
    height: 3.35rem;
    place-content: center;
    gap: 0.35rem;
    justify-self: end;
    border: 1px solid var(--line);
    border-radius: 0.38rem;
    cursor: pointer;
  }

  .menu-button span {
    display: block;
    width: 1.45rem;
    height: 0.13rem;
    background: var(--white);
  }

  .menu-toggle:checked ~ .nav-links {
    display: flex;
  }

  .estimate-button {
    min-width: auto;
    padding-inline: 1.2rem;
  }

  .hero-content {
    padding-top: 13rem;
  }

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

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: relative;
    background: #07090d;
  }

  .top-bar {
    display: grid;
    min-height: auto;
    padding-block: 0.95rem;
    gap: 0.65rem;
    font-size: 0.72rem;
  }

  .top-actions {
    display: grid;
    gap: 0.55rem;
  }

  .phone-link {
    border-left: 0;
    padding-left: 0;
    font-size: 1rem;
  }

  .nav {
    min-height: auto;
    grid-template-columns: 1fr auto;
    padding-block: 1rem;
  }

  .logo strong {
    font-size: 2.5rem;
  }

  .car-line {
    height: 2rem;
  }

  .estimate-button {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 3.25rem;
    order: 3;
  }

  .nav-links {
    top: calc(100% - 0.25rem);
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(5, 7, 10, 0.5) 0%, rgba(5, 7, 10, 0.9) 34%, rgba(5, 7, 10, 0.98) 100%),
      url("https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&w=1400&q=80") center top / cover;
  }

  .hero-content {
    min-height: auto;
    align-items: flex-start;
    padding-top: 12rem;
    padding-bottom: 3rem;
  }

  .inner-page {
    background:
      linear-gradient(180deg, rgba(5, 7, 10, 0.56), rgba(5, 7, 10, 0.98) 28rem),
      url("https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&w=1400&q=78") center top / cover,
      var(--black);
  }

  .page-hero {
    min-height: auto;
    padding-top: 7rem;
    padding-bottom: 2.5rem;
  }

  h1 {
    font-size: clamp(2.5rem, 14vw, 4rem);
  }

  .accent-line {
    margin: 2rem 0 1.4rem;
  }

  .hero-copy > p {
    font-size: 1.12rem;
  }

  .service-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    margin-top: 2rem;
    background: var(--line);
  }

  .service-strip article {
    min-height: 7rem;
    border: 0;
    background: rgba(5, 7, 10, 0.72);
  }

  .hero-buttons {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
    min-width: 0;
  }

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

  .content-band {
    padding-bottom: 3rem;
  }
}

@media (max-width: 420px) {
  .top-bar,
  .nav,
  .hero-content,
  .page-hero,
  .content-band {
    width: min(100% - 1.25rem, 112rem);
  }

  .top-bar span {
    display: block;
    margin-top: 0.2rem;
  }

  .top-bar span::before {
    content: "";
    margin: 0;
  }

  .logo strong {
    font-size: 2.15rem;
  }

  .logo small {
    font-size: 0.58rem;
  }

  .hero-content {
    padding-top: 9rem;
  }

  .service-strip span,
  .estimate-button,
  .primary-button,
  .secondary-button {
    font-size: 0.88rem;
  }

  .gallery-card div,
  .contact-panel,
  .contact-card {
    padding: 1rem;
  }
}
