/*
Theme Name: AmpBoxx
Template: twentytwentyfive
Description: The AmpBoxx site: Twenty Twenty-Five with AmpBoxx's colours, type, header and footer. Look B, "Boxes".
Version: 1.9.0
Text Domain: ampboxx
*/

/* The pieces of the pages. On the Home page each is an ordinary block with an amp- name under Advanced > Additional
   CSS class(es). The other pages use the same looks picked from the block's Styles panel (Tile, Orange tile, Orange
   callout, Crossed-out chip, Browser frame), which add the is-style- names. Both names give the same look. */
body { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

/* The bands of a page sit edge to edge, with no strip of white between them, and the last one meets the footer. */
.wp-block-post-content > .alignfull { margin-top: 0 !important; margin-bottom: 0 !important; }
.wp-site-blocks > footer { margin-block-start: 0 !important; }

.amp-hero-pic { margin: 0 !important; background: #f1ebe1; }
.amp-hero-pic img { display: block; width: 100%; height: min(46vw, 520px); object-fit: cover; object-position: center 78%; }

.amp-tile { background: #fff; border: 1px solid #ddd8cd; border-radius: 22px; padding: 34px; height: 100%; }
.amp-tile :is(h2, h3) { font-size: 2.1rem; margin: 0 0 3.2rem; }
.amp-tile p { color: #5b5750; margin: 0; }
.amp-tile.is-orange { background: var(--wp--preset--color--accent-dark); border-color: var(--wp--preset--color--accent-dark); }
.amp-tile.is-orange :is(h2, h3) { color: #fff; }
.amp-tile.is-orange p { color: #fff; }

/* Tile and Orange tile, picked from a Group block's Styles panel. The heading size is set on the heading itself. */
.is-style-tile, .is-style-tile-orange { background: #fff; border: 1px solid #ddd8cd; border-radius: 22px; padding: 34px; height: 100%; }
.is-style-tile > :first-child, .is-style-tile-orange > :first-child { margin-top: 0; }
.is-style-tile > :last-child, .is-style-tile-orange > :last-child { margin-bottom: 0; }
.is-style-tile p { color: #5b5750; }
.is-style-tile-orange { background: var(--wp--preset--color--accent-dark); border-color: var(--wp--preset--color--accent-dark); }
.is-style-tile-orange :is(h1, h2, h3, h4, p, a) { color: #fff; }

/* A button inside an orange box is white, so it can be seen. */
:is(.is-style-tile-orange, .is-style-callout, .amp-one) .wp-element-button { background: #fff; color: #161514; }
:is(.is-style-tile-orange, .is-style-callout, .amp-one) .wp-element-button:hover { background: #F5F3EE; color: #161514; }

.amp-chips { gap: 12px; margin-top: 1.4rem; }
.amp-chip, .is-style-chip { margin: 0; border: 1.5px dashed #b9b3a7; border-radius: 14px; padding: 16px 20px; font-weight: 600; color: #8f897e; text-decoration: line-through; background: #faf8f4; }
.amp-arrow { text-align: center; font-family: "Bricolage Grotesque", sans-serif; font-size: 2.1rem; color: #b9b3a7; margin: 1.6rem 0 0.6rem; }
.amp-one, .is-style-callout { background: var(--wp--preset--color--accent-dark); border-radius: 26px; padding: 36px 56px; width: fit-content; max-width: 100%; margin-left: auto !important; margin-right: auto !important; }
:is(.amp-one, .is-style-callout) :is(h1, h2, h3, p) { color: #fff; margin: 0; }
:is(.amp-one, .is-style-callout) h2 { font-size: clamp(2.1rem, 5vw, 4rem); }

.amp-shot, .is-style-framed { margin: 0 auto !important; border: 1px solid #ddd8cd; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -30px rgba(22, 21, 20, 0.35); }
:is(.amp-shot, .is-style-framed)::before { content: ""; display: block; height: 34px; border-bottom: 1px solid #e6e2da; background-color: #faf8f4; background-image: radial-gradient(circle at 20px 17px, #d9d4ca 5px, transparent 5.5px), radial-gradient(circle at 37px 17px, #d9d4ca 5px, transparent 5.5px), radial-gradient(circle at 54px 17px, #d9d4ca 5px, transparent 5.5px); }
:is(.amp-shot, .is-style-framed) img { display: block; width: 100%; height: auto; }

/* AmpBoxx on a phone, on the Mobile page. The frame and its shadow are in the picture. */
.amp-phone { margin: 0 auto !important; max-width: 330px; }
.amp-phone img { display: block; width: 100%; height: auto; }

/* Badge, picked from a paragraph's Styles panel: a small rounded label with an orange dot ("iOS app coming soon"). */
.is-style-badge { width: fit-content; padding: 7px 16px 7px 13px; border-radius: 999px; background: #F5F3EE; border: 1px solid #ddd8cd; font-size: 0.92rem; font-weight: 600; color: #161514; }
.is-style-badge::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; background: var(--wp--preset--color--accent-dark); vertical-align: 1px; }
.has-text-align-center.is-style-badge { margin-left: auto; margin-right: auto; }
.has-soft-background-color .is-style-badge { background: #fff; }

/* The contact form (the [ampboxx_contact_form] shortcode on the Contact page). */
.amp-form { display: grid; gap: 16px; }
.amp-form p { margin: 0; }
.amp-form label { display: block; margin-bottom: 6px; font-weight: 600; }
.amp-form :is(input[type="text"], input[type="email"], select, textarea) { box-sizing: border-box; width: 100%; padding: 12px 14px; border: 1px solid #cfc9c0; border-radius: 12px; background: #fff; color: #161514; font: inherit; }
.amp-form textarea { min-height: 140px; resize: vertical; }
.amp-form :is(input, select, textarea):focus { outline: 2px solid var(--wp--preset--color--accent-dark); outline-offset: 1px; border-color: transparent; }
.amp-form .wp-element-button { border: 0; cursor: pointer; }
.amp-form-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.amp-form-note { color: #55524D; font-size: 0.9rem; }
.amp-form-error { padding: 12px 16px; border-radius: 12px; background: #fdecea; color: #8a1c10; font-weight: 600; }
.amp-form-done-title { margin: 0 0 0.4rem; font-family: "Bricolage Grotesque", sans-serif; font-size: 1.6rem; font-weight: 800; line-height: 1.15; }
.amp-form-done p { margin: 0; }

.amp-nav-demo .wp-block-button__link { padding: 0.55rem 1rem; font-size: 0.9rem; }
.wp-block-site-title a { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; letter-spacing: -0.02em; font-size: 1.25rem; text-decoration: none; }

@media (max-width: 781px) {
  .amp-tile :is(h2, h3) { margin-bottom: 1.4rem; }
  .is-style-tile, .is-style-tile-orange { padding: 26px; }
  .amp-one, .is-style-callout { padding: 26px 28px; }
  .amp-nav-demo { display: none !important; }
}

/* The phone menu (the navigation's overlay): big links in the display face, on the left, and the demo button last.
   The menu's "Ask for a demo" item is hidden on a computer, where the header has its own button. */
.amp-nav-cta { display: none !important; }
.wp-block-navigation__responsive-container.is-menu-open { padding: 24px; background: #F5F3EE !important; }
.wp-block-navigation__responsive-container.is-menu-open :is(.wp-block-navigation__responsive-container-content, .wp-block-navigation__container) { align-items: flex-start !important; justify-content: flex-start !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 40px; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 18px; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-family: "Bricolage Grotesque", sans-serif; font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; }
.wp-block-navigation__responsive-container.is-menu-open .amp-nav-cta { display: block !important; margin-top: 14px; }
.wp-block-navigation__responsive-container.is-menu-open .amp-nav-cta .wp-block-navigation-item__content { padding: 14px 22px; border-radius: 12px; background: var(--wp--preset--color--accent-dark); color: #fff !important; font-family: "Instrument Sans", sans-serif; font-size: 1.1rem; font-weight: 700; letter-spacing: 0; }
.wp-block-navigation__responsive-container.is-menu-open a:focus:not(:focus-visible) { outline: none; }

/* An outline button (the second button on the not-found page): ink on the page, no fill. */
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: #161514; border: 1.5px solid #161514; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: #161514; color: #fff; }
