/* Kingspok Construction Works Limited - Consolidated Stylesheet */

/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
:root {
    --primary-blue: #003366;
    --secondary-gold: #FFD700;
    --accent-white: #FFFFFF;
    --text-dark: #333333;
    --text-light: #F5F5F5;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --top-header-height: 42px;
    --main-header-height: 84px;
    --total-header-height: 126px;
}

/* Responsive header height adjustments */
@media (max-width: 880px) {
    :root {
        --main-header-height: 70px;
        --total-header-height: 112px;
    }
}

@media (max-width: 768px) {
    :root {
        --top-header-height: 60px;
        --main-header-height: 64px;
        --total-header-height: 124px;
    }
}

@media (max-width: 640px) {
    :root {
        --top-header-height: 50px;
        --main-header-height: 60px;
        --total-header-height: 110px;
    }
}

@media (max-width: 480px) {
    :root {
        --top-header-height: 40px;
        --main-header-height: 56px;
        --total-header-height: 96px;
    }
}

@media (max-width: 390px) {
    :root {
        --top-header-height: 38px;
        --main-header-height: 54px;
        --total-header-height: 92px;
    }
}

@media (max-width: 360px) {
    :root {
        --top-header-height: 36px;
        --main-header-height: 52px;
        --total-header-height: 88px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-tap-highlight-color: rgba(255, 215, 0, 0.2);
}

body {
    line-height: 1.6;
    color: var(--text-dark);
    padding-top: var(--total-header-height);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

@media (prefers-reduced-motion: no-preference) {
    * {
        scroll-behavior: smooth;
    }
}

@media (prefers-reduced-motion: reduce) {
    * { 
        transition: none !important; 
        animation: none !important; 
    }
}

html:has(body) { 
    scroll-padding-top: var(--header-height); 
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0a4a7d 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-size: 20px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #0a4a7d 0%, var(--primary-blue) 100%);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-blue);
}

.text-muted {
    color: var(--text-medium);
}

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

.mt-30 {
    margin-top: 30px;
}

.mt-40 {
    margin-top: 40px;
}

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

.mb-30 {
    margin-bottom: 30px;
}

.mb-40 {
    margin-bottom: 40px;
}

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

.section-bg-alt {
    background: #f8fafc;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   LAYOUT & CONTAINERS
   ============================================ */
.container { 
    width: 100%; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

section {
    padding: 60px 0;
}

@media (max-width: 600px) {
    section {
        padding: 32px 0;
    }
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
header {
    background-color: var(--primary-blue);
    color: var(--accent-white);
    position: fixed;
    top: var(--top-header-height);
    left: 0;
    right: 0;
    z-index: 1200;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    height: var(--main-header-height);
}

.navbar {
    max-width: 1200px;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
    border-radius: 8px;
    transition: height 0.3s ease;
}

.logo .title {
    color: var(--secondary-gold);
    font-weight: 800;
    font-size: 1.05rem;
    transition: font-size 0.3s ease;
}

.nav-links ul {
    display: flex;
    align-items: center;
    gap: 35px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 8px 6px;
    transition: color var(--transition-normal), transform var(--transition-fast);
    display: flex;
    align-items: center;
    min-height: 44px;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a.active {
    color: var(--secondary-gold);
    transform: translateY(-1px);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    z-index: 1500;
    min-width: 44px;
    min-height: 44px;
    flex-shrink: 0;
}

.hamburger:hover {
    background-color: rgba(255, 215, 0, 0.1);
}

.hamburger:focus {
    outline: 2px solid var(--secondary-gold);
    outline-offset: 2px;
}

.hamburger:active {
    background-color: rgba(255, 215, 0, 0.15);
}

.hamburger span {
    height: 3px;
    width: 25px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

/* Hamburger animation when menu is open */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--accent-white);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.mobile-menu-btn:hover {
    background-color: rgba(255, 215, 0, 0.1);
}

.mobile-menu-btn:focus {
    outline: 2px solid var(--secondary-gold);
    outline-offset: 2px;
}

.mobile-menu-btn:active {
    background-color: rgba(255, 215, 0, 0.15);
}

/* Overlay for mobile menu */
.nav-overlay {
    display: none;
    position: fixed;
    top: var(--total-header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--total-header-height));
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 1100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.show {
    display: block;
    opacity: 1;
}

@media (max-width: 880px) {
    :root {
        --main-header-height: 70px;
    }
    
    header {
        height: var(--main-header-height);
    }
    
    .navbar {
        padding: 0 20px;
    }
    
    .logo img {
        height: 52px;
    }
    
    .logo .title {
        font-size: 0.95rem;
    }
    
    .nav-links ul {
        position: fixed;
        top: var(--total-header-height);
        right: -100%;
        background-color: var(--primary-blue);
        backdrop-filter: blur(10px);
        flex-direction: column;
        width: 280px;
        max-width: 85%;
        text-align: left;
        gap: 0;
        padding: 30px 0;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        height: calc(100vh - var(--total-header-height));
        overflow-y: auto;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
        z-index: 1400;
    }
    
    .nav-links ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links ul li:last-child {
        border-bottom: none;
    }
    
    .nav-links a {
        display: block;
        padding: 16px 24px;
        font-size: 1.05rem;
        border-left: 3px solid transparent;
        transition: all 0.3s ease;
        text-align: left;
        width: 100%;
    }
    
    .nav-links a:hover,
    .nav-links a:focus {
        background: rgba(255, 215, 0, 0.1);
        border-left-color: var(--secondary-gold);
        padding-left: 32px;
        transform: none;
    }
    
    .nav-links a.active {
        background: rgba(255, 215, 0, 0.15);
        border-left-color: var(--secondary-gold);
    }
    
    .nav-links ul.show {
        right: 0;
    }
    
    .hamburger,
    .mobile-menu-btn {
        display: flex;
    }
    
    body.nav-open {
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    :root {
        --main-header-height: 64px;
    }
    
    header {
        height: var(--main-header-height);
    }
    
    .navbar {
        padding: 0 16px;
    }
    
    .logo img {
        height: 48px;
    }
    
    .logo .title {
        font-size: 0.9rem;
    }
    
    .hamburger {
        padding: 8px;
        min-width: 40px;
        min-height: 40px;
    }
    
    .hamburger span {
        width: 23px;
        height: 2.5px;
    }
    
    .nav-links ul {
        width: 260px;
        padding: 25px 0;
    }
    
    .nav-links a {
        font-size: 1rem;
        padding: 14px 20px;
    }
}

@media (max-width: 640px) {
    :root {
        --main-header-height: 60px;
    }
    
    header {
        height: var(--main-header-height);
    }
    
    .navbar {
        padding: 0 14px;
    }
    
    .logo img {
        height: 44px;
    }
    
    .logo .title {
        font-size: 0.85rem;
    }
    
    .hamburger {
        padding: 7px;
        min-width: 38px;
        min-height: 38px;
    }
    
    .hamburger span {
        width: 22px;
        height: 2.5px;
    }
    
    .nav-links ul {
        width: 240px;
        padding: 20px 0;
    }
    
    .nav-links a {
        font-size: 0.98rem;
        padding: 13px 18px;
    }
}

@media (max-width: 480px) {
    :root {
        --main-header-height: 56px;
    }
    
    header {
        height: var(--main-header-height);
    }
    
    .navbar {
        padding: 0 12px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .logo .title {
        font-size: 0.8rem;
    }
    
    .hamburger {
        padding: 6px;
        min-width: 36px;
        min-height: 36px;
    }
    
    .hamburger span {
        width: 20px;
        height: 2px;
    }
    
    .nav-links ul {
        width: 220px;
        max-width: 80%;
        padding: 20px 0;
    }
    
    .nav-links a {
        font-size: 0.95rem;
        padding: 12px 16px;
    }
}

@media (max-width: 390px) {
    :root {
        --main-header-height: 54px;
    }
    
    header {
        height: var(--main-header-height);
    }
    
    .navbar {
        padding: 0 10px;
    }
    
    .logo img {
        height: 38px;
    }
    
    .logo .title {
        font-size: 0.78rem;
    }
    
    .hamburger {
        padding: 6px;
        min-width: 36px;
        min-height: 36px;
    }
    
    .hamburger span {
        width: 19px;
        height: 2px;
    }
    
    .nav-links ul {
        width: 75%;
        max-width: 240px;
        padding: 18px 0;
    }
    
    .nav-links a {
        font-size: 0.92rem;
        padding: 12px 14px;
    }
}

@media (max-width: 360px) {
    :root {
        --main-header-height: 52px;
    }
    
    header {
        height: var(--main-header-height);
    }
    
    .navbar {
        padding: 0 8px;
    }
    
    .logo img {
        height: 36px;
    }
    
    .logo .title {
        font-size: 0.75rem;
    }
    
    .hamburger {
        padding: 5px;
        min-width: 34px;
        min-height: 34px;
    }
    
    .hamburger span {
        width: 18px;
        height: 2px;
    }
    
    .nav-links ul {
        width: 75%;
        max-width: 240px;
        padding: 18px 10px;
        gap: 12px;
    }
    
    .nav-links a {
        font-size: 0.9rem;
        padding: 10px 0;
        min-height: 44px;
        justify-content: center;
    }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    background: var(--secondary-gold);
    color: var(--primary-blue);
    border: none;
    border-radius: 28px;
    padding: 14px 36px;
    font-size: 1.08rem;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, outline 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    cursor: pointer;
    outline: none;
}

.btn:hover,
.btn:focus {
    background: #003366;
    color: #FFD700;
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
    outline: 3px solid #FFD700;
    outline-offset: 2px;
    transform: translateY(-3px);
}

/* ============================================
   HERO SECTIONS
   ============================================ */
.page-hero {
    background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.8)), 
                url('images/Excavator.jpg') no-repeat center center/cover;
    min-height: 260px;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--accent-white);
    padding: 80px 20px 40px;
}

.page-hero h1 {
    font-size: clamp(28px, 5vw, 42px);
    margin-bottom: 15px;
}

.page-hero p {
    font-size: clamp(16px, 2vw, 18px);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slider .hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    color: var(--accent-white);
}

.hero-slider h1 {
    font-size: clamp(32px, 6vw, 48px);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    min-height: 60px;
}

.hero-slider p {
    font-size: clamp(16px, 2.5vw, 20px);
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-slider-dots {
    position: absolute;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-slider-dots .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: 2px solid var(--secondary-gold);
    cursor: pointer;
    transition: background 0.3s, border 0.3s;
}

.hero-slider-dots .dot.active {
    background: var(--secondary-gold);
    border: 2px solid var(--primary-blue);
}

.auto-writer {
    border-right: 2px solid var(--secondary-gold);
    padding-right: 4px;
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    min-width: 200px;
}

@media (max-width: 768px) {
    .hero-slider {
        height: 350px;
    }
    
    .hero-slider h1 {
        font-size: 28px;
        min-height: 40px;
    }
    
    .hero-slider p {
        font-size: 16px;
    }
}

/* ============================================
   SECTION TITLES & CONTENT
   ============================================ */
.section-title {
    text-align: center;
    margin-bottom: 56px;
    padding-top: 12px;
}

.section-title h2 {
    font-size: clamp(28px, 4vw, 44px);
    color: var(--primary-blue);
    margin-bottom: 18px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-title p {
    color: #444;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.08rem;
    line-height: 1.7;
}

.section-bg-alt {
    background: #f5f7fa;
}

.section-divider {
    width: 100%;
    height: 32px;
    background: linear-gradient(to right, #fff 0%, #FFD700 50%, #fff 100%);
    border: none;
    margin: 0;
}

/* ============================================
   TRUST BAR
   ============================================ */
.trust-bar {
    background: var(--primary-blue) !important;
    color: var(--secondary-gold);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.10);
    margin: 32px 0;
    width: 100%;
    padding: 20px 0;
}

.trust-bar-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 32px;
    width: 100%;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 180px;
    margin: 12px 0;
    text-align: center;
}

.trust-item i {
    font-size: 34px;
    color: var(--secondary-gold);
}

.trust-stat {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
}

.trust-label {
    font-size: 13px;
    color: rgba(255,255,255,0.92);
}

/* ============================================
   CARDS & GRIDS
   ============================================ */
.services-grid,
.features-grid,
.testimonials-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
}

.service-card,
.feature-card,
.testimonial-card {
    flex: 1 1 260px;
    min-width: 220px;
    max-width: 340px;
    background-color: var(--accent-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover,
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon,
.feature-icon {
    font-size: 50px;
    color: var(--secondary-gold);
    margin-bottom: 20px;
}

.service-card h3,
.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.service-card.goald {
    border: 2px solid rgba(0,51,102,0.06);
    background: linear-gradient(180deg,#fff,#fbfdff);
}

.service-badge {
    display: inline-block;
    background: #eef6ff;
    color: var(--primary-blue);
    padding: 6px 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
}

/* ============================================
   PROJECTS
   ============================================ */
.projects-section {
    padding: 80px 0;
}

.projects-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 20px;
    background-color: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-blue);
    color: var(--accent-white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 250px;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 51, 102, 0.9), transparent);
    color: var(--accent-white);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.project-card:hover .project-info {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   LOCATIONS
   ============================================ */
.locations-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.location-card {
    background-color: var(--accent-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.location-card:hover {
    transform: translateY(-10px);
}

.location-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.location-info {
    padding: 20px;
}

.location-info h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.location-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.location-info i {
    margin-right: 10px;
    color: var(--secondary-gold);
    width: 20px;
    text-align: center;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section {
    padding: 80px 0;
}

.testimonial-card {
    position: relative;
}

.testimonial-card:before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 60px;
    color: rgba(0, 51, 102, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.rating {
    color: var(--secondary-gold);
    margin-bottom: 20px;
    font-size: 18px;
}

.testimonial-content {
    margin-bottom: 25px;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
    border: 3px solid var(--secondary-gold);
}

.author-info h4 {
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.author-info p {
    color: #666;
    font-size: 14px;
}

.clients-section {
    margin: 80px 0;
    text-align: center;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    align-items: center;
}

.clients-grid img {
    max-width: 180px;
    max-height: 100px;
    width: auto;
    height: auto;
    margin: 0 auto;
    filter: grayscale(100%);
    transition: filter 0.3s, transform 0.3s;
}

.clients-grid img:hover {
    filter: grayscale(0%);
    transform: translateY(-6px);
}

/* ============================================
   GALLERY & LIGHTBOX
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    align-items: stretch;
}

.gallery-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    transition: transform 0.35s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    padding: 12px 14px;
    font-weight: 600;
    color: #033056;
}

.figure-actions {
    padding: 0 14px 16px 14px;
    margin-top: auto;
}

.figure-actions .btn {
    width: 100%;
    display: block;
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.85);
    z-index: 2200;
    padding: 20px;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-inner {
    max-width: 96%;
    max-height: 92%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-inner img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 6px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}

.lightbox-caption {
    color: #fff;
    margin-top: 10px;
    text-align: center;
    font-size: 15px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 20px;
}

.lightbox-close {
    top: 12px;
    right: 12px;
}

.lightbox-prev {
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    .lightbox-prev,
    .lightbox-next {
        display: none;
    }
    
    .gallery-item img {
        height: 160px;
    }
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form {
    padding: 40px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-form h2 {
    color: var(--primary-blue);
    margin-bottom: 30px;
    font-size: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-blue);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.office-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    color: var(--primary-blue);
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: var(--secondary-gold);
}

.tab-btn.active {
    border-bottom-color: var(--secondary-gold);
    color: var(--secondary-gold);
}

.office-content {
    display: none;
}

.office-content.active {
    display: block;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.info-item i {
    font-size: 24px;
    color: var(--secondary-gold);
    margin-right: 20px;
    margin-top: 5px;
}

.info-content h3 {
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.hours-section {
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 60px;
}

.hours-section h3 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-size: 24px;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
}

.hours-table tr {
    border-bottom: 1px solid #eee;
}

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

.hours-table td {
    padding: 12px 18px;
}

.hours-table td:first-child {
    font-weight: 600;
}

.map-section {
    margin: 60px 0;
}

.map-container {
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-fallback {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    transition: background 0.15s, transform 0.12s;
    z-index: 5;
}

.map-fallback:hover,
.map-fallback:focus {
    background: rgba(0,0,0,0.85);
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background-color: var(--primary-blue);
    color: var(--accent-white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--secondary-gold);
}

.footer-column p,
.footer-column a {
    color: #ccc;
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
}

.footer-column a:hover {
    color: var(--secondary-gold);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--accent-white);
    font-size: 20px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--secondary-gold);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    font-size: 14px;
}

/* ============================================
   FIXED BUTTONS
   ============================================ */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 100px;
    background-color: var(--primary-blue);
    color: var(--secondary-gold);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 998;
    transition: all 0.3s;
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    background-color: var(--secondary-gold);
    color: var(--primary-blue);
    transform: translateY(-5px);
}

/* ============================================
   ANIMATIONS & EFFECTS
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
}

.fade-in.visible {
    opacity: 1;
    transform: none;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-primary { color: var(--primary-blue); }
.text-muted { color: #666; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mb-8 { margin-bottom: 8px; }
.mb-10 { margin-bottom: 10px; }
.mb-12 { margin-bottom: 12px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.lead { font-size: 1.1rem; line-height: 1.7; }
.center-wrap { text-align: center; }

.sr-only,
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Scroll lock helper */
body.ksp-scroll-locked {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid rgba(255,215,0,0.9);
    outline-offset: 3px;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    background: #f9f9f9;
    padding: 60px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 24px 28px;
    margin-bottom: 28px;
    border-left: 5px solid var(--secondary-gold);
    transition: box-shadow 0.3s;
}

.faq-item:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.10);
}

.faq-item h3 {
    color: var(--primary-blue);
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 700;
}

.faq-item p {
    color: #444;
    font-size: 16px;
    margin: 0;
}

.faq-item a {
    color: var(--primary-blue);
    text-decoration: underline;
    font-weight: 500;
}

/* ============================================
   PROCESS SECTION
   ============================================ */
.process-section {
    background-color: #f9f9f9;
    padding: 80px 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background-color: var(--primary-blue);
    color: var(--accent-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.process-step h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
}

/* ============================================
   ABOUT PAGE SPECIFIC
   ============================================ */
.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 28px;
    align-items: center;
}

.about-intro-media img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    display: block;
}

.about-intro-content .lead {
    margin-bottom: 16px;
    line-height: 1.65;
}

@media (max-width: 900px) {
    .about-intro-grid {
        grid-template-columns: 1fr;
    }
    
    .about-intro-media {
        order: -1;
    }
}

.team-section {
    margin: 80px 0;
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    align-items: start;
}

.team-member {
    background-color: var(--accent-white);
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 18px;
    border: 6px solid var(--secondary-gold);
}

.team-member h3 {
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.team-member p {
    color: #666;
    margin-bottom: 15px;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .page-hero {
        min-height: 220px;
        padding: 60px 20px 30px;
    }
    
    .page-hero h1 {
        font-size: 28px;
    }
}

@media (max-width: 600px) {
    .faq-item {
        padding: 16px 12px;
    }
    
    .faq-item h3 {
        font-size: 17px;
    }
    
    .faq-item p {
        font-size: 15px;
    }
}

/* AniTech footer link style */
.anitech-link {
    color: #d4af37; /* gold */
    text-decoration: none;
    font-weight: 600;
}
.anitech-link:hover,
.anitech-link:focus {
    color: #f0c85a;
    text-decoration: underline;
}