/* Ridec v2 — modern editorial layer */
:root {
  --ridec-red: #e30620;
  --ridec-red-dark: #b90019;
  --ridec-bg: #101010;
  --ridec-bg-soft: #171717;
  --ridec-card: #1c1c1c;
  --ridec-ink: #f7f4ef;
  --ridec-muted: #aaa7a2;
  --ridec-line: rgba(255,255,255,.12);
  --ridec-off: #f2efe9;
  --ridec-radius: 18px;
  --ridec-width: 1240px;
  --ridec-shadow: 0 28px 80px rgba(0,0,0,.34);
}

/* Keep Elementor's generated global palette aligned with the Ridec identity. */
body,
body.elementor-page,
body[class*="elementor-kit-"],
.elementor {
  --e-global-color-primary: #e30620 !important;
  --e-global-color-secondary: #f7f4ef !important;
  --e-global-color-text: #aaa7a2 !important;
  --e-global-color-accent: #e30620 !important;
}

body { background: var(--ridec-bg); font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif; }
body::selection { background: var(--ridec-red); color: #fff; }
a, button, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #ff5a6d; outline-offset: 4px; }
.rid-skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 12px 18px; border-radius: 8px; background: #fff; color: #111; transform: translateY(-150%); transition: transform .2s ease; }
.rid-skip-link:focus { transform: translateY(0); }

.rid-section { padding: clamp(88px, 10vw, 144px) 0; }
.rid-section--soft { background: #171717; }
.rid-section--grid { background-color: #121212; background-size: 140px 140px; }
.rid-title { font-size: clamp(48px, 6.7vw, 94px); font-weight: 650; letter-spacing: -.06em; line-height: .98; text-wrap: balance; }
.rid-title--sm { max-width: 850px; font-size: clamp(38px, 4.8vw, 68px); line-height: 1.02; }
.rid-lead { color: #c7c4be; font-size: clamp(18px, 1.8vw, 23px); line-height: 1.55; }
.rid-copy { color: #b9b6b0; font-size: 17px; }
.rid-eyebrow { gap: 12px; margin-bottom: 24px; font-size: 11px; letter-spacing: .2em; }
.rid-eyebrow::before { width: 26px; }

.rid-header { top: 16px; border: 0; pointer-events: none; }
.rid-nav { min-height: 72px; padding: 0 20px; border: 1px solid rgba(255,255,255,.13); border-radius: 14px; background: rgba(15,15,15,.58); box-shadow: 0 8px 30px rgba(0,0,0,.14); backdrop-filter: blur(16px); pointer-events: auto; transition: min-height .3s ease, background .3s ease, border-color .3s ease; }
.rid-header.is-scrolled { background: transparent; box-shadow: none; backdrop-filter: none; }
.rid-header.is-scrolled .rid-nav { min-height: 64px; border-color: rgba(255,255,255,.17); background: rgba(13,13,13,.92); box-shadow: 0 15px 40px rgba(0,0,0,.26); }
.rid-logo { font-size: 22px; letter-spacing: -.07em; }
.rid-menu { gap: 26px; }
.rid-menu a { padding: 12px 0; font-size: 11px; letter-spacing: .1em; }
.rid-menu > li:last-child > a { padding: 11px 17px; border-radius: 8px; background: var(--ridec-red); color: #fff; }
.rid-menu > li:last-child > a::after { display: none; }
.rid-menu > li:last-child > a:hover { background: #f21832; }
.rid-scroll-progress { position: fixed; z-index: 22; top: 0; right: 0; left: 0; height: 2px; pointer-events: none; }
.rid-scroll-progress span { display: block; width: 0; height: 100%; background: var(--ridec-red); }
.admin-bar .rid-header { top: 48px; }

.rid-slider { min-height: min(900px, 100svh); border-bottom-right-radius: 36px; border-bottom-left-radius: 36px; }
.rid-slide::before { background: linear-gradient(90deg, rgba(8,8,8,.94) 0%, rgba(8,8,8,.64) 46%, rgba(8,8,8,.24) 78%, rgba(8,8,8,.6)); }
.rid-slide::after { background-size: 150px 150px; opacity: .24; }
.rid-slide__content { padding-top: 116px; }
.rid-slide__content .rid-title { max-width: 960px; }
.rid-slide__content .rid-lead { max-width: 700px; }
.rid-hero__index { margin-bottom: 36px; color: rgba(255,255,255,.7); font-size: 11px; }
.rid-slider__controls { bottom: 42px; }
.rid-slider__arrow { width: 54px; height: 54px; border-radius: 12px; backdrop-filter: blur(12px); }
.rid-slider__dot { border-radius: 3px; }

.rid-page-hero { min-height: 650px; place-items: end start; text-align: left; border-bottom-right-radius: 34px; border-bottom-left-radius: 34px; overflow: hidden; }
.rid-page-hero::before { background: linear-gradient(90deg, rgba(8,8,8,.9), rgba(8,8,8,.4) 68%, rgba(8,8,8,.58)); }
.rid-page-hero::after { background-size: 150px 150px; opacity: .32; }
.rid-page-hero__inner, .rid-page-hero .rid-hero__content { padding-top: 180px; padding-bottom: 90px; text-align: left; }
.rid-page-hero h1, .rid-page-hero .rid-title .elementor-heading-title { max-width: 1020px; margin: 0; color: #fff; font-size: clamp(54px, 7.2vw, 104px); font-weight: 650; letter-spacing: -.06em; line-height: .96; text-wrap: balance; }
.rid-page-hero p, .rid-page-hero .rid-lead { max-width: 760px; margin: 26px 0 0; color: rgba(255,255,255,.76); }
.rid-page-hero .rid-eyebrow { margin-bottom: 24px; color: #ff4a60; }
.rid-breadcrumbs { display: flex; gap: 10px; align-items: center; margin-bottom: 54px; color: rgba(255,255,255,.56); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.rid-breadcrumbs a:hover { color: #fff; }
.rid-page-hero__lead { font-size: clamp(18px, 2vw, 24px); line-height: 1.5; }
.rid-hero-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 36px; }
.rid-hero-meta span { padding: 8px 13px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(0,0,0,.2); color: rgba(255,255,255,.8); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; backdrop-filter: blur(10px); }

.rid-proof-strip { border-bottom: 1px solid var(--ridec-line); background: #0d0d0d; }
.rid-proof-strip .rid-container { display: grid; grid-template-columns: repeat(4, 1fr); }
.rid-proof-strip span { padding: 24px; border-right: 1px solid var(--ridec-line); color: #aaa; font-size: 11px; letter-spacing: .16em; text-align: center; text-transform: uppercase; }
.rid-proof-strip span:first-child { border-left: 1px solid var(--ridec-line); }

.rid-btn { min-height: 56px; padding: 0 24px; border-radius: 9px; }
.rid-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(227,6,32,.22); }
.rid-btn--ghost:hover { box-shadow: none; }
.rid-btn--light { border-color: var(--ridec-off); background: var(--ridec-off); color: #131313; }
.rid-btn--light:hover { background: #fff; color: #111; box-shadow: 0 14px 32px rgba(0,0,0,.15); }
.elementor-page .elementor-widget-text-editor a:not(.rid-btn) { color: var(--ridec-red); }
.elementor-page .rid-btn .elementor-button,
.elementor-page .elementor-button.rid-btn { border-color: var(--ridec-red) !important; background-color: var(--ridec-red) !important; color: #fff !important; }
.elementor-page .rid-btn .elementor-button:hover,
.elementor-page .elementor-button.rid-btn:hover { border-color: var(--ridec-red-dark) !important; background-color: var(--ridec-red-dark) !important; }
.elementor-page .rid-btn--light .elementor-button { border-color: var(--ridec-off) !important; background: var(--ridec-off) !important; color: #131313 !important; }
.rid-text-link { display: inline-flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.3); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.rid-text-link span { color: var(--ridec-red); transition: transform .2s ease; }
.rid-text-link:hover span { transform: translate(3px,-3px); }
.rid-center-action { display: flex; justify-content: center; margin-top: 46px; }

.rid-section-head { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(260px,.5fr); gap: 60px; align-items: end; }
.rid-section-head > p { max-width: 390px; margin: 0 0 8px; color: var(--ridec-muted); }
.rid-section-head .rid-title { margin-bottom: 0; }
.rid-split { gap: clamp(54px, 8vw, 110px); }
.rid-visual { min-height: 680px; border-radius: var(--ridec-radius); box-shadow: var(--ridec-shadow); }
.rid-visual::after { top: -12px; right: -12px; border-width: 5px; border-radius: 0 10px 0 0; }
.rid-note { right: -22px; bottom: 30px; border-radius: 12px; }

.rid-grid { gap: 20px; }
.rid-grid--4 { grid-template-columns: repeat(4,1fr); }
.rid-services { margin-top: 56px; }
.rid-bento { grid-template-columns: repeat(12,1fr); }
.rid-bento .rid-card { grid-column: span 4; }
.rid-bento .rid-card:first-child, .rid-bento .rid-card:nth-child(5) { grid-column: span 7; }
.rid-bento .rid-card:nth-child(2), .rid-bento .rid-card:nth-child(6) { grid-column: span 5; }
.rid-card { min-height: 0; border: 1px solid var(--ridec-line); border-radius: var(--ridec-radius); background: #1b1b1b; box-shadow: none; transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease; }
.rid-card:hover { border-color: rgba(255,255,255,.28); transform: translateY(-7px); box-shadow: 0 30px 70px rgba(0,0,0,.26); }
.rid-card__media { display: block; height: 310px; }
.rid-card__media img { object-fit: cover; filter: saturate(.88) contrast(1.02); transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .4s ease; }
.rid-card:hover .rid-card__media img { transform: scale(1.055); filter: saturate(1.08); }
.rid-card__body { padding: 30px 30px 34px; }
.rid-card__number { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: rgba(227,6,32,.12); }
.rid-card h3 { font-size: clamp(21px,2.1vw,29px); }
.rid-card p { min-height: 48px; }
.rid-card__link { margin-top: 24px; }

.rid-process { counter-reset: process; }
.rid-step { min-height: 260px; padding: 32px; border-radius: 14px; overflow: hidden; transition: border-color .3s ease, background .3s ease; }
.rid-step::before { position: absolute; top: 26px; right: 28px; color: rgba(255,255,255,.1); font-size: 52px; }
.rid-step:hover { border-color: rgba(227,6,32,.55); background: rgba(227,6,32,.035); }
.rid-step h3 { margin-top: 82px; font-size: 22px; }
.rid-checklist { display: grid; gap: 2px; padding: 8px; border: 1px solid var(--ridec-line); border-radius: 16px; background: #181818; }
.rid-checklist span { position: relative; padding: 19px 22px 19px 54px; border-radius: 10px; color: #d1cec8; }
.rid-checklist span::before { content: "✓"; position: absolute; left: 20px; color: var(--ridec-red); font-weight: 800; }
.rid-checklist span:hover { background: rgba(255,255,255,.035); }

.rid-projects-modern { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 58px; }
.rid-project-modern { position: relative; min-height: 500px; border-radius: var(--ridec-radius); overflow: hidden; }
.rid-project-modern--wide { grid-column: 1 / -1; min-height: 640px; }
.rid-projects-modern > .rid-project-modern:last-child:nth-child(even) { grid-column: 1 / -1; min-height: 560px; }
.rid-project-modern img { height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.rid-project-modern::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 42%,rgba(0,0,0,.9)); }
.rid-project-modern:hover img { transform: scale(1.045); }
.rid-project-modern__overlay { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; padding: 34px; }
.rid-project-modern__overlay span, .rid-project-card__body p { color: #ff5367; font-size: 10px; font-style: normal; letter-spacing: .15em; text-transform: uppercase; }
.rid-project-modern__overlay h3 { margin: 6px 0; font-size: 32px; }
.rid-project-modern__overlay i { color: rgba(255,255,255,.7); font-size: 12px; font-style: normal; }

.rid-quote { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(240px,.5fr); gap: 70px; align-items: end; padding: 62px; border: 1px solid var(--ridec-line); border-radius: 20px; background: linear-gradient(135deg,#1c1c1c,#151515); }
.rid-quote > p { max-width: 920px; margin: 0; font-size: clamp(35px,5vw,66px); font-weight: 550; letter-spacing: -.045em; line-height: 1.07; }
.rid-quote > div strong, .rid-quote > div span { display: block; }
.rid-quote > div span { margin-top: 8px; color: var(--ridec-muted); font-size: 12px; }

.rid-band { padding: 76px 0; background: var(--ridec-red); }
.rid-band__inner > div { max-width: 820px; }
.rid-band .rid-eyebrow { margin-bottom: 12px; color: #fff; opacity: .72; }
.rid-band h2 { font-size: clamp(35px,5.2vw,68px); letter-spacing: -.055em; line-height: 1; }

.rid-gallery { columns: initial; display: grid; grid-template-columns: 1.18fr .82fr; gap: 20px; }
.rid-gallery figure { margin: 0; border-radius: var(--ridec-radius); overflow: hidden; }
.rid-gallery img { height: 680px; max-height: none; }
.rid-gallery figure:nth-child(2) img { height: 520px; }
.rid-gallery-grid .rid-gallery-item { overflow: hidden; border: 1px solid var(--ridec-line); border-radius: var(--ridec-radius); background: #181818; }
.rid-gallery-grid .rid-gallery-item img { width: 100%; height: 560px; object-fit: cover; filter: saturate(.9) contrast(1.02); }
.rid-gallery-grid .rid-gallery-item p { margin: 0; padding: 18px 22px; color: #d5d2cc; font-size: 12px; }
.rid-gallery figcaption { display: grid; gap: 4px; padding: 18px 22px; background: #f3f0ea; }
.rid-gallery figcaption span { color: var(--ridec-red); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.rid-related { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 52px; border: 1px solid var(--ridec-line); border-radius: 18px; background: #171717; }
.rid-related h2 { margin: 0 0 12px; font-size: clamp(30px,4vw,54px); letter-spacing: -.04em; }
.rid-related p:not(.rid-eyebrow) { max-width: 680px; margin: 0; color: var(--ridec-muted); }

.rid-filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.rid-filters button { padding: 11px 18px; border: 1px solid var(--ridec-line); border-radius: 999px; background: transparent; color: #aaa; cursor: pointer; font-size: 11px; text-transform: uppercase; }
.rid-filters button:hover, .rid-filters button.is-active { border-color: var(--ridec-red); background: var(--ridec-red); color: #fff; }
.rid-project-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; margin-top: 56px; }
.rid-project-card { border: 1px solid var(--ridec-line); border-radius: var(--ridec-radius); overflow: hidden; background: #181818; transition: opacity .25s ease, transform .35s ease, border-color .35s ease; }
.rid-project-card[hidden] { display: none; }
.rid-project-card:hover { border-color: rgba(255,255,255,.3); transform: translateY(-6px); }
.rid-project-card__image { position: relative; height: 480px; overflow: hidden; }
.rid-project-card__image img { height: 100%; object-fit: cover; transition: transform .7s ease; }
.rid-project-card:hover img { transform: scale(1.04); }
.rid-project-card__image > span { position: absolute; top: 20px; right: 20px; display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; background: rgba(10,10,10,.7); color: #fff; font-size: 11px; backdrop-filter: blur(10px); }
.rid-project-card__body { padding: 28px; }
.rid-project-card__body p { margin: 0; }
.rid-project-card__body h2 { margin: 6px 0 18px; font-size: 32px; }
.rid-project-card__body > span { color: #aaa; font-size: 12px; }

.rid-case-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 90px; align-items: end; }
.rid-case-columns { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--ridec-line); border-radius: var(--ridec-radius); overflow: hidden; }
.rid-case-columns article { min-height: 340px; padding: 38px; border-right: 1px solid var(--ridec-line); }
.rid-case-columns article:last-child { border-right: 0; }
.rid-case-columns span { color: var(--ridec-red); font-size: 11px; letter-spacing: .16em; }
.rid-case-columns h3 { margin: 80px 0 14px; font-size: 28px; }
.rid-case-columns p { color: var(--ridec-muted); }
.rid-case-gallery { display: grid; grid-template-columns: 1.25fr .75fr; gap: 20px; align-items: start; }
.rid-case-gallery img { height: 740px; border-radius: var(--ridec-radius); object-fit: cover; }
.rid-case-gallery img:nth-child(2) { height: 560px; }
.rid-case-gallery--many { grid-template-columns: repeat(12,1fr); align-items: stretch; }
.rid-case-gallery--many img,
.rid-case-gallery--many img:nth-child(2) { grid-column: span 6; width: 100%; height: 520px; }
.rid-case-gallery--many img:first-child { grid-column: 1 / -1; height: 720px; }
.rid-case-gallery--many img:nth-child(3n + 4) { grid-column: span 5; }
.rid-case-gallery--many img:nth-child(3n + 5) { grid-column: span 7; }
.rid-case-gallery--many img[src*="ridec-villa-entry"],
.rid-case-gallery--many img[src*="ridec-villa-handle"],
.rid-case-gallery--many img[src*="ridec-window-plan"],
.rid-case-gallery--many img[src*="ridec-aluminium-installation"],
.rid-case-gallery--many img[src*="ridec-wood-door-set"],
.rid-case-gallery--many img[src*="ridec-wood-frame"],
.rid-case-gallery--many img[src*="ridec-wood-door-panel"],
.rid-case-gallery--many img[src*="ridec-wood-exterior"] { background: #171717; object-fit: contain; }
.rid-next-project { display: flex; align-items: center; justify-content: space-between; }
.rid-next-project p { margin: 0; color: var(--ridec-red); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.rid-next-project h2 { margin: 4px 0 0; font-size: clamp(42px,6vw,82px); letter-spacing: -.055em; }

.rid-timeline { margin-top: 60px; border-top: 1px solid var(--ridec-line); }
.rid-timeline article { display: grid; grid-template-columns: 110px 1fr; gap: 40px; padding: 34px 8px; border-bottom: 1px solid var(--ridec-line); transition: background .25s ease, padding .25s ease; }
.rid-timeline article:hover { padding-right: 24px; padding-left: 24px; background: rgba(255,255,255,.025); }
.rid-timeline > article > span { color: var(--ridec-red); font-size: 12px; letter-spacing: .15em; }
.rid-timeline h3 { margin: 0 0 8px; font-size: clamp(30px,4vw,52px); letter-spacing: -.04em; }
.rid-timeline p { max-width: 680px; margin: 0; color: var(--ridec-muted); }

.rid-faq-grid { grid-template-columns: .72fr 1.28fr; gap: 90px; }
.rid-faq-nav { top: 118px; padding: 38px; border: 1px solid var(--ridec-line); border-radius: var(--ridec-radius); background: #191919; }
.rid-faq-nav h2 { margin: 0 0 14px; font-size: 30px; line-height: 1.15; }
.rid-faq-nav p:not(.rid-eyebrow) { color: var(--ridec-muted); }
.rid-faq-nav .rid-btn { margin-top: 18px; }
.rid-faq details { border: 1px solid transparent; border-bottom-color: var(--ridec-line); background: transparent; transition: background .25s ease, border-color .25s ease; }
.rid-faq details[open] { border-color: rgba(255,255,255,.11); border-radius: 12px; background: #191919; }
.rid-faq summary { padding: 24px; font-size: 17px; }
.rid-faq details p { padding: 0 24px 26px 130px; }

.rid-contact-layout { grid-template-columns: 1.08fr .72fr; gap: 90px; }
.rid-contact-card { position: sticky; top: 118px; padding: 42px; border: 1px solid var(--ridec-line); border-radius: var(--ridec-radius); background: #191919; }
.rid-field input, .rid-field textarea, .rid-field select { border-color: rgba(255,255,255,.14); border-radius: 10px; background: #f3f0ea; }
.rid-field input:hover, .rid-field textarea:hover, .rid-field select:hover { border-color: rgba(255,255,255,.32); }

.rid-footer { background: #0a0a0a; }
.rid-footer__top { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 58px 0; border-bottom: 1px solid var(--ridec-line); }
.rid-footer__top p { margin: 0; color: #c4c1bc; font-size: clamp(24px,3vw,38px); font-weight: 600; letter-spacing: -.035em; }
.rid-footer__top a { display: flex; gap: 18px; align-items: center; font-weight: 700; }
.rid-footer__top a span { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; background: var(--ridec-red); }
.rid-footer__main { grid-template-columns: 1.4fr repeat(3,.65fr); gap: 54px; padding: 76px 0; }
.rid-footer__brand p { max-width: 340px; }
.rid-footer h3 { color: #fff; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.rid-footer__bottom .rid-container { display: flex; justify-content: space-between; gap: 20px; }

/* Elementor v2 integration */
.elementor-page .rid-bento.e-con { grid-template-columns: repeat(12,1fr); }
.elementor-page .rid-bento.e-con > .rid-card { grid-column: span 4; }
.elementor-page .rid-bento.e-con > .rid-card:first-child,
.elementor-page .rid-bento.e-con > .rid-card:nth-child(5) { grid-column: span 7; }
.elementor-page .rid-bento.e-con > .rid-card:nth-child(2),
.elementor-page .rid-bento.e-con > .rid-card:nth-child(6) { grid-column: span 5; }
.elementor-page .rid-grid--4.e-con { grid-template-columns: repeat(4,1fr); }
.elementor-page .rid-card__media { height: 310px !important; min-height: 310px; overflow: hidden; }
.elementor-page .rid-card__media .elementor-widget-container,
.elementor-page .rid-card__media a,
.elementor-page .rid-card__media picture { display: block; width: 100%; height: 100%; }
.elementor-page .rid-card__media img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
.elementor-page .rid-visual { height: 680px; min-height: 680px; overflow: hidden; }
.elementor-page .rid-visual .elementor-widget-container,
.elementor-page .rid-visual a,
.elementor-page .rid-visual picture { display: block; width: 100%; height: 100%; }
.elementor-page .rid-visual img { width: 100% !important; height: 100% !important; object-fit: cover !important; filter: saturate(.9) contrast(1.02); }
.elementor-page .rid-gallery-item > .elementor-widget-image,
.elementor-page .rid-gallery-item > .elementor-widget-image .elementor-widget-container { height: 560px; }
.elementor-page .rid-gallery-item > .elementor-widget-image img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
.elementor-page .rid-hero-meta .elementor-widget-container { display: flex; flex-wrap: wrap; gap: 9px; }
.elementor-page .rid-band__inner.e-con { display: grid; grid-template-columns: 1fr auto; align-items: center; }
.elementor-page .rid-band__inner.e-con > .rid-eyebrow,
.elementor-page .rid-band__inner.e-con > .elementor-widget-heading:not(.rid-btn) { grid-column: 1; }
.elementor-page .rid-band__inner.e-con > .rid-btn { grid-column: 2; grid-row: 1 / span 2; }

@media (max-width: 1080px) {
  .rid-menu { gap: 17px; }
  .rid-bento .rid-card { grid-column: span 6 !important; }
  .rid-grid--4 { grid-template-columns: repeat(2,1fr); }
  .rid-section-head { grid-template-columns: 1fr; gap: 24px; }
  .rid-footer__main { grid-template-columns: 1.3fr repeat(3,.7fr); gap: 30px; }
  .elementor-page .rid-bento.e-con > .rid-card { grid-column: span 6 !important; }
  .elementor-page .rid-grid--4.e-con { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 980px) {
  .rid-header { top: 10px; }
  .rid-nav { min-height: 66px; }
  .rid-menu-toggle { display: grid; gap: 6px; place-content: center; border-radius: 9px; }
  .rid-menu-toggle span { display: block; width: 20px; height: 2px; background: #fff; transition: transform .25s ease; }
  .rid-menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .rid-menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .rid-menu { top: 76px; right: 0; left: 0; padding: 22px; border: 1px solid var(--ridec-line); border-radius: 14px; background: rgba(18,18,18,.98); }
  .rid-menu > li:last-child > a { display: block; text-align: center; }
  .rid-page-hero { min-height: 590px; }
  .rid-page-hero__inner, .rid-page-hero .rid-hero__content { padding-top: 150px; padding-bottom: 70px; }
  .rid-breadcrumbs { margin-bottom: 40px; }
  .rid-project-modern--wide { min-height: 520px; }
  .rid-project-modern { min-height: 420px; }
  .rid-quote, .rid-case-intro { grid-template-columns: 1fr; gap: 34px; }
  .rid-case-columns { grid-template-columns: 1fr; }
  .rid-case-columns article { min-height: 0; border-right: 0; border-bottom: 1px solid var(--ridec-line); }
  .rid-case-columns article:last-child { border-bottom: 0; }
  .rid-case-columns h3 { margin-top: 34px; }
  .rid-faq-grid { grid-template-columns: 1fr; }
  .rid-faq-nav, .rid-contact-card { position: static; }
  .rid-footer__main { grid-template-columns: 1.4fr 1fr 1fr; }
  .rid-footer__main > div:last-child { grid-column: 2 / -1; }
}

@media (max-width: 680px) {
  .rid-container { width: min(calc(100% - 30px), var(--ridec-width)); }
  .rid-section { padding: 76px 0; }
  .rid-title { font-size: clamp(43px,13vw,64px); }
  .rid-title--sm { font-size: clamp(35px,10vw,50px); }
  .rid-slider { min-height: 780px; border-radius: 0 0 22px 22px; }
  .rid-slide__content { padding-top: 110px; padding-bottom: 100px; }
  .rid-slider__controls { bottom: 24px; }
  .rid-proof-strip .rid-container { grid-template-columns: 1fr 1fr; }
  .rid-proof-strip span:nth-child(2) { border-right: 0; }
  .rid-proof-strip span:nth-child(-n+2) { border-bottom: 1px solid var(--ridec-line); }
  .rid-page-hero { min-height: 570px; border-radius: 0 0 22px 22px; }
  .rid-page-hero h1, .rid-page-hero .rid-title .elementor-heading-title { font-size: clamp(48px,14vw,70px); }
  .rid-page-hero__inner, .rid-page-hero .rid-hero__content { padding-top: 130px; padding-bottom: 54px; }
  .rid-breadcrumbs { margin-bottom: 28px; }
  .rid-hero-meta { gap: 6px; }
  .rid-bento { grid-template-columns: 1fr; }
  .rid-bento .rid-card { grid-column: auto !important; }
  .rid-card__media { height: 250px; }
  .rid-grid--4 { grid-template-columns: 1fr; }
  .rid-visual { min-height: 500px; }
  .rid-note { right: 12px; bottom: 18px; }
  .rid-projects-modern, .rid-project-grid, .rid-case-gallery, .rid-gallery { grid-template-columns: 1fr; }
  .rid-project-modern--wide { grid-column: auto; min-height: 450px; }
  .rid-project-modern { min-height: 420px; }
  .rid-projects-modern > .rid-project-modern:last-child:nth-child(even) { min-height: 430px; }
  .rid-project-card__image { height: 360px; }
  .rid-gallery img, .rid-gallery figure:nth-child(2) img, .rid-case-gallery img, .rid-case-gallery img:nth-child(2) { height: 430px; }
  .rid-case-gallery--many { grid-template-columns: 1fr; }
  .rid-case-gallery--many img,
  .rid-case-gallery--many img:nth-child(2),
  .rid-case-gallery--many img:first-child,
  .rid-case-gallery--many img:nth-child(3n + 4),
  .rid-case-gallery--many img:nth-child(3n + 5) { grid-column: auto; height: 430px; }
  .rid-quote { padding: 34px 26px; }
  .rid-related, .rid-next-project, .rid-footer__top { align-items: flex-start; flex-direction: column; }
  .rid-timeline article { grid-template-columns: 48px 1fr; gap: 16px; }
  .rid-faq details p { padding-left: 24px; }
  .rid-faq summary span { display: block; margin-bottom: 5px; }
  .rid-footer__main { grid-template-columns: 1fr 1fr; }
  .rid-footer__brand { grid-column: 1 / -1; }
  .rid-footer__main > div:last-child { grid-column: 1 / -1; }
  .rid-footer__bottom .rid-container { flex-direction: column; }
  .elementor-page .rid-bento.e-con { grid-template-columns: 1fr; }
  .elementor-page .rid-bento.e-con > .rid-card { grid-column: auto !important; }
  .elementor-page .rid-card__media { height: 260px !important; min-height: 260px; }
  .elementor-page .rid-visual { height: 500px; min-height: 500px; }
  .elementor-page .rid-gallery-item > .elementor-widget-image,
  .elementor-page .rid-gallery-item > .elementor-widget-image .elementor-widget-container { height: 400px; }
  .elementor-page .rid-grid--4.e-con { grid-template-columns: 1fr; }
  .elementor-page .rid-band__inner.e-con { grid-template-columns: 1fr; }
  .elementor-page .rid-band__inner.e-con > .rid-btn { grid-column: 1; grid-row: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .rid-card, .rid-project-modern img, .rid-project-card, .rid-project-card img, .rid-timeline article { transition: none; }
}
