/*
 Theme Name: SDEISLEY
 Theme URI: https://sdeisley.com
 Author: SDEISLEY
 Description: Child theme of Storefront for SDEISLY independent store. Clean, modern, conversion-focused.
 Template: storefront
 Version: 1.0.0
 Text Domain: sdeisley
*/

:root {
  --brand-primary: #0b6b62;
  --brand-primary-dark: #084a44;
  --brand-accent: #e8752a;
  --brand-ink: #1a2b2b;
  --brand-muted: #667b7a;
  --brand-line: #e3ebe9;
  --brand-bg: #f7faf9;
}

/* ---------- Global ---------- */
body { color: var(--brand-ink); }
a { color: var(--brand-primary); }
a:hover { color: var(--brand-accent); }
::selection { background: var(--brand-primary); color: #fff; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--brand-line); }
.site-title a { color: var(--brand-primary); letter-spacing: 1px; }
.site-header .site-branding img { max-height: 68px; width: auto; }
.site-header .site-branding .custom-logo { object-fit: contain; }
.main-navigation ul.menu > li > a { font-weight: 600; letter-spacing: .2px; }

/* ---------- Homepage: kill default content paddings ---------- */
.page-template-template-home .content-area,
.sdeisley-home .content-area { width: 100%; }
.sdeisley-home .hentry,
.sdeisley-home .entry-content { margin: 0; padding: 0; }
.sdeisley-home .entry-header { display: none; }
.sdeisley-home .storefront-breadcrumb { display: none; }
body.sdeisley-home { background: #fff; }
body.sdeisley-home .site-main { padding: 0; }

/* ---------- Hero ---------- */
.sd-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background: linear-gradient(115deg, rgba(8,74,68,.93) 0%, rgba(11,107,98,.82) 52%, rgba(11,107,98,.35) 100%),
              url('/wp-content/uploads/2026/11/H4eb9372dca3b4409aff216fe96307b82j.png') center/cover no-repeat;
  color: #fff;
}
.sd-hero-inner { max-width: 1180px; margin: 0 auto; padding: 70px 24px; width: 100%; }
.sd-hero .eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: 2.5px; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.5); border-radius: 30px; padding: 7px 18px; margin-bottom: 24px;
}
.sd-hero h1 { font-size: 54px; line-height: 1.12; margin: 0 0 20px; color: #fff; font-weight: 700; letter-spacing: -.5px; }
.sd-hero p.lead { font-size: 20px; line-height: 1.6; max-width: 620px; margin: 0 0 32px; color: rgba(255,255,255,.92); }
.sd-hero .btn-row a { display: inline-block; padding: 15px 32px; border-radius: 4px; font-weight: 700; text-decoration: none; margin-right: 14px; transition: .2s; }
.sd-btn-primary { background: var(--brand-accent); color: #fff !important; }
.sd-btn-primary:hover { background: #cf631d; transform: translateY(-2px); }
.sd-btn-ghost { border: 2px solid #fff; color: #fff !important; }
.sd-btn-ghost:hover { background: #fff; color: var(--brand-primary) !important; }

/* ---------- Trust bar ---------- */
.sd-trust { background: var(--brand-primary-dark); color: #fff; padding: 26px 0; }
.sd-trust-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(4,1fr); text-align: center; padding: 0 24px; }
.sd-trust .num { font-size: 30px; font-weight: 800; color: #fff; display: block; }
.sd-trust .label { font-size: 13px; letter-spacing: 1px; color: rgba(255,255,255,.75); text-transform: uppercase; }

/* ---------- Section shared ---------- */
.sd-section { padding: 84px 24px; }
.sd-section.alt { background: var(--brand-bg); }
.sd-wrap { max-width: 1180px; margin: 0 auto; }
.sd-sec-head { text-align: center; margin-bottom: 50px; }
.sd-sec-head .kicker { color: var(--brand-accent); font-size: 13px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; }
.sd-sec-head h2 { font-size: 38px; margin: 12px 0 14px; color: var(--brand-ink); }
.sd-sec-head p { color: var(--brand-muted); font-size: 17px; max-width: 680px; margin: 0 auto; }

/* ---------- Product collection grid ---------- */
.sd-grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.sd-card { background: #fff; border: 1px solid var(--brand-line); border-radius: 8px; overflow: hidden; transition: .25s; text-decoration: none; display: block; }
.sd-card:hover { transform: translateY(-5px); box-shadow: 0 14px 34px rgba(11,107,98,.13); border-color: var(--brand-primary); }
.sd-card .thumb { height: 240px; background: #f0f4f3 center/cover no-repeat; }
.sd-card .body { padding: 20px; }
.sd-card h3 { font-size: 18px; margin: 0 0 7px; color: var(--brand-ink); }
.sd-card p { margin: 0; color: var(--brand-muted); font-size: 14px; }

/* ---------- Best sellers grid ---------- */
.sd-best { background: #fff; }
.sd-grid-5 { display: grid; grid-template-columns: repeat(5,1fr); gap: 18px; }
.sd-product { background: #fff; border: 1px solid var(--brand-line); border-radius: 8px; overflow: hidden; transition: .25s; text-decoration: none; display: flex; flex-direction: column; }
.sd-product:hover { transform: translateY(-5px); box-shadow: 0 14px 34px rgba(11,107,98,.13); border-color: var(--brand-primary); }
.sd-product .thumb { position: relative; height: 200px; background: #f0f4f3 center/cover no-repeat; }
.sd-product .badge {
  position: absolute; top: 10px; left: 10px; background: var(--brand-accent); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: 1px; padding: 5px 9px; border-radius: 3px;
}
.sd-product .body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.sd-product h3 { font-size: 14px; line-height: 1.45; margin: 0 0 10px; color: var(--brand-ink); min-height: 40px; }
.sd-product .price { font-size: 15px; font-weight: 700; color: var(--brand-primary); margin-bottom: 12px; }
.sd-product .price .from { font-size: 12px; font-weight: 400; color: var(--brand-muted); }
.sd-product .price del { color: var(--brand-muted); font-weight: 400; font-size: 13px; }
.sd-product .view { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--brand-accent); }
.sd-best-cta { text-align: center; margin-top: 42px; }
.sd-best-cta .sd-btn-primary { display: inline-block; padding: 15px 34px; border-radius: 4px; font-weight: 700; text-decoration: none; }
@media (max-width: 1100px) { .sd-grid-5 { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 900px)  { .sd-grid-5 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px)  { .sd-grid-5 { grid-template-columns: 1fr; } }

/* ---------- Split feature ---------- */
.sd-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.sd-split .image { border-radius: 10px; height: 460px; background: center/cover no-repeat; box-shadow: 0 18px 44px rgba(0,0,0,.1); }
.sd-split h2 { font-size: 36px; margin: 0 0 18px; }
.sd-split p { color: var(--brand-muted); font-size: 16px; line-height: 1.8; }
.sd-feature-list { list-style: none; padding: 0; margin: 26px 0 0; }
.sd-feature-list li { padding: 10px 0 10px 34px; position: relative; color: var(--brand-ink); font-size: 16px; }
.sd-feature-list li::before { content: '✓'; position: absolute; left: 0; top: 9px; color: var(--brand-primary); font-weight: 800; }

/* ---------- CTA ---------- */
.sd-cta { background: linear-gradient(120deg, var(--brand-primary-dark), var(--brand-primary)); color: #fff; text-align: center; padding: 76px 24px; }
.sd-cta h2 { color: #fff; font-size: 38px; margin: 0 0 16px; }
.sd-cta p { color: rgba(255,255,255,.85); font-size: 18px; margin: 0 0 28px; }

/* ---------- Content pages ---------- */
/* On informational pages, hide the sidebar so content uses full width */
body.page:not(.sdeisley-home) .content-area { width: 100%; }
body.page:not(.sdeisley-home) .widget-area { display: none; }
.sd-page { max-width: 1000px; margin: 0 auto; padding: 60px 24px 80px; }
.sd-page h1 { font-size: 42px; color: var(--brand-ink); margin-bottom: 18px; }
.sd-page h2 { font-size: 26px; color: var(--brand-primary); margin: 38px 0 12px; border-bottom: 2px solid var(--brand-line); padding-bottom: 8px; }
.sd-page h3 { font-size: 19px; color: var(--brand-ink); margin: 24px 0 8px; }
.sd-page p, .sd-page li { font-size: 16px; line-height: 1.85; color: #3c4d4d; }
.sd-page .lead { font-size: 20px; color: var(--brand-muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-primary-dark) !important; color: rgba(255,255,255,.75) !important; }
.site-footer a { color: rgba(255,255,255,.85) !important; }
.sd-footer-info {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 30px;
  padding: 42px 0 32px; border-bottom: 1px solid rgba(255,255,255,.13);
}
.sd-footer-col h4 { color: #fff; font-size: 15px; letter-spacing: 1.2px; text-transform: uppercase; margin: 0 0 14px; }
.sd-footer-col p { font-size: 13.5px; line-height: 1.9; margin: 0; color: rgba(255,255,255,.72); }
.sd-footer-col a { color: rgba(255,255,255,.82) !important; text-decoration: none; }
.sd-footer-col a:hover { color: #fff !important; text-decoration: underline; }
@media (max-width: 900px) { .sd-footer-info { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .sd-footer-info { grid-template-columns: 1fr; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .sd-hero h1 { font-size: 38px; }
  .sd-trust-inner { grid-template-columns: repeat(2,1fr); gap: 22px; }
  .sd-grid-4 { grid-template-columns: repeat(2,1fr); }
  .sd-split { grid-template-columns: 1fr; gap: 30px; }
  .sd-split .image { height: 300px; }
}
@media (max-width: 560px) {
  .sd-grid-4 { grid-template-columns: 1fr; }
  .sd-hero h1 { font-size: 32px; }
  .sd-hero p.lead { font-size: 17px; }
}

/* Nav: Get a Quote highlighted CTA */
.main-navigation ul.menu > li.sd-nav-quote > a {
    background: var(--brand-accent, #c0392b);
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: 700;
    transition: opacity .2s;
}
.main-navigation ul.menu > li.sd-nav-quote > a:hover { opacity: .85; }

/* ---------- Homepage inquiry section ---------- */
.sd-quote { background: var(--brand-bg); }
.sd-quote-card { max-width: 960px; margin: 0 auto; background: #fff; border-radius: 10px; padding: 44px 48px 40px; box-shadow: 0 8px 30px rgba(20,50,60,.08); }
@media (max-width: 600px) {
  .sd-quote-card { padding: 28px 20px; }
}
