/* Omar's Tires – Service Page Sections
   Layout helpers only. Colors, fonts, spacing and card styles live in the
   Divi 5 module settings so they stay editable in the builder.
   Classes: .ot-ss (every new section), .ot-eq, .ot-center, .ot-card, .ot-grid,
   .ot-cols-2/3/4/5, .ot-item, .ot-steps, .ot-step, .ot-strip, .ot-size-grid,
   .ot-size-main, .ot-size-box, .ot-faq, .ot-inline, .ot-img-cover,
   .ot-img-contain, .ot-img-feature, .ot-img-cta */

/* Headings typed inside Text modules */
.ot-ss .et_pb_text h3{font-family:'Roboto Slab',Georgia,'Times New Roman',serif;font-weight:800;font-size:20px;line-height:1.25;color:#080808;margin:0 0 8px;padding:0}
.ot-ss .et_pb_text p:last-child{padding-bottom:0}
.ot-ss .et_pb_text a:not(.ot-more){color:#2379bc;font-weight:700}
.ot-ss a.ot-more{display:inline-block;margin-top:10px;font-size:14px;font-weight:800;color:#2379bc;text-decoration:none}
.ot-ss a.ot-more:hover{color:#c82032}

/* Equal-height cards (desktop) */
@media (min-width:981px){
  .ot-eq{display:flex!important;align-items:stretch}
  .ot-eq.ot-center{align-items:center}
  .ot-eq:not(.ot-center)>.et_pb_column{display:flex;flex-direction:column}
  .ot-eq:not(.ot-center)>.et_pb_column>.et_pb_button_module_wrapper:last-child{margin-top:auto}
}

/* Item grids (signs / reasons) */
.ot-grid{display:grid!important;gap:18px;grid-template-columns:repeat(3,minmax(0,1fr))}
.ot-grid>.et_pb_module{margin:0!important;width:auto!important}
.ot-grid.ot-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.ot-grid.ot-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.ot-grid.ot-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}
.ot-item h3{font-size:19px!important}

/* Tire size / wheel size diagram */
.ot-size-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-content:center}
.ot-size-grid>.et_pb_module{margin:0!important;width:auto!important}
.ot-size-grid>.ot-size-main{grid-column:1/-1;margin-bottom:6px!important}
.ot-size-main p{padding:0;overflow-wrap:anywhere}
.ot-size-cap{font-family:Inter,Helvetica,Arial,sans-serif!important;font-size:13px!important;font-weight:800!important;letter-spacing:.13em;text-transform:uppercase;color:#2379bc!important;margin-top:6px}
.ot-size-box p{padding:0}
.ot-size-box strong{display:block;font-family:'Roboto Slab',Georgia,serif;font-size:clamp(20px,2.1vw,30px);line-height:1.1;font-weight:800;color:#c82032;margin-bottom:6px;overflow-wrap:anywhere}

/* Installation / tires strip */
.ot-strip h3{font-size:22px!important;margin-bottom:4px!important}
.ot-ss-options .ot-strip h3{color:#fff!important}
@media (min-width:768px){
  .ot-strip{display:flex!important;align-items:center;justify-content:space-between;gap:24px}
  .ot-strip>.et_pb_module{margin:0!important}
  .ot-strip>.et_pb_text{flex:1}
  .ot-strip>.et_pb_button_module_wrapper{flex:0 0 auto}
}

/* Images */
.ot-ss .et_pb_image,.ot-ss .et_pb_image .et_pb_image_wrap{display:block;width:100%}
.ot-img-cover img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:10px}
.ot-img-contain img{width:100%;aspect-ratio:16/10;object-fit:contain;background:#f4f5f7;border-radius:10px;padding:14px;box-sizing:border-box}
.ot-img-feature img{width:100%;max-height:400px;object-fit:contain}
.ot-img-cta img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:14px;box-shadow:0 14px 34px rgba(0,0,0,.35)}

/* Side-by-side buttons (final CTA) */
.ot-ss .et_pb_button_module_wrapper:has(.ot-inline),.ot-ss .et_pb_button_module_wrapper.ot-inline{display:inline-block;margin-right:10px}

/* FAQ */
.ot-faq .et_pb_toggle{border:1px solid #e5e7eb!important;border-radius:10px;margin-bottom:10px!important;padding:18px 22px!important}
.ot-faq .et_pb_toggle_open{border-color:#2379bc!important;box-shadow:0 8px 22px rgba(0,0,0,.05)}
.ot-faq .et_pb_toggle_title{padding-right:36px}
.ot-faq .et_pb_toggle_content{padding-top:10px}

/* Tablet */
@media (max-width:980px){
  .ot-grid.ot-cols-3,.ot-grid.ot-cols-4,.ot-grid.ot-cols-5{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ot-img-feature img{max-height:300px}
}

/* Phone */
@media (max-width:767px){
  .ot-grid{grid-template-columns:1fr!important;gap:12px}
  .ot-ss .ot-item{padding:18px!important}
  .ot-ss .ot-card{padding:22px!important}
  .ot-size-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ot-steps>.et_pb_column{display:grid!important;grid-template-columns:48px 1fr;gap:0 12px;align-items:start;margin-bottom:12px!important}
  .ot-steps>.et_pb_column>.et_pb_module{margin:0!important}
  .ot-ss .et_pb_button_module_wrapper{display:block!important;width:100%;margin-right:0!important}
  .ot-ss .et_pb_button{display:block!important;width:100%;text-align:center;box-sizing:border-box}
  .ot-faq .et_pb_toggle{padding:16px!important}
  .ot-img-cta img{aspect-ratio:16/9}
}
