/*
Theme Name: Eyedentity
Theme URI: https://digitaleyedentity.com
Author: Eyedentity
Description: Custom block theme for Eyedentity, a creative and digital agency. Edit every page, the header, footer and blog in the WordPress editor, and add ready-made sections from the "Eyedentity" pattern category.
Version: 1.0.1
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eyedentity
*/

/* ---------- base ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
::selection { background: var(--wp--preset--color--accent); color: #fff; }
a { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 3px; }
img { height: auto; }

/* ---------- small type helpers ---------- */
.eye-kicker { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--wp--preset--color--accent); margin-bottom: 0.75rem !important; }
.eye-kicker a { color: inherit; text-decoration: none; }
.eye-serif { font-family: var(--wp--preset--font-family--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--wp--preset--color--accent); }
.eye-lede { font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--muted); max-width: 62ch; line-height: 1.55; }
.eye-muted { color: var(--wp--preset--color--muted); }
.eye-label { font-size: 0.8rem !important; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wp--preset--color--muted); margin-top: 2rem !important; }
.eye-tag { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wp--preset--color--accent); background: var(--wp--preset--color--accent-soft); padding: 0.3em 0.75em; border-radius: 999px; margin: 0 0 0.75rem !important; }
.eye-stat { font-size: var(--wp--preset--font-size--xx-large); font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.eye-quote { font-family: var(--wp--preset--font-family--serif); font-style: italic; font-size: var(--wp--preset--font-size--x-large); line-height: 1.3; }
.eye-section-head { max-width: 46rem; margin-bottom: var(--wp--preset--spacing--40) !important; }
.eye-section-head.is-centered { text-align: center; margin-inline: auto !important; }
.eye-section-head .eye-lede { margin-top: 1rem; }

/* ---------- header ---------- */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 46px; } }
@media (max-width: 600px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 0; } }
.eye-header { background: color-mix(in srgb, var(--wp--preset--color--base) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--line) 70%, transparent); }
.eye-logo img { display: block; }
.eye-nav a { text-decoration: none; }
.eye-nav .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--accent); }
.eye-nav .current-menu-item > .wp-block-navigation-item__content { text-decoration: underline; text-decoration-color: var(--wp--preset--color--accent); text-decoration-thickness: 2px; text-underline-offset: 0.5em; }
.eye-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { font-size: var(--wp--preset--font-size--x-large); gap: 1rem; }
@media (max-width: 600px) { .eye-header-right .wp-block-buttons { display: none; } }
/* keep the mobile menu buttons visible even if a plugin restyles every <button> */
.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close { color: var(--wp--preset--color--contrast) !important; background: transparent !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; }

/* ---------- buttons ---------- */
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--wp--preset--color--contrast); border-color: var(--wp--preset--color--contrast); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--surface); border-color: var(--wp--preset--color--contrast); }
.wp-block-button.is-style-eye-light > .wp-block-button__link { background: var(--wp--preset--color--surface); color: var(--wp--preset--color--contrast); border-color: var(--wp--preset--color--surface); }
.wp-block-button.is-style-eye-light > .wp-block-button__link:hover { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--surface); border-color: var(--wp--preset--color--contrast); }
.wp-block-button.is-style-eye-small > .wp-block-button__link { font-size: 0.9rem; padding: 0.6em 1.2em; }
.wp-block-button__link { transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); }
.eye-dark .wp-block-button:not(.is-style-outline) > .wp-block-button__link { background: var(--wp--preset--color--surface); color: var(--wp--preset--color--contrast); border-color: var(--wp--preset--color--surface); }
.eye-dark .wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover { background: var(--wp--preset--color--accent); color: #fff; border-color: var(--wp--preset--color--accent); }
.eye-dark .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; border-color: rgba(255,255,255,.6); }

/* ---------- hero ---------- */
.eye-hero { position: relative; overflow: hidden; }
.eye-hero h1 { max-width: 13ch; }
.eye-hero .eye-lede { margin-top: 1.5rem; margin-bottom: 2rem; }
.eye-hero-mark { margin: 0; }
.eye-hero-mark img { width: 100%; max-width: 420px; display: block; margin-inline: auto; animation: eye-float 9s ease-in-out infinite; }
@keyframes eye-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(-2deg); } }
.eye-page-intro h1 { max-width: 15ch; }
.eye-page-intro .eye-lede { margin-top: 1.25rem; }
.eye-intro .wp-block-buttons { margin-top: 2rem; }

/* ---------- cards ---------- */
.is-style-eye-card, .is-style-eye-card-link, .is-style-eye-card-dark { border-radius: 20px; padding: clamp(1.4rem, 2.5vw, 2rem); height: 100%; }
.is-style-eye-card, .is-style-eye-card-link { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.has-surface-background-color .is-style-eye-card, .has-surface-background-color .is-style-eye-card-link { background: var(--wp--preset--color--base); }
.is-style-eye-card:hover, .is-style-eye-card-link:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--wp--preset--color--accent) 45%, var(--wp--preset--color--line)); box-shadow: 0 18px 40px -24px rgba(14,14,18,.35); }
.is-style-eye-card > *, .is-style-eye-card-link > *, .is-style-eye-card-dark > * { margin-block: 0; }
.is-style-eye-card > * + *, .is-style-eye-card-link > * + *, .is-style-eye-card-dark > * + * { margin-top: 0.7rem; }
.is-style-eye-card-link { position: relative; }
.is-style-eye-card-link h3 a { text-decoration: none; color: inherit; }
.is-style-eye-card-link h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 20px; }
.is-style-eye-card-link h3::after { content: " →"; color: var(--wp--preset--color--accent); }
.is-style-eye-card-dark { background: var(--wp--preset--color--ink-2); border: 1px solid #2B2B36; }
.is-style-eye-card-dark h3 { color: #fff; }
.is-style-eye-card-dark p { color: rgba(255,255,255,.7); }
.eye-icon { margin: 0 0 0.4rem !important; }
.eye-icon img { display: block; }
.eye-more a { color: var(--wp--preset--color--accent); text-decoration: none; font-weight: 500; }
.eye-more a::after { content: " →"; transition: margin .2s ease; }
.eye-more a:hover::after { margin-left: .25em; }
.is-style-eye-step { border-top: 2px solid var(--wp--preset--color--contrast); padding-top: 1.25rem; }
.is-style-eye-step > * { margin-block: 0; }
.is-style-eye-step > * + * { margin-top: 0.6rem; }
.eye-step-num { font-family: var(--wp--preset--font-family--serif); font-style: italic; font-size: 2.4rem; line-height: 1; color: var(--wp--preset--color--accent); }
.is-style-eye-post-card > * { margin-block: 0; }
.is-style-eye-post-card > * + * { margin-top: 0.65rem; }
.is-style-eye-post-card .wp-block-post-title a { text-decoration: none; }
.is-style-eye-post-card .wp-block-post-title a:hover { color: var(--wp--preset--color--accent); }
.is-style-eye-post-card .wp-block-post-featured-image img, .is-style-eye-post-card .wp-block-image img { border-radius: 14px; }
.is-style-eye-post-card .wp-block-post-excerpt { color: var(--wp--preset--color--muted); }
.is-style-eye-post-card .wp-block-post-excerpt__more-text { display: none; }

/* ---------- lists ---------- */
.eye-checklist { list-style: none; padding-left: 0; }
.eye-checklist li { position: relative; padding: 0.7rem 0 0.7rem 2.1rem; border-bottom: 1px solid var(--wp--preset--color--line); margin: 0; }
.eye-checklist li:last-child { border-bottom: 0; }
.eye-checklist li::before { content: ""; position: absolute; left: 0; top: 0.95rem; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--wp--preset--color--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%235B3DF5' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; }
.eye-dark .eye-checklist li { border-color: #2B2B36; color: rgba(255,255,255,.82); }
.eye-dark .eye-checklist li strong { color: #fff; }
.eye-dark .eye-checklist li::before { background-color: rgba(169,155,255,.16); }

/* ---------- dark sections ---------- */
.eye-dark h1, .eye-dark h2, .eye-dark h3, .eye-dark h4 { color: #fff; }
.eye-dark .eye-kicker { color: var(--wp--preset--color--accent-light); }
.eye-dark .eye-serif { color: var(--wp--preset--color--accent-light); }
.eye-dark .eye-lede, .eye-dark .eye-muted { color: rgba(255,255,255,.72); }
.eye-dark a:where(:not(.wp-element-button)) { color: #fff; }

/* ---------- service rows ---------- */
.eye-service-row { border-top: 1px solid var(--wp--preset--color--line); padding-block: var(--wp--preset--spacing--50); scroll-margin-top: 110px; }
.eye-service-row:first-child { border-top: 0; padding-top: 0; }
.eye-service-row h2 { margin-top: 0.75rem; }

/* ---------- call to action ---------- */
.eye-cta-box { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(2.25rem, 6vw, 4.5rem) !important; }
.eye-cta-box::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 420px; height: 420px; background: url("assets/images/fingerprint-white.svg") center/contain no-repeat; opacity: .14; pointer-events: none; }
.eye-cta-box > * { position: relative; z-index: 1; }
.eye-cta-box .eye-serif { color: #fff; }
.eye-cta-box .eye-lede { color: rgba(255,255,255,.85); }
.eye-cta-box a:not(.wp-element-button) { color: #fff; }

/* ---------- FAQ ---------- */
.wp-block-details summary { cursor: pointer; font-weight: 500; font-size: var(--wp--preset--font-size--large); list-style: none; position: relative; padding-right: 2.5rem; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 300; color: var(--wp--preset--color--accent); }
.wp-block-details[open] summary::after { content: "–"; }
.wp-block-details > p { color: var(--wp--preset--color--muted); margin-top: 0.75rem; }

/* ---------- blog ---------- */
.eye-meta { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
.eye-article h2 { font-size: var(--wp--preset--font-size--x-large); margin-top: 2.5rem; }
.eye-article h3 { font-size: var(--wp--preset--font-size--large); margin-top: 2rem; }
.eye-article p, .eye-article li { font-size: 1.125rem; line-height: 1.75; }
.wp-block-query-pagination a { text-decoration: none; }
.wp-block-post-navigation-link a { text-decoration: none; }
.eye-search .wp-block-search__inside-wrapper { border: 1.5px solid var(--wp--preset--color--contrast); border-radius: 999px; padding: 4px; background: var(--wp--preset--color--surface); max-width: 560px; }
.eye-search .wp-block-search__input { border: 0; background: transparent; padding: 0.6rem 1rem; font-size: 1rem; }
.eye-search .wp-block-search__button { border-radius: 999px; background: var(--wp--preset--color--contrast); color: #fff; border: 0; padding: 0.6rem 1.3rem; margin-left: 0; }

/* ---------- footer ---------- */
.eye-footer a { color: #fff; text-decoration: none; }
.eye-footer a:hover { color: var(--wp--preset--color--accent-light); }
.eye-foot-logo { margin: 0 0 1.25rem !important; }
.eye-foot-text { color: rgba(255,255,255,.65); max-width: 34ch; }
.eye-foot-email a { color: var(--wp--preset--color--accent-light) !important; }
.eye-foot-title { color: rgba(255,255,255,.5) !important; font-weight: 500 !important; text-transform: uppercase; letter-spacing: 0.14em; }
.eye-foot-links { list-style: none; padding: 0; margin: 0; }
.eye-foot-links li { margin: 0.5rem 0; }
.eye-foot-rule { width: 100% !important; max-width: var(--wp--style--global--wide-size) !important; height: 1px !important; border: 0 !important; margin-top: var(--wp--preset--spacing--50) !important; margin-bottom: var(--wp--preset--spacing--30) !important; opacity: 1; }
.eye-foot-small { font-size: var(--wp--preset--font-size--small); color: rgba(255,255,255,.5); margin: 0; }
.eye-foot-small a { color: rgba(255,255,255,.7); }

/* ---------- Eyedentity tools plugin ---------- */
body .agt { --agt-display: var(--wp--preset--font-family--body); --agt-serif: var(--wp--preset--font-family--serif); }
/* keep tools in line with the page title and text */
.wp-block-post-content > .wp-block-group.alignwide:has(> .agt) { max-width: var(--wp--style--global--content-size) !important; margin-left: auto !important; margin-right: auto !important; }

/* ---------- small screens ---------- */
@media (max-width: 781px) {
	.eye-hero-mark img { max-width: 220px; margin: 0; }
	.eye-hero .wp-block-columns { flex-direction: column-reverse; }
	.eye-cta-box::after { width: 260px; height: 260px; }
}
