/*
Theme Name: Emma Wimhurst — The Column
Theme URI: https://emmawimhurst.co.uk
Author: Built for Emma Wimhurst
Description: A fast, five-page block theme for Emma Wimhurst's Business tutoring practice. Brand "The Column" — Playfair Display and Inter, self-hosted. No page builder, no external requests, no jQuery.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: emma-wimhurst
Tags: full-site-editing, block-patterns, one-column, custom-colors, custom-menu, editor-style
*/

/* ==========================================================================
   1. Section rhythm
   ========================================================================== */
.ew-sec{ padding-top: clamp(48px,7vw,86px); padding-bottom: clamp(48px,7vw,86px); }
.ew-sec--tight{ padding-top: clamp(34px,5vw,58px); padding-bottom: clamp(34px,5vw,58px); }
.ew-sec--flush{ padding-top:0; padding-bottom:0; }

.has-ink-background-color{ color:#fff; }
.has-ink-background-color p,
.has-ink-background-color li{ color:rgba(255,255,255,.82); }
.has-ink-background-color h1,
.has-ink-background-color h2,
.has-ink-background-color h3{ color:#fff; }
.has-ink-background-color a:not(.wp-element-button){ color:#fff; }

/* ==========================================================================
   2. Type helpers
   ========================================================================== */
.ew-kicker{
  font-size:.72rem !important; letter-spacing:.2em; text-transform:uppercase;
  font-weight:600; color:var(--wp--preset--color--brass) !important; margin-bottom:.9rem !important;
}
.has-ink-background-color .ew-kicker{ color:var(--wp--preset--color--brass-light) !important; }
.ew-lede{ font-size:var(--wp--preset--font-size--large) !important; line-height:1.6; color:var(--wp--preset--color--slate); }
.has-ink-background-color .ew-lede{ color:rgba(255,255,255,.85) !important; }
.ew-small{ font-size:.87rem !important; }
.ew-muted{ color:#8A8272 !important; }
h1,h2,h3{ letter-spacing:-.004em; }
h2{ margin-bottom:.45em; }
.ew-site strong{ color:var(--wp--preset--color--ink); font-weight:600; }
.has-ink-background-color strong{ color:#fff; }

/* ==========================================================================
   3. Header
   ========================================================================== */
.ew-header{ border-bottom:1px solid #EFEBE3; background:#fff; }
.ew-header .wp-block-group{ align-items:center; }
.ew-logo img, .ew-logo svg{ display:block; height:44px; width:auto; }
.ew-nav .wp-block-navigation__container{ gap:clamp(14px,2.2vw,28px); align-items:center; }
.ew-nav a{ font-size:.9rem; color:var(--wp--preset--color--slate); }
.ew-nav .current-menu-item a{ color:var(--wp--preset--color--ink); font-weight:500; box-shadow:inset 0 -2px var(--wp--preset--color--brass); }
.ew-nav a:hover{ color:var(--wp--preset--color--ink); }
.ew-nav .wp-block-button__link{ color:#fff !important; }

/* ==========================================================================
   4. Buttons & links
   ========================================================================== */
.wp-element-button, .wp-block-button__link{ text-decoration:none !important; transition:background-color .15s ease; }
.is-style-outline > .wp-block-button__link{
  background:transparent !important; color:var(--wp--preset--color--ink) !important;
  border:1px solid var(--wp--preset--color--ink) !important;
}
.is-style-outline > .wp-block-button__link:hover{ background:var(--wp--preset--color--ink) !important; color:#fff !important; }
.has-ink-background-color .wp-block-button__link{
  background:var(--wp--preset--color--brass); border-color:var(--wp--preset--color--brass); color:#fff;
}
.has-ink-background-color .is-style-outline > .wp-block-button__link{
  color:#fff !important; border-color:rgba(255,255,255,.5) !important;
}
.ew-btn-sm .wp-block-button__link{ padding:10px 18px !important; font-size:.85rem !important; }
.ew-textlink a, a.ew-textlink{
  font-size:.9rem; font-weight:500; color:var(--wp--preset--color--ink);
  border-bottom:1px solid var(--wp--preset--color--brass); padding-bottom:2px;
}

/* ==========================================================================
   5. Layout blocks
   ========================================================================== */
.ew-split{ gap:clamp(28px,5vw,64px) !important; align-items:center; }
.ew-split.is-top{ align-items:flex-start; }
.ew-cols{ gap:clamp(20px,3vw,34px) !important; }
.ew-measure > *{ max-width:760px; margin-left:0 !important; margin-right:auto !important; }

/* card */
.ew-card{
  background:#fff; border:1px solid var(--wp--preset--color--hairline);
  border-radius:3px; padding:clamp(22px,2.8vw,30px) !important;
}
.ew-card.has-stone-background-color{ border-color:#E7E1D5; }
.ew-card :where(p:last-child){ margin-bottom:0; }

/* numbered step */
.ew-step .ew-num{
  font-family:var(--wp--preset--font-family--serif); font-size:2.1rem; line-height:1;
  color:var(--wp--preset--color--brass) !important; margin-bottom:.5rem !important; display:block;
}
.has-ink-background-color .ew-step .ew-num{ color:var(--wp--preset--color--brass-light) !important; }

/* stat strip */
.ew-stats{ gap:0 !important; }
.ew-stats > .wp-block-column{
  padding:clamp(26px,3.4vw,38px) clamp(18px,2.6vw,32px);
  border-right:1px solid rgba(255,255,255,.16);
}
.ew-stats > .wp-block-column:last-child{ border-right:0; }
.ew-stats .ew-statnum{
  font-family:var(--wp--preset--font-family--serif);
  font-size:clamp(2.1rem,4.4vw,3rem) !important; line-height:1; color:#fff !important; margin:0 0 .5rem !important;
}
.ew-stats p:not(.ew-statnum){ font-size:.87rem !important; color:rgba(255,255,255,.72) !important; margin:0 !important; line-height:1.5; }

/* quote card */
.ew-quote{
  background:#fff; border:1px solid var(--wp--preset--color--hairline);
  border-top:3px solid var(--wp--preset--color--brass); border-radius:3px;
  padding:clamp(22px,2.6vw,30px) !important;
}
.ew-quote .ew-qtext{
  font-family:var(--wp--preset--font-family--serif); font-size:1.16rem !important;
  line-height:1.45; color:var(--wp--preset--color--ink) !important; margin-bottom:1rem !important;
}
.ew-quote .ew-who{
  font-size:.78rem !important; letter-spacing:.1em; text-transform:uppercase;
  color:#8A8272 !important; font-weight:500; margin:0 !important;
}

/* dashed list */
.ew-ticks{ list-style:none; padding-left:0; margin:0; }
.ew-ticks li{
  position:relative; padding-left:26px; margin-bottom:.7rem;
  font-size:.97rem; line-height:1.55; color:var(--wp--preset--color--slate);
}
.ew-ticks li::before{ content:"—"; position:absolute; left:0; color:var(--wp--preset--color--brass); }
.has-ink-background-color .ew-ticks li{ color:rgba(255,255,255,.82); }

/* centred bands */
.ew-center{ text-align:center; }
.ew-center .wp-block-buttons{ justify-content:center; }
.ew-center .ew-lede{ max-width:640px; margin-left:auto; margin-right:auto; }

/* details table */
.wp-block-table.ew-spec{ margin:0; }
.wp-block-table.ew-spec table{ border-collapse:collapse; width:100%; font-size:.97rem; }
.wp-block-table.ew-spec td{ border:0; border-bottom:1px solid var(--wp--preset--color--hairline) !important; }
.ew-spec{ border-collapse:collapse; width:100%; font-size:.97rem; }
.ew-spec td{ padding:14px 0; border-bottom:1px solid var(--wp--preset--color--hairline); vertical-align:top; color:var(--wp--preset--color--slate); }
.ew-spec td:first-child{ width:170px; color:var(--wp--preset--color--ink); font-weight:500; }
.wp-block-table.ew-spec table{ border-collapse:collapse; }

/* FAQ — real accordion, no JavaScript */
.ew-faq{ border-top:1px solid var(--wp--preset--color--hairline); }
.ew-faq details{ border-bottom:1px solid var(--wp--preset--color--hairline); }
.ew-faq summary{
  cursor:pointer; list-style:none; padding:20px 0; font-weight:600; font-size:1.03rem;
  display:flex; justify-content:space-between; gap:16px; align-items:flex-start;
}
.ew-faq summary::-webkit-details-marker{ display:none; }
.ew-faq summary::after{ content:"+"; color:var(--wp--preset--color--brass); font-size:1.4rem; line-height:1; font-weight:400; }
.ew-faq details[open] summary::after{ content:"–"; }
.ew-faq details > div{ padding-bottom:20px; color:var(--wp--preset--color--slate); font-size:.97rem; max-width:70ch; }

/* image placeholders and photos */
.ew-photo img{ display:block; width:100%; height:auto; border-radius:3px; }
.ew-photo figcaption{ font-size:.78rem; color:#8A8272; text-align:left; margin-top:8px; }
.ew-phone img{ max-width:250px; margin:0 auto; display:block; }

/* form (styled for Fluent Forms / WPForms, and the fallback markup) */
.ew-form{
  background:var(--wp--preset--color--stone); border:1px solid #E7E1D5;
  border-radius:3px; padding:clamp(24px,3vw,34px) !important;
}
.ew-form label{ display:block; font-size:.78rem; letter-spacing:.08em; text-transform:uppercase; font-weight:600; color:var(--wp--preset--color--slate); margin-bottom:7px; }
.ew-form input[type=text], .ew-form input[type=email], .ew-form input[type=tel], .ew-form select, .ew-form textarea{
  width:100%; background:#fff; border:1px solid #DCD5C6; border-radius:2px;
  padding:12px 13px; font-size:.95rem; font-family:inherit; color:var(--wp--preset--color--ink);
}
.ew-form textarea{ min-height:96px; }
.ew-form .ew-field{ margin-bottom:16px; }
.ew-form .ew-row{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.ew-form label.ew-consent{ text-transform:none; letter-spacing:normal; font-weight:400; font-size:.85rem; margin-bottom:0; }
.ew-form .ew-consent{ display:flex; gap:10px; align-items:flex-start; font-size:.85rem; color:var(--wp--preset--color--slate); margin:18px 0 20px; }
.ew-form button{
  width:100%; background:var(--wp--preset--color--ink); color:#fff; border:0; border-radius:2px;
  padding:15px; font-size:.905rem; font-weight:500; letter-spacing:.02em; font-family:inherit; cursor:pointer;
}
.ew-form button:hover{ background:#1E2C4A; }

/* ==========================================================================
   6. Footer
   ========================================================================== */
.ew-footer{ background:var(--wp--preset--color--ink); color:rgba(255,255,255,.72); font-size:.87rem; }
.ew-footer h2,.ew-footer h3,.ew-footer h4{ font-family:var(--wp--preset--font-family--sans) !important; font-size:.72rem !important; letter-spacing:.18em; text-transform:uppercase; color:#fff !important; font-weight:600; margin-bottom:.9rem !important; }
.ew-footer p, .ew-footer li{ color:rgba(255,255,255,.72) !important; font-size:.87rem !important; }
.ew-footer a{ color:rgba(255,255,255,.72) !important; }
.ew-footer a:hover{ color:#fff !important; }
.ew-footer .ew-logo img{ height:38px; }
.ew-footer-links li{ list-style:none; margin-bottom:.5rem; }
.ew-footer-links{ padding-left:0; }
.ew-footer-bottom{ border-top:1px solid rgba(255,255,255,.14); padding-top:22px; font-size:.78rem !important; color:rgba(255,255,255,.55) !important; }
.ew-footer-bottom p{ font-size:.78rem !important; color:rgba(255,255,255,.55) !important; margin:0 !important; }

/* ==========================================================================
   7. Accessibility
   ========================================================================== */
:where(a, button, summary, input, select, textarea):focus-visible{
  outline:2px solid var(--wp--preset--color--brass); outline-offset:3px;
}
.skip-link{ position:absolute; left:-9999px; }
.skip-link:focus{ left:8px; top:8px; z-index:99; background:#fff; padding:10px 16px; border:1px solid var(--wp--preset--color--ink); }
@media (prefers-reduced-motion: reduce){ *{ transition:none !important; animation:none !important; } }

/* ==========================================================================
   8. Responsive
   ========================================================================== */
@media (max-width:781px){
  .ew-stats > .wp-block-column{ border-right:0; border-bottom:1px solid rgba(255,255,255,.16); }
  .ew-stats > .wp-block-column:last-child{ border-bottom:0; }
  .ew-form .ew-row{ grid-template-columns:1fr; }
  .ew-spec td{ display:block; padding:3px 0; border-bottom:0; }
  .ew-spec td:first-child{ width:auto; padding-top:14px; }
  .ew-spec tr{ display:block; border-bottom:1px solid var(--wp--preset--color--hairline); padding-bottom:12px; }
  .ew-logo img{ height:38px; }
}
