/* ═══════════════════════════════════════════════════
   EverAble Occupational Therapy — main.css
   ═══════════════════════════════════════════════════ */

:root {
  --clay:       #C4784A;
  --clay-light: #E8C4A0;
  --earth:      #7A5C3A;
  --soil:       #3E2A1A;
  --sage:       #7D8C6A;
  --sage-light: #B5C4A0;
  --sand:       #F2E8D8;
  --cream:      #FAF6EF;
  --bark:       #5C4030;
  --mist:       #E8EDE4;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--soil);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NAV ── */
.nzot-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 5%;
  background: rgba(250,246,239,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(196,120,74,0.15);
}
.nzot-nav .nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.nzot-nav .nav-logo svg { width: 36px; height: 36px; flex-shrink: 0; }
.nav-logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--earth);
  line-height: 1.2;
}
.nav-logo-sub {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bark); text-decoration: none; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--clay); }

/* ── HERO ── */
.nzot-hero {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
  position: relative; overflow: hidden;
}
.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 8rem 5% 5rem 7%; position: relative; z-index: 2;
}
.hero-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--clay); font-weight: 500; margin-bottom: 1.5rem;
  opacity: 0; animation: fadeUp 0.8s 0.2s forwards;
}
.hero-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 5vw, 5.5rem); font-weight: 300;
  line-height: 1.05; color: var(--soil); margin-bottom: 0.5rem;
  opacity: 0; animation: fadeUp 0.9s 0.4s forwards;
}
.hero-name em { font-style: italic; color: var(--clay); }
.hero-practice-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 1.6vw, 1.3rem); font-weight: 400;
  color: var(--earth); letter-spacing: 0.06em; margin-bottom: 1rem;
  opacity: 0; animation: fadeUp 0.9s 0.55s forwards;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 400;
  color: var(--sage); letter-spacing: 0.04em; margin-bottom: 2rem;
  opacity: 0; animation: fadeUp 0.9s 0.6s forwards;
}
.hero-desc {
  font-size: 0.95rem; color: var(--bark); max-width: 420px;
  line-height: 1.8; margin-bottom: 3rem;
  opacity: 0; animation: fadeUp 0.9s 0.8s forwards;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; opacity: 0; animation: fadeUp 0.9s 1s forwards; }

.btn-primary {
  padding: 0.85rem 2.2rem; background: var(--clay); color: #fff;
  text-decoration: none; font-size: 0.8rem; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 500;
  transition: background 0.25s, transform 0.2s; border-radius: 2px;
  display: inline-block;
}
.btn-primary:hover { background: var(--earth); transform: translateY(-1px); }
.btn-secondary {
  padding: 0.85rem 2.2rem; border: 1.5px solid var(--clay);
  color: var(--clay); text-decoration: none; font-size: 0.8rem;
  letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
  transition: all 0.25s; border-radius: 2px; display: inline-block;
}
.btn-secondary:hover { background: var(--clay); color: #fff; }

.hero-right { position: relative; background: var(--mist); overflow: hidden; }
.hero-pattern {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 70% 30%, rgba(196,120,74,0.18) 0%, transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(125,140,106,0.2) 0%, transparent 50%);
}
.hero-organic { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.hero-organic svg { width: 85%; height: 85%; opacity: 0; animation: fadeIn 1.2s 0.5s forwards; }

.credential-badge {
  position: absolute; bottom: 2.5rem; left: -1.5rem;
  background: var(--soil); color: var(--sand);
  padding: 1.2rem 1.8rem; max-width: 220px; z-index: 3; border-radius: 2px;
  opacity: 0; animation: fadeUp 1s 1.2s forwards;
}
.credential-badge .badge-num {
  font-family: 'Cormorant Garamond', serif; font-size: 2.8rem;
  font-weight: 300; line-height: 1; color: var(--clay-light);
}
.credential-badge .badge-label {
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--clay-light); margin-top: 0.3rem;
}

/* ── SHARED SECTION STYLES ── */
section { padding: 6rem 7%; }

.section-tag {
  font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--clay); font-weight: 500; margin-bottom: 0.8rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.section-tag::before {
  content: '';
  display: inline-block; width: 2rem; height: 1px; background: var(--clay);
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 300;
  line-height: 1.15; color: var(--soil); margin-bottom: 1rem;
}
.section-title em { font-style: italic; color: var(--clay); }
.section-intro {
  font-size: 0.95rem; color: var(--bark); max-width: 560px;
  line-height: 1.85; margin-bottom: 3.5rem;
}
.body-text {
  font-size: 0.95rem; color: var(--bark); line-height: 1.85; margin-bottom: 1.5rem;
}

/* ── ABOUT ── */
.nzot-about { background: var(--sand); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-visual { position: relative; }
.about-card {
  background: var(--cream); padding: 2.5rem;
  border-left: 3px solid var(--clay); margin-bottom: 1.5rem;
}
.about-card h4 {
  font-family: 'Cormorant Garamond', serif; font-size: 1.15rem;
  font-weight: 600; color: var(--earth); margin-bottom: 0.5rem;
}
.about-card p { font-size: 0.88rem; color: var(--bark); line-height: 1.7; }
.about-quote {
  font-family: 'Cormorant Garamond', serif; font-size: 1.35rem;
  font-style: italic; color: var(--sage); line-height: 1.5;
  border-left: 2px solid var(--sage-light); padding-left: 1.5rem; margin-top: 2rem;
}

/* ── EXPERTISE GRID ── */
.nzot-expertise { background: var(--mist); padding: 4rem 7%; }
.expertise-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: rgba(92,64,48,0.1);
  border: 1px solid rgba(92,64,48,0.1); margin-top: 1rem;
}
.expertise-item { background: var(--mist); padding: 2rem 1.8rem; transition: background 0.25s; }
.expertise-item:hover { background: var(--cream); }
.expertise-num {
  font-family: 'Cormorant Garamond', serif; font-size: 2.5rem;
  font-weight: 300; color: rgba(196,120,74,0.35); line-height: 1; margin-bottom: 0.8rem;
}
.expertise-label { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.05em; color: var(--soil); margin-bottom: 0.4rem; }
.expertise-sub { font-size: 0.78rem; color: var(--sage); line-height: 1.6; }

/* ── SERVICES ── */
.nzot-services { background: var(--cream); }
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem;
}
.service-card {
  background: var(--sand); padding: 2.5rem; position: relative; overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s; border-radius: 2px;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(62,42,26,0.1); }
.service-card.featured {
  background: var(--soil); color: var(--sand); grid-column: span 2;
}
.service-card.featured .service-icon { color: var(--clay-light); }
.service-card.featured .service-title { color: var(--sand); }
.service-card.featured .service-desc { color: rgba(242,232,216,0.75); }
.service-card.featured .service-items li { color: rgba(242,232,216,0.8); }
.service-card.featured .service-items li::before { background: var(--clay-light); }
.service-icon { font-size: 1.8rem; color: var(--clay); margin-bottom: 1.2rem; }
.service-title {
  font-family: 'Cormorant Garamond', serif; font-size: 1.4rem;
  font-weight: 600; color: var(--soil); margin-bottom: 0.8rem;
}
.service-desc { font-size: 0.88rem; color: var(--bark); line-height: 1.75; margin-bottom: 1.2rem; }
.service-items { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.service-items li { font-size: 0.82rem; color: var(--bark); padding-left: 1rem; position: relative; }
.service-items li::before {
  content: ''; position: absolute; left: 0; top: 0.55em;
  width: 4px; height: 4px; border-radius: 50%; background: var(--clay);
}
.featured-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.featured-badge {
  display: inline-block; font-size: 0.65rem; letter-spacing: 0.2em;
  text-transform: uppercase; background: var(--clay); color: #fff;
  padding: 0.3rem 0.9rem; border-radius: 20px; margin-bottom: 1.2rem;
}

/* ── MEDICO-LEGAL ── */
.nzot-medico {
  background: var(--soil); color: var(--sand); position: relative; overflow: hidden;
}
.nzot-medico::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(196,120,74,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.nzot-medico .section-title { color: var(--sand); }
.nzot-medico .section-intro { color: rgba(242,232,216,0.7); }
.nzot-medico .section-tag::before { background: var(--clay-light); }
.ml-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.ml-process { display: flex; flex-direction: column; }
.ml-step {
  display: flex; gap: 1.5rem; align-items: flex-start;
  padding: 1.5rem 0; border-bottom: 1px solid rgba(242,232,216,0.1);
}
.ml-step:last-child { border-bottom: none; }
.ml-step-num {
  font-family: 'Cormorant Garamond', serif; font-size: 1.8rem;
  font-weight: 300; color: var(--clay-light); line-height: 1; min-width: 2rem; opacity: 0.6;
}
.ml-step-content h4 { font-size: 0.88rem; font-weight: 500; color: var(--clay-light); margin-bottom: 0.4rem; }
.ml-step-content p { font-size: 0.82rem; color: rgba(242,232,216,0.65); line-height: 1.7; }
.ml-section-heading {
  font-family: 'Cormorant Garamond', serif; font-size: 1.2rem;
  color: var(--clay-light); margin-bottom: 1.5rem; font-weight: 400; letter-spacing: 0.03em;
}
.ml-types { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ml-type {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(196,120,74,0.2);
  padding: 1.5rem; border-radius: 2px; transition: background 0.25s;
}
.ml-type:hover { background: rgba(196,120,74,0.08); }
.ml-type-icon { font-size: 1.4rem; margin-bottom: 0.6rem; }
.ml-type h4 {
  font-family: 'Cormorant Garamond', serif; font-size: 1rem;
  font-weight: 600; color: var(--clay-light); margin-bottom: 0.4rem;
}
.ml-type p { font-size: 0.78rem; color: rgba(242,232,216,0.6); line-height: 1.6; }

/* ── REFERRALS ── */
.nzot-referrals { background: var(--cream); }
.referral-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem; margin-top: 1rem;
}
.referral-card {
  border: 1.5px solid rgba(125,140,106,0.3); padding: 2rem 1.5rem;
  text-align: center; border-radius: 2px; transition: border-color 0.25s, transform 0.25s;
}
.referral-card:hover { border-color: var(--clay); transform: translateY(-2px); }
.referral-icon { font-size: 2rem; margin-bottom: 0.8rem; }
.referral-title {
  font-family: 'Cormorant Garamond', serif; font-size: 1.05rem;
  font-weight: 600; color: var(--soil); margin-bottom: 0.4rem;
}
.referral-sub { font-size: 0.78rem; color: var(--sage); line-height: 1.6; }

/* ── CONTACT ── */
.nzot-contact {
  background: var(--earth); color: var(--sand);
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.nzot-contact .section-title { color: var(--sand); }
.nzot-contact .section-tag::before { background: var(--clay-light); }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon { font-size: 1.1rem; margin-top: 0.1rem; color: var(--clay-light); min-width: 1.5rem; }
.contact-detail h4 {
  font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--clay-light); margin-bottom: 0.2rem;
}
.contact-detail p, .contact-detail a {
  font-size: 0.9rem; color: rgba(242,232,216,0.8); text-decoration: none;
}
.contact-detail a:hover { color: var(--clay-light); }
.contact-form-area { background: rgba(255,255,255,0.06); padding: 2.5rem; border-radius: 2px; }
.contact-form-area h3 {
  font-family: 'Cormorant Garamond', serif; font-size: 1.5rem;
  color: var(--sand); margin-bottom: 1.5rem; font-weight: 400;
}
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block; font-size: 0.7rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--clay-light); margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(242,232,216,0.2); padding: 0.75rem 1rem;
  color: var(--sand); font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem; border-radius: 2px; outline: none; transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--clay-light);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select option { background: var(--earth); color: var(--sand); }
.form-submit {
  width: 100%; padding: 0.9rem; background: var(--clay); color: #fff;
  border: none; font-family: 'DM Sans', sans-serif; font-size: 0.8rem;
  letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer;
  border-radius: 2px; transition: background 0.25s;
}
.form-submit:hover { background: var(--clay-light); color: var(--soil); }
.form-success {
  padding: 1rem; background: rgba(125,140,106,0.2); border: 1px solid var(--sage);
  color: var(--sand); border-radius: 2px; margin-bottom: 1rem; font-size: 0.9rem;
}

/* ── FOOTER ── */
.nzot-footer {
  background: var(--soil); padding: 2rem 7%;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-logo svg { width: 32px; height: 32px; flex-shrink: 0; }
.footer-name {
  font-family: 'Cormorant Garamond', serif; font-size: 1rem;
  color: var(--clay-light); font-weight: 400;
}
.footer-reg { font-size: 0.72rem; color: rgba(242,232,216,0.45); letter-spacing: 0.05em; margin-top: 2px; }
.footer-right { font-size: 0.72rem; color: rgba(242,232,216,0.4); text-align: right; }

/* ── EXPERIENCE / TIMELINE (available for future use) ── */
.experience { background: var(--sand); }
.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0.5rem; bottom: 0.5rem;
  width: 1px; background: linear-gradient(to bottom, var(--clay), var(--sage-light));
}
.timeline-item { position: relative; padding-bottom: 2.5rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -2.5rem; width: 10px; height: 10px;
  border-radius: 50%; background: var(--clay); top: 0.35rem;
  border: 2px solid var(--sand); box-shadow: 0 0 0 3px rgba(196,120,74,0.2);
}
.timeline-period {
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--clay); font-weight: 500; margin-bottom: 0.3rem;
}
.timeline-role {
  font-family: 'Cormorant Garamond', serif; font-size: 1.25rem;
  font-weight: 600; color: var(--soil); margin-bottom: 0.2rem;
}
.timeline-org { font-size: 0.85rem; color: var(--sage); margin-bottom: 0.6rem; }
.timeline-desc { font-size: 0.85rem; color: var(--bark); line-height: 1.75; max-width: 560px; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── BLOG ARCHIVE ── */
.blog-archive { padding-top: 0; }

/* ── ELEMENTOR COMPATIBILITY ── */

/* Give Elementor a proper canvas when the page uses it */
.elementor-page main#main-content {
  padding: 0;
  min-height: 60vh;
}

/* Prevent Elementor widgets from overriding our CSS variables */
.elementor-widget-text-editor,
.elementor-widget-heading {
  font-family: inherit;
}

/* Elementor section full-width support */
.elementor-section.elementor-section-full_width {
  padding-left: 0;
  padding-right: 0;
}

/* When Elementor replaces header/footer, remove our nav/footer */
body.elementor-template-canvas .nzot-nav,
body.elementor-template-canvas .nzot-footer {
  display: none;
}

/* Make our custom classes available as Elementor custom CSS classes */
.e-section-clay      { background-color: var(--clay); }
.e-section-earth     { background-color: var(--earth); }
.e-section-soil      { background-color: var(--soil); }
.e-section-sand      { background-color: var(--sand); }
.e-section-cream     { background-color: var(--cream); }
.e-section-mist      { background-color: var(--mist); }
.e-text-clay         { color: var(--clay); }
.e-text-earth        { color: var(--earth); }
.e-text-soil         { color: var(--soil); }
.e-text-sage         { color: var(--sage); }
.e-text-sand         { color: var(--sand); }
.e-text-bark         { color: var(--bark); }
.e-font-cormorant    { font-family: 'Cormorant Garamond', serif !important; }
.e-font-dm           { font-family: 'DM Sans', sans-serif !important; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nzot-hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-right { height: 300px; }
  .credential-badge { bottom: 1rem; left: 1rem; }
  .about-grid, .ml-grid, .nzot-contact { grid-template-columns: 1fr; gap: 3rem; }
  .service-card.featured { grid-column: span 1; }
  .featured-cols { grid-template-columns: 1fr; }
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .ml-types { grid-template-columns: 1fr; }
  .nzot-nav { padding: 1rem 5%; }
  .nav-links { gap: 1.2rem; }
}
@media (max-width: 600px) {
  section { padding: 4rem 5%; }
  .hero-left { padding: 7rem 5% 3rem; }
  .expertise-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nzot-contact { padding: 4rem 5%; }
}
