/*
Theme Name: Occupational Therapy — Sage Studio
Description: Minimal one-page OT practice design. Requires the free Kadence parent theme. Includes an editable Gutenberg starter homepage.
Author: Custom Starter Design
Template: kadence
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: ot-sage-studio
*/

/* Design tokens — edit these to adjust the entire design. */
:root {
  --ot-paper: #FAF9F6;
  --ot-green: #284B40;
  --ot-green-dark: #1F3D34;
  --ot-sage: #E8F0EA;
  --ot-sage-mid: #A2B7A7;
  --ot-sand: #E8DDD0;
  --ot-ink: #26332E;
  --ot-muted: #62736A;
  --ot-line: #DCE6DD;
  --ot-white: #FFFFFF;
  --ot-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* Make the template behave like a purpose-built landing page, without affecting other pages. */
body.ot-practice-home { background: var(--ot-paper) !important; }
body.ot-practice-home #masthead,
body.ot-practice-home .site-header,
body.ot-practice-home #colophon,
body.ot-practice-home .site-footer,
body.ot-practice-home .entry-header,
body.ot-practice-home .page-header,
body.ot-practice-home .entry-title,
body.ot-practice-home .post-navigation { display: none !important; }
body.ot-practice-home #inner-wrap,
body.ot-practice-home #primary,
body.ot-practice-home #main,
body.ot-practice-home .content-container,
body.ot-practice-home .site-container,
body.ot-practice-home .content-area,
body.ot-practice-home .site-main,
body.ot-practice-home .entry,
body.ot-practice-home .entry-content,
body.ot-practice-home .entry-content-wrap,
body.ot-practice-home .content-bg { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; background: transparent !important; display: block !important; min-width: 0 !important; }
body.ot-practice-home #primary { float: none !important; }
body.ot-practice-home .site-content { padding: 0 !important; margin: 0 !important; }
body.ot-practice-home .entry-content > .ot-landing { margin: 0; }
body.ot-practice-home #wrapper { overflow: clip; }

.ot-landing,
.ot-landing * { box-sizing: border-box; }
.ot-landing { width: 100%; color: var(--ot-ink); background: var(--ot-paper); font-family: var(--ot-font); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
.ot-landing :where(h1,h2,h3,h4,p) { font-family: var(--ot-font); }
.ot-landing :where(h1,h2,h3,h4) { color: var(--ot-green); font-weight: 650; letter-spacing: -0.045em; line-height: 1.13; margin-top: 0; }
.ot-landing p { color: var(--ot-muted); margin-block: 0 1.25em; }
.ot-landing a { color: inherit; text-decoration: none; }
.ot-landing a:hover { text-decoration: underline; }
.ot-landing a:focus-visible, .ot-landing button:focus-visible { outline: 3px solid var(--ot-sage-mid); outline-offset: 4px; }
.ot-landing .ot-container { width: min(1140px, calc(100% - 56px)) !important; margin-left: auto !important; margin-right: auto !important; }
.ot-landing .wp-block-columns { margin-bottom: 0; }
.ot-landing .wp-block-column { min-width: 0; }
.ot-landing .ot-eyebrow { color: #547667; font-size: 12px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; margin-bottom: 16px; }
.ot-landing .ot-section-title { font-size: clamp(32px, 4vw, 48px); max-width: 750px; margin: 0 0 20px; }
.ot-landing .ot-lead { font-size: clamp(16px, 1.5vw, 18px); line-height: 1.78; max-width: 540px; }
.ot-landing .ot-smallprint { font-size: 12px; line-height: 1.55; }

/* Header */
.ot-landing .ot-nav-wrap { background: var(--ot-paper); border-bottom: 1px solid #E9EDE8; }
.ot-landing .ot-nav { min-height: 85px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: nowrap; }
.ot-landing .ot-brand { font-weight: 750; font-size: 18px; color: var(--ot-green); letter-spacing: -.045em; white-space: nowrap; margin: 0; }
.ot-landing .ot-nav-right { display: flex; justify-content: flex-end; align-items: center; gap: 28px; }
.ot-landing .ot-nav-links { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; color: var(--ot-ink); }
.ot-landing .ot-nav-links a { margin-left: 24px; }
.ot-landing .ot-nav-links a:hover { color: var(--ot-green); }
.ot-landing .wp-block-buttons { margin: 0; }
.ot-landing .wp-block-button__link { font-family: var(--ot-font); font-size: 14px; line-height: 1.1; font-weight: 700; padding: 17px 26px; border-radius: 8px; background: var(--ot-green); color: white; box-shadow: none; transition: background-color .18s ease, transform .18s ease; }
.ot-landing .wp-block-button__link:hover { background: var(--ot-green-dark); color: white; text-decoration: none; transform: translateY(-1px); }
.ot-landing .ot-button-secondary .wp-block-button__link { background: transparent; color: var(--ot-green); padding-left: 8px; padding-right: 8px; }
.ot-landing .ot-button-secondary .wp-block-button__link:hover { background: transparent; color: var(--ot-green-dark); text-decoration: underline; }
.ot-landing .ot-nav-cta .wp-block-button__link { padding: 13px 20px; font-size: 13px; }

/* Hero */
.ot-landing .ot-hero-section { padding: 86px 0 100px; }
.ot-landing .ot-hero-grid { align-items: center !important; gap: clamp(32px, 5vw, 76px); }
.ot-landing .ot-hero-copy h1 { font-size: clamp(43px, 5.5vw, 72px); max-width: 700px; letter-spacing: -.062em; margin: 0 0 24px; }
.ot-landing .ot-hero-copy .ot-lead { margin: 0 0 30px; }
.ot-landing .ot-hero-buttons { gap: 14px; margin: 0 0 26px; }
.ot-landing .ot-hero-meta { margin-bottom: 0; font-size: 12px; font-weight: 600; color: #65786C; letter-spacing: .02em; }

/* Photos: Cover blocks can be replaced with the therapist's real images via the editor. */
.ot-landing .ot-photo { overflow: hidden; border-radius: 20px; isolation: isolate; position: relative; box-shadow: none; }
.ot-landing .ot-photo .wp-block-cover__inner-container { width: 100%; max-width: 100%; text-align: center; position: relative; z-index: 2; }
.ot-landing .ot-photo .ot-photo-label { color: var(--ot-green); font-size: 17px; font-weight: 750; letter-spacing: -.02em; margin: 0 0 5px; }
.ot-landing .ot-photo .ot-photo-help { color: #5D796C; font-size: 12px; margin: 0 auto; max-width: 220px; line-height: 1.6; }
.ot-landing .ot-photo:before { content: ""; width: 270px; height: 270px; background: #C9DACE; border-radius: 50%; position: absolute; top: -85px; right: -85px; z-index: 0; opacity: .55; pointer-events: none; }
.ot-landing .ot-photo:after { content: ""; width: 230px; height: 230px; border: 1.5px solid #B2CBBB; border-radius: 50%; position: absolute; bottom: -115px; left: -72px; z-index: 0; opacity: .6; pointer-events: none; }
.ot-landing .ot-photo img.wp-block-cover__image-background { object-fit: cover; object-position: center 30%; }
.ot-landing .ot-photo:has(img.wp-block-cover__image-background)::before,
.ot-landing .ot-photo:has(img.wp-block-cover__image-background)::after { display: none; }
.ot-landing .ot-photo:has(img.wp-block-cover__image-background) .wp-block-cover__inner-container { display: none; }
.ot-landing .ot-hero-photo { min-height: 520px !important; }
.ot-landing .ot-about-photo { min-height: 410px !important; }

/* Services */
.ot-landing .ot-services-section { background: var(--ot-sage); padding: 94px 0 103px; }
.ot-landing .ot-section-intro { max-width: 660px; font-size: 16px; margin-bottom: 35px; }
.ot-landing .ot-service-grid { gap: 20px; align-items: stretch; }
.ot-landing .ot-service-grid > .wp-block-column { display: flex; }
.ot-landing .ot-service-card { background: var(--ot-paper); border: 1px solid #DAE5DB; border-radius: 15px; padding: 33px 30px 29px; width: 100%; }
.ot-landing .ot-card-num { font-size: 12px; font-weight: 800; color: #72917E; letter-spacing: .16em; margin-bottom: 30px; }
.ot-landing .ot-service-card h3 { font-size: 24px; margin: 0 0 14px; letter-spacing: -.035em; }
.ot-landing .ot-service-card p:not(.ot-card-num) { font-size: 14px; line-height: 1.75; margin: 0; }

/* About */
.ot-landing .ot-about-section { padding: 110px 0; }
.ot-landing .ot-about-grid { gap: clamp(40px, 6vw, 94px); align-items: center !important; }
.ot-landing .ot-about-copy p { line-height: 1.78; }
.ot-landing .ot-about-copy .ot-section-title { max-width: 510px; }
.ot-landing .ot-credentials { font-weight: 700; color: var(--ot-green); font-size: 14px; margin: 20px 0 0; }

/* Process */
.ot-landing .ot-process-section { padding: 90px 0 100px; border-top: 1px solid var(--ot-line); }
.ot-landing .ot-process-grid { gap: 42px; margin-top: 36px; }
.ot-landing .ot-process-card { padding-top: 18px; border-top: 2px solid var(--ot-sage-mid); }
.ot-landing .ot-process-num { color: #71917C; font-size: 12px; font-weight: 800; letter-spacing: .15em; }
.ot-landing .ot-process-card h3 { font-size: 22px; margin: 18px 0 12px; }
.ot-landing .ot-process-card p { font-size: 14px; line-height: 1.75; }

/* Contact */
.ot-landing .ot-contact-section { background: var(--ot-sage); padding: 108px 0 112px; }
.ot-landing .ot-contact-grid { gap: clamp(32px, 6vw, 100px); align-items: start !important; }
.ot-landing .ot-contact-copy h2 { margin: 0 0 20px; }
.ot-landing .ot-contact-note { font-size: 13px; border-left: 3px solid var(--ot-sage-mid); padding-left: 15px; max-width: 400px; }
.ot-landing .ot-form-panel { background: #FFF; border: 1px solid #DAE5DB; border-radius: 17px; padding: clamp(24px, 4vw, 40px); box-shadow: 0 13px 32px rgba(34,70,50,.05); }
.ot-landing .ot-form-panel h3 { font-size: 22px; margin-bottom: 20px; }
.ot-landing .ot-form-panel .ff-el-group { margin-bottom: 18px; }
.ot-landing .ot-form-panel .ff-el-input--label label,
.ot-landing .ot-form-panel .ff-el-input--label { font: 700 13px var(--ot-font); color: var(--ot-ink); }
.ot-landing .ot-form-panel :is(input[type="text"],input[type="email"],input[type="tel"],select,textarea) { border: 1px solid #CFDAD1; background: white; border-radius: 7px; min-height: 46px; padding: 11px 13px; font-family: var(--ot-font); }
.ot-landing .ot-form-panel :is(input,select,textarea):focus { border-color: var(--ot-green); outline: 2px solid #BCD0C0; outline-offset: 1px; }
.ot-landing .ot-form-panel .ff-btn-submit { background: var(--ot-green) !important; color: white !important; border: 0 !important; border-radius: 8px !important; padding: 15px 24px !important; font-family: var(--ot-font); font-weight: 700; }
.ot-landing .ot-form-unconfigured { border: 1px dashed #9EB7A2; padding: 25px; border-radius: 9px; background: var(--ot-paper); }
.ot-landing .ot-form-unconfigured strong { display: block; color: var(--ot-green); font-size: 15px; }
.ot-landing .ot-form-unconfigured p, .ot-landing .ot-form-unconfigured li { font-size: 13px; line-height: 1.65; }

/* Footer */
.ot-landing .ot-footer-section { background: var(--ot-green); color: white; padding: 32px 0; }
.ot-landing .ot-footer-row { align-items: center !important; gap: 20px; }
.ot-landing .ot-footer-brand, .ot-landing .ot-footer-meta { margin: 0; font-size: 13px; color: white; }
.ot-landing .ot-footer-brand { font-weight: 800; font-size: 15px; }
.ot-landing .ot-footer-meta { opacity: .82; text-align: right; }
.ot-landing .ot-footer-meta a { color: white; text-decoration: underline; text-underline-offset: 3px; }

/* Responsive layouts */
@media (max-width: 980px) {
  .ot-landing .ot-nav-links a { margin-left: 15px; }
  .ot-landing .ot-hero-section { padding: 66px 0 75px; }
  .ot-landing .ot-hero-photo { min-height: 410px !important; }
  .ot-landing .ot-about-section { padding: 80px 0; }
  .ot-landing .ot-services-section { padding: 80px 0 85px; }
  .ot-landing .ot-service-card { padding: 26px 22px; }
  .ot-landing .ot-service-card h3 { font-size: 21px; }
}
@media (max-width: 781px) {
  .ot-landing .ot-container { width: min(580px, calc(100% - 38px)) !important; }
  .ot-landing .ot-nav { min-height: 72px; flex-direction: row !important; align-items: center !important; }
  .ot-landing .ot-nav > .wp-block-column { width: auto !important; flex: 0 1 auto !important; }
  .ot-landing .ot-nav-links { display: none; }
  .ot-landing .ot-nav-right { gap: 0; }
  .ot-landing .ot-nav-cta .wp-block-button__link { padding: 11px 15px; }
  .ot-landing .ot-hero-section { padding: 56px 0 71px; }
  .ot-landing .ot-hero-grid,.ot-landing .ot-about-grid,.ot-landing .ot-contact-grid { gap: 35px; }
  .ot-landing .ot-hero-copy h1 { font-size: clamp(42px, 10vw, 59px); }
  .ot-landing .ot-hero-photo { min-height: 445px !important; }
  .ot-landing .ot-services-section { padding: 67px 0 74px; }
  .ot-landing .ot-service-grid { gap: 14px; }
  .ot-landing .ot-about-section { padding: 76px 0; }
  .ot-landing .ot-about-photo { min-height: 360px !important; }
  .ot-landing .ot-process-section { padding: 68px 0 77px; }
  .ot-landing .ot-process-grid { gap: 13px; }
  .ot-landing .ot-contact-section { padding: 70px 0 78px; }
  .ot-landing .ot-footer-section { padding: 27px 0; }
  .ot-landing .ot-footer-meta { text-align: left; }
}
@media (max-width: 390px) {
  .ot-landing .ot-brand { font-size: 15px; }
  .ot-landing .ot-nav-cta .wp-block-button__link { font-size: 12px; padding: 11px 12px; }
  .ot-landing .ot-hero-buttons { gap: 2px; }
  .ot-landing .ot-hero-buttons .wp-block-button__link { font-size: 13px; padding: 15px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .ot-landing * { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
