/* ==========================================================================
   Julia Benites — Accredited Practising Dietitian
   Design system: warm citrus (orange) + garden sage (green) on soft cream.
   Display type: Fraunces (editorial serif). Body/UI: Work Sans.
   Signature motif: overlapping "citrus segment" scallop dividers.
   ========================================================================== */

/* =============== TOKENS =============== */
:root {
  /* Colour */
  --cream:        #FBF7EF;
  --cream-deep:   #F3E7D3;
  --sand:         #EDE0C6;
  --orange:       #C8621F;
  --orange-deep:  #9C4A15;
  --orange-tint:  #FBE7D2;
  --green:        #3F6B4A;
  --green-deep:   #2A4E34;
  --green-tint:   #E4EEE0;
  --ink:          #2C2620;
  --ink-soft:     #6B6153;
  --white:        #FFFFFF;
  --line:         rgba(44, 38, 32, 0.10);

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;

  /* Shape & motion */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 10px 30px rgba(44, 38, 32, 0.08);
  --shadow-lift: 0 16px 40px rgba(44, 38, 32, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =============== RESET & BASE =============== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background-color: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--ink);
  color: var(--white);
  padding: 0.85rem 1.25rem;
  border-radius: 0 0 8px 0;
  z-index: 2000;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* =============== LAYOUT CONTAINERS =============== */
.container {
  width: min(92%, 1180px);
  margin-inline: auto;
  padding-block: 2rem;
}

/* Section rhythm */
.section { padding-block: 5.5rem; }
.bg-cream { background: var(--cream); }
.bg-sand  { background: var(--cream-deep); }
.bg-green { background: var(--green-tint); }
.bg-white { background: var(--white); }

/* Eyebrow label — used as a functional signpost, not decoration */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  display: inline-block;
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head.left { text-align: left; margin: 0 0 2.5rem; }

/* =============== TYPOGRAPHY =============== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); line-height: 1.08; font-weight: 500; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.15; margin-bottom: 1rem; }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); line-height: 1.25; margin-bottom: 0.6rem; }

p, li { font-size: 1.05rem; color: var(--ink-soft); }

strong { color: var(--ink); font-weight: 600; }

a { color: var(--orange-deep); text-decoration: none; }
a:hover { color: var(--orange); }

.italic-accent {
  font-style: italic;
  color: var(--orange);
}

/* =============== HEADER & NAVBAR =============== */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(251, 247, 239, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  box-shadow: 0 1px 0 var(--line);
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}

.brand img { height: 52px; width: auto; }

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.primary-nav a {
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.25s var(--ease);
  position: relative;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.primary-nav a:hover { color: var(--orange-deep); }
.primary-nav a:hover::after { transform: scaleX(1); }

.primary-nav .btn { padding: 0.6rem 1.2rem; }

/* =============== HAMBURGER MENU =============== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  width: 26px;
  height: 2px;
  background-color: var(--ink);
  display: block;
  position: relative;
  transition: background 0.2s ease;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 26px;
  height: 2px;
  background-color: var(--ink);
  left: 0;
  transition: transform 0.2s ease;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

@media (max-width: 860px) {
  .primary-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background-color: var(--white);
    display: none;
    flex-direction: column;
    padding: 1.25rem;
    box-shadow: var(--shadow-soft);
    border-top: 1px solid var(--line);
  }
  .primary-nav.open { display: flex; }
  .primary-nav ul { flex-direction: column; align-items: flex-start; gap: 1.1rem; width: 100%; }
  .primary-nav .btn { width: 100%; text-align: center; }
  .menu-toggle { display: block; }
}

/* =============== BUTTONS =============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--orange);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(200, 98, 31, 0.28);
}
.btn-primary:hover {
  background-color: var(--orange-deep);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(200, 98, 31, 0.34);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--green);
  color: var(--green-deep);
}
.btn-secondary:hover {
  background-color: var(--green);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
}
.btn-ghost:hover {
  background: var(--white);
  color: var(--ink);
}

.btn-block { width: 100%; }

/* =============== SIGNATURE DIVIDER (citrus segments) =============== */
.segment-divider {
  display: block;
  width: 100%;
  height: 46px;
  line-height: 0;
}
.segment-divider svg { width: 100%; height: 100%; display: block; }

/* =============== HERO SECTION =============== */
.hero.parallax {
  position: relative;
  background-image: url("http://juliabenitesdietitian.com/test/img/orange_tree2.webp");
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: var(--white);
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(30, 26, 20, 0.72) 10%, rgba(44, 38, 32, 0.42) 55%, rgba(63, 107, 74, 0.35) 100%);
}

@media (max-width: 860px) {
  .hero.parallax { background-attachment: scroll; }
}
@supports (-webkit-touch-callout: none) {
  .hero.parallax { background-attachment: scroll; }
}

.hero-inner { position: relative; z-index: 2; padding-block: 2rem; }

.hero-content { max-width: 640px; animation: fadeUp 1s var(--ease); }

.hero-content .eyebrow { color: var(--orange-tint); }
.hero-content .eyebrow::before { background: var(--orange-tint); }

.hero-content h1 {
  color: var(--white);
  margin-bottom: 0.3rem;
}

.hero-content .role {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--orange-tint);
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  margin-bottom: 1.4rem;
}

.hero-content .lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.92);
  max-width: 52ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* =============== ABOUT SECTION =============== */
.about-grid {
  display: grid;
  align-items: start;
  gap: 3rem;
  grid-template-columns: 1.1fr 1fr;
}

.about-content .intro {
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 1.1rem;
}

.about-content p { margin-bottom: 1.1rem; }

.about-highlights {
  display: grid;
  gap: 1rem;
  margin: 1.75rem 0 2rem;
}

.highlight-tile {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.highlight-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.highlight-tile .icon {
  flex: none;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--orange-tint);
  font-size: 1.3rem;
}

.highlight-tile p { color: var(--ink); font-weight: 600; margin: 0; font-size: 1rem; }

.about-aside {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
  position: sticky;
  top: 6.5rem;
}

.about-aside h3 { color: var(--green-deep); }
.about-aside ul { list-style: none; display: grid; gap: 0.85rem; margin: 1.25rem 0 1.5rem; }
.about-aside li {
  display: flex; gap: 0.7rem; align-items: baseline;
  font-size: 0.98rem; color: var(--ink-soft);
}
.about-aside li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
  margin-top: 0.45rem;
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-aside { position: static; }
}

/* =============== NDIS SECTION =============== */
.ndis {
  position: relative;
  overflow: hidden;
}

.ndis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.ndis h2 { color: var(--green-deep); }
.ndis .section-head.left .eyebrow { color: var(--green-deep); }
.ndis .section-head.left .eyebrow::before { background: var(--green); }

.ndis-copy p { margin-bottom: 1.1rem; }

.ndis-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0 0.5rem;
}
.ndis-modes span {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--green-deep);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
}

.ndis-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
}

.ndis-panel h3 { color: var(--ink); font-size: 1.1rem; margin-bottom: 1.1rem; }

.ndis-list {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.75rem;
}

.ndis-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--green-tint);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  font-size: 0.98rem;
}

.ndis-list li::before {
  content: "";
  flex: none;
  width: 9px; height: 9px;
  border-radius: 2px;
  background: var(--green);
  transform: rotate(45deg);
}

.ndis-panel .btn { width: 100%; }

.ndis-panel .fine {
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 0.9rem;
}

@media (max-width: 900px) {
  .ndis-grid { grid-template-columns: 1fr; }
}

/* =============== RESTART SECTION =============== */
.restart-intro {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
  margin-bottom: 2.5rem;
}

.restart-intro h3 { color: var(--orange-deep); font-size: 1.15rem; }
.restart-intro p { margin-bottom: 0; }

@media (max-width: 860px) {
  .restart-intro { grid-template-columns: 1fr; }
}

.restart-benefits {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-soft);
}

.restart-benefits > h2 { font-size: 1.6rem; text-align: left; }
.restart-benefits > p { margin-bottom: 1.5rem; }

.restart-benefits ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.restart-benefits li {
  background: var(--cream);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  font-size: 0.98rem;
  color: var(--ink);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.restart-benefits li:hover { transform: translateY(-3px); border-color: var(--green); }

.restart-note {
  background: var(--orange-tint);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
  color: var(--orange-deep);
  font-weight: 600;
}
.restart-note strong { color: var(--orange-deep); }

.restart-pricing {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.restart-pricing h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.4rem; }
.restart-pricing > h2 { font-size: 1.05rem; color: var(--ink-soft); font-family: var(--font-body); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.restart-pricing > p { margin-bottom: 1.5rem; }

.pricing-table-wrap { overflow-x: auto; }

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  min-width: 560px;
}

.pricing-table th, .pricing-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.pricing-table thead th {
  background: var(--green);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
}
.pricing-table thead th:first-child { border-top-left-radius: var(--radius-sm); }
.pricing-table thead th:last-child { border-top-right-radius: var(--radius-sm); }

.pricing-table tfoot td {
  font-weight: 700;
  color: var(--ink);
  background: var(--cream);
}
.pricing-table tfoot tr:last-child td {
  background: var(--orange);
  color: var(--white);
  font-size: 1.15rem;
}

.special-offer {
  margin-top: 2rem;
  background: var(--green-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: left;
}
.special-offer h2 { font-size: 1.3rem; color: var(--green-deep); margin-bottom: 0.3rem; }
.special-offer p { margin: 0; }

.cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}
.cta .btn { text-align: center; }

@media (max-width: 768px) {
  .restart-benefits, .restart-pricing, .restart-intro { padding: 1.75rem; }
}

/* =============== SERVICES SECTION =============== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  text-align: left;
}

.service-card .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange-tint);
  border-radius: 50%;
  width: 64px;
  height: 64px;
  margin-bottom: 1.25rem;
}
.service-card .icon svg { stroke: var(--orange-deep); width: 30px; height: 30px; }

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}
.service-card:hover .icon { background: var(--green-tint); }
.service-card:hover .icon svg { stroke: var(--green-deep); }

.service-card h3 { color: var(--ink); }
.service-card p { font-size: 0.98rem; }

/* =============== RECIPES SECTION =============== */
.recipes-inner {
  display: grid;
  gap: 2rem;
}

.recipes-content .social a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--orange-deep);
  font-weight: 600;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}
.recipes-content .icon-inline { width: 22px; height: 22px; border-radius: 4px; }

.recipe-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.recipe-list li {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  color: var(--ink);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.recipe-list li:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.recipe-list .icon { font-size: 1.3rem; }

/* =============== FAQ SECTION =============== */
.faq-list { display: grid; gap: 1rem; max-width: 820px; margin: 0 auto; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
}
.faq-item h3 { color: var(--ink); font-size: 1.05rem; margin-bottom: 0.5rem; }
.faq-item p { margin: 0; font-size: 0.98rem; }

/* =============== CONTACT SECTION =============== */
.contact-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  box-shadow: var(--shadow-soft);
}

.contact-info { color: var(--ink-soft); }
.contact-info h2 { text-align: left; font-size: 1.3rem; color: var(--green-deep); }
.contact-info p { margin-bottom: 0.85rem; }
.contact-info a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.disclaimer.small {
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: 1.25rem;
}

.contact-form label {
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background-color: var(--cream);
  margin-bottom: 1.1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(200, 98, 31, 0.15);
  background-color: var(--white);
  outline: none;
}

.contact-form textarea { min-height: 140px; resize: vertical; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; padding: 1.75rem; }
}

/* =============== FOOTER =============== */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding-block: 2.5rem;
  text-align: center;
}
.site-footer a { color: var(--orange-tint); }
.footer-inner p { color: inherit; font-size: 0.92rem; }
.footer-credit { color: rgba(255,255,255,0.55); }

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

.fade, .section {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade.visible, .section.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.service-card.visible { opacity: 1; transform: translateY(0); }

/* =============== RESPONSIVE =============== */
@media (max-width: 600px) {
  .section { padding-block: 3.5rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .about-grid, .ndis-grid { grid-template-columns: 1fr; }
}
