/* ===================================================================
   FVL CMS — Default (Clean) Theme
   Self-contained: used by both the live site and the GrapesJS canvas.
   =================================================================== */

/* ── Variables ── */
:root {
  --primary:       #495A58;
  --primary-dark:  #3a4846;
  --primary-light: #6d8c89;
  --accent:        #8fb5b2;
  --header-bg:     #333333;
  --header-bg-tint:#404040;
  --white:         #ffffff;
  --off-white:     #f2f2f2;
  --gray-100:      #e5e5e5;
  --gray-200:      #c7c7c7;
  --gray-400:      #adadad;
  --gray-600:      #6d6d6d;
  --gray-800:      #303030;
  --text:          #6d6d6d;
  --text-muted:    #6d6d6d;
  --font-body:     'Roboto', sans-serif;
  --font-heading:  'Montserrat', sans-serif;
  --max-w:         min(1200px, 92vw);
  --pad-section:   72px;
  --radius:        6px;
  --shadow:        0 2px 12px rgba(0,0,0,0.09);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: var(--font-body); color: var(--text); background: #fff; line-height: 1.8; font-size: 16px; }
img   { max-width: 100%; height: auto; display: block; }
a     { color: var(--primary); text-decoration: none; }
a:hover { color: #607674; }
p     { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Typography ── */
h1,h2,h3,h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.25; margin-bottom: .5em; color: var(--primary); }
h1 { font-size: 2.625rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.05rem; }

/* ── Container ── */
.cms-container { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }

/* ── Section wrappers ── */
.cms-section         { padding: var(--pad-section) 0; }
.cms-section--white  { background: #fff; }
.cms-section--light  { background: var(--off-white); }
.cms-section--shaded { background: #e5e5e5; }
.cms-section--primary{ background: var(--primary); color: #dae1e0; }
.cms-section--primary h1,.cms-section--primary h2,.cms-section--primary h3 { color: #dae1e0; }
.cms-section--dark   { background: var(--gray-800); color: #a2a2a2; }
.cms-section--primary h1,.cms-section--primary h2,.cms-section--primary h3,.cms-section--primary h4,.cms-section--primary p,
.cms-section--dark    h1,.cms-section--dark    h2,.cms-section--dark    h3,.cms-section--dark    h4,.cms-section--dark    p { color: inherit; }

/* ── Section heading block ── */
.cms-section-title          { text-align: center; margin-bottom: 52px; }
.cms-section-title h2       { margin-bottom: 12px; }
.cms-section-title p        { color: var(--text-muted); max-width: 640px; margin: 0 auto; font-size: 1.05rem; }
.cms-section--primary .cms-section-title p,
.cms-section--dark .cms-section-title p { color: inherit; }
.cms-section-title--left    { text-align: left; }
.cms-section-title--left p  { margin-left: 0; }

/* ── Hero ── */
.cms-hero            { position: relative; min-height: 520px; display: flex; align-items: center; overflow: hidden; }
.cms-hero img.cms-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.cms-hero__overlay   { position: absolute; inset: 0; background: rgba(0,0,0,0.3); z-index: 1; }
.cms-hero__content   { position: relative; z-index: 2; text-align: center; color: #fff; padding: 100px 40px; max-width: var(--max-w); margin: 0 auto; width: 100%; }
.cms-hero__content h1,.cms-hero__content h2,.cms-hero__content h3,.cms-hero__content p { color: #fff; }

/* ── Grid ── */
.cms-grid   { display: grid; gap: 28px; }
.cms-grid-2 { grid-template-columns: repeat(2,1fr); }
.cms-grid-3 { grid-template-columns: repeat(3,1fr); }

/* ── Columns (flex) ── */
.cms-columns          { display: flex; gap: 40px; align-items: flex-start; }
.cms-columns--center  { align-items: center; }
.cms-col              { flex: 1; min-width: 0; }
.cms-col--narrow      { flex: 0 0 40%; }

/* ── Card ── */
.cms-card         { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.cms-card__img    { overflow: hidden; }
.cms-card__img img{ width: 100%; height: 220px; object-fit: cover; transition: transform .4s; }
.cms-card:hover .cms-card__img img { transform: scale(1.04); }
.cms-card__body   { padding: 24px; }
.cms-card__body h3{ margin-bottom: 8px; font-size: 1.125rem; }
.cms-card__body p { color: var(--text-muted); font-size: 0.95rem; }

/* ── Testimonial ── */
.cms-testimonial       { background: var(--off-white); border-radius: var(--radius); padding: 28px 28px 28px 32px; border-left: 4px solid var(--primary); }
.cms-testimonial p     { font-style: italic; font-size: 1.05rem; margin-bottom: 16px; }
.cms-testimonial__name { font-weight: 700; color: var(--primary); font-size: 0.9rem; letter-spacing: .03em; text-transform: uppercase; }

/* ── Icon + text row ── */
.cms-icon-row       { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.cms-icon-row__icon { width: 44px; height: 44px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.cms-icon-row__text h4 { margin-bottom: 4px; }
.cms-icon-row__text p  { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* ── Highlight / callout ── */
.cms-callout       { background: var(--accent); border-radius: var(--radius); padding: 24px 28px; }
.cms-callout--info { background: #e0f2f1; border-left: 4px solid var(--primary); }

/* ── Buttons ── */
.cms-btn           { display: inline-block; padding: 13px 30px; border-radius: var(--radius); font-family: var(--font-heading); font-weight: 700; font-size: .9rem; letter-spacing: .02em; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: all .2s; }
.cms-btn--primary  { background: var(--primary); color: #fff !important; border-color: var(--primary); }
.cms-btn--primary:hover  { background: var(--primary-dark); border-color: var(--primary-dark); }
.cms-btn--secondary{ background: transparent; color: var(--primary) !important; border-color: var(--primary); }
.cms-btn--secondary:hover{ background: var(--primary); color: #fff !important; }
.cms-btn--white    { background: #fff; color: var(--primary) !important; border-color: #fff; }
.cms-btn--white:hover    { background: var(--off-white); border-color: var(--off-white); }
.cms-btn--ghost    { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.5); }
.cms-btn--ghost:hover    { background: rgba(255,255,255,.15); border-color: #fff; }
.cms-btn-group     { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.cms-btn-center    { text-align: center; }

/* ── Gallery (natural-aspect photos with captions) ── */
.cms-gallery          { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cms-gallery figure   { margin: 0; }
.cms-gallery__img     { display: block; width: 100%; aspect-ratio: 1.43 / 1; object-fit: cover; border-radius: var(--radius); transition: transform .4s; }
.cms-gallery figure:hover .cms-gallery__img { transform: scale(1.02); }
.cms-gallery figcaption { margin-top: 10px; font-size: .9rem; color: var(--text-muted); text-align: left; line-height: 1.45; }
.cms-gallery__subheading { grid-column: 1 / -1; margin: 24px 0 4px; font-size: 1.375rem; font-family: var(--font-heading); font-weight: 700; color: var(--primary); }
.cms-gallery__subheading:first-child { margin-top: 0; }

/* ── Pricing table ── */
.cms-pricing          { width: 100%; border-collapse: collapse; margin: 0 auto; max-width: 800px; }
.cms-pricing th       { background: var(--primary); color: #fff; padding: 14px 18px; text-align: left; font-family: var(--font-heading); font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; }
.cms-pricing td       { padding: 14px 18px; border-bottom: 1px solid var(--gray-200); font-size: .95rem; }
.cms-pricing tr:last-child td { border-bottom: none; }
.cms-pricing tr:nth-child(even) td { background: var(--off-white); }
.cms-pricing td:nth-child(2) { font-weight: 700; color: var(--primary); white-space: nowrap; }

/* ── FAQ (accordion) ── */
.cms-faq              { max-width: 760px; margin: 0 auto; }
.cms-faq details      { border: 1px solid var(--gray-200); border-radius: var(--radius); margin-bottom: 12px; background: #fff; overflow: hidden; }
.cms-faq summary      { padding: 18px 24px; font-family: var(--font-heading); font-weight: 700; font-size: 1rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.cms-faq summary::-webkit-details-marker { display: none; }
.cms-faq summary::after { content: '+'; font-size: 1.5rem; color: var(--primary); transition: transform .2s; }
.cms-faq details[open] summary::after { transform: rotate(45deg); }
.cms-faq details[open] summary { border-bottom: 1px solid var(--gray-200); }
.cms-faq details > *:not(summary) { padding: 16px 24px; }
.cms-faq details > p { color: var(--text-muted); }

/* ── Contact 2-column layout ── */
.cms-contact          { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.cms-contact-info h3  { font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); margin-top: 24px; margin-bottom: 8px; }
.cms-contact-info h3:first-child { margin-top: 0; }
.cms-contact-info p   { color: var(--text-muted); margin-bottom: 4px; }
.cms-contact-info a   { color: var(--primary); text-decoration: none; }
.cms-contact-info a:hover { text-decoration: underline; }

/* ── Hero variants ── */
.cms-hero--small      { min-height: 320px; }
.cms-hero--small .cms-hero__content { padding: 80px 40px 60px; }
.cms-hero__content h1 + h2 { font-size: 1.1rem; font-weight: 400; opacity: .9; margin-top: 8px; }

/* ── Prose (long-form content) ── */
.cms-prose            { max-width: 760px; margin: 0 auto; }
.cms-prose h2         { margin-top: 32px; margin-bottom: 16px; }
.cms-prose h3         { margin-top: 24px; margin-bottom: 10px; }
.cms-prose p          { margin-bottom: 1em; }
.cms-prose ul, .cms-prose ol { margin: 1em 0 1em 1.4em; }
.cms-prose li         { margin-bottom: .5em; }

/* ── Utilities ── */
.cms-spacer-sm  { height: 20px; }
.cms-spacer-md  { height: 40px; }
.cms-spacer-lg  { height: 80px; }
.cms-divider    { border: none; border-top: 1px solid var(--gray-200); margin: 8px 0; }
.cms-text-center{ text-align: center; }
.cms-text-muted { color: var(--text-muted); }
.cms-img-rounded{ border-radius: var(--radius); }
.cms-img-full   { width: 100%; }

/* ── Header ── */
.cms-header            { background: var(--header-bg); position: relative; z-index: 1000; }
.cms-header__inner     { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 10px 40px; }
.cms-header__logo      { display: block; font-family: var(--font-heading); font-weight: 600; font-size: 26px; color: #fff; text-decoration: none; line-height: 1; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.cms-header__logo:hover { color: #d6d6d6; }
.cms-header__logo span { display: block; font-size: .72rem; font-weight: 400; opacity: .75; letter-spacing: .03em; text-transform: none; }
.cms-nav               { display: flex; gap: 0; list-style: none; margin-left: auto; min-height: 40px; max-width: 100%; }
.cms-nav ul            { display: flex; gap: 0; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.cms-nav li a          { display: block; color: #fff; text-decoration: none; padding: 9px 11px; border: 2px solid transparent; border-radius: 2px; font-size: 1rem; line-height: 1; white-space: nowrap; transition: color .15s ease, border-color .15s ease, background .15s ease; font-family: var(--font-body); font-weight: 400; text-transform: uppercase; }
.cms-nav li a:hover,
.cms-nav li a.active   { color: #fff; border-color: currentColor; background: transparent; text-decoration: none; }
.cms-header__top       { display: flex; align-items: center; justify-content: space-between; min-height: 40px; }
.cms-hamburger         { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.cms-hamburger span    { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; }
.cms-mobile-nav        { display: none; background: var(--header-bg); }
.cms-mobile-nav.open   { display: block; }
.cms-mobile-nav ul     { list-style: none; padding: 0; margin: 0; }
.cms-mobile-nav li     { list-style: none; }
.cms-mobile-nav a      { display: block; color: rgba(255,255,255,.85); text-decoration: none; padding: 13px 28px; border-bottom: 1px solid rgba(255,255,255,.08); font-family: var(--font-heading); }
.cms-mobile-nav a:hover{ background: rgba(255,255,255,.08); color: #fff; }

/* ── Footer (rendered by PHP) ── */
.cms-footer            { background: var(--gray-800); color: #fff; padding: 52px 0 24px; }
.cms-footer__grid      { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.cms-footer h4         { color: #fff; margin-bottom: 16px; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.cms-footer p, .cms-footer address { color: rgba(255,255,255,.58); font-size: .9rem; line-height: 1.9; font-style: normal; }
.cms-footer a          { color: rgba(255,255,255,.58); text-decoration: none; display: block; font-size: .9rem; line-height: 2; }
.cms-footer a:hover    { color: #fff; }
.cms-footer__bottom    { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.cms-footer__copy      { font-size: .82rem; color: rgba(255,255,255,.38); }

/* ── Public contact form ── */
.cms-form              { max-width: 660px; margin: 0 auto; }
.cms-form__row         { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cms-form__group       { margin-bottom: 18px; }
.cms-form__group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .875rem; }
.cms-form__group input,
.cms-form__group textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--gray-200); border-radius: var(--radius); font-family: var(--font-body); font-size: 15px; color: var(--text); transition: border-color .15s; background: #fff; }
.cms-form__group input:focus,
.cms-form__group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(73,90,88,.12); }
.cms-form__group textarea { height: 150px; resize: vertical; }
.cms-flash-ok  { background: #d4edda; color: #155724; padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; }
.cms-flash-err { background: #f8d7da; color: #721c24; padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .cms-grid-3       { grid-template-columns: repeat(2,1fr); }
  .cms-gallery      { grid-template-columns: repeat(3,1fr); }
  .cms-contact      { grid-template-columns: 1fr; gap: 40px; }
  .cms-footer__grid { grid-template-columns: 1fr 1fr; }
  .cms-columns      { flex-wrap: wrap; }
  .cms-col--narrow  { flex: 0 0 100%; }
}
@media (max-width: 640px) {
  :root { --pad-section: 48px; }
  h1    { font-size: 2rem; }
  h2    { font-size: 1.625rem; }
  .cms-grid-2, .cms-grid-3 { grid-template-columns: 1fr; }
  .cms-gallery      { grid-template-columns: repeat(2,1fr); gap: 14px; }
  .cms-nav          { display: none; }
  .cms-header__top  { display: flex; align-items: center; justify-content: space-between; }
  .cms-hamburger    { display: flex; }
  .cms-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .cms-footer__bottom { flex-direction: column; text-align: center; }
  .cms-form__row    { grid-template-columns: 1fr; }
  .cms-hero         { min-height: 360px; }
  .cms-hero__content{ padding: 80px 20px 60px; }
  .cms-hero--small .cms-hero__content { padding: 70px 20px 40px; }
  .cms-pricing th, .cms-pricing td { padding: 10px 12px; font-size: .85rem; }
  .cms-header__inner { display: block; padding: 10px 20px; }
  .cms-header__logo { font-size: 1.2rem; margin-bottom: 0; }
  .cms-container    { padding: 0 20px; }
}
