/* ============================================================
   HAFRAY LIMITED — Main Stylesheet
   Green Color Palette + Animations
   ============================================================ */

:root {
    --green-dark:    #1a4a1a;
    --green-main:    #2d7a2d;
    --green-mid:     #3d9c3d;
    --green-light:   #5cb85c;
    --green-pale:    #a8d5a8;
    --green-bg:      #f0f7f0;
    --green-tint:    #e8f5e8;
    --earth:         #8B6914;
    --earth-light:   #c4941f;
    --text-dark:     #1a2a1a;
    --text-mid:      #3d4d3d;
    --text-light:    #6b7f6b;
    --white:         #ffffff;
    --off-white:     #f9fdf9;
    --shadow-sm:     0 2px 8px rgba(45,122,45,0.12);
    --shadow-md:     0 6px 24px rgba(45,122,45,0.18);
    --shadow-lg:     0 12px 48px rgba(45,122,45,0.22);
    --transition:    0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --radius:        12px;
    --radius-lg:     20px;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.7;
}

h1,h2,h3,h4,h5,h6 {
    font-family: 'Playfair Display', serif;
    line-height: 1.25;
    color: var(--text-dark);
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* === PAGE TRANSITION === */
.page-transition {
    position: fixed;
    inset: 0;
    background: var(--green-main);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.65s cubic-bezier(0.86, 0, 0.07, 1);
    transform: translateY(0);
    pointer-events: none;
}
.page-transition.hidden { transform: translateY(-100%); }
.transition-logo {
    width: 80px; height: 80px;
    background: rgba(255,255,255,0.15);
    border: 3px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 36px; font-weight: 700; color: white;
    animation: pulse-logo 0.8s ease infinite alternate;
}
@keyframes pulse-logo {
    from { transform: scale(1); opacity: 0.8; }
    to   { transform: scale(1.1); opacity: 1; }
}

/* === TOP BAR === */
.topbar {
    background: var(--green-dark);
    padding: 8px 0;
    font-size: 13px;
}
.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.topbar-left, .topbar-right {
    display: flex; align-items: center; gap: 20px;
}
.topbar-left a, .topbar-right a {
    color: rgba(255,255,255,0.85);
    display: flex; align-items: center; gap: 6px;
}
.topbar-left a:hover, .topbar-right a:hover { color: var(--green-pale); }
.topbar-right a {
    width: 28px; height: 28px;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px;
}
.topbar-right a:hover { background: var(--green-mid); color: white; }

/* === NAVBAR === */
.navbar {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(45,122,45,0.12);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.navbar.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255,255,255,0.99);
}
.nav-container {
    display: flex; align-items: center;
    justify-content: space-between;
    height: 72px;
}
.nav-logo {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none;
}
.logo-icon {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--green-main), var(--green-mid));
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 24px; font-weight: 700; color: white;
    box-shadow: 0 4px 12px rgba(45,122,45,0.35);
}
.logo-name { display: block; font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--green-dark); }
.logo-sub  { display: block; font-size: 11px; color: var(--green-mid); font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; }

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-link {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14.5px; font-weight: 500;
    color: var(--text-mid);
    position: relative;
    transition: var(--transition);
}
.nav-link::after {
    content: '';
    position: absolute; bottom: 4px; left: 50%; right: 50%;
    height: 2px; background: var(--green-main);
    border-radius: 2px;
    transition: var(--transition);
}
.nav-link:hover::after, .nav-link.active::after { left: 16px; right: 16px; }
.nav-link:hover, .nav-link.active { color: var(--green-main); background: var(--green-tint); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px; background: none; border: none;
    cursor: pointer; padding: 8px;
}
.nav-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--green-dark);
    border-radius: 2px;
    transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* === HERO BANNER === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center;
    overflow: hidden;
    background: var(--green-dark);
}
.hero-bg {
    position: absolute; inset: 0;
    background-image: url('https://images.unsplash.com/photo-1500595046743-cd271d694d30?w=1600');
    background-size: cover; background-position: center;
    transform-origin: center;
    animation: hero-zoom 20s ease infinite alternate;
}
@keyframes hero-zoom {
    from { transform: scale(1); }
    to   { transform: scale(1.08); }
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15,40,15,0.85) 0%,
        rgba(26,74,26,0.75) 50%,
        rgba(45,122,45,0.5) 100%
    );
}
.hero-content {
    position: relative; z-index: 2;
    max-width: 780px;
    padding: 40px 0;
    animation: hero-enter 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes hero-enter {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(8px);
    color: var(--green-pale);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 13px; font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}
.hero-badge .dot {
    width: 8px; height: 8px;
    background: var(--green-light);
    border-radius: 50%;
    animation: blink 1.5s ease infinite;
}
@keyframes blink {
    0%,100% { opacity: 1; }
    50%      { opacity: 0.3; }
}
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    color: white;
    margin-bottom: 20px;
    line-height: 1.15;
}
.hero h1 .accent { color: var(--green-pale); font-style: italic; }
.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.85);
    margin-bottom: 36px;
    max-width: 580px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px; font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--green-main), var(--green-mid));
    color: white; border-color: transparent;
    box-shadow: 0 4px 20px rgba(45,122,45,0.5);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(45,122,45,0.6);
    background: linear-gradient(135deg, var(--green-mid), var(--green-light));
}
.btn-outline {
    background: transparent;
    color: white; border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: white;
    transform: translateY(-2px);
}
.btn-green {
    background: linear-gradient(135deg, var(--green-main), var(--green-mid));
    color: white;
    box-shadow: 0 4px 20px rgba(45,122,45,0.4);
}
.btn-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(45,122,45,0.55);
}

.hero-stats {
    display: flex; gap: 32px; flex-wrap: wrap;
    margin-top: 52px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat .num {
    display: block; font-family: 'Playfair Display', serif;
    font-size: 2.2rem; font-weight: 700; color: var(--green-pale);
}
.hero-stat .lbl { font-size: 12px; color: rgba(255,255,255,0.7); letter-spacing: 0.5px; }

.hero-scroll {
    position: absolute; bottom: 32px; left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    color: rgba(255,255,255,0.6); font-size: 12px; letter-spacing: 1px;
}
.scroll-mouse {
    width: 24px; height: 38px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 12px;
    display: flex; justify-content: center; padding-top: 6px;
}
.scroll-dot {
    width: 4px; height: 8px;
    background: rgba(255,255,255,0.7);
    border-radius: 2px;
    animation: scroll-anim 1.8s ease infinite;
}
@keyframes scroll-anim {
    0%   { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

/* === SECTION STYLES === */
.section { padding: 96px 0; }
.section-alt { background: var(--green-tint); }
.section-dark { background: var(--green-dark); color: white; }

.section-label {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--green-main); font-size: 13px; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase;
    margin-bottom: 12px;
}
.section-label::before {
    content: ''; display: block;
    width: 32px; height: 2px; background: var(--green-main);
    border-radius: 2px;
}
.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    margin-bottom: 16px;
}
.section-desc { font-size: 1.05rem; color: var(--text-light); max-width: 580px; }

.text-center { text-align: center; }
.text-center .section-label { justify-content: center; }
.text-center .section-label::before { display: none; }
.text-center .section-desc { margin: 0 auto; }

/* === ABOUT STRIP (home page) === */
.about-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.about-img-wrap { position: relative; }
.about-img-main {
    width: 100%; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover; height: 480px;
}
.about-img-badge {
    position: absolute; bottom: -24px; right: -24px;
    background: var(--green-main);
    color: white; border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-md);
}
.about-img-badge .big { display: block; font-family: 'Playfair Display', serif; font-size: 2.5rem; font-weight: 700; }
.about-img-badge .sm  { font-size: 12px; opacity: 0.85; }
.about-checks { display: flex; flex-direction: column; gap: 12px; margin: 24px 0 32px; }
.check-item {
    display: flex; align-items: flex-start; gap: 12px;
}
.check-icon {
    width: 24px; height: 24px; flex-shrink: 0;
    background: var(--green-tint); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--green-main); font-size: 12px; margin-top: 2px;
}

/* === SERVICES / CARDS === */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 48px;
}
.card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(45,122,45,0.08);
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(45,122,45,0.2);
}
.card-img { width: 100%; height: 220px; object-fit: cover; transition: var(--transition); }
.card:hover .card-img { transform: scale(1.04); }
.card-img-wrap { overflow: hidden; }
.card-body { padding: 28px; }
.card-icon {
    width: 52px; height: 52px;
    background: var(--green-tint);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: var(--green-main);
    margin-bottom: 16px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { font-size: 0.95rem; color: var(--text-light); }
.card-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--green-main); font-size: 13px; font-weight: 600;
    margin-top: 16px;
    letter-spacing: 0.3px;
}
.card-link i { transition: transform 0.2s; }
.card:hover .card-link i { transform: translateX(4px); }

/* === STATS COUNTER === */
.stats-bar {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-main) 100%);
    padding: 64px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 32px;
    text-align: center;
}
.stat-item { color: white; }
.stat-num {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 3rem; font-weight: 700;
    color: var(--green-pale);
    line-height: 1;
}
.stat-label { font-size: 14px; opacity: 0.8; margin-top: 8px; }

/* === TESTIMONIALS === */
.testimonials { padding: 96px 0; background: var(--green-tint); }
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px; margin-top: 48px;
}
.testimonial-card {
    background: white; border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}
.testimonial-card::before {
    content: '"';
    position: absolute; top: 16px; right: 24px;
    font-family: 'Playfair Display', serif;
    font-size: 80px; line-height: 1;
    color: var(--green-pale);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.t-stars { color: var(--earth-light); font-size: 14px; margin-bottom: 16px; }
.t-text { color: var(--text-mid); font-style: italic; margin-bottom: 24px; }
.t-author { display: flex; align-items: center; gap: 12px; }
.t-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--green-tint);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 18px; font-weight: 700; color: var(--green-main);
}
.t-name { font-weight: 600; font-size: 15px; }
.t-role { font-size: 12px; color: var(--text-light); }

/* === GALLERY GRID === */
.gallery-masonry {
    columns: 3;
    column-gap: 16px;
    margin-top: 48px;
}
.gallery-item {
    break-inside: avoid;
    margin-bottom: 16px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.gallery-item img {
    width: 100%; display: block;
    transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(15,40,15,0.85) 0%, transparent 60%);
    opacity: 0; transition: var(--transition);
    display: flex; align-items: flex-end;
    padding: 20px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay-text { color: white; }
.gallery-overlay-text h4 { font-size: 15px; margin-bottom: 4px; }
.gallery-overlay-text span { font-size: 12px; opacity: 0.75; }

/* === LIGHTBOX === */
.lightbox {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.95);
    display: none; align-items: center; justify-content: center;
    padding: 32px;
}
.lightbox.open { display: flex; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox img {
    max-width: 90vw; max-height: 85vh;
    border-radius: var(--radius);
    box-shadow: 0 0 80px rgba(0,0,0,0.8);
    animation: zoomIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
.lightbox-close {
    position: fixed; top: 20px; right: 24px;
    color: white; font-size: 32px; cursor: pointer;
    background: none; border: none; line-height: 1;
    transition: transform 0.2s;
}
.lightbox-close:hover { transform: rotate(90deg); }
.lightbox-caption {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,0.8); font-size: 14px; text-align: center;
}

/* === BLOG === */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px; margin-top: 48px;
}
.blog-card {
    background: white; border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(45,122,45,0.08);
    display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.blog-card-img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.5s; }
.blog-card-img-wrap { overflow: hidden; }
.blog-card:hover .blog-card-img { transform: scale(1.05); }
.blog-card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.blog-meta {
    display: flex; gap: 16px; flex-wrap: wrap;
    font-size: 12px; color: var(--text-light);
    margin-bottom: 12px;
}
.blog-meta span { display: flex; align-items: center; gap: 5px; }
.blog-cat {
    display: inline-block;
    background: var(--green-tint); color: var(--green-main);
    padding: 3px 12px; border-radius: 100px;
    font-size: 11px; font-weight: 600; letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.blog-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.blog-card p { font-size: 0.9rem; color: var(--text-light); flex: 1; }
.blog-card .card-link { margin-top: auto; padding-top: 16px; }

/* === BLOG SINGLE === */
.blog-single-hero {
    height: 480px;
    position: relative;
    overflow: hidden;
}
.blog-single-hero img { width: 100%; height: 100%; object-fit: cover; }
.blog-single-hero .overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(15,40,15,0.9), transparent 50%);
}
.blog-single-hero .hero-info {
    position: absolute; bottom: 40px; left: 0; right: 0;
}
.blog-single-hero .hero-info h1 { color: white; font-size: clamp(1.6rem, 3vw, 2.5rem); }
.blog-content { max-width: 800px; margin: 0 auto; padding: 64px 24px; }
.blog-content h2 { font-size: 1.6rem; margin: 32px 0 16px; color: var(--green-dark); }
.blog-content h3 { font-size: 1.3rem; margin: 24px 0 12px; }
.blog-content p  { margin-bottom: 20px; line-height: 1.85; }
.blog-content ul { margin: 16px 0 20px 24px; list-style: disc; }
.blog-content ul li { margin-bottom: 8px; }

/* === CONTACT === */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 64px;
    align-items: start;
}
.contact-info-item {
    display: flex; align-items: flex-start; gap: 16px;
    margin-bottom: 28px;
}
.contact-info-icon {
    width: 48px; height: 48px; flex-shrink: 0;
    background: var(--green-tint);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: var(--green-main); font-size: 18px;
}
.contact-form { background: white; border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-md); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; color: var(--text-mid); }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid rgba(45,122,45,0.2);
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    color: var(--text-dark);
    background: var(--off-white);
    transition: var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--green-main);
    background: white;
    box-shadow: 0 0 0 3px rgba(45,122,45,0.1);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-msg {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 16px;
    display: none;
}
.form-msg.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; display: block; }
.form-msg.error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; display: block; }

/* === PAGE HERO (inner pages) === */
.page-hero {
    position: relative; height: 380px;
    display: flex; align-items: center;
    overflow: hidden;
    background: var(--green-dark);
}
.page-hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0.4;
}
.page-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(15,40,15,0.8), rgba(45,122,45,0.6));
}
.page-hero-content { position: relative; z-index: 2; color: white; }
.breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: rgba(255,255,255,0.7);
    margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--green-pale); }
.breadcrumb .sep { opacity: 0.5; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 12px; }
.page-hero p { font-size: 1.05rem; opacity: 0.85; max-width: 560px; }

/* === MAP SECTION === */
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.map-wrap iframe { display: block; width: 100%; }

/* === TEAM === */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px; margin-top: 48px; }
.team-card {
    background: white; border-radius: var(--radius-lg);
    overflow: hidden; text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(45,122,45,0.08);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.team-img-wrap { position: relative; overflow: hidden; }
.team-img { width: 100%; height: 260px; object-fit: cover; transition: transform 0.5s; }
.team-card:hover .team-img { transform: scale(1.05); }
.team-overlay {
    position: absolute; inset: 0;
    background: rgba(26,74,26,0.75);
    display: flex; align-items: center; justify-content: center;
    gap: 12px; opacity: 0; transition: var(--transition);
}
.team-card:hover .team-overlay { opacity: 1; }
.team-social {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--green-main); font-size: 14px;
    transform: translateY(10px);
    transition: var(--transition);
}
.team-card:hover .team-social { transform: translateY(0); }
.team-body { padding: 20px; }
.team-name { font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.team-role { font-size: 13px; color: var(--green-main); }
.team-edu  { font-size: 12px; color: var(--text-light); margin-top: 4px; }

/* === FOOTER === */
.footer { background: var(--green-dark); color: rgba(255,255,255,0.8); }
.footer-top { padding: 80px 0; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 48px;
}
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo .logo-icon { background: rgba(255,255,255,0.15); box-shadow: none; }
.footer-logo .logo-name { color: white; }
.footer-logo .logo-sub { color: var(--green-pale); }
.footer-about { font-size: 14px; line-height: 1.75; margin-bottom: 20px; opacity: 0.8; }
.footer-social { display: flex; gap: 8px; }
.social-btn {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; color: rgba(255,255,255,0.7);
    transition: var(--transition);
}
.social-btn:hover { background: var(--green-mid); color: white; transform: translateY(-2px); }
.footer-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem; color: white;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    font-size: 14px; color: rgba(255,255,255,0.7);
    display: flex; align-items: center; gap: 8px;
    transition: var(--transition);
}
.footer-links a:hover { color: var(--green-pale); padding-left: 4px; }
.footer-links i { font-size: 10px; color: var(--green-mid); }
.footer-contact li {
    display: flex; align-items: flex-start; gap: 12px;
    font-size: 14px; margin-bottom: 14px;
}
.footer-contact i { color: var(--green-mid); margin-top: 3px; width: 16px; flex-shrink: 0; }
.footer-contact a { color: rgba(255,255,255,0.7); }
.footer-contact a:hover { color: var(--green-pale); }
.footer-cert {
    display: flex; flex-direction: column; gap: 6px; margin-top: 20px;
}
.footer-cert span {
    font-size: 12px; color: rgba(255,255,255,0.6);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    display: flex;
    justify-content: center;
    text-align: center;
}
.footer-bottom .container { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.5); }

/* === BACK TO TOP === */
.back-to-top {
    position: fixed; bottom: 28px; right: 28px;
    width: 48px; height: 48px;
    background: var(--green-main);
    color: white; border: none;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0; transform: translateY(16px);
    transition: var(--transition);
    z-index: 990;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--green-dark); transform: translateY(-3px); }

/* === ALERT / FLASH === */
.alert {
    padding: 14px 20px; border-radius: var(--radius);
    font-size: 14px; margin-bottom: 20px;
    display: flex; align-items: center; gap: 10px;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info    { background: #cce5ff; color: #004085; border: 1px solid #b8daff; }

/* === UTILITY === */
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.gap-2 { gap: 8px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.fw-6 { font-weight: 600; }
.text-green { color: var(--green-main); }
.text-muted { color: var(--text-light); }
.badge {
    display: inline-block;
    padding: 4px 12px; border-radius: 100px;
    font-size: 12px; font-weight: 600;
}
.badge-green { background: var(--green-tint); color: var(--green-main); }
.badge-earth  { background: #fef3e2; color: var(--earth); }

/* === FILTER BUTTONS === */
.filter-bar {
    display: flex; flex-wrap: wrap; gap: 8px;
    justify-content: center; margin-bottom: 40px;
}
.filter-btn {
    padding: 8px 20px; border-radius: 100px;
    font-size: 13px; font-weight: 500;
    border: 1.5px solid rgba(45,122,45,0.25);
    background: white; color: var(--text-mid);
    cursor: pointer; transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
    background: var(--green-main); color: white; border-color: var(--green-main);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .about-strip { grid-template-columns: 1fr; gap: 40px; }
    .contact-layout { grid-template-columns: 1fr; gap: 40px; }
    .gallery-masonry { columns: 2; }
}
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 72px; left: 0; right: 0;
        background: white;
        flex-direction: column;
        padding: 24px;
        gap: 8px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-110%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 0;
    }
    .nav-menu.open { transform: translateY(0); opacity: 1; }
    .nav-toggle { display: flex; }
    .topbar-left a:last-child { display: none; }
    .hero-stats { gap: 20px; }
    .cards-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .gallery-masonry { columns: 1; }
    .team-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 64px 0; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .hero-btns { flex-direction: column; }
    .team-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}