/* 1. Global native block foundation and GeneratePress shell. */
*, *::before, *::after { box-sizing: border-box; }
body { font-family: Inter, Arial, sans-serif; font-size:16px; line-height:1.5; color: var(--foreground); background: var(--background); }
body.cdai-site #page, body.cdai-site #content { padding:0; background:transparent; }
body.cdai-site .entry-content > .wp-block-group.alignfull { width:100%; margin:0; }
.font-mono, .is-style-mono { font-family: "Geist Mono", "Courier New", monospace; }
.uppercase { text-transform: uppercase; }
body .site-content { display: block; }
body #page, body #primary { max-width: none; width: 100%; }
body .site-main, body .entry-content, body .inside-article { margin: 0; padding: 0; background: transparent; }
body .site-main > article { margin: 0; }
body .entry-content > :not(.alignfull) { max-width: 760px; margin-inline: auto; }
body .entry-content > .alignwide { max-width: 1760px; }
body .entry-content > :not(.alignfull) { width: calc(100% - var(--page-gutter) * 2); }
body .entry-content > .alignfull { width: 100%; max-width: none; margin-inline: 0; }
.entry-content > :not(.alignfull) + :not(.alignfull) { margin-block-start: 24px; }
.entry-content ul, .entry-content ol { margin-left: 1.5em; }
.entry-header { width:calc(100% - var(--page-gutter)*2); max-width:1760px; margin-inline:auto; padding-block:clamp(40px,5vw,80px); }
.entry-header .entry-title { font-weight:750; line-height:1.1; letter-spacing:-.05em; }
.entry-content :is(h1,h2,h3,h4,h5,h6):not(.hero-title) { font-weight:750; line-height:1.1; }
.entry-content a:not(.wp-element-button) { text-underline-offset: 3px; }
.wp-block-image img { max-width: 100%; height: auto; }
.wp-block-image figcaption { color: var(--secondary); font-size: 14px; }
.wp-block-table { overflow-x: auto; }
.wp-block-table td, .wp-block-table th { padding: 12px; border-color: var(--rule); }
.wp-block-gallery { gap: 24px; }
input, textarea, select { border: 1px solid #749b7c; border-radius: 0; padding: 9px 12px; color: var(--foreground); background: var(--field); font-size: 16px; line-height: 1.5; }
input:focus, textarea:focus, select:focus { color: var(--foreground); background: var(--field); border-color: var(--accent); }
.wp-block-buttons { gap: 16px; }
.wp-block-button__link { border-radius: 0; }
.wp-block-button__link:hover { color: #06130b; background: #b3f2bf; border-color: #b3f2bf; }
.wp-block-button.is-style-outline .wp-block-button__link { color: var(--accent); background: transparent; }
.wp-block-separator { border: 0; border-top: 1px solid var(--rule); }
/* Keep the native skip link; neutralize GP's screen-reader focus skin. */
body .skip-link.screen-reader-text {
  position:fixed; z-index:20; top:16px; left:var(--page-gutter);
  width:auto; height:auto; margin:0; padding:12px 20px;
  clip:auto; clip-path:none; overflow:visible; white-space:normal;
  font:inherit; color:var(--background); background:var(--accent);
  border:0; border-radius:0; box-shadow:none;
}
body .skip-link.screen-reader-text:focus { transform:translateY(0); }

/* 2. Native identity and menus: their content comes exclusively from WordPress. */
:root { --header-height: clamp(105px, 9vw, 142px); --logo-width: clamp(172px, 17vw, 238px); }
body .site-header { width: calc(100% - var(--page-gutter) * 2); max-width: 1760px; margin-inline: auto; height: var(--header-height); color:var(--foreground); background: transparent; }
body .site-header .inside-header { padding: 0; width: 100%; height: 100%; max-width: none; display: flex; flex-direction:row; align-items: center; justify-content: space-between; }
body .site-header .site-logo { width: var(--logo-width); flex-shrink: 0; margin:0; }
body .site-header .site-logo a { display:block; color:inherit; }
body .site-header .site-logo img { display: block; width: 100%; height: auto; }
body .site-header .main-navigation { margin-left: auto; background: transparent; }
body .main-navigation .inside-navigation { padding: 0; }
body .main-navigation .main-nav ul { display: flex; gap: clamp(28px,3vw,48px); }
body .main-navigation .main-nav ul li a { border-left: 1px solid var(--rule); padding: 12px 0 12px clamp(28px,3vw,48px); font-size: 18px; line-height: 1.5; }
.cdai-site .site-header .main-navigation .main-nav ul li a,
.cdai-site .site-header .main-navigation .main-nav ul li[class*="current-menu-"] > a { color:var(--foreground); background:transparent; }
.cdai-site .site-header .main-navigation .main-nav ul li a:hover,
.cdai-site .site-header .main-navigation .main-nav ul li[class*="current-menu-"] > a:hover { color:var(--accent); background:transparent; }
body .main-navigation .menu-toggle { display: none; }
body .main-navigation .main-nav { display: block; }
.cdai-footer { border-top: 1px solid var(--rule); background: #06110d; }
body .site-footer { border: 0; background: transparent; }
.footer-menu { display: flex; align-items: center; justify-content: space-between; gap: 24px; list-style: none; margin: 0; padding: 0; width: 100%; }
.footer-menu a { display:block; color: inherit; }
.footer-menu a:hover { color: var(--accent); }
/* GP animates ordinary links; the reference changes them immediately.
   Action buttons keep their separate, explicit 180 ms transition. */
body.cdai-site a:not(.wp-block-button__link) { transition:initial; }
.custom-logo-link, .custom-logo { display: block; }
.brand-footer img { width: 100%; height: auto; }
.footer-address p, .hero-location p { margin: 0; font-size: inherit; line-height: inherit; }
.footer-address { font-size: clamp(14px,1.2vw,16px); }
.footer-address .wp-block-group, .footer-address .wp-block-block { margin: 0; }
.footer-links { display: flex; }
.information-page #page { flex: 1; }
.information-page .information-content { min-height: 0; }

/* 3. Gutenberg layouts retain their native Row, Stack and Columns semantics. */
.hero, .hero-body, .hero-copy, .contact, .contact-copy, .information-content { gap: 0; }
.hero > *, .hero-body > *, .hero-copy > *, .contact > *, .contact-copy > *, .information-content > * { margin-block-end: 0; }
.hero > .hero-body, .hero > .hero-bottom, .contact > .contact-inner { width: 100%; max-width: none; align-self: stretch; }
.hero .hero-inner { flex-wrap: nowrap; align-items: center; }
.hero-copy { align-items: stretch; }
.hero .hero-kicker, .hero .hero-title, .hero .hero-description, .contact p, .contact h2 { margin-bottom: 0; }
.hero .hero-artwork { margin: 0; max-width: none; }
.hero-artwork img { display: block; width: 100%; height: 100%; object-fit: inherit; object-position: inherit; }
.hero-bottom { margin-top: 0; }
.hero-bottom > .page-width { width: calc(100% - var(--page-gutter) * 2); margin-inline: auto; }
.hero-location { font-size: clamp(12px,1.16vw,17px); }
.hero .hero-inner { width: calc(100% - var(--page-gutter) * 2); margin-inline:auto; }
.hero .hero-copy { max-width: 810px; }
.accent-rule.wp-block-separator { flex-shrink: 0; border: 0; opacity: 1; margin-inline: 0; margin-bottom: 0; }
.wp-block-separator.is-style-cdai-accent { width:var(--cdai-accent-width,clamp(70px,10.6vw,145px)); height:var(--cdai-accent-height,6px); border:0; opacity:1; background:var(--accent); margin-inline:0; }
.contact-copy .accent-rule { margin-top: 0; }
.hero .wp-block-buttons, .information-content .wp-block-buttons { gap: 0; }
.hero .wp-block-button .wp-block-button__link, .information-content .wp-block-button .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 12px 28px;
  border: 1px solid var(--accent); border-radius: 0; color: #06130b; background: var(--accent);
  font-family: "Geist Mono", "Courier New", monospace; font-size: clamp(18px,1.75vw,24px); font-weight: 700; line-height: 1.4; text-align: center;
  transition: color .18s,background .18s,border-color .18s;
}
.hero .wp-block-button .wp-block-button__link:hover, .information-content .wp-block-button .wp-block-button__link:hover, form.contact-form input[type=submit]:hover { color:#06130b; background: #b3f2bf; border-color: #b3f2bf; }
.wp-block-button.is-style-cdai-action .wp-block-button__link:is(:focus,:active) { color:#06130b; background:var(--accent); border-color:var(--accent); }
.wp-block-button.is-style-cdai-action .wp-block-button__link:hover { color:#06130b; background:#b3f2bf; border-color:#b3f2bf; }
.hero .hero-action { margin-top: 0; min-height: 0; min-width: 0; padding:0; }
.contact .contact-inner.wp-block-columns { width: calc(100% - var(--page-gutter) * 2); max-width:1760px; margin: 0 auto; flex-wrap: nowrap !important; column-gap: clamp(36px,4vw,72px); }
.contact .contact-inner > .wp-block-column { min-width: 0; margin: 0; }
.contact .wp-block-contact-form-7-contact-form-selector { width: 100%; max-width: 640px; margin-left: auto; }
.contact .contact-copy { align-items: stretch; }
.information-content { align-items: flex-start; }
.information-content > .wp-block-buttons { margin-top: 22px; }
.information-content > :is(h1,p) { align-self:stretch; width:100%; }
/* Stack sums margins; the reference's block flow collapses adjoining margins.
   Keep the native Stack and express the same visible spacing once per gap. */
.information-content > p:not(.contact-eyebrow) { margin-top:0; margin-bottom:22px; }

/* 4. General form styles shared with the editor preview and future forms. */
.form-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
.wpcf7, .wpcf7 form { margin: 0; }
.wpcf7 .hidden-fields-container { display:none; }
/* Keep CF7's live response available to screen readers. */
.wpcf7 .screen-reader-response {
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(1px,1px,1px,1px); clip-path:inset(50%);
  white-space:nowrap; border:0;
}
.contact-form { padding: 0; }
.wpcf7-form-control-wrap { display: block; }
.wpcf7-form-control-wrap input, .wpcf7-form-control-wrap textarea { font-family: inherit; }
.form-field input:focus, .form-field textarea:focus { color:var(--foreground); background:var(--field); }
.wpcf7-form-control-wrap textarea { height: auto; }
.wpcf7-list-item { margin: 0; }
.privacy-consent .wpcf7-list-item label { display: flex; align-items: flex-start; gap: 12px; }
.privacy-consent input[type=checkbox] { flex:0 0 18px; width:18px; height:18px; padding:0; margin: 3px 0 0; border-radius: 0; font:inherit; }
.privacy-consent input[type=checkbox]:focus:not(:checked) { background:transparent; border-color:#749b7c; }
body.cdai-site .privacy-consent a:is(:hover,:focus,:focus-visible,:active) {
  color:var(--accent); background:transparent; text-decoration-color:var(--accent);
}
/* Display CF7's actual server result; never infer success from a form reset. */
.wpcf7 form .wpcf7-response-output {
  display:block; margin:18px 0 0; padding:12px 16px;
  border:1px solid var(--rule); color:var(--foreground); background:var(--field);
  font-size:14px; line-height:1.6; overflow-wrap:anywhere;
}
.wpcf7 form.sent .wpcf7-response-output { color:var(--accent); border-color:var(--accent); }
.wpcf7 form:is(.init,.resetting,.submitting) .wpcf7-response-output,
.wpcf7 form .wpcf7-response-output:empty { display:none; }
.wpcf7-spinner { display:none; }
.contact-form input[type=submit].action-button { display: inline-flex; width: auto; color:#06130b; background:var(--accent); border-color:var(--accent); }
.contact-form input[type=submit]:disabled { opacity: 1; }
.is-style-cdai-surface { background: var(--surface); }

/* 5. Reference-specific exceptions: first viewport and original breakpoints. */
.home { background: #001210; }
.home .hero { height: calc(100vh - var(--header-height)); height: calc(100dvh - var(--header-height)); }
/* The native header precedes main; align the homepage skip target with the
   reference's first viewport while keeping a real, focusable main landmark. */
.home main#contenido { scroll-margin-top:calc(var(--header-height) - 24px); }
.hero .hero-action .wp-block-button__link { margin-top: clamp(28px,2.8vw,42px); min-width: clamp(180px,17.8vw,250px); }
@media (min-width:640px) { .form-row { grid-template-columns: 1fr 1fr; } }
@media (min-width:761px) and (max-height:850px) {
  :root { --header-height:103px; --logo-width:185px; }
  .hero .hero-action .wp-block-button__link { margin-top:26px; min-height:52px; padding-block:10px; font-size:clamp(20px,2.2vw,26px); }
}
@media (max-width:1024px) {
  .contact .contact-inner.wp-block-columns { gap:32px; }
  .contact .contact-inner.wp-block-columns > .wp-block-column { flex-basis:0 !important; flex-grow:1; }
  .footer-menu { flex-direction:column; align-items:flex-start; gap:12px; }
}
@media (max-width:760px) {
  :root { --header-height:100px; --logo-width:160px; }
  body .site-header .main-navigation { display:none; }
  .hero .hero-copy { max-width:560px; }
  .hero .hero-inner { flex-wrap:nowrap; }
  .hero .hero-action .wp-block-button__link { margin-top:28px; min-height:52px; min-width:174px; font-size:20px; }
  .hero-location { font-size:12px; }
  .contact .contact-inner.wp-block-columns { flex-direction:column; gap:28px; }
  .contact .contact-inner.wp-block-columns > .wp-block-column { flex-basis:auto !important; width:100%; }
  .footer-menu { gap:13px; }
}
@media (max-width:375px) { :root { --logo-width:138px; } .hero-location { font-size:11px; } }
@media (max-width:760px) and (max-height:700px) {
  :root { --header-height:84px; --logo-width:138px; }
  .hero .hero-action .wp-block-button__link { margin-top:22px; min-height:48px; font-size:18px; }
}
@media (min-width:761px) and (max-height:600px) {
  :root { --header-height:68px; --logo-width:142px; }
  .hero .hero-action .wp-block-button__link { margin-top:18px; min-height:44px; padding-block:8px; font-size:18px; }
  .hero-location { font-size:11px; }
}
@media (min-width:500px) and (max-height:440px) {
  :root { --header-height:60px; --logo-width:132px; }
  .hero .hero-action .wp-block-button__link { margin-top:14px; min-height:40px; padding-block:6px; font-size:16px; }
  .hero-location { font-size:10px; }
}
@media (min-width:500px) and (max-height:350px) {
  :root { --header-height:52px; --logo-width:112px; }
  .hero .hero-action .wp-block-button__link { margin-top:10px; min-height:36px; padding-block:4px; }
}
@media (min-width:1025px) and (min-height:601px) {
  .cdai-site { --header-height:calc(clamp(105px,9vw,142px) * .8); --logo-width:calc(clamp(172px,17vw,238px) * .8); }
  .hero { --hero-original-header-height:clamp(105px,9vw,142px); }
  .hero .hero-action .wp-block-button__link { min-width:calc(clamp(180px,17.8vw,250px) * .8); min-height:48px; padding:8px 22px; font-size:calc(clamp(18px,1.75vw,24px) * .9); }
}
@media (min-width:1025px) and (min-height:601px) and (max-height:850px) {
  .cdai-site { --header-height:82.4px; --logo-width:148px; }
  .hero { --hero-original-header-height:103px; }
  .hero .hero-action .wp-block-button__link { min-height:46px; font-size:calc(clamp(20px,2.2vw,26px) * .9); }
}
@media (prefers-reduced-motion:reduce) { .wp-block-button__link { transition:none; } }

.hero .hero-copy > p, .hero .hero-copy > h1 { align-self:stretch; width:100%; }
.hero .wp-block-button__link { height:auto; }
.privacy-consent .wpcf7-acceptance, .privacy-consent .wpcf7-list-item { display:block; }
