/*
Theme Name: Opt for that
Template: twentytwentyfive
Version: 1.0.0
Description: Child theme of Twenty Twenty-Five for Opt for that. Resin violet palette with Archivo and IBM Plex Mono.
Author: Opt for that
Requires at least: 6.7
Text Domain: optforthat
*/

:root {
	--oft-bg: #F6F5FA;
	--oft-surface: #FFFFFF;
	--oft-ink: #14111F;
	--oft-muted: #4F4A60;
	--oft-accent: #6D28D9;
	--oft-accent-hover: #5B21B6;
	--oft-tint: #EFEBFA;
	--oft-line: #E1DEEC;
	--oft-line-strong: #D3CEE3;
	--oft-dark: #14111F;
	--oft-dark-line: #2C2840;
	--oft-dark-muted: #C9C4D8;
	--oft-mono: "IBM Plex Mono", ui-monospace, monospace;
}

body { background: var(--oft-bg); }
body .wp-site-blocks > * { margin-block: 0; }
body .oft-main > * { margin-block: 0; }
body .oft-section .wp-block-group > *,
body .oft-header .wp-block-group > *,
body .oft-footer .wp-block-group > * { margin-block: 0; }
body .oft-section :is(h1, h2, h3, p, figure),
body .oft-header :is(p, figure),
body .oft-footer :is(p, figure) { margin: 0; }
a:focus-visible, .wp-block-button__link:focus-visible { outline: 3px solid var(--oft-accent); outline-offset: 2px; }

.oft-container { box-sizing: border-box; width: 100%; max-width: 1264px; margin-inline: auto; padding-inline: 32px; }
@media (max-width: 600px) { .oft-container { padding-inline: 20px; } }

/* Header */
.oft-header { background: var(--oft-bg); border-bottom: 1px solid var(--oft-line); position: relative; z-index: 10; }
.oft-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding-block: 16px; }
.oft-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--oft-ink); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.oft-logo:hover { color: var(--oft-ink); }
.oft-logo__mark { width: 30px; height: 30px; border-radius: 8px; background: var(--oft-accent); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.oft-header__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.oft-header .wp-block-navigation { font-size: 16px; font-weight: 500; }
.oft-header .wp-block-navigation .wp-block-navigation__container { gap: 8px 28px; }
.oft-header .wp-block-navigation a { text-decoration: none; padding-block: 10px; }
.oft-header .wp-block-navigation a:hover { color: var(--oft-accent); }
.oft-header .wp-block-navigation .current-menu-item > a { color: var(--oft-accent); font-weight: 700; }
.oft-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--oft-bg); color: var(--oft-ink); padding: 24px; }
.oft-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { font-size: 22px; gap: 12px; }
.oft-header__cta .wp-block-button__link { background: var(--oft-ink); color: #FFFFFF; padding: 12px 18px; font-size: 16px; border-radius: 10px; }
.oft-header__cta .wp-block-button__link:hover { background: #2E2840; color: #FFFFFF; }
@media (max-width: 600px) { .oft-header__cta { display: none; } }

/* Footer */
.oft-footer { background: var(--oft-dark); color: var(--oft-dark-muted); border-top: 1px solid var(--oft-dark-line); }
.oft-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 32px; padding-block: 40px; }
.oft-footer__brand { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.oft-footer .oft-logo, .oft-footer .oft-logo:hover { color: #FFFFFF; font-size: 18px; padding: 0; }
.oft-footer__tagline { font-size: 15px; }
.oft-footer__nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.oft-footer a { color: var(--oft-dark-muted); text-decoration: none; padding-block: 8px; font-size: 15px; }
.oft-footer a:hover { color: #FFFFFF; }
.oft-footer__copy { font-size: 14px; }

/* Sections */
.oft-section { padding-block: 96px; }
@media (max-width: 782px) { .oft-section { padding-block: 64px; } }
.oft-section--surface { background: var(--oft-surface); border-block: 1px solid var(--oft-line); }
.oft-section--dark { background: var(--oft-dark); color: #FFFFFF; }
.oft-section--dark h2 { color: #FFFFFF; }
.oft-eyebrow { font-family: var(--oft-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--oft-accent); }
.oft-section--dark .oft-eyebrow { color: #C4B5FD; }
.oft-lead { font-size: 20px; line-height: 1.55; color: var(--oft-muted); max-width: 34em; }
.oft-section--dark .oft-lead { color: var(--oft-dark-muted); }
.oft-stack { display: flex; flex-direction: column; gap: 18px; }
.oft-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px !important; }
.oft-head__text { display: flex; flex-direction: column; gap: 14px; max-width: 680px; }
.oft-arrow { font-weight: 600; }
.oft-arrow a { text-decoration: none; display: inline-block; padding-block: 10px; }
.oft-arrow a::after, .oft-card__more::after { content: "\2192"; margin-left: 8px; }
.oft-section .wp-block-buttons { gap: 12px; }
.wp-block-button.is-style-outline > .wp-block-button__link { background: #FFFFFF; color: var(--oft-ink); border: 1px solid var(--oft-line-strong); padding: 14px 22px; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--oft-tint); color: var(--oft-ink); }

/* Hero */
.oft-hero { padding-block: 80px 104px; }
.oft-split { display: flex; flex-wrap: wrap; gap: 56px 64px; align-items: center; }
.oft-split > * { flex: 1 1 440px; min-width: 0; }
.oft-hero__text { display: flex; flex-direction: column; gap: 24px; }
.oft-hero h1 { font-size: clamp(42px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -0.035em; }
.oft-hero .wp-block-buttons { margin-top: 8px !important; }
.oft-hero__media { position: relative; padding-bottom: 32px; }
.oft-hero__img img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; }
.oft-hero__badge { position: absolute; left: 20px; bottom: 0; background: #FFFFFF; border: 1px solid var(--oft-line); border-radius: 16px; padding: 14px 18px; display: flex; align-items: center; gap: 14px; box-shadow: 0 12px 32px rgba(20, 17, 31, 0.12); }
.oft-hero__icons { display: flex; }
.oft-hero__icons img { width: 40px; height: 40px; border-radius: 10px; border: 2px solid #FFFFFF; background: #FFFFFF; }
.oft-hero__icons img + img { margin-left: -10px; }
.oft-hero__badge strong { display: block; font-size: 16px; }
.oft-hero__badge span { font-size: 14px; color: var(--oft-muted); }

/* Cards */
.oft-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.oft-grid--wide { grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); }
.oft-grid--partners { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.oft-card { position: relative; background: #FFFFFF; border: 1px solid var(--oft-line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 14px; transition: border-color 0.15s ease; }
.oft-card:hover { border-color: var(--oft-accent); }
.oft-card:focus-within { outline: 3px solid var(--oft-accent); outline-offset: 2px; }
.oft-card a:focus-visible { outline: none; }
.oft-card__icon { background: var(--oft-tint); border-radius: 12px; display: flex; justify-content: center; padding: 20px; }
.oft-card__icon img { width: 132px; height: 132px; object-fit: contain; }
.oft-tag { font-family: var(--oft-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--oft-muted); }
.oft-card h3 { font-size: 22px; }
.oft-card h3 a { text-decoration: none; color: inherit; }
.oft-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.oft-card__desc { font-size: 15px; line-height: 1.55; color: var(--oft-muted); flex-grow: 1; }
.oft-card__more { font-weight: 600; font-size: 16px; color: var(--oft-accent); }
.oft-card--row { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 24px; padding: 24px; }
.oft-card--row .oft-card__icon { padding: 16px; flex: none; }
.oft-card__body { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.oft-card--row h3 { font-size: 26px; }
.oft-card--row .oft-card__desc { font-size: 16px; }
.oft-pill { align-self: flex-start; background: var(--oft-accent); color: #FFFFFF; padding: 12px 18px; border-radius: 10px; font-weight: 600; font-size: 16px; margin-top: 6px !important; }
.oft-pill::after { content: "\2192"; margin-left: 8px; }

/* Services */
.oft-list__item { display: flex; gap: 24px; padding-block: 28px; border-top: 1px solid var(--oft-line-strong); }
.oft-list__item:last-child { border-bottom: 1px solid var(--oft-line-strong); }
.oft-num { font-family: var(--oft-mono); font-size: 14px; color: var(--oft-accent); padding-top: 4px; flex: none; }
.oft-list__body { display: flex; flex-direction: column; gap: 8px; }
.oft-list__body p { font-size: 16px; color: var(--oft-muted); }

/* Partners */
.oft-partner { background: #FFFFFF; border: 1px solid var(--oft-line); border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.oft-partner__logo img { height: 56px; width: auto; object-fit: contain; }
.oft-partner .oft-card__desc { font-size: 16px; }

/* Contact */
.oft-contact { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; }
.oft-contact__text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }

/* Tools page */
.oft-pagehead { padding-block: 72px 40px; }
.oft-pagehead h1 { max-width: 14em; }
.oft-callout { background: #FFFFFF; border: 1px solid var(--oft-line); border-radius: 20px; padding: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.oft-callout__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.oft-callout h2 { font-size: 28px; }
.oft-callout p { color: var(--oft-muted); }
.oft-callout .wp-block-button__link { background: var(--oft-ink); }
.oft-callout .wp-block-button__link:hover { background: #2E2840; }
.oft-pad-top-0 { padding-top: 0; }

/* Tool pages */
.oft-toolhero { padding-block: 40px 32px; }
.oft-breadcrumb { font-size: 15px; color: var(--oft-muted); }
.oft-breadcrumb a { color: var(--oft-muted); }
.oft-toolhead { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.oft-toolhead__icon { background: #FFFFFF; border: 1px solid var(--oft-line); border-radius: 18px; padding: 12px; flex: none; }
.oft-toolhead__icon img { width: 96px; height: 96px; display: block; object-fit: contain; }
.oft-toolhead__text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.oft-toolhead h1 { font-size: clamp(36px, 4.4vw, 56px); }
.oft-toolbody { padding-bottom: 72px; }
.oft-tool-frame { background: #FFFFFF; border: 1px solid var(--oft-line); border-radius: 20px; padding: 24px; overflow: hidden; }
@media (max-width: 600px) { .oft-tool-frame { padding: 12px; } }
.oft-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; }
.oft-step { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 2px solid var(--oft-ink); }
.oft-step p:not(.oft-num) { font-size: 16px; color: var(--oft-muted); }
.oft-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.oft-mini-card { position: relative; display: flex; align-items: center; gap: 16px; background: #FFFFFF; border: 1px solid var(--oft-line); border-radius: 16px; padding: 16px; }
.oft-mini-card:hover { border-color: var(--oft-accent); }
.oft-mini-card:focus-within { outline: 3px solid var(--oft-accent); outline-offset: 2px; }
.oft-mini-card img { width: 64px; height: 64px; border-radius: 12px; background: var(--oft-tint); display: block; }
.oft-mini-card h3 { font-size: 18px; }
.oft-mini-card h3 a { text-decoration: none; color: inherit; }
.oft-mini-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.oft-mini-card a:focus-visible { outline: none; }
.oft-mini-card .oft-tag { margin-top: 4px !important; }

/* Generic pages */
.oft-page { padding-block: 72px 96px; }
.oft-page .wp-block-post-title { margin: 0 0 32px; }
