/*
Theme Name: Tamborine Tilt Trays
Description: Custom theme for Tamborine Tilt Trays. Blue and white design with long-form service and area pages, accordions and one-click page setup.
Version: 1.0.0
Requires at least: 6.3
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: tamborine-tilt-trays
*/

:root {
	--ink: #0E1116;
	--cobalt: #1D4ED8;
	--cobalt-dark: #1E3A8A;
	--mist: #F3F5F9;
	--slate: #414957;
	--line: #D5DAE3;
	--side: max(24px, calc((100% - 1152px) / 2));
	--head: 'Space Grotesk', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Inter', system-ui, sans-serif; font-size: 17px; line-height: 1.5; color: var(--ink); background: #FFFFFF; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; }
a { color: var(--cobalt); }
a:hover { color: var(--cobalt-dark); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; margin: 0; text-wrap: balance; }
.screen-reader-text { position: absolute; left: -9999px; }
.screen-reader-text:focus { left: 16px; top: 16px; background: #FFFFFF; padding: 12px 16px; z-index: 10; }
.ttt-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Buttons */
.ttt-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 600; font-size: 20px; padding: 16px 32px; border-radius: 999px; min-height: 60px; }
.ttt-btn--dark { background: var(--ink); color: #FFFFFF; align-self: flex-start; }
.ttt-btn--dark:hover { background: #262C36; color: #FFFFFF; }
.ttt-btn--blue { background: var(--cobalt); color: #FFFFFF; }
.ttt-btn--blue:hover { background: var(--cobalt-dark); color: #FFFFFF; }
.ttt-btn--white { background: #FFFFFF; color: var(--ink); font-size: 22px; padding: 18px 36px; min-height: 64px; }
.ttt-btn--white:hover { background: var(--mist); color: var(--ink); }
.ttt-btn--small { font-size: 17px; padding: 12px 22px; min-height: 44px; }

/* Header */
.ttt-header { border-bottom: 1px solid #E5E7EB; background: #FFFFFF; }
.ttt-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 16px; padding-bottom: 16px; }
.ttt-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-family: var(--head); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.ttt-logo:hover { color: var(--ink); }
.custom-logo { max-height: 56px; width: auto; display: block; }
.ttt-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.ttt-nav > a:not(.ttt-btn) { color: var(--ink); text-decoration: none; font-weight: 500; padding: 12px 0; }
.ttt-nav > a:not(.ttt-btn):hover { color: var(--cobalt); }

/* Hero */
.ttt-hero { background: var(--mist); }
.ttt-hero__inner { display: flex; flex-direction: column; gap: 22px; padding-top: 40px; padding-bottom: 72px; }
.ttt-hero h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.04; letter-spacing: -0.03em; max-width: 16em; }
.ttt-lead { margin: 0; font-size: 20px; color: var(--slate); max-width: 36em; }
.ttt-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; color: var(--slate); }
.ttt-hero__split { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 72px; padding-bottom: 72px; }
.ttt-hero__text { flex: 999 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.ttt-pill { margin: 0; display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 15px; font-weight: 600; }
.ttt-pill span { width: 9px; height: 9px; border-radius: 50%; background: var(--cobalt); }
.ttt-panel { flex: 1 1 420px; min-width: 0; background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 18px 40px rgba(14, 17, 22, 0.08); }
.ttt-panel h2 { font-size: 24px; letter-spacing: -0.01em; }
.ttt-panel p { margin: 0; font-size: 15px; color: var(--slate); }
.ttt-panel__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 12px; }
.ttt-panel__grid a { display: flex; align-items: center; min-height: 56px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; }
.ttt-panel__grid a:hover { border-color: var(--cobalt); color: var(--cobalt); }

/* Bands */
.ttt-band { background: var(--mist); padding: 72px 0; }
.ttt-band--white { background: #FFFFFF; padding: 80px 0; }
.ttt-h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -0.02em; }
.ttt-sub { margin: 12px 0 36px; font-size: 19px; color: var(--slate); max-width: 44em; }
.ttt-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; align-items: start; }
.ttt-group { background: var(--mist); border-radius: 20px; padding: 28px; scroll-margin-top: 24px; }
.ttt-group h3 { font-size: 24px; line-height: 1.15; margin-bottom: 18px; }
.ttt-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ttt-group li { display: flex; flex-direction: column; gap: 2px; }
.ttt-group li a { font-weight: 600; }
.ttt-group li span { color: var(--slate); font-size: 16px; }
.ttt-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.ttt-card { display: block; background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; padding: 24px; text-decoration: none; color: var(--ink); }
.ttt-card:hover { border-color: var(--cobalt); color: var(--ink); }
.ttt-card h2 { font-size: 22px; margin-bottom: 8px; color: var(--cobalt); }
.ttt-card p { margin: 0; color: var(--slate); }

/* Dark band and chips */
.ttt-dark { background: var(--ink); color: #FFFFFF; padding: 72px 0; }
.ttt-dark h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 24px; }
.ttt-dark p { margin: -8px 0 24px; font-size: 19px; color: #C9CED8; max-width: 44em; }
.ttt-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.ttt-chips a { display: inline-flex; align-items: center; min-height: 44px; border: 1px solid #6B7280; border-radius: 999px; padding: 8px 20px; font-weight: 500; color: #FFFFFF; text-decoration: none; }
.ttt-chips a:hover { border-color: #FFFFFF; color: #FFFFFF; }

/* Call to action */
.ttt-cta { background: var(--cobalt); color: #FFFFFF; padding: 64px 0; }
.ttt-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.ttt-cta h2 { flex: 999 1 380px; min-width: 0; font-size: clamp(32px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.02em; }

/* Long-form page content: each Group block with the class ttt-section is one band */
.ttt-content > .ttt-section { padding: 64px var(--side); margin: 0; }
.ttt-content > .ttt-section:nth-child(even) { background: var(--mist); }
.ttt-section > .wp-block-group__inner-container { display: contents; }
.ttt-section h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 20px; }
.ttt-section p, .ttt-section ul, .ttt-section ol { font-size: 18px; margin: 0 0 16px; max-width: 42em; }
.ttt-section p { color: var(--slate); }
.ttt-section ul { padding-left: 22px; color: #2B313C; }
.ttt-section ul li { margin-bottom: 8px; }
.ttt-section > :last-child, .ttt-section details > :last-child { margin-bottom: 0; }
@media (min-width: 860px) {
	.ttt-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: 56px; align-items: start; }
	.ttt-section > *, .ttt-section > .wp-block-group__inner-container > * { grid-column: 2; }
	.ttt-section > h2, .ttt-section > .wp-block-group__inner-container > h2 { grid-column: 1; grid-row: 1 / span 80; margin-bottom: 0; }
}

/* Numbered step cards */
.ttt-section ol.ttt-steps { list-style: none; padding: 0; max-width: none; counter-reset: ttt-step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.ttt-steps li { counter-increment: ttt-step; background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; padding: 24px; color: var(--slate); font-size: 17px; }
.ttt-steps li::before { content: counter(ttt-step); display: block; font-family: var(--head); font-weight: 700; font-size: 20px; color: var(--cobalt); margin-bottom: 8px; }
.ttt-steps li strong { display: block; font-family: var(--head); font-size: 21px; color: var(--ink); line-height: 1.2; margin-bottom: 6px; }
.ttt-steps li br { display: none; }

/* Accordions (Details blocks) */
.ttt-section details { border-top: 1px solid var(--line); margin: 0; max-width: 46em; }
.ttt-section details:last-of-type { border-bottom: 1px solid var(--line); }
.ttt-section summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; min-height: 44px; font-size: 19px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.ttt-section summary::-webkit-details-marker { display: none; }
.ttt-section summary::after { content: "+"; font-family: var(--head); font-size: 28px; line-height: 1; color: var(--cobalt); flex: none; }
.ttt-section details[open] summary::after { content: "\2013"; }
.ttt-section details[open] { padding-bottom: 22px; }

/* Editor-only reminder for unfinished notes */
.ttt-todo { background: #FFF3BF; color: #5C4400; padding: 1px 4px; border-radius: 4px; }

/* Plain pages and posts */
.ttt-content--plain { padding: 64px 0; }
.ttt-prose { max-width: 760px; }
.ttt-prose h2 { font-size: 28px; margin: 32px 0 12px; }
.ttt-prose p { color: var(--slate); font-size: 18px; }
.ttt-content > :not(.ttt-section) { max-width: 760px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }

/* Footer */
.ttt-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; padding-top: 32px; padding-bottom: 32px; color: var(--slate); font-size: 15px; }
.ttt-footer address { font-style: normal; }

@media (max-width: 600px) {
	.ttt-btn { font-size: 18px; padding: 14px 24px; }
	.ttt-hero__split { padding-top: 48px; padding-bottom: 48px; }
	.ttt-content > .ttt-section { padding-top: 48px; padding-bottom: 48px; }
}
