/* Nottingham Direct Autos | premium presentation layer 1.0.5
 * Existing selectors + data attributes only; no new styling classes.
 * Applied to dynamic NDA pages, preserving all content, routes and data.
 */
.nda-site{--nda-teal:#083642;--nda-blue:#08afbf;--nda-ink:#102c36;--nda-line:#dae9ed;--nda-soft:#f2f8fa;--nda-ease:cubic-bezier(.2,.7,.18,1);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:var(--nda-ink)}
.nda-site :is(a,button,summary,input,textarea,select):focus-visible{outline:3px solid #00a9bf;outline-offset:3px}
.nda-site .nda-container{max-width:1440px}
.nda-site :is(h1,h2,h3){letter-spacing:-.03em;text-wrap:balance}
.nda-site :is(.nda-card,.nda-mini,.nda-booking,.nda-faq details){box-sizing:border-box}
.nda-site [data-nda-icon]{width:19px;height:19px;display:inline-block;flex:none;vertical-align:middle;stroke:currentColor;stroke-width:1.85;fill:none;stroke-linecap:round;stroke-linejoin:round}
/* Crisp two-tier navigation, coherent menu affordances and proper active states. */
#nda-source-header{border-bottom:1px solid #dbe9ec;box-shadow:0 8px 28px #062c3b13;background:#fff}
#nda-topline{background:linear-gradient(105deg,#082c37,#0a4753);color:#e7f8fa}
#nda-topline a{color:#b6eff4;font-weight:700}
#nda-source-header .nda-nav-inner{min-height:78px;gap:20px}
#nda-source-header .nda-logo{letter-spacing:-1.6px;line-height:1.04}
#nda-source-header .nda-logo small{letter-spacing:.015em;margin-top:6px;color:#4a6671}
#nda-desktop-navigation{gap:5px}
#nda-desktop-navigation>a,#nda-desktop-navigation>details>summary{padding:12px 11px;border-radius:12px;display:inline-flex;align-items:center;gap:8px;font-weight:740;font-size:13px;color:#244650;transition:background .2s ease,color .2s ease;white-space:nowrap}
#nda-desktop-navigation>a:hover,#nda-desktop-navigation>details>summary:hover,#nda-desktop-navigation>details[open]>summary,#nda-desktop-navigation>[data-nda-current]{background:#eaf8fa;color:#087988}
#nda-desktop-navigation [data-nda-icon]{width:17px;height:17px;color:#168c9b}
#nda-desktop-navigation>details>summary>svg:last-child{width:13px;height:13px;transition:transform .2s ease}
#nda-desktop-navigation>details[open]>summary>svg:last-child{transform:rotate(180deg)}
#nda-source-header .nda-cta{background:linear-gradient(125deg,#04aabb,#11c2ca);border-radius:12px;box-shadow:0 7px 16px #0aafc226;padding:12px 17px;min-height:45px;font-weight:800;gap:8px;transition:transform .24s var(--nda-ease),box-shadow .24s var(--nda-ease)}
#nda-source-header .nda-cta:hover{transform:translateY(-2px);box-shadow:0 12px 24px #0aafc23b}
#nda-header-phone{border-left:1px solid #e2eaec;padding-left:14px;gap:9px}
#nda-header-phone [data-nda-icon]{color:#0e9aaa}
/* Mega menu: six distinct categories with icon tiles and short service lists. */
#nda-source-mega{border-top:1px solid #e4edef;background:linear-gradient(180deg,#fcfefe,#f4f9fa);box-shadow:0 25px 48px #0828362b;padding-top:24px;padding-bottom:26px}
#nda-source-mega>a:first-child{display:inline-flex;align-items:center;padding:9px 15px;background:#dbf4f6;color:#076c7b;border:1px solid #b6e2e8;border-radius:11px;font-size:13px}
#nda-source-mega [data-nda-grid]{gap:14px}
#nda-source-mega section{border:1px solid #e0edf0;border-radius:16px;background:#fff;padding:18px 17px;display:grid;align-content:start;gap:7px;box-shadow:0 5px 18px #08374409;transition:border-color .2s,transform .25s var(--nda-ease),box-shadow .25s}
#nda-source-mega section:hover{border-color:#9fdae3;transform:translateY(-2px);box-shadow:0 12px 26px #08374414}
#nda-source-mega section a{position:relative;min-width:0;line-height:1.45;padding:4px 3px 4px 0;color:#46606a;gap:10px;transition:color .15s,padding-left .18s}
#nda-source-mega section a:hover{color:#087e8f;padding-left:4px}
#nda-source-mega section a[data-nda-category]{gap:11px;font-weight:820;font-size:14px;color:#0e3945;white-space:normal;padding-bottom:11px;margin-bottom:3px;border-bottom:1px solid #e7f0f2}
#nda-source-mega section a[data-nda-category] [data-nda-icon]{width:39px;height:39px;padding:9px;border:1px solid #d3edf0;border-radius:11px;background:#e7f7f9;color:#0b8797}
#nda-source-mega section a:not([data-nda-category]){font-size:12.5px}
#nda-source-mega section a:not([data-nda-category]):before{content:"";display:inline-block;flex:none;width:5px;height:5px;border-radius:50%;background:#52beca}
#nda-desktop-navigation [data-nda-advice]{min-width:240px;border-radius:14px;padding:9px}
#nda-desktop-navigation [data-nda-advice] a{display:flex;align-items:center;gap:10px;padding:11px 12px;border-radius:9px}
#nda-desktop-navigation [data-nda-advice] a:hover{background:#e9f6f8}
/* Department image cards: original imagery + premium icon plaques + refined content hierarchy. */
.nda-site .nda-cards{gap:22px;align-items:stretch}
.nda-site .nda-card{position:relative;isolation:isolate;display:flex;flex-direction:column;background:#fff;border:1px solid #dfeaec;border-radius:23px;overflow:hidden;box-shadow:0 10px 30px #113e4b0e;transition:transform .35s var(--nda-ease),box-shadow .35s var(--nda-ease),border-color .3s ease;will-change:auto}
.nda-site .nda-card:before{content:"";height:4px;position:absolute;z-index:3;top:0;left:0;right:0;background:linear-gradient(90deg,#0fa4b6,#58d5d5);transform:scaleX(0);transform-origin:left;transition:transform .4s var(--nda-ease)}
.nda-site .nda-card:hover,.nda-site .nda-card:focus-visible{transform:translateY(-7px);border-color:#a5d8df;box-shadow:0 22px 46px #083d4b23}
.nda-site .nda-card:hover:before,.nda-site .nda-card:focus-visible:before{transform:scaleX(1)}
.nda-site .nda-card>img{display:block;width:100%;aspect-ratio:1.67;object-fit:cover;transition:transform .6s var(--nda-ease),filter .35s;filter:saturate(.9) contrast(1.02)}
.nda-site .nda-card:hover>img{transform:scale(1.045);filter:saturate(1.08)}
.nda-site .nda-card>div{position:relative;flex:1;display:flex;flex-direction:column;gap:10px;padding:23px 24px 24px;background:linear-gradient(180deg,#fff,#fbfefe)}
.nda-site .nda-card [data-nda-icon-chip]{width:52px;height:52px;display:grid;place-items:center;position:relative;align-self:flex-start;margin-top:-53px;margin-bottom:1px;border-radius:15px;background:linear-gradient(145deg,#e6f9fa,#d6eef2);color:#047d8c;box-shadow:0 9px 24px #063c4929;border:3px solid #fff}
.nda-site .nda-card [data-nda-icon-chip] svg{width:27px;height:27px;stroke-width:1.8}
.nda-site .nda-card h3{font-size:clamp(19px,1.7vw,23px);line-height:1.3;letter-spacing:-.02em;color:#123742;margin:0}
.nda-site .nda-card p{font-size:14px;line-height:1.65;color:#526872;margin:0 0 10px;flex:1}
.nda-site .nda-card strong{display:inline-flex;align-items:center;gap:10px;margin-top:auto;font-size:13px;color:#087a8c;font-weight:800}
.nda-site .nda-card strong:after{content:"";width:20px;height:20px;flex:none;background-color:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14m-6-6 6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14m-6-6 6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;transition:transform .25s var(--nda-ease)}
.nda-site .nda-card:hover strong:after{transform:translateX(4px)}
/* Trustworthy, clear process cards; no fabricated reviews, awards or counts. */
.nda-site .nda-mini-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}
.nda-site .nda-mini{position:relative;padding:25px 23px 26px;background:linear-gradient(160deg,#fff,#f9fcfd);border:1px solid #dce9ec;border-radius:20px;box-shadow:0 7px 22px #0939470c;transition:transform .3s var(--nda-ease),box-shadow .3s,border-color .3s}
.nda-site .nda-mini:hover{transform:translateY(-4px);border-color:#b1dfe6;box-shadow:0 17px 32px #083f4e19}
.nda-site .nda-mini [data-nda-step-icon]{display:flex;justify-content:center;align-items:center;width:51px;height:51px;background:#e7f6f8;color:#098396;border-radius:14px;margin-bottom:17px}
.nda-site .nda-mini [data-nda-step-icon] svg{height:25px;width:25px}
.nda-site .nda-mini [data-nda-step-number]{position:absolute;right:20px;top:16px;font-weight:850;font-size:13px;letter-spacing:.08em;color:#8fb4bc}
.nda-site .nda-mini h3{font-size:18px;line-height:1.38;margin:0 0 8px}
.nda-site .nda-mini p{font-size:14px;line-height:1.65;color:#5b6d75;margin:0}
/* Contextual service and location link cards. */
.nda-site .nda-links{gap:11px}
.nda-site .nda-links>a{position:relative;display:flex;align-items:center;gap:10px;min-height:49px;padding:11px 35px 11px 14px;border:1px solid #deebee;background:linear-gradient(150deg,#fff,#f8fcfd);border-radius:12px;color:#174b56;font-weight:700;font-size:13px;box-shadow:0 2px 12px #083d4b08;transition:transform .23s var(--nda-ease),border-color .2s,box-shadow .2s,background .2s;min-width:0;overflow-wrap:anywhere}
.nda-site .nda-links>a:before{content:"";display:inline-block;flex:none;width:19px;height:19px;background-color:#0d96a8;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 5-8 12-8 12S4 15 4 10a8 8 0 1 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 5-8 12-8 12S4 15 4 10a8 8 0 1 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E") center/contain no-repeat}
.nda-site .nda-links>a:after{content:'↗';position:absolute;right:14px;color:#128799;font-size:16px;font-weight:750;transition:transform .2s}
.nda-site .nda-links>a:hover{transform:translateY(-2px);border-color:#9fdae4;background:#e9f8fa;box-shadow:0 8px 18px #083e4e13}
.nda-site .nda-links>a:hover:after{transform:translate(2px,-2px)}
/* CTA, form, FAQs and footer - consistent finish. */
.nda-site .nda-primary,.nda-site .nda-booking button{box-shadow:0 9px 22px #00a7b72b;transition:transform .24s var(--nda-ease),box-shadow .24s}
.nda-site .nda-primary:hover,.nda-site .nda-booking button:hover{transform:translateY(-2px);box-shadow:0 13px 25px #00a7b744}
.nda-site .nda-secondary{transition:background .2s,transform .22s}
.nda-site .nda-secondary:hover{background:#ffffff16;transform:translateY(-2px)}
.nda-site .nda-booking{box-shadow:0 20px 44px #05384419;border:1px solid #d6e9ec}
.nda-site .nda-booking :is(input,select,textarea){transition:border-color .2s,box-shadow .2s}
.nda-site .nda-booking :is(input,select,textarea):focus{border-color:#079aaf;box-shadow:0 0 0 3px #0aacb21b;outline:none}
.nda-site .nda-faq details{border-radius:15px;transition:background .2s,border-color .2s,box-shadow .2s}
.nda-site .nda-faq details:hover,.nda-site .nda-faq details[open]{border-color:#b7dfe4;box-shadow:0 6px 19px #063f4b0c}
.nda-site .nda-faq summary{display:flex;align-items:center;justify-content:space-between;gap:18px;list-style:none}
.nda-site .nda-faq summary::-webkit-details-marker{display:none}
.nda-site .nda-faq summary:after{content:'+';display:grid;place-items:center;flex:none;width:27px;height:27px;border-radius:8px;background:#e9f7f9;color:#097989;font-size:20px;font-weight:500;transition:transform .2s,background .2s}
.nda-site .nda-faq details[open] summary:after{content:'−';background:#d3f0f3}
.nda-site .nda-footer a{transition:color .2s,transform .2s}
.nda-site .nda-footer a:hover{color:#9deaf2;transform:translateX(3px)}
/* Progressive enhancement: items are always visible; animation only once after intersection. */
@keyframes ndaPremiumEnter{from{transform:translateY(11px);filter:brightness(.98)}to{transform:translateY(0);filter:brightness(1)}}
.nda-site [data-nda-reveal="seen"]{animation:ndaPremiumEnter .58s var(--nda-ease) both}
/* Mobile: spatially balanced navigation, cards and fixed actions. */
@media(max-width:1180px){#nda-desktop-navigation{gap:1px}#nda-desktop-navigation>a,#nda-desktop-navigation>details>summary{padding:10px 8px;font-size:12.5px}}
@media(max-width:1050px){
 #nda-mobile-menu>summary{border-radius:12px!important;border:1px solid #cfe6ea!important;background:#eff8fa!important;min-height:45px}
 #nda-mobile-menu[open]>summary{background:#dcf2f5!important;border-color:#98d8e0!important}
 #nda-mobile-menu>nav{box-shadow:0 26px 46px #062b3b30!important;border-top:1px solid #dcebef;grid-template-columns:minmax(0,1fr);gap:3px!important}
 #nda-mobile-menu>nav>a{padding:5px 12px;min-height:48px!important;border:1px solid transparent!important;border-radius:10px;color:#163d49!important;transition:background .16s,color .16s,transform .16s}
 #nda-mobile-menu>nav>a:hover,#nda-mobile-menu>nav>a:focus-visible,#nda-mobile-menu>nav>a[aria-current="page"]{background:#ebf7f9;color:#067b8b!important}
 #nda-mobile-menu>nav>a [data-nda-icon]{width:20px;height:20px;color:#09879a}
 #nda-mobile-menu>nav>a:last-child{color:#fff!important;background:linear-gradient(120deg,#078e9f,#0db5c1)!important;font-weight:820;margin-top:12px;box-shadow:0 7px 16px #0d9eac22}
 .nda-site .nda-mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
 #nda-source-header .nda-nav-inner{min-height:68px}
 #nda-source-header .nda-logo{letter-spacing:-.9px}
 #nda-source-header .nda-cta{min-height:43px;padding:11px 12px;box-shadow:none}
 #nda-source-header .nda-cta [data-nda-icon]{width:16px;height:16px}
 #nda-mobile-menu>nav{padding:12px 16px max(96px,env(safe-area-inset-bottom))!important}
 .nda-site .nda-cards{grid-template-columns:minmax(0,1fr);gap:17px}
 .nda-site .nda-card{border-radius:19px}
 .nda-site .nda-card>img{aspect-ratio:1.8}
 .nda-site .nda-card>div{padding:21px}
 .nda-site .nda-card [data-nda-icon-chip]{width:46px;height:46px;margin-top:-46px;margin-bottom:1px;border-radius:13px}
 .nda-site .nda-card [data-nda-icon-chip] svg{width:23px;height:23px}
 .nda-site .nda-card h3{font-size:21px}
 .nda-site .nda-mini-grid{grid-template-columns:minmax(0,1fr);gap:14px}
 .nda-site .nda-mini{padding:21px;border-radius:17px}
 .nda-site .nda-mini h3{font-size:18px}
 .nda-site .nda-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .nda-site .nda-links>a{padding:11px 24px 11px 10px;font-size:12px;min-height:47px;gap:7px}
 .nda-site .nda-links>a:before{width:15px;height:15px}
 .nda-site .nda-links>a:after{right:8px;font-size:13px}
 .nda-site .nda-mobile{border-top:1px solid #dbe7e9;backdrop-filter:blur(10px)}
 .nda-site .nda-mobile a{display:flex;justify-content:center;align-items:center;gap:6px;font-size:12px;font-weight:800}
 .nda-site .nda-mobile [data-nda-icon]{height:17px;width:17px}
 .nda-site .nda-section{padding-block:48px}
 .nda-site .nda-hero h1{line-height:1.13}
}
@media(max-width:370px){
 #nda-source-header .nda-cta [data-nda-icon]{display:none}
 .nda-site .nda-links{grid-template-columns:minmax(0,1fr)}
 #nda-source-header .nda-logo small{font-size:8px}
}
@media(prefers-reduced-motion:reduce){
 .nda-site *, .nda-site *::before, .nda-site *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
 .nda-site .nda-card:hover,.nda-site .nda-mini:hover,.nda-site .nda-links>a:hover{transform:none!important}
}
/* Final semantic-icon contrast refinements (v1.0.6). */
#nda-mobile-menu>nav>a:last-child [data-nda-icon]{color:#fff}
.nda-site .nda-links>a[href*="/services/"]:before{-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 7.5a6 6 0 0 1-7.9 5.7l-7 7a2.2 2.2 0 0 1-3.1-3.1l7-7A6 6 0 0 1 16.5 3L13 6.5l4.5 4.5L21 7.5Z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 7.5a6 6 0 0 1-7.9 5.7l-7 7a2.2 2.2 0 0 1-3.1-3.1l7-7A6 6 0 0 1 16.5 3L13 6.5l4.5 4.5L21 7.5Z'/%3E%3C/svg%3E") center/contain no-repeat}
.nda-site .nda-links>a[href*="/guides/"]:before{-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5c3-1 5-1 8 .8 3-1.8 5-1.8 8-.8V5c-3-1.5-5-1.5-8 .3C9 3.5 7 3.5 4 5v14.5ZM12 5.3v15'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5c3-1 5-1 8 .8 3-1.8 5-1.8 8-.8V5c-3-1.5-5-1.5-8 .3C9 3.5 7 3.5 4 5v14.5ZM12 5.3v15'/%3E%3C/svg%3E") center/contain no-repeat}
.nda-site .nda-card strong:after{display:none}
