/* ================================================================
   SEWU DEVELOPMENT — MAIN STYLESHEET v2.0
   Design: Clean, warm, minimal — matching reference UI design
   Font: Inter (Google Fonts)
   ================================================================ */

/* ──────────────────────────────────────────
   0.  GOOGLE FONT IMPORT
────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ──────────────────────────────────────────
   1.  CSS CUSTOM PROPERTIES (Design Tokens)
────────────────────────────────────────── */
:root {
    /* Brand Colors */
    --primary-green: #3d5a2e;
    --primary-hover: #2e4420;
    --accent-blue: #1558a8;
    --accent-blue-lt: #e8f0fa;

    /* Neutrals */
    --bg: #fefcf8;
    --bg-warm: #ece5d4;
    /* header + footer */
    --bg-section: #f5f0e6;
    /* alt section bg  */
    --white: #ffffff;
    --border: #d9d1c2;

    /* Text */
    --text: #1c1c1c;
    --text-muted: #5e5e5e;
    --text-light: #8a8a8a;

    /* Shadows */
    --shadow-xs: 0 1px 3px rgba(0, 0, 0, .06);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .09);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, .12);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, .14);

    /* Radii */
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;
    --r-xl: 24px;

    /* Layout */
    --header-height: 68px;
    --max-w: 1100px;

    /* Transitions */
    --t: 0.25s ease;

    /* Aliases kept for backwards compat */
    --dark-navy: var(--text);
    --muted-text: var(--text-muted);
    --border-radius-lg: var(--r-lg);
    --border-radius-sm: var(--r-sm);
}

/* ──────────────────────────────────────────
   2.  RESET & BASE
────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font: inherit;
}

/* ──────────────────────────────────────────
   3.  LAYOUT HELPERS
────────────────────────────────────────── */
.section-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.bg-warm {
    background: var(--bg-warm);
}

.bg-section {
    background: var(--bg-section);
}

/* ──────────────────────────────────────────
   4.  TYPOGRAPHY
────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text);
    line-height: 1.25;
    font-weight: 800;
}

.section-tagline {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-green);
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 640px;
    line-height: 1.75;
    margin-bottom: 40px;
}

.section-title+.section-subtitle {
    margin-top: 0;
}

strong {
    color: var(--accent-blue);
    font-weight: 700;
}

/* ──────────────────────────────────────────
   5.  BUTTONS
────────────────────────────────────────── */
.btn-solid,
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--r-sm);
    transition: all var(--t);
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
}

.btn-solid {
    background: var(--primary-green);
    color: var(--white);
    border: 2px solid var(--primary-green);
}

.btn-solid:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-outline:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-solid-green {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #6c823f;
    color: #ffffff;
    padding: 12px 36px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-solid-green:hover {
    background: #596c34;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ──────────────────────────────────────────
   6.  HEADER / NAVIGATION
────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-warm);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--t);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.logo-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

/* Desktop Nav */
.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    border-radius: var(--r-sm);
    transition: color var(--t), background var(--t);
    white-space: nowrap;
    text-decoration: none;
    background: none;
}

.nav-item:hover {
    color: var(--primary-green);
    background: rgba(61, 90, 46, .07);
}

.nav-item.is-active {
    color: var(--primary-green);
    font-weight: 700;
}

.nav-item.is-active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 14px;
    right: 14px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary-green);
}

/* Dropdown */
.nav-dropdown-wrap {
    position: relative;
}

.nav-dropdown-trigger i {
    font-size: 0.7rem;
    transition: transform var(--t);
}

.nav-dropdown-wrap:hover .nav-dropdown-trigger i,
.nav-dropdown-wrap:focus-within .nav-dropdown-trigger i {
    transform: rotate(180deg);
}

.nav-dropdown-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-md);
    padding: 8px 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity var(--t), transform var(--t);
    z-index: 200;
}

.nav-dropdown-wrap:hover .nav-dropdown-panel,
.nav-dropdown-wrap:focus-within .nav-dropdown-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-dropdown-panel a {
    display: block;
    padding: 10px 18px;
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color var(--t), background var(--t);
}

.nav-dropdown-panel a:hover {
    color: var(--primary-green);
    background: var(--bg-section);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 4px;
    border-radius: var(--r-sm);
    transition: background var(--t);
}

.mobile-toggle:hover {
    background: rgba(0, 0, 0, .06);
}

.mobile-toggle span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--t), opacity var(--t);
}

.mobile-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.open span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Panel */
.mobile-nav-panel {
    display: none;
    background: var(--bg-warm);
    border-top: 1px solid var(--border);
    padding: 16px 24px 24px;
}

.mobile-nav-panel.open {
    display: block;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-nav-links a {
    display: block;
    padding: 10px 12px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--r-sm);
    transition: background var(--t), color var(--t);
}

.mobile-nav-links a:hover {
    background: rgba(61, 90, 46, .08);
    color: var(--primary-green);
}

.mobile-nav-links a.is-active {
    color: var(--primary-green);
    font-weight: 700;
}

.mobile-sub-link {
    padding-left: 28px !important;
    font-size: 0.875rem !important;
    color: var(--text-muted) !important;
}

.mobile-wa-btn {
    margin-top: 8px;
    background: #25d366;
    color: var(--white) !important;
    border-radius: var(--r-sm);
    display: flex !important;
    align-items: center;
    gap: 6px;
    padding: 12px 16px !important;
    font-weight: 600 !important;
    justify-content: center;
}

/* ──────────────────────────────────────────
   7.  HERO SECTION (Home)
────────────────────────────────────────── */
.hero-slider-container {
    position: relative;
    width: 100%;
    height: clamp(440px, 65vh, 700px);
    overflow: hidden;
    background: #111;
    touch-action: pan-y;
    /* Allow vertical scroll to propagate on mobile */
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .3) 60%, rgba(0, 0, 0, .05) 100%);
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 600px;
    padding: 24px 0;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    color: rgba(255, 255, 255, .88);
    line-height: 1.75;
    margin-bottom: 28px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.hero-stars {
    font-size: 1rem;
    color: #f5c842;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.hero-trust-text {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, .75);
    line-height: 1.6;
}

/* ──────────────────────────────────────────
   8.  ABOUT — HOME MINI SECTION
────────────────────────────────────────── */
.about-home-section {
    background: var(--bg-section);
    padding: 64px 0;
    text-align: center;
}

.about-home-text {
    max-width: 680px;
    margin: 0 auto 32px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

/* ──────────────────────────────────────────
   9.  PARTNER STRIP (Award)
────────────────────────────────────────── */
.partner-strip {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 24px 56px;
    background: var(--white);
    text-align: center;
    gap: 20px;
}

.partner-strip-image {
    max-height: 300px;
    width: auto;
    object-fit: contain;
    margin: 0 auto;
}

.partner-caption {
    font-size: 0.875rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    margin-top: 8px;
}

/* ──────────────────────────────────────────
   10. PROJECTS GRID
────────────────────────────────────────── */
.projects-overlay-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 48px;
    margin-bottom: 48px;
}

.project-overlay-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--t), box-shadow var(--t);
}

.project-overlay-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.project-overlay-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.project-overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .78) 0%, transparent 100%);
    padding: 40px 24px 24px;
    color: var(--white);
}

.project-overlay-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.project-overlay-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, .8);
    line-height: 1.5;
    margin-bottom: 12px;
}

.project-overlay-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .9);
    border-bottom: 1px solid rgba(255, 255, 255, .5);
    padding-bottom: 2px;
    transition: color var(--t), border-color var(--t);
}

.project-overlay-link:hover {
    color: var(--white);
    border-color: var(--white);
}

/* ──────────────────────────────────────────
   11. SPLIT LAYOUT (About, Project Details)
────────────────────────────────────────── */
.split-layout {
    display: flex;
    gap: 56px;
    align-items: flex-start;
}

.split-image-col img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
}

/* ──────────────────────────────────────────
   12. ABOUT PAGE — STATS ROW
────────────────────────────────────────── */
.about-stats-row {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
    padding-top: 36px;
    border-top: 1px solid var(--border);
}

.about-stat-item {
    flex: 1;
    min-width: 100px;
}

.about-stat-num {
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--accent-blue);
    line-height: 1;
    margin-bottom: 6px;
}

.about-stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.4;
}

/* ──────────────────────────────────────────
   13. VISION & MISSION
────────────────────────────────────────── */
.bg-cream-light-section {
    background: var(--bg-section);
}

.vision-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    margin-top: 48px;
}

.vision-col,
.mission-col {
    background: var(--white);
    padding: 36px;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--border);
}

.vision-col h3,
.mission-col h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mission-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mission-list li {
    position: relative;
    padding-left: 24px;
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.mission-list li i {
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--primary-green);
    font-size: 1rem;
}

/* ──────────────────────────────────────────
   14. SERVICES PAGE
────────────────────────────────────────── */
.services-images-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
}

.services-images-row img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--t), box-shadow var(--t);
}

.services-images-row img:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow-md);
}

.services-3col-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-3col-item {
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    transition: box-shadow var(--t), transform var(--t);
}

.service-3col-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.service-item-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.3;
}

.service-item-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.75;
}

/* ──────────────────────────────────────────
   15. CONTACT PAGE
────────────────────────────────────────── */
.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 48px;
    align-items: start;
    margin-top: 48px;
}

.contact-info-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 22px;
    transition: box-shadow var(--t);
}

.contact-info-card:hover {
    box-shadow: var(--shadow-sm);
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-section);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
    color: var(--primary-green);
}

.contact-card-body h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-card-body p,
.contact-card-body a {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.6;
    transition: color var(--t);
}

.contact-card-body a:hover {
    color: var(--primary-green);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 36px;
}

.contact-form-wrapper h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.form-field input,
.form-field select,
.form-field textarea {
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    font: inherit;
    font-size: 0.92rem;
    color: var(--text);
    background: var(--bg);
    transition: border-color var(--t), box-shadow var(--t);
    outline: none;
    width: 100%;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(61, 90, 46, .12);
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
}

/* Map */
.map-wrapper {
    margin-top: 64px;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.map-wrapper iframe {
    display: block;
    width: 100%;
    height: 380px;
}

/* ──────────────────────────────────────────
   16. CTA SECTIONS
────────────────────────────────────────── */
.bottom-cta-section {
    background: var(--primary-green);
    padding: 72px 0;
    text-align: center;
}

/* ──────────────────────────────────────────
   17. FOOTER
────────────────────────────────────────── */
.main-footer {
    background: var(--bg-warm);
    border-top: 1px solid var(--border);
}

.footer-top {
    padding: 56px 0 40px;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 1.6fr 1.2fr 1fr;
    gap: 48px;
    align-items: start;
}

.footer-col-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.footer-address-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.75;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contact-info a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color var(--t);
}

.footer-contact-info a:hover {
    color: var(--primary-green);
}

/* Social icons */
.footer-social-col {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.footer-social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-icon-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .07);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: background var(--t), color var(--t), transform var(--t);
    text-decoration: none;
}

.social-icon-link:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: translateY(-2px);
}

/* Footer bottom bar */
.footer-bottom-bar {
    border-top: 1px solid var(--border);
    padding: 16px 0;
}

.footer-copyright {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-light);
}

/* ──────────────────────────────────────────
   18. WHATSAPP FLOAT
────────────────────────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 16px rgba(37, 211, 102, .4);
    z-index: 999;
    transition: transform var(--t), box-shadow var(--t);
}

.whatsapp-float:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 6px 24px rgba(37, 211, 102, .5);
}

.wa-tooltip {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--text);
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: var(--r-sm);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--t);
}

.whatsapp-float:hover .wa-tooltip {
    opacity: 1;
}

/* ──────────────────────────────────────────
   19. SCROLL REVEAL ANIMATION
────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ──────────────────────────────────────────
   20. PROJECT DETAIL PAGES
────────────────────────────────────────── */
.project-hero {
    position: relative;
    height: clamp(380px, 55vh, 560px);
    overflow: hidden;
    background: #111;
    touch-action: pan-y;
    /* Allow vertical scroll to propagate on mobile */
}

.project-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.project-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .65) 30%, rgba(0, 0, 0, .2) 100%);
    display: flex;
    align-items: flex-end;
    padding-bottom: 48px;
}

.project-hero-content {
    color: var(--white);
}

.project-hero-title {
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    font-weight: 900;
    margin-bottom: 8px;
}

.project-hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, .8);
}

.project-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.badge-active {
    background: rgba(61, 90, 46, .85);
    color: var(--white);
}

.badge-upcoming {
    background: rgba(21, 88, 168, .85);
    color: var(--white);
}

/* Feature highlights */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 36px;
}

.feature-card {
    text-align: center;
    padding: 28px 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    transition: box-shadow var(--t), transform var(--t);
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.feature-card-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.feature-card-title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.feature-card-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

/* Spec table */
.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table td {
    padding: 13px 16px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.spec-table td:first-child {
    color: var(--text-muted);
    width: 45%;
    font-weight: 500;
}

.spec-table td:last-child {
    color: var(--text);
    font-weight: 600;
}

.spec-table tr:last-child td {
    border-bottom: none;
}

/* Facility list */
.facility-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.facility-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.facility-item i {
    color: var(--primary-green);
    font-size: 1rem;
}

/* ──────────────────────────────────────────
   21. EVENT REGISTRATION STYLES
       (Scoped under .event-container to avoid
        conflicts with main site styles)
────────────────────────────────────────── */
.event-container {
    max-width: 760px;
    margin: calc(var(--header-height) + 40px) auto 64px;
    padding: 0 24px;
}

.event-container.wide {
    max-width: 1100px;
}

.event-container.narrow {
    max-width: 640px;
}

/* Event Card */
.ev-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 36px;
    margin-bottom: 24px;
    overflow: hidden; /* Clips full-width header image */
}

/* Event Header */
.ev-header {
    text-align: center;
    margin-bottom: 32px;
}

.ev-header img {
    height: 100px;
    width: auto;
    margin: 0 auto 12px;
}

/* Full-width header image */
.ev-header img.event-logo {
    width: calc(100% + 72px) !important;
    max-width: none !important;
    height: auto !important;
    max-height: 280px;
    object-fit: cover;
    display: block;
    margin: -36px -36px 24px -36px !important;
    border-bottom: 1px solid var(--border);
}

.ev-header h1 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.ev-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Event Form Fields */
.ev-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.ev-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.ev-field input,
.ev-field select,
.ev-field textarea {
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    font: inherit;
    font-size: 0.92rem;
    background: var(--bg);
    color: var(--text);
    outline: none;
    transition: border-color var(--t), box-shadow var(--t);
    width: 100%;
}

.ev-field input:focus,
.ev-field select:focus,
.ev-field textarea:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(61, 90, 46, .12);
}

.ev-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Event Badges */
.ev-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.ev-badge-green {
    background: #d4edda;
    color: #155724;
}

.ev-badge-blue {
    background: #d1ecf1;
    color: #0c5460;
}

.ev-badge-yellow {
    background: #fff3cd;
    color: #856404;
}

.ev-badge-red {
    background: #f8d7da;
    color: #721c24;
}

/* Event Alerts */
.ev-alert {
    padding: 12px 16px;
    border-radius: var(--r-sm);
    font-size: 0.88rem;
    margin-bottom: 16px;
    border-left: 3px solid;
}

.ev-alert-success {
    background: #d4edda;
    color: #155724;
    border-left-color: #28a745;
}

.ev-alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-left-color: #dc3545;
}

.ev-alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left-color: #17a2b8;
}

.ev-alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left-color: #ffc107;
}

/* Event Stats Grid */
.ev-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.ev-stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 20px;
    text-align: center;
}

.ev-stat-card .stat-num {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent-blue);
    line-height: 1;
    margin-bottom: 4px;
}

.ev-stat-card .stat-lbl {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Event table */
.ev-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.ev-table th {
    text-align: left;
    padding: 10px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    background: var(--bg-section);
    border-bottom: 1px solid var(--border);
}

.ev-table td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: middle;
}

.ev-table tr:last-child td {
    border-bottom: none;
}

.ev-table tr:hover td {
    background: var(--bg);
}

/* Event Buttons */
.ev-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--r-sm);
    transition: all var(--t);
    cursor: pointer;
    border: none;
}

.ev-btn-primary {
    background: var(--primary-green);
    color: var(--white);
}

.ev-btn-primary:hover {
    background: var(--primary-hover);
}

.ev-btn-outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text);
}

.ev-btn-outline:hover {
    background: var(--bg-section);
    border-color: var(--text-muted);
}

.ev-btn-danger {
    background: #dc3545;
    color: var(--white);
}

.ev-btn-danger:hover {
    background: #c82333;
}

/* Barcode Success Page */
.ev-success-page {
    text-align: center;
    padding: 32px;
}

.ev-success-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
}

.ev-barcode-img {
    max-width: 220px;
    margin: 24px auto;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 12px;
    background: var(--white);
}

.ev-detail-table {
    text-align: left;
    margin: 24px auto;
    max-width: 400px;
}

.ev-detail-table td {
    padding: 8px 12px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}

.ev-detail-table td:first-child {
    color: var(--text-muted);
    font-weight: 500;
    width: 45%;
}

/* ──────────────────────────────────────────
   22. UTILITIES
────────────────────────────────────────── */
.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mt-4 {
    margin-top: 32px;
}

.mt-6 {
    margin-top: 48px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-4 {
    margin-bottom: 32px;
}

.gap-2 {
    gap: 16px;
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

.justify-between {
    justify-content: space-between;
}

/* ──────────────────────────────────────────
   23. RESPONSIVE — TABLET (≤900px)
────────────────────────────────────────── */
@media (max-width: 900px) {

    /* Header */
    .site-nav {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    /* Layouts */
    .split-layout {
        flex-direction: column;
        gap: 32px;
    }

    .split-image-col img {
        height: 280px;
    }

    .projects-overlay-grid {
        grid-template-columns: 1fr;
    }

    .project-overlay-card img {
        height: 260px;
    }

    .vision-mission-grid {
        grid-template-columns: 1fr;
    }

    .services-3col-grid {
        grid-template-columns: 1fr;
    }

    .services-images-row {
        grid-template-columns: 1fr;
    }

    .services-images-row img {
        height: 240px;
    }

    .contact-page-grid {
        grid-template-columns: 1fr;
    }

    .footer-top-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .footer-social-col {
        justify-content: flex-start;
    }

    .about-stats-row {
        gap: 24px;
    }

    .ev-field-row {
        grid-template-columns: 1fr;
    }

    .ev-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ──────────────────────────────────────────
   24. RESPONSIVE — MOBILE (≤600px)
────────────────────────────────────────── */
@media (max-width: 600px) {

    .section-padding {
        padding: 52px 0;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .hero-subtitle {
        font-size: 0.88rem;
    }

    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-stats-row {
        flex-direction: column;
        gap: 20px;
    }

    .ev-stats-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-hero {
        height: 280px;
    }
}