/*
Theme Name: MOCA365
Theme URI: https://moca365.com
Author: Pointwork A/S
Author URI: https://pointwork.com
Description: Custom block theme for moca365.com — governance for Microsoft 365. Endorsed product brand of Pointwork.
Version: 0.1.1
Requires at least: 6.6
Requires PHP: 8.1
License: Proprietary
Text Domain: moca365
Tags: block-theme, full-site-editing
*/

html { overflow-x: clip; }
h1, h2, h3, h4 { overflow-wrap: break-word; text-wrap: balance; }

/* --- Eyebrow --- */
.moca-eyebrow {
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--wp--preset--color--blue); margin: 0 0 0.75rem;
}

/* --- Header --- */
.moca-header { position: relative; z-index: 50; }
.moca-header__inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1rem 1.5rem; }
.moca-logo { display: inline-flex; align-items: center; }
.moca-logo img { height: 30px; display: block; }
.moca-nav { display: flex; gap: 1.75rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.moca-nav a { color: var(--wp--preset--color--ink); text-decoration: none; font-size: 0.9375rem; font-weight: 500; }
.moca-nav a:hover { color: var(--wp--preset--color--blue); }
.moca-header__cta { display: inline-block; padding: 0.6rem 1.1rem; background: var(--wp--preset--color--blue); color: #fff; border-radius: 9999px; font-size: 0.9375rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.moca-header__cta:hover { background: #28488c; color: #fff; }
@media (max-width: 880px) { .moca-nav { display: none; } }

/* Homepage: overlay the header on the hero so the banner bleeds to the top (behind the nav) */
body.home .moca-header { position: absolute; left: 0; right: 0; top: 0.75rem; }
body.home .moca-logo img { filter: brightness(0) invert(1); }
body.home .moca-nav a { color: #fff; }
body.home .moca-nav a:hover { color: rgba(255, 255, 255, 0.75); }
body.home .moca-hero { margin-block-start: 0; } /* banner flush to the very top (behind the nav) */

/* --- Mobile nav (disclosure, no JS) --- */
.moca-nav-toggle { display: none; color: var(--wp--preset--color--ink); }
body.home .moca-nav-toggle { color: #fff; }
.moca-nav-toggle > summary { list-style: none; cursor: pointer; width: 30px; height: 30px; display: grid; place-items: center; }
.moca-nav-toggle > summary::-webkit-details-marker { display: none; }
.moca-nav-toggle > summary > span, .moca-nav-toggle > summary > span::before, .moca-nav-toggle > summary > span::after { content: ""; display: block; width: 24px; height: 2px; background: currentColor; }
.moca-nav-toggle > summary > span { position: relative; }
.moca-nav-toggle > summary > span::before { position: absolute; top: -7px; }
.moca-nav-toggle > summary > span::after { position: absolute; top: 7px; }
.moca-nav-panel { position: absolute; right: 1rem; left: 1rem; top: calc(100% + 0.25rem); background: #fff; border: 1px solid #e7eaf0; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,0.14); padding: 0.5rem; display: flex; flex-direction: column; z-index: 60; }
.moca-nav-panel a { padding: 0.75rem 1rem; color: var(--wp--preset--color--ink); text-decoration: none; font-weight: 500; border-radius: 8px; }
.moca-nav-panel a:hover { background: var(--wp--preset--color--light); color: var(--wp--preset--color--blue); }
.moca-nav-panel__cta { background: var(--wp--preset--color--blue); color: #fff !important; font-weight: 700 !important; text-align: center; margin-top: 0.35rem; }
@media (max-width: 880px) { .moca-nav-toggle { display: block; } .moca-header__cta { display: none; } }

/* --- Buttons --- */
.wp-block-button.is-style-pill .wp-block-button__link { border-radius: 9999px; font-weight: 700; padding: 0.85rem 1.6rem; }
.wp-block-button.is-style-ghost .wp-block-button__link { border-radius: 9999px; font-weight: 700; padding: 0.85rem 1.6rem; background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.7); }

/* --- GeoGrid hero / cover tweaks --- */
.moca-hero .wp-block-cover__inner-container { max-width: 1180px; margin-inline: auto; width: 100%; }
.moca-hero h1 { color: #fff; font-weight: 200; letter-spacing: -0.01em; }
.moca-hero .moca-eyebrow { color: #fff; opacity: 0.85; }

/* --- Cards (value + products) --- */
.moca-cards { max-width: 1180px; margin-inline: auto; display: grid; gap: 1.25rem; }
.moca-cards--4 { grid-template-columns: repeat(4, 1fr); }
.moca-cards--3 { grid-template-columns: repeat(3, 1fr); }
.moca-cards--2 { grid-template-columns: repeat(2, 1fr); }
.moca-card { background: #fff; border: 1px solid #e7eaf0; border-radius: 16px; padding: 1.75rem; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.moca-card h3 { margin: 0 0 0.5rem; font-size: 1.25rem; color: var(--wp--preset--color--ink); }
.moca-card p { margin: 0; font-size: 0.9375rem; color: var(--wp--preset--color--gray); line-height: 1.55; }
.moca-card__tag { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.25rem 0.7rem; border-radius: 9999px; color: #fff; margin-bottom: 0.875rem; }
@media (max-width: 980px) { .moca-cards--4, .moca-cards--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .moca-cards--4, .moca-cards--3, .moca-cards--2 { grid-template-columns: 1fr; } }

/* --- Product card top (GeoGrid) --- */
.moca-prod__top { height: 96px; border-radius: 12px; background-size: cover; background-position: center; margin: -0.25rem 0 1rem; display: flex; align-items: flex-end; padding: 0.75rem 1rem; }
.moca-prod__top span { color: #fff; font-weight: 200; font-size: 1.6rem; }

/* --- Testimonials --- */
.moca-quotes { max-width: 1180px; margin-inline: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.moca-quote { background: #fff; border: 1px solid #e7eaf0; border-radius: 16px; padding: 1.75rem; }
.moca-quote p { font-style: italic; color: var(--wp--preset--color--ink); margin: 0 0 1rem; line-height: 1.5; }
.moca-quote cite { font-style: normal; font-size: 0.875rem; color: var(--wp--preset--color--gray); }
@media (max-width: 980px) { .moca-quotes { grid-template-columns: 1fr; } }

/* --- Footer --- */
.moca-footer { background: var(--wp--preset--color--ink); color: #c6ccda; }
.moca-footer a { color: #c6ccda; text-decoration: none; }
.moca-footer a:hover { color: #fff; }
.moca-footer__stripe { height: 6px; background: linear-gradient(90deg, var(--wp--preset--color--foundation), var(--wp--preset--color--evo), var(--wp--preset--color--extensions)); }
