/*
Theme Name: RSL Defensive Driving
Theme URI: https://rsldefensivedriving.kinsta.cloud/
Author: RSL Defensive Driving
Author URI: https://rsldefensivedriving.kinsta.cloud/
Description: Custom one-page theme for RSL Defensive Driving — NYS DMV-approved defensive driving course in St. James, NY. Point reduction and 10% insurance savings.
Version: 1.1.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rsl-defensive-driving
*/

:root{
  --navy:#122A52; --navy2:#0C1E3D; --blue:#2E86DE; --steel:#EEF2F8; --white:#FFFFFF;
  --ink:#122A52; --green:#1E8E5A; --line:#D6DCE8;
  box-sizing:border-box;
  padding-top:env(safe-area-inset-top,0px);
  padding-bottom:env(safe-area-inset-bottom,0px);
}
*{box-sizing:inherit;margin:0;padding:0;}
html{scroll-padding-top:env(safe-area-inset-top,0px);scroll-behavior:smooth;}
body{background:var(--white);color:var(--ink);font-family:'Inter',sans-serif;line-height:1.55;overflow-x:hidden;}
h1,h2,h3,.brandname{font-family:'Oswald',sans-serif;}
img{max-width:100%;display:block;}
.wrap{max-width:1080px;margin:0 auto;padding:0 24px;}

header{position:sticky;top:0;top:env(safe-area-inset-top,0px);background:var(--navy2);z-index:10;border-bottom:3px solid var(--blue);}
header .wrap{display:flex;align-items:center;justify-content:space-between;height:140px;}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;}
.brand img{height:120px;width:auto;}
nav{display:flex;gap:20px;flex-wrap:wrap;}
nav a{color:#C9D6EC;text-decoration:none;font-size:13.5px;font-weight:500;}
nav a:hover,nav a:focus-visible{color:var(--white);}

.hero{background:linear-gradient(180deg,#060D1C,var(--navy) 70%);color:var(--white);padding:64px 0 56px;position:relative;overflow:hidden;}
.hero::before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at top left, rgba(0,0,0,.45), transparent 60%);}
.hero::after{content:"";position:absolute;left:0;right:0;bottom:0;height:120px;background:
  repeating-linear-gradient(90deg,transparent 0 54px, rgba(255,255,255,.16) 54px 90px);
  transform:skewY(-2deg);opacity:.4;}
.hero .wrap{position:relative;max-width:680px;}
.hero-logo{position:absolute;top:18px;left:50%;transform:translateX(-50%);width:260px;opacity:.18;pointer-events:none;z-index:0;}
.hero .wrap{z-index:1;}

.hero h1{font-size:clamp(30px,5.4vw,46px);font-weight:700;line-height:1.08;text-shadow:0 2px 14px rgba(0,0,0,.5);}
.hero p{margin-top:16px;font-size:16.5px;color:#EAF1FC;max-width:52ch;text-shadow:0 1px 8px rgba(0,0,0,.4);}
.cta-row{display:flex;gap:12px;margin-top:26px;flex-wrap:wrap;}
.btn{display:inline-block;padding:13px 22px;font-weight:600;font-size:14.5px;text-decoration:none;border:2px solid transparent;border-radius:3px;transition:transform .15s ease;}
.btn:hover{transform:translateY(-2px);}
.btn-blue{background:var(--blue);color:var(--white);}
.btn-outline{border-color:#4A6390;color:#FFFFFF;}

.trust{background:var(--steel);padding:18px 0;border-bottom:1px solid var(--line);}
.trust .wrap{display:flex;gap:28px;flex-wrap:wrap;justify-content:center;}
.trust span{font-size:13.5px;font-weight:600;color:#1266E2;display:flex;align-items:center;gap:6px;}
.trust span::before{content:"✓";color:var(--green);font-weight:700;}

section{padding:60px 0;}
.section-head{max-width:60ch;margin-bottom:32px;}
.section-head span.eyebrow{display:block;color:var(--blue);font-size:13px;font-weight:600;margin-bottom:6px;}
.section-head h2{font-size:28px;font-weight:600;}
.rule{border:none;border-top:1px solid var(--line);}

.course-panel{background:var(--steel);border-radius:4px;padding:32px;display:grid;grid-template-columns:1.3fr 1fr;gap:30px;}
@media(max-width:680px){.course-panel{grid-template-columns:1fr;}}
.course-panel h3{font-size:21px;margin-bottom:10px;}
.course-panel ul{padding-left:18px;margin-top:14px;font-size:14.5px;}
.course-panel li{margin-bottom:7px;}
.info-box{background:var(--white);border:1px solid var(--line);border-radius:4px;padding:22px;align-self:start;}
.info-box p{font-size:14px;margin-bottom:10px;}
.info-box strong{color:var(--navy);}
.info-box .btn{margin-top:6px;width:100%;text-align:center;background:var(--navy);color:#FFFFFF;}

.approach-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start;}
@media(max-width:680px){.approach-grid{grid-template-columns:1fr;}}
.approach-grid figure{margin:0;}
.approach-grid img{border-radius:6px;border:1px solid var(--line);}
.approach-grid figcaption{font-size:13px;color:#5b6a86;margin-top:10px;text-align:center;}

.moto{background:var(--navy2);color:var(--white);}
.moto .section-head span.eyebrow{color:var(--green);}
.moto .section-head h2{color:#3FA0FF;}
.moto-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:26px;}
.moto-grid div{border-left:3px solid var(--green);padding-left:16px;}
.moto-grid h3{font-size:16.5px;margin-bottom:6px;color:#fff;}
.moto-grid p{font-size:14px;color:#C9D6EC;}

.shop-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:1px;background:var(--line);border:1px solid var(--line);}
.product{background:var(--white);padding:22px;display:flex;flex-direction:column;}
.product .tag{font-size:11.5px;font-weight:600;letter-spacing:.03em;color:var(--blue);}
.product h3{font-size:16.5px;margin:8px 0 6px;}
.product p{font-size:13.5px;color:#5b6a86;margin-bottom:14px;flex-grow:1;}
.product .row{display:flex;justify-content:space-between;align-items:center;}
.product .price{font-family:'Oswald';font-weight:600;font-size:18px;}
.product .price .plustax{font-family:'Inter';font-weight:500;font-size:10.5px;color:#8B98AF;margin-left:4px;}
.product .value{font-family:'Inter';font-weight:500;font-size:12px;color:#8B98AF;text-decoration:line-through;margin-right:6px;}
.product a{font-size:13.5px;font-weight:600;color:var(--green);text-decoration:none;border-bottom:2px solid var(--green);}
.kit{border-top:3px solid var(--blue);}

.certify{padding:40px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);}
.certify .wrap{display:flex;align-items:center;gap:28px;flex-wrap:wrap;justify-content:space-between;}
.certify .who{font-size:14px;color:#5b6a86;max-width:40ch;}
.certify .who strong{color:var(--navy);display:block;font-size:15.5px;margin-bottom:4px;}
.certify img{height:34px;width:auto;}
.esc-block{display:flex;flex-direction:column;align-items:center;gap:6px;}
.esc-block .code{font-size:12px;font-weight:600;color:var(--blue);}
.partners{padding:32px 0;text-align:center;border-bottom:1px solid var(--line);}
.partners p{font-size:12.5px;font-weight:600;letter-spacing:.03em;color:#5b6a86;text-transform:uppercase;margin-bottom:14px;}
.partners img{height:70px;width:auto;margin:0 auto;}


footer{background:var(--navy2);color:#C9D6EC;padding:36px 0;font-size:13.5px;}
footer .wrap{display:flex;justify-content:space-between;flex-wrap:wrap;gap:16px;align-items:center;}
footer .brand img{height:40px;}
footer a{color:#8FB8F0;text-decoration:none;}
footer .tagline{width:100%;text-align:center;margin-top:20px;color:#7C93BE;font-style:italic;font-size:13px;}

@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){--white:#0F1626;--steel:#182236;--ink:#EDEBE5;--line:#2B3854;}
  .info-box{background:#0F1626;}
  .certify{border-color:var(--line);}
  .certify .who{color:#9FB0CC;}
}

.product .buy-disabled{font-size:13.5px;font-weight:600;color:#8B98AF;text-decoration:none;border-bottom:2px solid #C6D0E2;cursor:not-allowed;}
.shop-note{font-size:20px;font-weight:600;color:var(--green);margin-top:10px;}
.product-logo{background:var(--navy2);align-items:center;justify-content:center;}
.product-logo img{width:75%;max-width:210px;height:auto;}
