/* Vizhinjam website — on top of Bootstrap 5.3.
   Colours and layout follow the design sample: white page, orange-red
   (#ff3d00) navigation and headings, generous spacing. */

/* Typeface: Bricolage Grotesque (with Inter as fallback), as in the Astroship
   template. Loaded from Google Fonts in front/layouts/main.php. */

:root {
    --vz-brand: #ff3d00;
    --vz-brand-dark: #c62f00;      /* links/text on white: 4.9:1 contrast */
    --vz-brand-soft: #fff1ec;
    --vz-accent: #f7a21b;          /* hamburger gradient end (design sample) */
    --vz-ink: #16181d;
    --vz-muted: #5b6270;
    --vz-navy: #13233f;
    --vz-line: #e8eaee;
    --vz-header-h: 84px;
    --bs-body-font-family: "Bricolage Grotesque", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --bs-body-color: var(--vz-ink);
    --bs-link-color-rgb: 198, 47, 0;
    --bs-link-hover-color-rgb: 150, 35, 0;
    --vz-heading-font: var(--bs-body-font-family);
}

html { scroll-padding-top: calc(var(--vz-header-h) + 12px); }
body.site { background: #fff; line-height: 1.65; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
.site-main { flex: 1 0 auto; outline: 0; }
h1, h2, h3, h4, .h1, .h2, .h3, .h4, .h5 { font-family: var(--vz-heading-font); font-weight: 600; letter-spacing: -.01em; }
.text-brand { color: var(--vz-brand) !important; }
.skip-link { position: absolute; z-index: 2000; top: .5rem; left: .5rem; background: #fff; padding: .5rem 1rem; border-radius: .375rem; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
:focus-visible { outline: 3px solid rgba(255, 61, 0, .55); outline-offset: 2px; }

.btn-brand { --bs-btn-color: #fff; --bs-btn-bg: var(--vz-brand); --bs-btn-border-color: var(--vz-brand);
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--vz-brand-dark); --bs-btn-hover-border-color: var(--vz-brand-dark);
    --bs-btn-active-bg: var(--vz-brand-dark); --bs-btn-active-border-color: var(--vz-brand-dark);
    --bs-btn-disabled-bg: #f19a7e; --bs-btn-disabled-border-color: #f19a7e; font-weight: 500; }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: #ff9e80; box-shadow: 0 0 0 .2rem rgba(255, 61, 0, .2); }
.form-check-input:checked { background-color: var(--vz-brand); border-color: var(--vz-brand); }

/* Header ----------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: #fff; border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-bottom-color: var(--vz-line); box-shadow: 0 2px 12px rgba(16, 24, 40, .06); }
.site-header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--vz-header-h); }
.site-logo { display: inline-flex; align-items: center; flex: 0 0 auto; text-decoration: none; max-width: 60%; }
.site-logo-img { max-height: 58px; width: auto; height: auto; max-width: 220px; object-fit: contain; }
.site-logo-text { font-family: var(--vz-heading-font); font-weight: 700; font-size: 1.35rem; color: var(--vz-ink); line-height: 1.2; }
.primary-nav { margin-inline: auto; }
.primary-nav-list { list-style: none; display: flex; align-items: center; gap: clamp(1.25rem, 3.5vw, 3.75rem); margin: 0; padding: 0; }
.primary-nav-item { position: relative; display: flex; align-items: center; }
.primary-nav-link { color: var(--vz-brand); text-decoration: none; font-size: 1.02rem; font-weight: 500; padding: .5rem 0; position: relative; }
.primary-nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: .2rem; height: 2px; background: currentColor; transform: scaleX(0); transition: transform .2s; }
.primary-nav-link:hover::after, .primary-nav-link.active::after { transform: scaleX(1); }
.primary-nav-link:hover { color: var(--vz-brand-dark); }
.primary-nav-caret { border: 0; background: none; color: var(--vz-brand); padding: .25rem .2rem; margin-left: .15rem; line-height: 1; font-size: .8rem; border-radius: .25rem; }
.primary-nav-caret:hover { background: var(--vz-brand-soft); }
.primary-nav-dropdown { --bs-dropdown-link-active-bg: var(--vz-brand); min-width: 15rem; border-color: var(--vz-line); box-shadow: 0 10px 30px rgba(16, 24, 40, .1); }
.primary-nav-dropdown .dropdown-item { white-space: normal; padding-block: .45rem; }
.menu-toggle { margin-left: auto; flex: 0 0 auto; width: 48px; height: 48px; display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; border: 0; background: none; border-radius: .5rem; padding: 0; }
@media (min-width: 992px) { .primary-nav + .menu-toggle { margin-left: 0; } }
.menu-toggle:hover { background: var(--vz-brand-soft); }
.menu-toggle-bar { display: block; width: 36px; height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--vz-brand), #ff5a1f); }
.menu-toggle-bar:last-child { background: linear-gradient(90deg, var(--vz-accent), #ffc04d); }

/* Off-canvas full menu */
.site-menu { --bs-offcanvas-width: min(360px, 88vw); }
.site-menu .offcanvas-title { font-family: var(--vz-heading-font); }
.site-menu-list, .site-menu-sub { list-style: none; margin: 0; padding: 0; }
.site-menu-link { display: block; padding: .7rem .25rem; color: var(--vz-ink); text-decoration: none; font-family: var(--vz-heading-font); font-weight: 500; border-bottom: 1px solid var(--vz-line); }
.site-menu-link:hover, .site-menu-link.active { color: var(--vz-brand-dark); }
.site-menu-link.active { font-weight: 600; }
.site-menu-sub { padding: .35rem 0 .5rem 1rem; border-bottom: 1px solid var(--vz-line); }
.site-menu-sublink { display: block; padding: .3rem 0; color: var(--vz-muted); text-decoration: none; font-size: .95rem; }
.site-menu-sublink:hover, .site-menu-sublink.active { color: var(--vz-brand-dark); }
.site-menu-contact { margin-top: 1.5rem; display: grid; gap: .5rem; font-size: .95rem; }
.site-menu-contact a { color: var(--vz-ink); text-decoration: none; overflow-wrap: anywhere; }
.site-menu-contact .bi { color: var(--vz-brand); margin-right: .4rem; }

/* Breadcrumbs ------------------------------------------------------ */
.breadcrumb-bar { background: #f7f8fa; border-bottom: 1px solid var(--vz-line); padding: .7rem 0; font-size: .9rem; }
.breadcrumb-bar .breadcrumb-item a { color: var(--vz-muted); text-decoration: none; }
.breadcrumb-bar .breadcrumb-item a:hover { color: var(--vz-brand-dark); text-decoration: underline; }
.breadcrumb-bar .breadcrumb-item.active { color: var(--vz-ink); }

/* Page content ----------------------------------------------------- */
.page-section { padding-block: clamp(2rem, 5vw, 3.75rem); }
.page-title { color: var(--vz-brand); font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 500; line-height: 1.15; margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.page-banner { background: #f1f3f5; }
.page-banner-img { display: block; width: 100%; height: clamp(180px, 32vw, 420px); object-fit: cover; }
.page-body { max-width: 900px; }
.rich-text { font-size: 1.05rem; color: #2b2f36; overflow-wrap: break-word; }
.rich-text > :last-child { margin-bottom: 0; }
.rich-text h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin: 2rem 0 .85rem; color: var(--vz-ink); }
.rich-text h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); margin: 1.75rem 0 .7rem; }
.rich-text h4 { font-size: 1.12rem; margin: 1.5rem 0 .6rem; }
.rich-text a { color: var(--vz-brand-dark); text-underline-offset: 2px; }
.rich-text img { max-width: 100%; height: auto; border-radius: .5rem; }
.rich-text blockquote { border-left: 4px solid var(--vz-brand); padding: .25rem 0 .25rem 1rem; color: var(--vz-muted); margin: 1.5rem 0; }
.rich-text table { width: 100%; margin: 1.25rem 0; border-collapse: collapse; display: block; overflow-x: auto; }
.rich-text th, .rich-text td { border: 1px solid var(--vz-line); padding: .5rem .75rem; vertical-align: top; }
.rich-text th { background: #f7f8fa; }
.rich-text ul, .rich-text ol { padding-left: 1.4rem; }
.rich-text li { margin-bottom: .35rem; }

/* Contact */
.contact-card { background: #fff; border: 1px solid var(--vz-line); border-radius: .75rem; padding: 1.5rem; box-shadow: 0 6px 24px rgba(16, 24, 40, .05); }
.contact-card h2 { color: var(--vz-brand); }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.contact-list li { display: flex; gap: .65rem; align-items: baseline; overflow-wrap: anywhere; }
.contact-list .bi { color: var(--vz-brand); }
.contact-list a { color: var(--vz-ink); text-decoration: none; }
.contact-list a:hover { color: var(--vz-brand-dark); text-decoration: underline; }

/* Homepage slideshow (design sample: heading left, illustration right) */
.home-hero { padding-block: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem); }
.hero-row { min-height: clamp(320px, 42vw, 520px); }
.hero-title { font-family: var(--vz-heading-font); color: var(--vz-brand); font-weight: 500; font-size: clamp(2.1rem, 5vw, 4rem); line-height: 1.1; margin-bottom: 1.25rem; }
.hero-text { color: #3a3f47; font-size: clamp(1rem, 1.4vw, 1.12rem); letter-spacing: .06em; line-height: 1.75; max-width: 34rem; margin-bottom: 1.5rem; }
.hero-img { max-width: 100%; height: auto; max-height: 440px; object-fit: contain; }
.hero-indicators { position: static; margin: 1rem 0 0; }
.hero-indicators [data-bs-target] { background-color: var(--vz-brand); width: 28px; height: 4px; border-radius: 2px; }
.hero-control { width: 3rem; opacity: .7; }
.hero-control .carousel-control-prev-icon, .hero-control .carousel-control-next-icon { filter: invert(38%) sepia(94%) saturate(4000%) hue-rotate(4deg); }
@media (max-width: 991.98px) { .hero-control { display: none; } .hero-img { max-height: 260px; } }

/* Ship & Truck Cargo strip */
.cargo-strip { padding-block: .5rem 1rem; }
.cargo-strip-link { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1rem, 4vw, 3.5rem); text-decoration: none; }
.cargo-strip-img { width: clamp(110px, 16vw, 180px); height: auto; }
.cargo-strip-amp, .cargo-strip-word { font-family: var(--vz-heading-font); color: var(--vz-brand); font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1; }
.cargo-strip-word { font-weight: 500; }
.cargo-strip-link:hover .cargo-strip-word { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* Featured services (six) */
.featured-services { margin-top: clamp(1.5rem, 4vw, 3rem); }
.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature-icon { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: #000; color: #fff; display: grid; place-items: center; font-size: 1rem; overflow: hidden; margin-top: .1rem; }
.feature-icon-img { width: 100%; height: 100%; object-fit: cover; }
.feature-title { font-size: 1.1rem; font-weight: 500; margin-bottom: .4rem; }
.feature-title a { color: var(--vz-brand); text-decoration: none; }
.feature-title a:hover { text-decoration: underline; }
.feature-text { color: #2b2f36; margin: 0; font-size: .98rem; }

/* Homepage intro (design sample: "Everything you need in Vizhinjam") */
.home-title { font-family: var(--vz-heading-font); font-weight: 700; font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.2; margin-bottom: 1.5rem; color: #000; }
.home-content { max-width: 960px; }

/* Cards (services, news, properties) */
.card-tile { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--vz-line); border-radius: .75rem; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.card-tile:hover { box-shadow: 0 12px 30px rgba(16, 24, 40, .1); transform: translateY(-2px); }
.card-tile-media { display: block; aspect-ratio: 16 / 9; background: #f1f3f5; overflow: hidden; }
.card-tile-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-tile-placeholder { display: grid; place-items: center; height: 100%; font-size: 2.5rem; color: #c3c9d2; }
.card-tile-body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; flex: 1 1 auto; }
.card-tile-title { font-size: 1.15rem; margin-bottom: .5rem; line-height: 1.35; }
.card-tile-title a { color: var(--vz-ink); text-decoration: none; }
.card-tile-title a:hover { color: var(--vz-brand-dark); }
.card-tile-text { color: var(--vz-muted); font-size: .95rem; margin-bottom: 1rem; }
.card-tile-meta { font-size: .85rem; color: var(--vz-muted); margin-bottom: .35rem; }
.card-tile-link { margin-top: auto; color: var(--vz-brand-dark); font-weight: 600; text-decoration: none; font-size: .95rem; }
.card-tile-link:hover { text-decoration: underline; }
.cta-band { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; background: var(--vz-brand-soft); border-radius: .75rem; padding: 1.5rem 1.75rem; }
.was-validated .form-control:valid, .was-validated .form-select:valid { border-color: var(--bs-border-color); background-image: none; padding-right: .75rem; }

/* Error page */
.error-page { text-align: center; padding-block: clamp(3rem, 10vw, 6rem); }
.error-code { font-family: var(--vz-heading-font); font-size: clamp(4rem, 14vw, 7rem); font-weight: 700; color: var(--vz-brand); line-height: 1; }

/* Footer ----------------------------------------------------------- */
.site-footer { background: var(--vz-navy); color: #c9d1de; padding-top: clamp(2.5rem, 5vw, 3.5rem); margin-top: auto; font-size: .95rem; }
.site-footer a { color: #e9edf3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer-name { font-family: var(--vz-heading-font); font-weight: 600; font-size: 1.2rem; color: #fff; margin-bottom: .5rem; }
.site-footer-heading { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #ff8a65; font-weight: 600; margin-bottom: .85rem; }
.site-footer-links { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 1.5rem; }
.site-footer-links li { margin-bottom: .45rem; break-inside: avoid; }
.site-footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer-contact li { display: flex; gap: .6rem; align-items: baseline; overflow-wrap: anywhere; }
.site-footer-contact .bi { color: #ff8a65; }
.site-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 2.25rem; padding: 1.1rem 0; font-size: .85rem; color: #9aa6b8; }

/* CAPTCHA (forms) */
.captcha-image { background: #f4f6fb; max-width: 100%; height: auto; }

@media (max-width: 991.98px) {
    :root { --vz-header-h: 68px; }
    .site-logo-img { max-height: 46px; max-width: 180px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.site-pagination { --bs-pagination-active-bg: var(--vz-brand); --bs-pagination-active-border-color: var(--vz-brand); --bs-pagination-color: var(--vz-brand-dark); --bs-pagination-hover-color: var(--vz-brand-dark); }
/* News */
.page-title-sub { font-size: .5em; color: var(--vz-muted); font-weight: 400; }
.news-list { display: grid; gap: 1.75rem; }
.news-item { display: grid; grid-template-columns: minmax(0, 280px) 1fr; gap: 1.5rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--vz-line); }
.news-item:last-child { border-bottom: 0; }
.news-item-media { display: block; aspect-ratio: 16 / 9; border-radius: .6rem; overflow: hidden; background: #f1f3f5; }
.news-item-img { width: 100%; height: 100%; object-fit: cover; }
.news-item-body { display: flex; flex-direction: column; }
.news-date { color: var(--vz-muted); font-size: .9rem; }
.news-item-title { font-size: 1.3rem; margin: .35rem 0 .6rem; }
.news-item-title a { color: var(--vz-ink); text-decoration: none; }
.news-item-title a:hover { color: var(--vz-brand-dark); }
.news-item-text { color: #3a3f47; }
@media (max-width: 767.98px) { .news-item { grid-template-columns: 1fr; gap: 1rem; } }
.news-article { max-width: 960px; }
.news-figure { margin: 0 0 2rem; }
.news-figure-img { width: 100%; height: auto; border-radius: .75rem; }
/* Forms */
.form-panel { background: #fff; border: 1px solid var(--vz-line); border-radius: 1rem; padding: clamp(1.25rem, 3vw, 2.25rem); box-shadow: 0 6px 24px rgba(16, 24, 40, .05); }
.form-section { border: 0; border-top: 1px solid var(--vz-line); padding: 1.5rem 0 .5rem; margin: 0 0 1rem; min-width: 0; }
.form-section > legend { float: none; width: auto; font-family: var(--vz-heading-font); font-size: 1.15rem; font-weight: 600; color: var(--vz-brand); margin-bottom: 1rem; padding: 0; }
.form-label { font-weight: 500; }
/* Real estate */
.btn-outline-brand { --bs-btn-color: var(--vz-brand-dark); --bs-btn-border-color: var(--vz-brand); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--vz-brand); --bs-btn-hover-border-color: var(--vz-brand); --bs-btn-active-bg: var(--vz-brand-dark); font-weight: 500; align-self: flex-start; }
.property-filters { background: #f7f8fa; border: 1px solid var(--vz-line); border-radius: .75rem; padding: 1rem 1.25rem; }
.property-card .card-tile-media { position: relative; aspect-ratio: 3 / 2; }
.property-badge { position: absolute; top: .75rem; left: .75rem; background: var(--vz-brand); color: #fff; font-size: .8rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; }
.property-badge-status { left: auto; right: .75rem; background: #343a40; }
.property-location { color: var(--vz-muted); font-size: .92rem; margin-bottom: .35rem; }
.property-price { font-family: var(--vz-heading-font); font-weight: 600; color: var(--vz-ink); font-size: 1.15rem; margin-bottom: .5rem; }
.property-price-lg { font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--vz-brand-dark); }
.property-specs { list-style: none; padding: 0; margin: 0 0 .75rem; display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-size: .9rem; color: #3a3f47; }
.property-specs .bi { color: var(--vz-brand); }
.property-photo { aspect-ratio: 3 / 2; object-fit: cover; }
.property-gallery .carousel-control-prev, .property-gallery .carousel-control-next { width: 3.5rem; }
.property-thumbs { display: flex; gap: .5rem; margin-top: .6rem; overflow-x: auto; padding-bottom: .25rem; }
.property-thumbs button { border: 2px solid transparent; padding: 0; border-radius: .4rem; overflow: hidden; flex: 0 0 96px; background: none; }
.property-thumbs button[aria-current="true"] { border-color: var(--vz-brand); }
.property-thumbs img { width: 96px; height: 64px; object-fit: cover; display: block; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem 1.5rem; margin: 0; }
.spec-grid div { border-bottom: 1px solid var(--vz-line); padding-bottom: .5rem; }
.spec-grid dt { font-size: .82rem; color: var(--vz-muted); font-weight: 500; }
.spec-grid dd { margin: 0; font-weight: 500; }
.property-enquiry { position: sticky; top: calc(var(--vz-header-h) + 1rem); }
@media (max-width: 991.98px) { .property-enquiry { position: static; } }
.empty-state { text-align: center; padding: 3rem 1rem; border: 1px dashed var(--vz-line); border-radius: .75rem; color: var(--vz-ink); }
.empty-state .bi { font-size: 2.5rem; color: #c3c9d2; display: block; margin-bottom: .5rem; }
.pay-status-icon { font-size: 3.5rem; }
.property-photo { height: auto; }
@media (max-width: 575.98px) { .site-logo-text { font-size: 1.05rem; } }
