/*
  Estevanico Foundation visual refresh — SAFE LAYER
  This file intentionally changes presentation only. The original builder markup,
  navigation, forms, gallery behavior, language switching, and migration JS are retained.
*/

:root{
  --ef4-ink:#172234;
  --ef4-navy:#13273f;
  --ef4-navy-deep:#0c1b2c;
  --ef4-paper:#f7f3eb;
  --ef4-paper-soft:#fcfaf5;
  --ef4-parchment:#ede4d4;
  --ef4-gold:#b68a3c;
  --ef4-gold-soft:#d8c092;
  --ef4-red:#9d2e38;
  --ef4-line:rgba(23,34,52,.11);
  --ef4-shadow:0 24px 70px rgba(16,30,48,.10);
  --ef4-shadow-soft:0 12px 36px rgba(16,30,48,.07);
  --ef4-radius:26px;
}

html{background:var(--ef4-paper-soft);}
body{
  margin:0;
  color:var(--ef4-ink);
  background:var(--ef4-paper-soft);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

/* Refined type hierarchy without changing document structure */
h1,h2,h3,
ws-text h1,ws-text h2,ws-text h3{
  font-family:"Iowan Old Style","Baskerville","Times New Roman",Georgia,serif !important;
  letter-spacing:-.025em;
  text-wrap:balance;
}
ws-text h1{font-weight:500 !important;}
ws-text h2{font-weight:500 !important;}
ws-text h3{font-weight:600 !important;}
ws-text p, ws-text li{line-height:1.72;}

/* Header: polished, translucent, and still powered by the original menu */
ws-block[category="header"]{
  position:sticky;
  top:0;
  z-index:9000;
  display:block;
}
ws-block[category="header"] .ws-m-local-header{
  background:rgba(252,250,245,.94) !important;
  color:var(--ef4-ink) !important;
  border-bottom:1px solid var(--ef4-line);
  box-shadow:0 8px 34px rgba(17,30,48,.055);
  backdrop-filter:blur(18px) saturate(1.15);
  -webkit-backdrop-filter:blur(18px) saturate(1.15);
}
ws-block[category="header"] .ws-m-local-header__top-panel{
  background:var(--ef4-navy-deep) !important;
  color:#fff !important;
  min-height:34px;
}
ws-block[category="header"] .ws-m-local-header__top-panel a,
ws-block[category="header"] .ws-m-local-header__top-panel button{
  color:#f5eee1 !important;
}
ws-block[category="header"] .ws-m-logo-wrapper img{
  width:184px !important;
  max-width:184px !important;
  height:auto !important;
}
ws-block[category="header"] .ws-nav__menu-link{
  color:var(--ef4-ink) !important;
  font-weight:600 !important;
  letter-spacing:-.01em;
  position:relative;
  transition:color .2s ease,opacity .2s ease;
}
ws-block[category="header"] .ws-nav__menu-link:hover{
  color:var(--ef4-gold) !important;
}
ws-block[category="header"] .ws-nav__menu-link:after{
  content:"";
  position:absolute;
  left:0;right:100%;bottom:-5px;
  height:1px;
  background:var(--ef4-gold);
  transition:right .22s ease;
}
ws-block[category="header"] .ws-nav__menu-link:hover:after{right:0;}

/* Original hero, restyled rather than rebuilt */
ws-block[category="custom block"] > .ws-section{
  background:
    radial-gradient(circle at 88% 8%,rgba(182,138,60,.16),transparent 28%),
    radial-gradient(circle at 10% 90%,rgba(157,46,56,.11),transparent 30%),
    linear-gradient(135deg,#0c1b2c 0%,#13273f 48%,#1a3553 100%) !important;
  color:#fff !important;
  position:relative;
  overflow:hidden;
}
ws-block[category="custom block"] > .ws-section:after{
  content:"";
  position:absolute;
  width:560px;height:560px;
  right:-260px;bottom:-340px;
  border:1px solid rgba(216,192,146,.16);
  border-radius:50%;
  box-shadow:0 0 0 72px rgba(216,192,146,.025),0 0 0 144px rgba(216,192,146,.015);
  pointer-events:none;
}
ws-block[category="custom block"] .ws-container{position:relative;z-index:2;}
ws-block[category="custom block"] ws-column[surface]{
  border:1px solid rgba(255,255,255,.13) !important;
  border-radius:var(--ef4-radius) !important;
  background:rgba(8,22,37,.42) !important;
  box-shadow:0 24px 80px rgba(0,0,0,.16);
  backdrop-filter:blur(5px);
  overflow:hidden;
}
ws-block[category="custom block"] ws-text h1,
ws-block[category="custom block"] ws-text h2,
ws-block[category="custom block"] ws-text h3,
ws-block[category="custom block"] ws-text p{color:#fff !important;}
ws-block[category="custom block"] ws-text h1,
ws-block[category="custom block"] ws-text h2{
  font-size:clamp(3rem,6vw,6rem) !important;
  line-height:.95 !important;
}
ws-block[category="custom block"] ws-media-container,
ws-block[category="custom block"] .ws-widget-media{
  border-radius:var(--ef4-radius);
  overflow:hidden;
}

/* Section rhythm and surfaces */
.page-container > ws-block:not([category="header"]):not([category="footer"]) > .ws-section{
  border-top:0 !important;
}
.page-container > ws-block[category="about us"] > .ws-section{
  background:var(--ef4-paper) !important;
  color:var(--ef4-ink) !important;
}
.page-container > ws-block[category="about us"] ws-text h2,
.page-container > ws-block[category="about us"] ws-text p{
  color:var(--ef4-ink) !important;
}
.page-container > ws-block[category="about us"] .ws-m-split-layout__content{
  padding-inline:clamp(28px,5vw,78px) !important;
}
.page-container > ws-block[category="about us"] ws-media-container{
  overflow:hidden;
  background:var(--ef4-parchment);
}
.page-container > ws-block[category="about us"] ws-media-container img{
  filter:saturate(.86) contrast(1.03);
}

.page-container > ws-block[category="why choose us"] > .ws-section{
  background:var(--ef4-navy) !important;
  color:#fff !important;
}
.page-container > ws-block[category="why choose us"] ws-text h2,
.page-container > ws-block[category="why choose us"] ws-text h3,
.page-container > ws-block[category="why choose us"] ws-text h4,
.page-container > ws-block[category="why choose us"] ws-text h5,
.page-container > ws-block[category="why choose us"] ws-text p{
  color:#fff !important;
}
.page-container > ws-block[category="why choose us"] article{
  height:100%;
  box-sizing:border-box;
  padding:28px !important;
  border:1px solid rgba(255,255,255,.12);
  border-radius:22px;
  background:rgba(255,255,255,.045);
  transition:transform .22s ease,border-color .22s ease,background .22s ease;
}
.page-container > ws-block[category="why choose us"] article:hover{
  transform:translateY(-3px);
  border-color:rgba(216,192,146,.42);
  background:rgba(255,255,255,.065);
}

.page-container > ws-block[category="contacts"] > .ws-section{
  background:#10243a !important;
}
.page-container > ws-block[category="contacts"] ws-text h2,
.page-container > ws-block[category="contacts"] ws-text h5,
.page-container > ws-block[category="contacts"] .ws-m-business-info,
.page-container > ws-block[category="contacts"] .ws-m-business-info a,
.page-container > ws-block[category="contacts"] .ws-m-business-info p{
  color:#f7f2e8 !important;
}

.page-container > ws-block[category="call to action"] > .ws-section{
  background:linear-gradient(115deg,#e9deca,#f8f4ec 52%,#ead8b8) !important;
  color:var(--ef4-ink) !important;
}
.page-container > ws-block[category="call to action"] ws-text h2,
.page-container > ws-block[category="call to action"] ws-text h5{
  color:var(--ef4-ink) !important;
}

/* Buttons: quiet, tactile, and consistent while retaining original links */
ws-button a.ws-link,
.ef-button,
a.ef-button{
  border-radius:999px !important;
  min-height:48px;
  padding:12px 22px !important;
  font-weight:650 !important;
  letter-spacing:-.01em;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease,color .18s ease,border-color .18s ease;
}
ws-button[data-type="primary"] a.ws-link,
.ef-button:not(.ef-secondary){
  background:var(--ef4-gold) !important;
  color:#fff !important;
  border-color:var(--ef4-gold) !important;
  box-shadow:0 8px 26px rgba(182,138,60,.20);
}
ws-button[data-type="primary"] a.ws-link:hover,
.ef-button:not(.ef-secondary):hover{
  transform:translateY(-1px);
  background:#a7792f !important;
  box-shadow:0 12px 30px rgba(182,138,60,.25);
}
ws-button[data-type="secondary"] a.ws-link,
.ef-button.ef-secondary{
  border:1px solid rgba(23,34,52,.20) !important;
  color:var(--ef4-ink) !important;
  background:rgba(255,255,255,.62) !important;
}

/* Media: museum-like framing, without moving or replacing the original images */
ws-block:not([category="header"]):not([category="footer"]) ws-media-container{
  border-radius:22px;
  overflow:hidden;
  box-shadow:var(--ef4-shadow-soft);
}
ws-block:not([category="header"]):not([category="footer"]) ws-media-container img{
  transition:transform .45s cubic-bezier(.2,.7,.2,1),filter .3s ease;
}
ws-block:not([category="header"]):not([category="footer"]) ws-media-container:hover img{
  transform:scale(1.012);
}

/* Gallery and cards keep the original gallery logic, only change presentation */
ws-block[category*="gallery"] ws-media-container,
ws-block[src*="gallery"] ws-media-container{
  border-radius:18px;
}

/* Contact form from the known-good migration package */
.ef-contact-section{
  background:linear-gradient(145deg,#0d1e31,#173552) !important;
}
#contact-form.ef-contact{
  border-radius:24px !important;
  background:rgba(252,250,245,.98) !important;
  border:1px solid rgba(255,255,255,.22);
  box-shadow:var(--ef4-shadow);
  padding:clamp(22px,4vw,38px) !important;
}
#contact-form.ef-contact input,
#contact-form.ef-contact textarea,
#contact-form.ef-contact select{
  border-radius:13px !important;
  border-color:rgba(23,34,52,.17) !important;
  min-height:48px;
}
#contact-form.ef-contact input:focus,
#contact-form.ef-contact textarea:focus,
#contact-form.ef-contact select:focus{
  border-color:var(--ef4-gold) !important;
  box-shadow:0 0 0 4px rgba(182,138,60,.12) !important;
}
.ef-map-card,.ef-contact-details{
  border-radius:24px !important;
  background:rgba(255,255,255,.055) !important;
  border-color:rgba(216,192,146,.27) !important;
  box-shadow:none !important;
}

/* Footer: preserve old logo and links, give them a more institutional frame */
ws-block[category="footer"] footer{
  background:var(--ef4-navy-deep) !important;
  color:#d8e0e8 !important;
  border-top:1px solid rgba(216,192,146,.20);
}
ws-block[category="footer"] footer a{color:#d8e0e8 !important;}
ws-block[category="footer"] footer a:hover{color:#fff !important;}
ws-block[category="footer"] .ws-m-logo-wrapper img{
  background:#fff;
  padding:7px;
  border-radius:14px;
  box-shadow:0 12px 34px rgba(0,0,0,.16);
}

/* Inner pages: gentle modernization without altering page structure */
body:not(:has(ws-block[category="custom block"])) .page-container > ws-block:not([category="header"]):not([category="footer"]) > .ws-section{
  background-color:var(--ef4-paper-soft);
}
body:not(:has(ws-block[category="custom block"])) .page-container > ws-block:not([category="header"]):not([category="footer"]) ws-text h1,
body:not(:has(ws-block[category="custom block"])) .page-container > ws-block:not([category="header"]):not([category="footer"]) ws-text h2{
  color:var(--ef4-ink);
}

/* Accessible focus remains visible */
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{
  outline:3px solid #c69d57 !important;
  outline-offset:4px !important;
}

@media(max-width:900px){
  ws-block[category="header"]{position:relative;}
  ws-block[category="header"] .ws-m-logo-wrapper img{width:160px !important;max-width:160px !important;}
  .page-container > ws-block[category="why choose us"] article{padding:22px !important;}
}

@media(max-width:600px){
  :root{--ef4-radius:20px;}
  ws-block[category="custom block"] ws-text h1,
  ws-block[category="custom block"] ws-text h2{font-size:clamp(2.65rem,14vw,4rem) !important;}
  ws-block[category="custom block"] ws-column[surface]{border-radius:20px !important;}
  ws-block:not([category="header"]):not([category="footer"]) ws-media-container{border-radius:18px;}
  #contact-form.ef-contact{border-radius:20px !important;}
}

@media(prefers-reduced-motion:reduce){
  *{transition-duration:.01ms !important;animation-duration:.01ms !important;}
}
