/* ==========================================================================
   Vita Vista — site stylesheet
   Colours, fonts and components follow the original "vitavista" WordPress theme.
   ========================================================================== */

@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../fonts/open-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../fonts/open-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../fonts/open-sans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --primary-color: #64b253;     /* green */
  --secondary-color: #232175;   /* navy */
  --heading-color: #333;
  --text: #444;
  --why-bg: #e8ffe3;
  --menu-bg: #f6f6f6;
  --secondary-font: "Inter", sans-serif;
  --body-font: "Open Sans", sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: hidden; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font: 400 16px/1.6 var(--body-font); color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--secondary-color); text-decoration: none; transition: color .3s; }
a:hover { color: var(--primary-color); }
h1, h2, h3, h4, h5, h6 { font-family: var(--secondary-font); color: var(--heading-color); line-height: 1.3; margin: 0 0 .5rem; font-weight: 700; }
h1 { font-size: 48px; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h6 { font-size: 1rem; }
p { margin: 0 0 1rem; line-height: 1.8; text-align: justify; }
ul, ol { margin: 0 0 1rem; }
svg.icon { display: inline-block; height: 1em; vertical-align: -.125em; fill: currentColor; flex-shrink: 0; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 15px; }
@media (min-width: 1400px) { .container { max-width: 1300px; } }
.center-block { max-width: 75%; margin: 0 auto; }
@media (max-width: 991px) { .center-block { max-width: 100%; } }
.pad { padding: 100px 0; }
.pad-top { padding-top: 100px; }
.text-center, .text-center p { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--secondary-color); color: #fff; padding: 10px 16px; z-index: 1000; }
.skip-link:focus { top: 0; color: #fff; }
.secondary-color { color: var(--secondary-color) !important; }

.section-title { margin-bottom: 1.5rem; }
.section-title.mb-lg { margin-bottom: 3rem; }
.section-title h2 { font-size: 42px; line-height: normal; font-weight: 700; margin: 0; }
.section-title h3 { font-size: 32px; line-height: normal; font-weight: 700; margin: 0; }
.section-title h6 { margin: .4rem 0 0; font-weight: 400; }

.btn { display: inline-flex; align-items: center; gap: .5em; background: var(--primary-color); color: #fff; font: 600 14px/1.5 var(--secondary-font); border-radius: 50px; padding: 12px 30px; border: 1px solid var(--primary-color); cursor: pointer; transition: color .15s, background-color .15s, border-color .15s; }
.btn:hover, .btn:focus { background: var(--secondary-color); color: #fff; border-color: var(--secondary-color); }
.btn-whatsapp { background: #25d366; border-color: #25d366; padding: 8px 20px; }
.btn-whatsapp:hover { background: #1da851; border-color: #1da851; }

.list-style { list-style: none; padding: 0; }
.list-style li { padding: 2px 0 2px 30px; position: relative; }
.list-style li::before { content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -448 512 512'%3E%3Cpath fill='%2364b253' transform='scale(1,-1)' d='M435.848 364.534c4.68652 4.68555 12.2842 4.68555 16.9707 0l28.2832 -28.2842c4.68652 -4.68652 4.68652 -12.2852 0 -16.9707l-299.812 -299.813c-4.6875 -4.68555 -12.2852 -4.68555 -16.9707 0l-133.421 133.421c-4.68652 4.6875 -4.68652 12.2852 0 16.9717 l28.2832 28.2832c4.6875 4.68652 12.2852 4.68652 16.9717 0l96.6514 -96.6514z'/%3E%3C/svg%3E") center / contain no-repeat; }
.list-style.two-col { columns: 2 260px; column-gap: 30px; }
.list-style.two-col li { break-inside: avoid; }

/* ---------- Top bar ---------- */
#top-navbar { background: var(--primary-color); color: #fff; }
#top-navbar .container { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 1rem; }
#top-navbar a { color: #fff; font-size: 14px; display: inline-flex; align-items: center; gap: .35em; padding: .5rem 0; }
#top-navbar a:hover { color: var(--secondary-color); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 99; background: #fff; padding: 25px 0; transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 2px 12px rgba(0, 0, 0, .08); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.brand img { height: 70px; width: auto; }
.brand--infra img { height: 62px; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.main-nav li { position: relative; padding: 10px 25px; }
.main-nav li > a { position: relative; display: inline-block; color: #333; font: 700 16px/1.5 var(--secondary-font); transition: color .3s ease-in; }
.main-nav li > a::after { content: ""; position: absolute; bottom: -9px; left: 0; right: 0; width: 25px; height: 2px; margin: 0 auto; background: var(--secondary-color); transform: scaleX(0); transform-origin: center; transition: transform .4s; }
.main-nav li > a:hover::after, .main-nav li > a:focus::after, .main-nav li > a[aria-current="page"]::after, .main-nav li.is-active > a::after { transform: scaleX(1); }
.sub-menu { list-style: none; padding: 0; position: absolute; z-index: 999; top: 100%; left: 0; min-width: 260px; background: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, .08); transform: scaleY(0); transform-origin: top; transition: transform .4s; }
.sub-menu li { padding: 12px 25px; }
.sub-menu li > a { font-weight: 600; font-size: 15px; }
.sub-menu li > a::after { margin: 0; transform-origin: 0; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { transform: scaleY(1); }

.nav-toggle { display: none; width: 30px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; z-index: 1001; flex-direction: column; align-items: flex-end; justify-content: center; }
.nav-toggle span { width: 22px; height: 2px; background: var(--secondary-color); margin: 3px 0; transition: all .3s; }
.nav-open .nav-toggle .one { transform: rotate(45deg) translate(5px, 5px); }
.nav-open .nav-toggle .two { opacity: 0; }
.nav-open .nav-toggle .three { transform: rotate(-45deg) translate(6px, -6px); }
.nav-backdrop { display: none; }

@media (max-width: 1024px) {
  .site-header { position: relative; padding: 15px 0; }
  .brand img { height: 50px; }
  .nav-toggle { display: flex; }
  .main-nav { position: fixed; top: 0; left: 0; bottom: 0; width: 300px; max-width: 85vw; padding: 20px; background: var(--menu-bg); z-index: 1000; transform: translateX(-100%); transition: transform .5s ease; overflow-y: auto; }
  .nav-open .main-nav { transform: none; }
  .main-nav .menu-logo { display: block; margin: 30px 0 30px; }
  .main-nav .menu-logo img { height: 50px; width: auto; }
  .main-nav > ul { flex-direction: column; align-items: flex-start; }
  .main-nav li { padding: 8px 0; }
  .sub-menu { position: static; transform: none; box-shadow: none; background: transparent; min-width: 0; padding-top: 6px; }
  .sub-menu li { padding: 6px 0 6px 15px; }
  .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 999; opacity: 0; visibility: hidden; transition: opacity .3s; }
  .nav-open .nav-backdrop { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
}
@media (min-width: 1025px) { .main-nav .menu-logo { display: none; } }
@media (max-width: 767px) {
  #top-navbar .container { justify-content: center; }
  #top-navbar .hide-sm { display: none; }
  #top-navbar a { font-size: 13px; padding: .35rem 0; }
}

/* ---------- Hero slider ---------- */
.hero { position: relative; overflow: hidden; }
.hero-track { display: grid; }
.slide { grid-area: 1 / 1; position: relative; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide img { width: 100%; aspect-ratio: 1920 / 700; object-fit: cover; }
.hero--infra .slide img { aspect-ratio: 1920 / 850; }
.slide-caption { position: absolute; inset: 0; padding-top: 7%; }
.slide-caption h2 { font: 700 45px/1.2 var(--secondary-font); color: #303030; margin: 0; opacity: 0; transform: translateY(30px); transition: opacity .8s .2s, transform .8s .2s; }
.slide.is-active .slide-caption h2 { opacity: 1; transform: none; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 32px; height: 32px; border: 0; padding: 0; background: rgba(0, 0, 0, .5); color: rgba(255, 255, 255, .85); font-size: 20px; display: grid; place-items: center; cursor: pointer; transition: background .3s; }
.hero-arrow:hover { background: var(--secondary-color); }
.hero-arrow--prev { left: 15px; }
.hero-arrow--next { right: 15px; }
@media (max-width: 1024px) { .slide-caption h2 { font-size: 30px; } }
@media (max-width: 767px) {
  .slide img { aspect-ratio: 16 / 9; }
  .hero--infra .slide img { aspect-ratio: 1920 / 850; }
  .slide-caption h2 { font-size: 22px; }
  .hero-arrow { display: none; }
}

/* ---------- Page banner ---------- */
.page-banner { position: relative; padding: 220px 0; background: #333 center / cover no-repeat; text-align: center; isolation: isolate; }
.page-banner::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .2); z-index: -1; }
.page-banner h1 { color: #fff; font-size: 48px; line-height: 1.2; margin: 0; }
@media (max-width: 1024px) { .page-banner { padding: 120px 0; } }
@media (max-width: 767px) { .page-banner { padding: 80px 0; } .page-banner h1 { font-size: 32px; } }

/* ---------- Welcome (image + navy panel) ---------- */
.welcome { display: grid; grid-template-columns: 1fr 1fr; }
.welcome__img img { width: 100%; height: 100%; object-fit: cover; }
.welcome__body { background: var(--secondary-color); color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 3rem; }
.welcome__body h1, .welcome__body h2 { color: #fff; }
.welcome__body .section-title h1 { font-size: 42px; line-height: normal; margin: 0; }
@media (max-width: 1024px) { .welcome__body .section-title h1, .section-title h2 { font-size: 30px; } }
@media (max-width: 767px) {
  .welcome { grid-template-columns: 1fr; gap: 1rem; }
  .welcome__body { padding: 3rem 1rem; }
  .welcome__body .section-title h1, .section-title h2 { font-size: 26px; }
  .section-title h3 { font-size: 20px; }
}

/* ---------- Service rows with hexagon images ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.feature + .feature, .feature + .feature-note, .feature-note + .feature { margin-top: 60px; }
.feature__body > :last-child { margin-bottom: 0; }
.feature__tagline { font-weight: 700; font-style: italic; }
.feature-note p { font-weight: 700; }

.hexagon-shape { position: relative; max-width: 506px; width: 100%; justify-self: center; }
.hex-frame { position: relative; }
.hex-frame img { width: 100%; aspect-ratio: 1; object-fit: cover; -webkit-clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); }
.hex-frame::before, .hex-frame::after { content: ""; position: absolute; background: var(--primary-color); z-index: 5; transition: background .4s ease-in; }
.hex-frame::before { top: 7.5%; left: -5.5%; height: 15px; width: 38%; transform: rotate(-27deg); transform-origin: right; border-radius: 0 10px 10px 0; }
.hex-frame::after { top: 25.3%; left: -2%; width: 15px; height: 38%; border-radius: 0 0 10px 10px; }
.hexagon-shape:hover .hex-frame::before, .hexagon-shape:hover .hex-frame::after { background: var(--secondary-color); }
.hex-block { position: absolute; bottom: 28px; right: 80px; z-index: 5; width: 80px; height: 80px; }
.services-badge { position: relative; width: 80px; height: 80px; background: var(--secondary-color); color: #e4dce2; font-size: 26px; display: flex; align-items: center; justify-content: center; -webkit-clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%); clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%); }
.hex-outline { position: absolute; left: 6px; top: -6px; width: 96px; height: 106px; z-index: -1; overflow: visible; }
.hex-outline polygon { fill: none; stroke: var(--primary-color); stroke-width: 2; transition: stroke-width .3s; }
.hexagon-shape:hover .hex-outline polygon { stroke-width: 4; }
@media (max-width: 767px) {
  .feature { grid-template-columns: 1fr; }
  .feature .hexagon-shape { order: -1; max-width: 340px; margin-bottom: 1rem; }
  .hex-block { bottom: 5px; right: 40px; }
}

/* ---------- Why choose us ---------- */
.why-sect { background: var(--why-bg); text-align: center; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.why-icon { font-size: 30px; color: var(--primary-color); width: 120px; height: 120px; margin: 0 auto; display: flex; align-items: center; justify-content: center; position: relative; border: 4px solid transparent; border-radius: 50%; background-image: linear-gradient(var(--why-bg), var(--why-bg)), linear-gradient(to bottom, var(--primary-color), var(--secondary-color)); background-origin: padding-box, border-box; background-clip: padding-box, border-box; }
.why-icon::after { content: ""; position: absolute; bottom: -12px; left: 0; right: 0; height: 25px; background: var(--why-bg); clip-path: polygon(30% 0%, 70% 0%, 100% 100%, 0% 100%); }
.why-icon svg.icon { height: 1.9em; }
.why-block h3 { font-size: 28px; font-weight: 700; color: #333; margin: 20px 0; line-height: 1.4; }
@media (max-width: 767px) {
  .why-grid { grid-template-columns: 1fr; gap: 20px; }
  .why-block h3 { font-size: 18px; margin: 5px 0; }
}

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.founder h2 { font-size: 42px; margin: 0; }
.founder h6 { margin: 0 0 1.5rem; font-weight: 400; }
.founder-shape { position: relative; isolation: isolate; }
.founder-shape::before { content: ""; position: absolute; top: 0; right: 0; width: 63%; height: 96%; transform: translateX(30%) translateY(-15%); background: url("../images/dot-pattern.png") repeat 0 0; opacity: .2; z-index: -1; }
.founder-shape img { border: 1px solid #ccc; padding: 4px; background: #fff; }
@media (max-width: 767px) { .founder { grid-template-columns: 1fr; } .founder h2 { font-size: 26px; } .founder-shape { max-width: 340px; } }

/* ---------- Enquiry form ---------- */
.form-sect { padding: 50px 0 80px; background: #333 center / cover no-repeat; color: #fff; }
.form-sect .section-title h2, .form-sect .section-title h6 { color: #fff; }
.form-sect .section-title { margin-bottom: 3rem; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
.form .full { grid-column: 1 / -1; }
.wrap-input { margin-bottom: 30px; }
.form input, .form select, .form textarea { display: block; width: 100%; height: 40px; padding: 0; font: 16px/1.2 var(--body-font); color: #fff; background: transparent; border: 0; border-bottom: 1.5px solid #fff; border-radius: 0; outline: 0; box-shadow: none; transition: border-color .3s; }
.form textarea { height: 120px; padding-top: 10px; resize: vertical; }
.form select option { color: #444; }
.form input::placeholder, .form textarea::placeholder { color: #fff; opacity: 1; }
.form input:focus, .form select:focus, .form textarea:focus { border-bottom-color: var(--primary-color); }
.form .hp { position: absolute; left: -9999px; }
.form-actions { text-align: center; margin-top: 1.5rem; }
.form-sect .btn { background: #fff; border-color: #fff; color: var(--primary-color); padding: 12px 48px; }
.form-sect .btn:hover, .form-sect .btn:focus { background: #fff; border-color: #fff; color: var(--secondary-color); }
.form-status { grid-column: 1 / -1; text-align: center; padding: 10px 16px; margin: 0 0 20px; border-radius: 4px; font-weight: 600; display: none; }
.form-status.is-success { display: block; background: rgba(100, 178, 83, .9); color: #fff; }
.form-status.is-error { display: block; background: rgba(200, 30, 30, .9); color: #fff; }
.form-status.is-info { display: block; background: rgba(255, 255, 255, .92); color: var(--secondary-color); }
@media (max-width: 767px) { .form { grid-template-columns: 1fr; } }

/* ---------- Services overview ---------- */
.service-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px 30px; }
.service-links img { width: 100%; max-width: 403px; aspect-ratio: 1; object-fit: cover; margin: 0 auto; }
.service-links h3 { text-align: center; margin-top: 1.5rem; font-size: 32px; font-weight: 700; }
.service-links h3 a { color: #333; }
.service-links h3 a:hover { color: var(--primary-color); }

/* ---------- Contact ---------- */
.contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info ul { list-style: none; padding: 0; }
.contact-info li { padding: 3px 0; }
.contact-info h3 { font-size: 20px; color: var(--secondary-color); margin-bottom: .8rem; }
.contact-info p { text-align: left; }
.map { margin-top: 60px; line-height: 0; }
.map iframe { width: 100%; height: 450px; border: 0; }
@media (max-width: 767px) { .contact-info { grid-template-columns: 1fr; } }

/* ---------- Teasers ---------- */
.teaser-list { font-weight: 700; padding-left: 1.3em; }
.teaser-list li { padding: 4px 0; }

/* ---------- Footer ---------- */
.site-footer { color: #444; background: #fff; padding-top: 1.5rem; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 3rem 0; }
.footer-ttl { color: var(--secondary-color); font: 700 20px/1.3 var(--secondary-font); margin: 0 0 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 3px 0; }
.site-footer a { color: #444; }
.site-footer a:hover { color: var(--primary-color); }
.site-footer p { text-align: left; }
.social-icon { display: flex; gap: 15px; margin: 12px 0 16px; font-size: 24px; }
.social-icon a { color: #444; }
.footer-bottom { border-top: 1px solid #dee2e6; padding: 1rem 0; font-size: 15px; }
@media (max-width: 991px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; padding: 2rem 0; } .footer-bottom { text-align: center; } }

/* ---------- Back to top ---------- */
.back-to-top { position: fixed; right: 30px; bottom: 0; z-index: 99; width: 40px; height: 40px; border: 2px solid #fff; border-radius: 50%; background: var(--primary-color); color: #fff; font-size: 20px; display: flex; align-items: center; justify-content: center; cursor: pointer; visibility: hidden; opacity: 0; transition: all .5s ease; }
.back-to-top.is-visible { bottom: 30px; visibility: visible; opacity: 1; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 991px) {
  body { font-size: 14px; }
  h1 { font-size: 1.8rem; } h2 { font-size: 1.6rem; } h3 { font-size: 1.4rem; } h4 { font-size: 1.2rem; }
}
@media (max-width: 767px) { .pad { padding: 60px 0; } .pad-top { padding-top: 60px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.welcome__sub { color: #fff; margin: .6rem 0 0; font-weight: 400; }
