/*
Theme Name: Tempest Auto Repair
Theme URI: https://tempestautorepair.com/
Author: Tempest Auto Repair
Description: A clean black-and-yellow brochure-style WordPress website for a small local mechanic shop.
Version: 1.4.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: tempest-auto
*/
:root{
  --yellow:#f7c52b;
  --yellow-deep:#d9a40a;
  --ink:#121212;
  --dark:#1b1b1b;
  --soft:#f8f6f1;
  --line:#e7e2d7;
  --text:#232323;
  --muted:#636363;
  --white:#ffffff;
  --radius:18px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--soft);
  color:var(--text);
  font-family:Inter,Arial,Helvetica,sans-serif;
  line-height:1.65;
}
a{text-decoration:none;color:inherit}
img{max-width:100%;height:auto;display:block}
button,input,textarea{font:inherit}
.wrap{max-width:1180px;margin:auto;padding:0 22px}
.skip{position:absolute;top:-100px;left:0;background:var(--yellow);padding:14px 18px;z-index:100}.skip:focus{top:0}

.topstrip{
  background:var(--yellow);
  color:#111;
  font-size:13px;
  font-weight:700;
}
.topstrip .wrap{
  min-height:38px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.topstrip a:hover{text-decoration:underline}

.sitehead{
  background:#111;
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,.08);
  position:relative;
  z-index:20;
}
.headinner{
  min-height:88px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.brand{display:flex;align-items:center;min-width:0}
.brand img{width:220px;max-height:74px;object-fit:contain;object-position:left center}
.nav{display:flex;align-items:center;gap:26px}
.nav a{
  font-size:15px;
  font-weight:700;
  color:#f2f2f2;
}
.nav a:hover,.nav .current-menu-item a{color:var(--yellow)}
.menu-toggle{display:none;color:#fff;background:transparent;border:1px solid #4b4b4b;border-radius:8px;padding:8px 11px;font-size:22px}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border:2px solid var(--yellow);
  background:var(--yellow);
  color:#121212;
  font-size:14px;
  font-weight:800;
  padding:14px 22px;
  border-radius:999px;
  transition:transform .2s ease,background .2s ease,border-color .2s ease;
  cursor:pointer;
}
.btn:hover{transform:translateY(-1px);background:#ffd45e;border-color:#ffd45e}
.btn-dark{background:transparent;color:#fff;border-color:rgba(255,255,255,.45)}
.btn-dark:hover{background:#fff;color:#111;border-color:#fff}
.nav-cta{white-space:nowrap}

.hero{
  position:relative;
  min-height:610px;
  display:flex;
  align-items:center;
  color:#fff;
  overflow:hidden;
  background:#111;
}
.hero:before{
  content:'';
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,rgba(10,10,10,.92) 0%,rgba(10,10,10,.84) 44%,rgba(10,10,10,.42) 100%),
    url('https://images.unsplash.com/photo-1487754180451-c456f719a1fc?auto=format&fit=crop&w=1800&q=85') center center/cover no-repeat;
  transform:scale(1.01);
}
.hero-content{position:relative;z-index:1;width:100%;padding:72px 0 86px}
.eyebrow{
  display:inline-block;
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-weight:800;
  color:var(--yellow-deep);
}
.hero .eyebrow{color:var(--yellow)}
h1,h2,h3,h4,p{margin-top:0}
h1,h2,h3{line-height:1.1;letter-spacing:-.03em}
h1{font-size:clamp(42px,5.7vw,72px);font-weight:900;max-width:760px;margin:18px 0 18px}
h2,.page-hero h1{font-size:clamp(32px,4vw,52px);font-weight:900;margin:10px 0 14px}
h3{font-size:24px;font-weight:800;margin-bottom:10px}
.hero p{font-size:18px;color:#e1e1e1;max-width:630px;margin-bottom:28px}
.accent{color:var(--yellow)}
.actions{display:flex;gap:12px;flex-wrap:wrap}
.hero-pills{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
.hero-pills span{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 14px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  font-size:13px;
  font-weight:700;
}
.hero-pills span:before{content:'•';color:var(--yellow);font-size:20px;line-height:1}

.section{padding:82px 0}
.section.soft{background:#fffdf8}
.section.dark{background:#171717;color:#fff}
.heading{display:flex;align-items:end;justify-content:space-between;gap:26px;margin-bottom:32px}
.section-intro{max-width:700px;color:var(--muted);font-size:17px}
.dark .section-intro{color:#cbcbcb}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.service-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:0 10px 24px rgba(0,0,0,.04);
  display:flex;
  flex-direction:column;
}
.service-photo{height:220px;background:#ddd;overflow:hidden}
.service-photo img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.service-card:hover .service-photo img{transform:scale(1.04)}
.service-body{padding:24px 24px 26px;flex:1}
.service-body p{color:#5e5e5e;font-size:15px;margin-bottom:16px}
.arrowlink{font-size:13px;font-weight:800;color:#8a6800}

.split{display:grid;grid-template-columns:1fr 1fr;gap:58px;align-items:center}
.split-photo{position:relative}
.split-photo img{width:100%;height:460px;object-fit:cover;border-radius:var(--radius)}
.yellow-corner{position:absolute;bottom:-14px;left:-14px;width:96px;height:96px;background:var(--yellow);z-index:-1;border-radius:22px}
.checkgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px 18px;margin:24px 0 30px}
.checkgrid span{font-size:15px;font-weight:700}
.checkgrid span:before{content:'✓';color:var(--yellow-deep);margin-right:10px}
.note-card{
  margin-top:18px;
  background:#fff8db;
  border:1px solid #f0df9c;
  border-radius:16px;
  padding:16px 18px;
  color:#4e4200;
  font-size:14px;
}

.local-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.local-card{
  background:#1e1e1e;
  border:1px solid rgba(255,255,255,.08);
  border-radius:var(--radius);
  padding:28px;
}
.local-card small{display:block;color:var(--yellow);font-weight:800;letter-spacing:.06em;text-transform:uppercase;margin-bottom:12px}
.local-card h3{font-size:22px;margin-bottom:8px;color:#fff}
.local-card p{color:#c8c8c8;margin:0}
.local-card a{color:#fff}

.statement{padding:54px 0;background:var(--yellow);color:#121212}
.statement .wrap{display:flex;align-items:center;justify-content:space-between;gap:24px}
.statement h2{margin:0;font-size:clamp(25px,3vw,38px)}
.statement p{margin:6px 0 0;font-size:16px}
.statement .btn{background:#111;color:#fff;border-color:#111}
.statement .btn:hover{background:#000;border-color:#000}

.sitefooter{background:#0f0f0f;color:#d0d0d0;padding:62px 0 20px}
.footgrid{display:grid;grid-template-columns:2fr 1fr 1.2fr;gap:40px}
.footbrand img{width:220px;max-height:84px;object-fit:contain;object-position:left}
.footgrid h3{color:#fff;font-size:16px;margin-bottom:16px}
.footgrid p,.footgrid a{font-size:14px;color:#b6b6b6}
.footgrid a:hover{color:var(--yellow)}
.footgrid ul{list-style:none;padding:0;margin:0}
.footgrid li{margin-bottom:10px}
.copyright{border-top:1px solid rgba(255,255,255,.1);margin-top:38px;padding-top:18px;font-size:12px;color:#969696}

.page-hero{background:linear-gradient(135deg,#111 0%,#242424 100%);color:#fff;padding:68px 0}
.copy{font-size:17px;color:#555;max-width:850px}
.copy h2,.copy h3{color:#111}
.copy p{margin-bottom:20px}
.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.gallery-grid img{width:100%;height:255px;object-fit:cover;border-radius:14px}
.contact-layout{display:grid;grid-template-columns:1fr 1.06fr;gap:54px}
.contact-block{border-bottom:1px solid #e3ddd0;padding-bottom:18px;margin-bottom:18px}
.contact-block strong{display:block;font-size:13px;text-transform:uppercase;letter-spacing:.08em;color:#8b6b00;margin-bottom:8px}
.contact-block a{font-size:20px;font-weight:800}
.contact-form{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:30px;box-shadow:0 12px 24px rgba(0,0,0,.04)}
.contact-form label{display:block;font-size:13px;font-weight:800;text-transform:uppercase;margin:0 0 7px}
.contact-form input,.contact-form textarea{width:100%;padding:13px 14px;background:#fff;border:1px solid #d9d5cb;border-radius:12px;margin-bottom:16px}
.contact-form textarea{min-height:130px;resize:vertical}
.notice{padding:13px 16px;margin-bottom:20px;background:#e5f3e4;border-radius:12px}.notice.error{background:#f9e1dc}
.mapframe{width:100%;height:340px;border:0;margin-top:30px;border-radius:16px}
.empty-gallery{border:2px dashed #d9d2c3;background:#fffcf4;padding:44px;text-align:center;color:#666;border-radius:16px}
.single-service{display:grid;grid-template-columns:1.08fr .92fr;gap:40px;align-items:start}
.single-service img{height:360px;width:100%;object-fit:cover;border-radius:16px}
.meta-badge{display:inline-flex;align-items:center;padding:8px 12px;border-radius:999px;background:#fff8db;border:1px solid #f0df9c;font-size:13px;font-weight:700;color:#4e4200;margin:0 10px 10px 0}

@media(max-width:980px){
  .nav{gap:16px}
  .nav a{font-size:14px}
  .headinner{gap:18px}
  .split{gap:34px}
  .footgrid,.contact-layout,.single-service,.local-grid{grid-template-columns:1fr}
}
@media(max-width:760px){
  .wrap{padding:0 18px}
  .topstrip .wrap{justify-content:center;text-align:center}
  .topstrip span:last-child{display:none}
  .menu-toggle{display:block}
  .nav{display:none;position:absolute;left:0;right:0;top:100%;background:#111;padding:20px;flex-direction:column;align-items:flex-start;gap:18px;box-shadow:0 12px 28px rgba(0,0,0,.35)}
  .nav.open{display:flex}
  .nav-cta{display:none}
  .brand img{width:182px}
  .hero{min-height:560px}
  .hero-content{padding:60px 0 70px}
  .heading{display:block}
  .grid,.split,.gallery-grid,.checkgrid{grid-template-columns:1fr}
  .section{padding:64px 0}
  .service-photo{height:210px}
  .split-photo img{height:300px}
  .statement .wrap{display:block}
  .statement .btn{margin-top:18px}
}

/* Facebook updates page */
.facebook-layout{display:grid;grid-template-columns:1fr 1fr;gap:50px;align-items:start}
.facebook-layout p:not(.section-intro){color:#555}
.facebook-frame{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:20px;box-shadow:0 10px 24px rgba(0,0,0,.04);max-width:560px;overflow:hidden}
.facebook-frame-label{font-weight:800;font-size:17px;margin-bottom:16px}
.facebook-frame iframe{display:block;max-width:100%;width:100%;height:680px}
.facebook-smallprint{font-size:13px;margin-top:26px}
.facebook-fallback{font-size:14px;margin:16px 0 0}
.facebook-fallback a{color:#705500;font-weight:800;text-decoration:underline}
@media(max-width:760px){.facebook-layout{grid-template-columns:1fr;gap:30px}.facebook-frame{padding:12px}.facebook-frame iframe{height:580px}}

/* Uploaded hero image sits behind the existing gradient. */
.hero-background{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
.hero:before{background:linear-gradient(90deg,rgba(0,0,0,.88),rgba(0,0,0,.35));z-index:1}
.hero-content{z-index:2}
.map-links{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0}
.map-links a{display:inline-block;padding:10px 14px;border:1px solid currentColor;border-radius:8px;font-size:14px}
a:focus-visible,button:focus-visible{outline:3px solid #ffce00;outline-offset:4px}
