/*
Theme Name:   Total Automotive Child
Template:     hello-elementor
Version:      1.1.0
*/

:root{
  --ta-red:#d0161c;
  --ta-red-dark:#a21015;
  --ta-ink:#14181c;
  --ta-ink-2:#1e242a;
  --ta-grey:#5c666f;
  --ta-line:#e2e6ea;
  --ta-max:1120px;
}

*{box-sizing:border-box}
body{margin:0;color:var(--ta-ink);background:#fff;
  font-family:"Roboto",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  font-size:17px;line-height:1.65;-webkit-text-size-adjust:100%}
img{max-width:100%;height:auto;display:block}
a{color:var(--ta-red)}

.ta-wrap{max-width:var(--ta-max);margin:0 auto;padding:0 20px}
.ta-section{padding:56px 0}
.ta-section--dark{background:var(--ta-ink);color:#fff}
.ta-section--dark h2{color:#fff}
.ta-section--tint{background:#f5f7f9}

h1,h2,h3{line-height:1.2;margin:0 0 .5em;font-weight:800;letter-spacing:-.01em}
h1{font-size:clamp(2rem,6vw,3.25rem)}
h2{font-size:clamp(1.5rem,4vw,2.25rem)}
h3{font-size:1.15rem;margin-bottom:.35em}
.ta-lede{font-size:1.15rem;color:var(--ta-grey);max-width:60ch}
.ta-section--dark .ta-lede{color:#b9c2ca}

/* ---------- buttons ---------- */
.ta-btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  padding:15px 26px;border-radius:6px;font-weight:700;font-size:1.05rem;
  text-decoration:none;border:2px solid transparent;transition:.15s ease;
  min-height:52px}
.ta-btn--primary{background:var(--ta-red);color:#fff;border-color:var(--ta-red)}
.ta-btn--primary:hover{background:var(--ta-red-dark);border-color:var(--ta-red-dark)}
.ta-btn--ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.6)}
.ta-btn--ghost:hover{background:#fff;color:var(--ta-ink);border-color:#fff}
.ta-btns{display:flex;flex-wrap:wrap;gap:14px;margin-top:26px}

/* ---------- hero ---------- */
.ta-hero{position:relative;color:#fff;background:var(--ta-ink) center/cover no-repeat;
  padding:84px 0 72px}
.ta-hero::before{content:"";position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(10,13,16,.92) 0%,rgba(10,13,16,.72) 55%,rgba(10,13,16,.45) 100%)}
.ta-hero .ta-wrap{position:relative}
.ta-hero h1{max-width:18ch}
.ta-hero .ta-lede{color:#d5dce2}
.ta-kicker{display:inline-block;background:var(--ta-red);color:#fff;
  font-size:.78rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;
  padding:7px 13px;border-radius:4px;margin-bottom:18px}

/* ---------- service cards ---------- */
.ta-grid{display:grid;gap:18px;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));margin-top:32px}
.ta-card{background:#fff;border:1px solid var(--ta-line);border-radius:10px;padding:24px;
  box-shadow:0 1px 3px rgba(20,24,28,.05)}
.ta-card h3{color:var(--ta-ink)}
.ta-card p{margin:0;color:var(--ta-grey);font-size:.97rem}
.ta-card__rule{width:36px;height:4px;background:var(--ta-red);border-radius:2px;margin-bottom:14px}

/* ---------- about ---------- */
.ta-split{display:grid;gap:36px;grid-template-columns:1fr;align-items:center}
@media(min-width:820px){.ta-split{grid-template-columns:300px 1fr}}
.ta-portrait{border-radius:12px;overflow:hidden;border:5px solid #fff;
  box-shadow:0 8px 28px rgba(20,24,28,.18)}

/* ---------- reviews ---------- */
.ta-quotes{display:grid;gap:18px;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));margin-top:30px}
.ta-quote{background:var(--ta-ink-2);border-radius:10px;padding:26px;
  border-left:4px solid var(--ta-red)}
.ta-quote p{margin:0 0 14px;color:#e6ebef}
.ta-stars{color:#ffc107;letter-spacing:3px;font-size:1.05rem}
.ta-cite{font-size:.86rem;color:#96a1ab;font-style:normal}
.ta-cite a{color:#96a1ab}
.ta-rating{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin-top:8px}
.ta-rating strong{font-size:2.6rem;line-height:1;color:#fff}

/* ---------- contact / details ---------- */
.ta-contact{display:grid;gap:40px;grid-template-columns:1fr}
@media(min-width:900px){.ta-contact{grid-template-columns:1fr 1fr}}
.ta-details dl{margin:0}
.ta-details dt{font-weight:800;margin-top:20px;font-size:.78rem;letter-spacing:.1em;
  text-transform:uppercase;color:var(--ta-grey)}
.ta-details dd{margin:4px 0 0;font-size:1.08rem}
.ta-details a{text-decoration:none;font-weight:700}
.ta-hours{width:100%;border-collapse:collapse;margin-top:6px}
.ta-hours th,.ta-hours td{text-align:left;padding:7px 0;border-bottom:1px solid var(--ta-line);
  font-weight:500;font-size:1rem}
.ta-hours th{color:var(--ta-grey);font-weight:600}
.ta-hours td{text-align:right}
.ta-closed{color:var(--ta-grey)}

/* ---------- gravity forms tidy ---------- */
.gform_wrapper .gform_fields{display:grid;gap:16px}
.gform_wrapper label.gfield_label{font-weight:700;font-size:.92rem;margin-bottom:5px;display:block}
.gform_wrapper input[type=text],.gform_wrapper input[type=email],
.gform_wrapper input[type=tel],.gform_wrapper textarea{
  width:100%;padding:13px 14px;border:1px solid #c9d1d8;border-radius:6px;
  font-size:1rem;font-family:inherit;background:#fff}
.gform_wrapper textarea{min-height:140px}
.gform_wrapper input:focus,.gform_wrapper textarea:focus{
  outline:none;border-color:var(--ta-red);box-shadow:0 0 0 3px rgba(208,22,28,.14)}
.gform_wrapper .gform_footer input[type=submit]{
  background:var(--ta-red);color:#fff;border:0;border-radius:6px;
  padding:15px 30px;font-size:1.05rem;font-weight:700;cursor:pointer;min-height:52px}
.gform_wrapper .gform_footer input[type=submit]:hover{background:var(--ta-red-dark)}
.gform_wrapper .gfield_required{color:var(--ta-red)}
.gform_wrapper .gfield_description{font-size:.85rem;color:var(--ta-grey)}

/* ---------- sticky mobile call bar ---------- */
.ta-callbar{position:fixed;left:0;right:0;bottom:0;z-index:999;display:none;
  background:var(--ta-red);box-shadow:0 -2px 12px rgba(0,0,0,.2)}
.ta-callbar a{display:flex;align-items:center;justify-content:center;gap:8px;
  padding:16px;color:#fff;text-decoration:none;font-weight:800;font-size:1.1rem;flex:1}
.ta-callbar a+a{border-left:1px solid rgba(255,255,255,.35)}
@media(max-width:781px){
  .ta-callbar{display:flex}
  body{padding-bottom:60px}
  .ta-section{padding:40px 0}
  .ta-hero{padding:60px 0 52px}
}

/* ---------- footer ---------- */
.ta-footer{background:#0d1114;color:#8f99a2;padding:30px 0;font-size:.9rem;text-align:center}
.ta-footer a{color:#c7d0d8;text-decoration:none}

/* ---------- theme integration ---------- */
body{overflow-x:hidden}

/* full-bleed sections inside Hello Elementor's container */
.ta-hero,.ta-section{width:100vw;max-width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw)}

/* header logo: the source image is the full shop sign, so cap it hard */
.site-header{padding:14px 20px;border-bottom:1px solid var(--ta-line)}
.site-header .site-branding img,.site-header img.custom-logo,
.site-logo img,header .custom-logo-link img{max-height:78px;width:auto;margin:0 auto}
@media(max-width:781px){
  .site-header .site-branding img,.site-header img.custom-logo,
  .site-logo img,header .custom-logo-link img{max-height:56px}
}

/* the front page supplies its own hero; hide the theme's page title + tagline */
body.home .page-header,body.home .entry-title,
body.home h1.entry-title,body.home .site-description{display:none}

/* kill the container padding that would double up on full-bleed sections */
body.home .site-main,body.home .page-content{padding-left:0;padding-right:0}
body.home .entry-content>*{margin-top:0}

/* ---------- full-width photo band / gallery ---------- */
.ta-photo,.ta-gallery{width:100vw;max-width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);line-height:0}
.ta-photo img{width:100%;height:clamp(240px,40vw,440px);object-fit:cover;display:block}
/* two-up: mixed portrait/landscape sources, equalised by object-fit */
.ta-gallery{display:grid;grid-template-columns:1fr 1fr;gap:4px}
.ta-gallery img{width:100%;height:clamp(240px,34vw,420px);object-fit:cover;display:block}
@media(max-width:781px){.ta-gallery{grid-template-columns:1fr}.ta-gallery img{height:240px}}
