/* ==========================================================================
   CAECE Basic Theme – main stylesheet
   ========================================================================== */

:root{
  --caece-dk-teal:#067a8b;
  --caece-lt-teal:#00a9be;
  --caece-red:#EF3F23;
  --caece-orange:#FCB017;
  --caece-yellow:#FED401;
  --caece-charcoal:#414042;

  --caece-bg:#efefef;
  --caece-white:#ffffff;

  --caece-font-sans:"neue-frutiger-world","Helvetica Neue",Arial,sans-serif;
}

/* Base reset-ish */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--caece-font-sans);
  font-weight:400;
  color:var(--caece-charcoal);
  background:var(--caece-bg);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
img{ max-width:100%; height:auto; }
a{ color:var(--caece-dk-teal); }
a:hover{ color:var(--caece-lt-teal); }
p{ margin-top:0; }

/* Accessibility helpers */
.screen-reader-text{
  border:0;
  clip:rect(1px,1px,1px,1px);
  -webkit-clip-path:inset(50%);
  clip-path:inset(50%);
  height:1px;
  margin:-1px;
  overflow:hidden;
  padding:0;
  position:absolute !important;
  width:1px;
  word-wrap:normal !important;
}
.screen-reader-text:focus{
  background:#fff;
  clip:auto !important;
  -webkit-clip-path:none;
  clip-path:none;
  color:var(--caece-charcoal);
  display:block;
  height:auto;
  left:8px;
  padding:12px 16px;
  top:8px;
  width:auto;
  z-index:100000;
  border-radius:6px;
  box-shadow:0 8px 24px rgba(0,0,0,.18);
}

/* Layout */
.caece-container{
  max-width:1240px;
  margin:0 auto;
  padding:0 24px;
}

/* Buttons */
.caece-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 22px;
  border-radius:999px;
  text-decoration:none;
  font-weight:700;
  letter-spacing:.2px;
  border:2px solid transparent;
  transition:transform .12s ease, background-color .12s ease, border-color .12s ease, color .12s ease;
}
.caece-btn:active{ transform:translateY(1px); }
.caece-btn--sm{ padding:7px 16px; font-size:14px; font-weight:600; border-width:1px; }
.caece-btn--ghost{
  background:rgba(255,255,255,.45);
  border-color:rgba(0,0,0,.18);
  color:var(--caece-charcoal);
}
.caece-btn--ghost:hover{ background:rgba(255,255,255,.75); }

.caece-btn--outline{
  background:transparent;
  border-color:#fff;
  color:#fff;
}
.caece-btn--outline:hover{ background:rgba(255,255,255,.12); }

.caece-btn--solid{
  background:rgba(255,255,255,.24);
  border-color:#fff;
  color:#fff;
}
.caece-btn--solid:hover{ background:rgba(255,255,255,.34); }

/* Header (topbar) */
.site-header{ position:relative; z-index:100; }
.caece-topbar{
  position:relative;
  z-index:30;
  background:#f4f4f4;
  border-bottom:1px solid rgba(0,0,0,.06);
}
.caece-topbar-inner{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:18px;
  min-height:54px;
  position:relative;
}

/* Mobile menu toggle */
.caece-menu-toggle{
  display:none;
  border:1px solid rgba(0,0,0,.15);
  border-radius:8px;
  background:#fff;
  padding:8px 10px;
  font-weight:700;
  cursor:pointer;
}
.caece-menu-toggle__label{ font-family:var(--caece-font-sans); }

/* Header menu */
.caece-topnav{ flex:0 1 auto; }
.caece-menu{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  justify-content:flex-start;
  align-items:center;
  gap:32px;
}
.caece-menu > li{ position:relative; }
.caece-menu > li > a{
  display:inline-flex;
  align-items:center;
  padding:14px 0;
  font-size:14px;
  font-weight:200;
  color:rgba(65,64,66,.78);
  text-decoration:none;
}
.caece-menu > li > a:hover{ color:rgba(65,64,66,1); }

.caece-menu li.menu-item-has-children > a::after{
  content:"";
  width:0;
  height:0;
  border-left:4px solid transparent;
  border-right:4px solid transparent;
  border-top:6px solid currentColor;
  margin-left:8px;
  opacity:.55;
}

/* Sub-menu flyout */
.caece-menu .sub-menu{
  list-style:none;
  margin:0;
  padding:18px 22px;
  position:absolute;
  z-index:999;
  top:calc(100% + 6px);
  left:-22px;
  min-width:260px;
  background:#f6f6f6;
  border-radius:6px;
  box-shadow:0 14px 34px rgba(0,0,0,.22);
  opacity:0;
  visibility:hidden;
  transform:translateY(-4px);
  transition:opacity .14s ease, transform .14s ease, visibility .14s ease;
}
.caece-menu li:hover > .sub-menu,
.caece-menu li:focus-within > .sub-menu{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

.caece-menu .sub-menu a{
  display:block;
  padding:6px 0;
  text-decoration:none;
  color:rgba(65,64,66,.92);
  font-size:14px;
  font-weight:500;
}
.caece-menu .sub-menu a:hover{ color:var(--caece-red); }

.caece-menu .sub-menu .caece-submenu-title{
  font-weight:800;
  font-style:italic;
  color:rgba(65,64,66,.95);
  margin:0 0 6px;
  padding:0;
}

/* Student portal button area */
.caece-topbar-cta{ display:flex; align-items:center; justify-content:flex-end; margin-left:auto; }

/* Header (hero area) */
.caece-heroheader{
  position:relative;
  z-index:1;
  background-image:var(--caece-header-bg-image);
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}
.caece-heroheader::before,
.caece-heroheader::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
}
.caece-heroheader::before{
  /* Main brand gradient overlay */
  background:linear-gradient(90deg,
    rgba(239,63,35,.92) 0%,
    rgba(252,176,23,.88) 55%,
    rgba(254,212,1,.82) 100%);
}
.caece-heroheader::after{
  /* Secondary subtle shading (gives the multi-layer overlay feel) */
  background:linear-gradient(180deg,
    rgba(0,0,0,.16) 0%,
    rgba(0,0,0,0) 55%);
  mix-blend-mode:multiply;
}

.caece-heroheader-inner{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:18px 0;
}

.site-branding .custom-logo{
  height:56px;
  width:auto;
}

.site-branding .site-title{
  color:#fff;
  font-weight:800;
  text-decoration:none;
  font-size:22px;
}

.caece-header-ctas{
  display:flex;
  align-items:center;
  gap:14px;
}

/* Content */
.site-main{
  padding:48px 0 68px;
}

/*
 * Landing Page (No Title) template
 * - Removes default content padding so full-width blocks can sit flush.
 */
body.page-template-template-landing-no-title .site-main{
  padding:0;
}

body.page-template-template-landing-no-title .caece-landing-page{
  margin:0;
}

.caece-content-wrap{
  max-width:1240px;
  margin:0 auto;
  padding:0 24px;
}

.caece-content-wrap > article,
.caece-content-wrap > section{
  background:#fff;
  border-radius:8px;
  box-shadow:0 10px 28px rgba(0,0,0,.10);
  padding:42px 36px;
}

.entry-title{
  margin:0 0 18px;
  font-size:44px;
  line-height:1.1;
  font-style:italic;
  font-weight:800;
  color:var(--caece-charcoal);
}

.entry-content{
  font-size:16px;
  font-weight:400;
}

/* Gutenberg block width handling */
.entry-content > *{
  max-width: 100%;
}

.entry-content > .alignwide{
  width: min(1400px, 100%);
  margin-left: calc(50% - min(700px, 50%));
  margin-right: calc(50% - min(700px, 50%));
}

.entry-content > .alignfull{
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.entry-content h1{
  margin:0 0 18px;
  font-size:44px;
  line-height:1.1;
  font-style:italic;
  font-weight:800;
  color:var(--caece-charcoal);
}

.entry-content h2{
  margin-top:28px;
  font-size:18px;
  line-height:1.25;
  font-style:italic;
  font-weight:600;
  color:var(--caece-red);
}
.entry-content h1 + h2{ margin-top:8px; }

.entry-content h3{
  margin-top:22px;
  font-size:13px;
  line-height:1.25;
  color:var(--caece-orange);
  font-weight:800;
}
.entry-content h2 + h3{ margin-top:12px; }
/* Footer */
.site-footer{
  background:linear-gradient(180deg, #414042 0%, #353537 100%);
  color:#fff;
  margin-top:48px;
}

.caece-footer-top{
  padding:54px 0 22px;
}

.caece-footer-grid{
  display:grid;
  grid-template-columns: 1.15fr 1.85fr;
  gap:64px;
  align-items:start;
}

.caece-footer-logo{
  display:block;
  max-width: 220px;
  height:auto;
}

.caece-footer-description{
  margin-top:16px;
  font-size:14px;
  color:rgba(255,255,255,.86);
  max-width: 360px;
}

.caece-footer-newsletter{
  margin-top:18px;
}

/* Newsletter form (footer) – overrides FluentCRM/Fluent Forms defaults to match mockups */
.caece-footer-newsletter form{
  display:flex !important;
  flex-wrap:nowrap !important;
  gap:0;
  align-items:stretch;
  max-width: 420px;
}

/* Many newsletter plugins wrap each field/button in a div/p. Make those wrappers flex items. */
.caece-footer-newsletter form > div,
.caece-footer-newsletter form > p{
  margin:0 !important;
}

.caece-footer-newsletter form > div:first-of-type,
.caece-footer-newsletter form > p:first-of-type{
  flex:1 1 auto;
}

.caece-footer-newsletter form > div:last-of-type,
.caece-footer-newsletter form > p:last-of-type{
  flex:0 0 auto;
}

/* Some plugins wrap fields in a single container inside the form (1 child). Make that wrapper flex too. */
.caece-footer-newsletter form > div:only-child{
  display:flex !important;
  flex-wrap:nowrap !important;
  align-items:stretch;
  width:100%;
}

.caece-footer-newsletter form > div:only-child > div,
.caece-footer-newsletter form > div:only-child > p{
  margin:0 !important;
}

.caece-footer-newsletter form > div:only-child > div:first-of-type,
.caece-footer-newsletter form > div:only-child > p:first-of-type{
  flex:1 1 auto;
}

.caece-footer-newsletter form > div:only-child > div:last-of-type,
.caece-footer-newsletter form > div:only-child > p:last-of-type{
  flex:0 0 auto;
}

/* FluentCRM (common wrappers) */
.caece-footer-newsletter .fluentcrm_form,
.caece-footer-newsletter .fluentcrm_forms,
.caece-footer-newsletter .fluentcrm-form,
.caece-footer-newsletter .fc_form,
.caece-footer-newsletter .fc_form_fields,
.caece-footer-newsletter .fc-form,
.caece-footer-newsletter .fc-form-fields{
  display:flex !important;
  flex-wrap:nowrap !important;
  gap:0;
  align-items:stretch;
}
.caece-footer-newsletter form input[type="email"],
.caece-footer-newsletter form input[type="text"],
.caece-footer-newsletter form .ff-el-form-control{
  flex:1 1 auto;
  min-width:0;
  border:0 !important;
  border-radius:6px 0 0 6px !important;
  padding:11px 12px !important;
  height:44px;
  font-family:var(--caece-font-sans) !important;
  font-weight:400;
}
.caece-footer-newsletter form button,
.caece-footer-newsletter form input[type="submit"],
.caece-footer-newsletter form .ff-btn,
.caece-footer-newsletter form .ff-btn-submit{
  border:0 !important;
  background:var(--caece-red) !important;
  color:#fff !important;
  padding:0 18px !important;
  border-radius:0 6px 6px 0 !important;
  height:44px;
  font-family:var(--caece-font-sans) !important;
  font-weight:800;
  font-style:italic;
  text-transform:lowercase;
  white-space:nowrap;
  cursor:pointer;
}
.caece-footer-newsletter form button:hover,
.caece-footer-newsletter form input[type="submit"]:hover,
.caece-footer-newsletter form .ff-btn:hover{
  filter:brightness(1.03);
}

/* Fluent Forms layout fixes (prevents stacked button on desktop) */
.caece-footer-newsletter .fluentform .ff-el-group,
.caece-footer-newsletter .fluentform .ff_submit_btn_wrapper{
  margin:0 !important;
}
.caece-footer-newsletter .fluentform form{
  display:flex !important;
  flex-wrap:nowrap !important;
  gap:0;
  align-items:stretch;
}
.caece-footer-newsletter .fluentform .ff-el-form-body{
  display:flex !important;
  flex-wrap:nowrap !important;
  gap:0;
  align-items:stretch;
}
.caece-footer-newsletter .fluentform .ff-el-group{
  flex:1 1 auto;
}
.caece-footer-newsletter .fluentform .ff_submit_btn_wrapper{
  flex:0 0 auto !important;
}
.caece-footer-newsletter .fluentform .ff_submit_btn_wrapper button{
  width:auto !important;
}

.caece-footer-newsletter ::placeholder{
  color:rgba(65,64,66,.45);
}

/* Fallback note wraps under fields */
.caece-newsletter-fallback{ flex-wrap:wrap !important; }
.caece-newsletter-fallback .caece-newsletter-note{ flex:0 0 100%; }

.caece-newsletter-note{
  margin:8px 0 0;
  font-size:12px;
  color:rgba(255,255,255,.70);
}

.caece-footer-smallprint{
  margin-top:14px;
  font-size:11px;
  color:rgba(255,255,255,.55);
}

.caece-footer-menus{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:48px;
}

.caece-footer-menu-title{
  margin:0 0 12px;
  font-size:16px;
  font-style:italic;
  font-weight:900;
  color:#fff;
}

.caece-footer-menu{
  list-style:none;
  margin:0;
  padding:0;
}
.caece-footer-menu a{
  color:rgba(255,255,255,.85);
  text-decoration:none;
  font-size:14px;
  display:inline-block;
  padding:4px 0;
}
.caece-footer-menu a:hover{
  color:#fff;
  text-decoration:underline;
}

.caece-footer-bottom{
  border-top:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.08);
  padding:18px 0 26px;
}
.caece-footer-bottom-inner{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
}

.caece-footer-social{
  display:flex;
  align-items:center;
  gap:14px;
}
.caece-footer-social__label{
  font-size:14px;
  font-style:italic;
  font-weight:900;
  color:rgba(255,255,255,.90);
}

.caece-social-links{
  list-style:none;
  display:flex;
  gap:12px;
  margin:0;
  padding:0;
}
.caece-social-links__link{
  display:inline-flex;
  width:22px;
  height:22px;
  align-items:center;
  justify-content:center;
}
.caece-social-links__link svg{
  width:22px;
  height:22px;
  fill:#fff;
  opacity:.92;
}
.caece-social-links__link:hover svg{ opacity:1; }

.caece-footer-secondary-logo img{
  max-height:54px;
  width:auto;
  opacity:.86;
}

/* Pagination */
.caece-pagination{
  margin-top:24px;
}

/* Responsive */
@media (max-width: 980px){
  .caece-footer-grid{ grid-template-columns: 1fr; gap:34px; }
  .caece-footer-menus{ grid-template-columns: 1fr; gap:24px; }
}

@media (max-width: 900px){
  .caece-menu-toggle{ display:inline-flex; }
  .caece-topnav{
    display:none;
    position:absolute;
    top:54px;
    left:0;
    right:0;
    background:#f4f4f4;
    padding:12px 24px;
    border-bottom:1px solid rgba(0,0,0,.06);
  }
  .caece-topnav.is-open{ display:block; }

  .caece-menu{
    flex-direction:column;
    align-items:flex-start;
    justify-content:flex-start;
    gap:0;
  }
  .caece-menu > li{ width:100%; }
  .caece-menu > li > a{ padding:10px 0; width:100%; justify-content:space-between; }
  .caece-menu .sub-menu{
    position:static;
    min-width:0;
    width:100%;
    background:transparent;
    box-shadow:none;
    border-radius:0;
    padding:0 0 0 14px;
    opacity:1;
    visibility:visible;
    transform:none;
    display:none;
  }
  .caece-menu li.is-submenu-open > .sub-menu{ display:block; }
  .caece-menu .sub-menu .caece-submenu-title{ display:none; } /* don’t duplicate title on mobile */
}

@media (max-width: 640px){
  .caece-heroheader-inner{ flex-direction:column; align-items:flex-start; }
  .caece-header-ctas{ width:100%; }
  .caece-header-ctas a{ flex:1; }
  .caece-content-wrap > article,
  .caece-content-wrap > section{
    padding:28px 18px;
  }
  .entry-title{ font-size:36px; }
  .caece-footer-newsletter form{ max-width: 100%; }
}


@media (max-width: 520px){
  .caece-footer-newsletter form,
  .caece-footer-newsletter form > div:only-child,
  .caece-footer-newsletter .fluentform form,
  .caece-footer-newsletter .fluentform .ff-el-form-body,
  .caece-footer-newsletter .fluentcrm_form,
  .caece-footer-newsletter .fluentcrm_forms,
  .caece-footer-newsletter .fluentcrm-form,
  .caece-footer-newsletter .fc_form,
  .caece-footer-newsletter .fc_form_fields,
  .caece-footer-newsletter .fc-form,
  .caece-footer-newsletter .fc-form-fields{ flex-direction:column !important; }
  .caece-footer-newsletter form input[type="email"],
  .caece-footer-newsletter form input[type="text"],
  .caece-footer-newsletter form .ff-el-form-control{
    border-radius:6px !important;
  }
  .caece-footer-newsletter form button,
  .caece-footer-newsletter form input[type="submit"],
  .caece-footer-newsletter form .ff-btn,
  .caece-footer-newsletter form .ff-btn-submit{
    border-radius:6px !important;
    width:100% !important;
    margin-top:10px;
  }
}
