/* O'Donnell Engineering — Agency/Partner landing.
   Brand colours pulled from Breakdance global-settings.css:
   blue #1387de (primary), green #4ca345 (accent / curve dividers).
   Scoped under .ode-agencies so it never clobbers the Breakdance theme. */

/* Brand tokens at :root so the (sibling) header + footer can resolve them too.
   This file only loads on our pages, so :root is safe here. */
:root {
	--ode-blue: #1387de;
	--ode-blue-dark: #0d74ce;
	--ode-blue-deep: #0b2c54;
	--ode-blue-tint: #e6f4fe;
	--ode-blue-tint2: #f4faff;
	--ode-green: #4ca345;
	--ode-green-dark: #3d8a37;
	--ode-ink: #15263a;
	--ode-muted: #56657a;
	--ode-line: #e2e8f0;
	--ode-soft: #f4f8fc;
	--ode-radius: 8px;
	--ode-maxw: 1180px;
}

/* Brand font on our standalone pages (Breakdance's Montserrat enqueue is bypassed). */
body.ode-standalone { font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }

/* Breakdance prints a gradient-sprite <svg> on wp_body_open that renders at its
   default size and creates a big gap above the header — collapse it to nothing. */
.breakdance-global-gradients-sprite { position: absolute !important; width: 0 !important; height: 0 !important; overflow: hidden !important; }

.ode-agencies {
	--ode-blue: #1387de;
	--ode-blue-dark: #0d74ce;
	--ode-blue-deep: #0b2c54;
	--ode-blue-tint: #e6f4fe;
	--ode-blue-tint2: #f4faff;
	--ode-green: #4ca345;
	--ode-green-dark: #3d8a37;
	--ode-ink: #15263a;
	--ode-muted: #56657a;
	--ode-line: #e2e8f0;
	--ode-soft: #f4f8fc;
	--ode-radius: 8px;
	--ode-maxw: 1180px;
	color: var(--ode-ink);
	font-family: inherit;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
.ode-agencies *, .ode-agencies *::before, .ode-agencies *::after { box-sizing: border-box; }

/* ===== Standalone document (our own header + footer) ===== */
body.ode-standalone { margin: 0; }
.ode-agencies [id] { scroll-margin-top: 92px; }

/* Header */
.ode-site-header { position: sticky; top: 0; z-index: 1000; background: #fff; border-bottom: 1px solid var(--ode-line); box-shadow: 0 2px 14px rgba(11,44,84,.06); font-family: inherit; }
/* Keep the sticky header below the WP admin bar for logged-in users. */
body.admin-bar .ode-site-header { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .ode-site-header { top: 46px; } }
.ode-site-header *, .ode-site-footer * { box-sizing: border-box; }
.ode-site-header__inner { max-width: 1240px; margin: 0 auto; padding: 0 24px; height: 76px; display: flex; align-items: center; gap: 20px; }
.ode-site-header__logo { display: inline-flex; align-items: center; }
.ode-site-header__logo img { height: 46px; width: auto; display: block; }
.ode-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.ode-nav__link { color: var(--ode-ink); font-weight: 600; font-size: .96rem; text-decoration: none; transition: color .15s; }
.ode-nav__link:hover { color: var(--ode-blue); }
.ode-nav__ext { color: var(--ode-muted); }
.ode-nav__cta { margin-left: 2px; }

/* Country selector */
.ode-langswitch { position: relative; }
.ode-langswitch__btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ode-soft); border: 1px solid var(--ode-line); border-radius: 8px; padding: 8px 12px; font: inherit; font-weight: 600; font-size: .9rem; color: var(--ode-ink); cursor: pointer; }
.ode-langswitch__btn:hover { border-color: var(--ode-blue); }
.ode-flag { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 18px; padding: 0 5px; background: var(--ode-blue); color: #fff; border-radius: 3px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; }
.ode-caret { font-size: .7rem; color: var(--ode-muted); }
.ode-langswitch__menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 212px; background: #fff; border: 1px solid var(--ode-line); border-radius: 8px; box-shadow: 0 16px 40px rgba(11,44,84,.16); list-style: none; margin: 0; padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .16s, transform .16s, visibility .16s; }
.ode-langswitch.is-open .ode-langswitch__menu { opacity: 1; visibility: visible; transform: none; }
.ode-langswitch__menu a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 6px; color: var(--ode-ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.ode-langswitch__menu a:hover { background: var(--ode-soft); }
.ode-langswitch__menu a[aria-current="true"] { color: var(--ode-blue); background: var(--ode-blue-tint); }

/* Mobile nav toggle */
.ode-navtoggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--ode-line); border-radius: 8px; background: #fff; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.ode-navtoggle span { width: 22px; height: 2px; background: var(--ode-ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.ode-navtoggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ode-navtoggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ode-navtoggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Footer */
.ode-site-footer { background: linear-gradient(180deg, var(--ode-blue) 0%, var(--ode-blue-dark) 100%); color: #eaf3fc; font-family: inherit; }
.ode-site-footer a { color: #fff; text-decoration: none; }
.ode-site-footer a:hover { text-decoration: underline; }
.ode-site-footer__inner { max-width: 1240px; margin: 0 auto; padding: clamp(40px,6vw,72px) 24px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.ode-foot-logo { display: inline-block; }
.ode-foot-logo img { height: 56px; width: auto; background: #fff; padding: 8px 10px; border-radius: 8px; }
.ode-foot-brand p { margin: 16px 0; color: #cfe3f6; font-size: .95rem; max-width: 330px; }
.ode-foot-col h4 { margin: 0 0 12px; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #9ec6ea; }
.ode-foot-col h4:not(:first-child) { margin-top: 22px; }
.ode-foot-col p { margin: 0; line-height: 1.75; color: #e3eefb; font-size: .96rem; }
.ode-foot-map iframe { width: 100%; height: 100%; min-height: 210px; border: 0; border-radius: 8px; }
.ode-site-footer__bar { max-width: 1240px; margin: 0 auto; padding: 18px 24px; border-top: 1px solid rgba(255,255,255,.16); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; color: #bcd6f0; }

/* Small button */
.ode-btn--sm { padding: .6em 1.05em; font-size: .9rem; box-shadow: none; }

/* Defeat the theme's heading/link colours bleeding into the component */
.ode-agencies h1, .ode-agencies h2, .ode-agencies h3 { color: var(--ode-ink); }
.ode-agencies a { text-decoration: none; }
.ode-agencies a.ode-btn, .ode-agencies button.ode-btn { color: #fff !important; }
.ode-hero .ode-hero__title { color: #fff !important; }
.ode-hero .ode-eyebrow { color: #bfe0ff; }
.ode-hero .ode-hero__lead { color: #eaf4ff; }

.ode-container { width: 100%; max-width: var(--ode-maxw); margin: 0 auto; padding: 0 24px; }
.ode-container--narrow { max-width: 880px; }

/* Sections + layered curve dividers */
.ode-section { position: relative; padding: clamp(56px, 8vw, 110px) 0; }
.ode-section--muted { background: var(--ode-soft); }
.ode-section--blue { background: linear-gradient(160deg, var(--ode-blue) 0%, var(--ode-blue-dark) 60%, var(--ode-blue-deep) 120%); color: #fff; }
.ode-divider { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; pointer-events: none; }
.ode-divider svg { display: block; width: 100%; height: clamp(56px, 7vw, 96px); }
.ode-section, .ode-hero { overflow: hidden; }

.ode-section__title { font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.12; margin: 0 0 1rem; font-weight: 800; letter-spacing: -0.02em; }
.ode-section__title--center { text-align: center; }
.ode-section__intro { text-align: center; color: var(--ode-muted); max-width: 660px; margin: -0.3rem auto 2.8rem; font-size: 1.05rem; }
.ode-lead { font-size: 1.12rem; color: var(--ode-muted); margin: 0 0 1.15rem; }
.ode-section--blue .ode-lead { color: #dcebfa; }

/* Hero */
.ode-hero {
	position: relative;
	padding: clamp(72px, 10vw, 150px) 0 clamp(96px, 12vw, 170px);
	background: linear-gradient(155deg, #1a8fe6 0%, var(--ode-blue) 45%, var(--ode-blue-dark) 100%);
	color: #fff;
}
.ode-hero__inner { position: relative; z-index: 2; max-width: 760px; }
.ode-eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.82rem; font-weight: 700; color: #bfe0ff; margin: 0 0 1rem; }
.ode-hero__title { font-size: clamp(2.3rem, 5.4vw, 3.9rem); line-height: 1.04; margin: 0 0 1.1rem; font-weight: 800; letter-spacing: -0.025em; }
.ode-hero__lead { font-size: clamp(1.1rem, 2.1vw, 1.4rem); max-width: 640px; color: #eaf4ff; margin: 0 0 2rem; }

/* Floating 45-year badge */
.ode-badge { position: absolute; z-index: 3; top: clamp(16px, 4vw, 54px); right: clamp(16px, 5vw, 70px); width: clamp(96px, 13vw, 168px); animation: ode-bob 5s ease-in-out infinite; filter: drop-shadow(0 10px 22px rgba(0,0,0,.28)); }
.ode-badge img { width: 100%; height: auto; display: block; }
@keyframes ode-bob { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }

/* Buttons */
.ode-btn { display: inline-flex; align-items: center; gap: 0.55em; background: var(--ode-green); color: #fff; border: 1px solid var(--ode-green); padding: 0.85em 1.5em; border-radius: 8px; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background .18s, transform .18s; box-shadow: none; }
.ode-btn:hover { background: var(--ode-green-dark); border-color: var(--ode-green-dark); color: #fff; transform: translateY(-2px); }
.ode-btn:focus-visible { outline: 3px solid #a8e0a0; outline-offset: 2px; }
.ode-btn--lg { padding: 1em 1.8em; font-size: 1.08rem; }
.ode-btn--blue { background: var(--ode-blue); border-color: var(--ode-blue); }
.ode-btn--blue:hover { background: var(--ode-blue-dark); border-color: var(--ode-blue-dark); }
.ode-btn--ghost { background: var(--ode-blue); color: #fff; border-color: var(--ode-blue); }
.ode-btn--ghost:hover { background: var(--ode-blue-dark); border-color: var(--ode-blue-dark); }
.ode-btn__icon { display: inline-flex; width: 1.1em; height: 1.1em; }
.ode-btn__icon svg { width: 100%; height: 100%; }
.ode-btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* About — two columns with video */
.ode-about__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.ode-about__title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 1.3rem; line-height: 1.1; }
.ode-about__title span { color: var(--ode-blue); }
.ode-about__video { position: relative; border-radius: 8px; overflow: hidden; box-shadow: 0 26px 60px rgba(11,44,84,.20); background: #0b2c54; aspect-ratio: 16 / 10; }
.ode-about__video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ode-about__video::after { content: ""; position: absolute; inset: 0; border: 4px solid var(--ode-green); border-radius: 8px; pointer-events: none; opacity: .85; }

/* Feature grid */
.ode-grid { display: grid; gap: 24px; }
.ode-grid--why { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ode-feature { background: #fff; border: 1px solid var(--ode-line); border-radius: var(--ode-radius); padding: 30px 26px; transition: box-shadow .2s, transform .2s; }
.ode-feature:hover { box-shadow: 0 16px 40px rgba(19,135,222,.12); transform: translateY(-3px); }
.ode-feature__icon { display: inline-flex; width: 48px; height: 48px; color: var(--ode-blue); background: var(--ode-blue-tint); border-radius: 8px; padding: 11px; margin-bottom: 16px; }
.ode-feature__icon svg { width: 100%; height: 100%; }
.ode-feature__title { font-size: 1.14rem; margin: 0 0 .45rem; font-weight: 700; }
.ode-feature__text { color: var(--ode-muted); margin: 0; font-size: .97rem; }

/* Product grid */
.ode-grid--products { grid-template-columns: repeat(auto-fill, minmax(264px, 1fr)); }
.ode-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ode-line); border-radius: var(--ode-radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.ode-card:hover { box-shadow: 0 18px 44px rgba(11,44,84,.14); transform: translateY(-3px); }
.ode-card__media { aspect-ratio: 4 / 3; background: var(--ode-soft); }
.ode-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ode-card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.ode-card__title { font-size: 1.1rem; margin: 0; font-weight: 700; color: var(--ode-ink); }
.ode-card__excerpt { color: var(--ode-muted); font-size: .92rem; margin: 0; flex: 1; }
.ode-card .ode-btn { align-self: flex-start; margin-top: .4rem; }

/* "See more products" tile — sits where an 8th product card would go and links to the full catalogue. */
.ode-card--more { align-items: center; justify-content: center; text-align: center; gap: .7rem; padding: 32px 24px; min-height: 260px; background: var(--ode-blue-tint2); border: 2px dashed var(--ode-blue); color: var(--ode-blue-deep); }
.ode-card--more:hover { background: var(--ode-blue-tint); }
.ode-card--more__icon { display: inline-flex; width: 54px; height: 54px; color: #fff; background: var(--ode-green); border-radius: 50%; padding: 15px; }
.ode-card--more__icon svg { width: 100%; height: 100%; }
.ode-card--more__title { font-size: 1.18rem; font-weight: 800; color: var(--ode-blue-deep); letter-spacing: -0.01em; }
.ode-card--more__text { font-size: .92rem; color: var(--ode-muted); max-width: 220px; }

/* Modal */
.ode-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.ode-modal[hidden] { display: none; }
.ode-modal__overlay { position: absolute; inset: 0; background: rgba(11,44,84,.62); backdrop-filter: blur(2px); }
.ode-modal__dialog { position: relative; z-index: 1; background: #fff; border-radius: 8px; max-width: 940px; width: 100%; max-height: 88vh; overflow: auto; display: grid; grid-template-columns: 1.05fr 1fr; box-shadow: 0 30px 80px rgba(0,0,0,.35); animation: ode-pop .18s ease; }
@keyframes ode-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.ode-modal__close { position: absolute; top: 12px; right: 14px; z-index: 2; background: rgba(255,255,255,.92); border: none; width: 40px; height: 40px; border-radius: 8px; font-size: 26px; line-height: 1; color: #333; cursor: pointer; }
.ode-modal__close:hover { background: #fff; }
.ode-modal__media { background: var(--ode-soft); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.ode-modal__media > img { width: 100%; border-radius: 8px; object-fit: cover; }
.ode-modal__thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.ode-modal__thumbs img { width: 66px; height: 66px; object-fit: cover; border-radius: 8px; border: 1px solid var(--ode-line); cursor: pointer; transition: border-color .15s, transform .15s; }
.ode-modal__thumbs img:hover { border-color: var(--ode-blue); transform: translateY(-2px); }
.ode-modal__content { padding: 34px 32px; }
.ode-modal__title { font-size: 1.55rem; margin: 0 0 1rem; font-weight: 800; color: var(--ode-blue-deep); }
.ode-modal__desc { color: #38465a; font-size: .98rem; }
.ode-modal__desc img { max-width: 100%; height: auto; border-radius: 8px; }
.ode-modal__content .ode-btn { margin-top: 1.4rem; }

/* Form — blue section with the form in a white padded card */
.ode-contact { background: linear-gradient(160deg, var(--ode-blue) 0%, var(--ode-blue-dark) 100%); }
.ode-contact .ode-section__title { color: #fff; }
.ode-contact .ode-lead { color: #e8f2fc; }
.ode-form { margin-top: 1.9rem; background: #fff; border-radius: 8px; padding: clamp(24px, 4vw, 42px); box-shadow: 0 24px 60px rgba(11,44,84,.26); }
.ode-field { margin-bottom: 1.15rem; display: flex; flex-direction: column; }
.ode-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ode-field label { font-weight: 600; font-size: .92rem; margin-bottom: .42rem; }
.ode-req { color: var(--ode-green); }
.ode-field input, .ode-field textarea { width: 100%; padding: .85em .95em; border: 1.5px solid #cbd5e1; border-radius: 8px; font: inherit; color: var(--ode-ink); background: #f8fafc; transition: border-color .15s, box-shadow .15s, background .15s; }
.ode-field input::placeholder, .ode-field textarea::placeholder { color: #93a3b5; }
.ode-field input:hover, .ode-field textarea:hover { border-color: #9fb0c2; }
.ode-field input:focus, .ode-field textarea:focus { outline: none; border-color: var(--ode-blue); background: #fff; box-shadow: 0 0 0 3px rgba(19,135,222,.16); }
.ode-field textarea { resize: vertical; }
.ode-field.is-invalid input, .ode-field.is-invalid textarea { border-color: #d23b2c; box-shadow: 0 0 0 3px rgba(210,59,44,.12); }
.ode-error { color: #d23b2c; font-size: .84rem; margin-top: .35rem; min-height: 1em; }
.ode-form__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: .4rem; }
.ode-privacy { color: var(--ode-muted); font-size: .82rem; margin: 0; }
.ode-form__status { margin: 1rem 0 0; font-weight: 600; }
.ode-form__status.is-ok { color: var(--ode-green-dark); }
.ode-form__status.is-err { color: #d23b2c; }
.ode-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Header / footer responsive behaviour */
@media (max-width: 980px) {
	.ode-navtoggle { display: flex; }
	.ode-nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; background: #fff; border-bottom: 1px solid var(--ode-line); box-shadow: 0 18px 34px rgba(11,44,84,.12); padding: 12px 20px 20px; margin: 0; display: none; }
	.ode-nav.is-open { display: flex; }
	.ode-nav__link, .ode-nav__ext { padding: 12px 4px; border-bottom: 1px solid var(--ode-soft); font-size: 1.02rem; }
	.ode-langswitch { margin-top: 10px; }
	.ode-langswitch__btn { width: 100%; justify-content: flex-start; }
	.ode-langswitch__menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 1px solid var(--ode-line); margin-top: 6px; }
	.ode-nav__cta { margin: 12px 0 0; justify-content: center; }
	.ode-site-footer__inner { grid-template-columns: 1fr 1fr; }
	.ode-foot-brand { grid-column: 1 / -1; }
	.ode-foot-map { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
	.ode-site-footer__inner { grid-template-columns: 1fr; }
}

/* Responsive */
@media (max-width: 880px) {
	.ode-about__grid { grid-template-columns: 1fr; }
	.ode-about__video { aspect-ratio: 16 / 11; max-width: 520px; margin: 0 auto; }
	.ode-modal__dialog { grid-template-columns: 1fr; }
	.ode-field-row { grid-template-columns: 1fr; }
	.ode-badge { width: clamp(80px, 22vw, 110px); }
}
@media (prefers-reduced-motion: reduce) {
	.ode-agencies *, .ode-modal__dialog, .ode-badge { animation: none !important; transition: none !important; }
}
