

/* ---- Smooth scroll ---- */
html { scroll-behavior: smooth; }

/* ---- Global ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    overflow-x: hidden;
}

/* ---- Typography ---- */
.font-display, h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
}

/* ---- Keyframe Animations ---- */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0);    }
}
@keyframes slideRight {
    from { opacity: 0; transform: translateX(-32px); }
    to   { opacity: 1; transform: translateX(0);     }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(.92); }
    to   { opacity: 1; transform: scale(1);   }
}
@keyframes bounceSlow {
    0%, 100% { transform: translateY(0);   }
    50%       { transform: translateY(-5px); }
}
@keyframes pulse-ring {
    0%   { transform: scale(1);   opacity: .9; }
    100% { transform: scale(1.6); opacity: 0;  }
}
@keyframes float {
    0%, 100% { transform: translateY(0px);  }
    50%       { transform: translateY(-10px); }
}

/* Animation classes */
.animate-fade-in   { animation: fadeIn   .7s ease forwards; }
.animate-slide-up  { animation: slideUp  .7s ease forwards; }
.animate-slide-right { animation: slideRight .7s ease forwards; }
.animate-scale-in  { animation: scaleIn  .6s ease forwards; }
.animate-bounce-slow { animation: bounceSlow 2s ease-in-out infinite; }
.animate-float     { animation: float 3s ease-in-out infinite; }

/* Scroll-triggered fade/slide (class added by JS) */
.reveal            { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Staggered delays */
.delay-100 { transition-delay: .1s !important; animation-delay: .1s !important; }
.delay-200 { transition-delay: .2s !important; animation-delay: .2s !important; }
.delay-300 { transition-delay: .3s !important; animation-delay: .3s !important; }
.delay-400 { transition-delay: .4s !important; animation-delay: .4s !important; }
.delay-500 { transition-delay: .5s !important; animation-delay: .5s !important; }
.delay-600 { transition-delay: .6s !important; animation-delay: .6s !important; }

/* ---- Header ---- */
#site-header {
    background: #fff;
    border-bottom: 1px solid rgba(31,42,68,.08);
    box-shadow: 0 4px 20px rgba(16,24,40,.06);
    transition: box-shadow .35s ease, padding .35s ease;
}
#site-header.scrolled {
    background: #fff;
    box-shadow: 0 8px 24px rgba(16,24,40,.1);
    padding-top:    .6rem;
    padding-bottom: .6rem;
}

/* Nav links */
.nav-link {
    display: inline-flex;
    align-items: center;
    padding: .45rem .9rem;
    border-radius: .6rem;
    font-size: .875rem;
    font-weight: 500;
    color: #1F2A44;
    transition: color .2s, background .2s;
    white-space: nowrap;
}
.nav-link:hover  { color: #F26522; background: rgba(242,101,34,.08); }
.nav-active      { color: #F26522 !important; background: rgba(242,101,34,.12); }

#site-header .nav-logo-text {
    color: #1F2A44;
}

#site-header img.site-logo {
    max-height: 54px;
    width: auto;
    object-fit: contain;
}

.footer-logo-white {
    height: 56px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Mobile nav links */
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem;
    border-radius: .75rem;
    color: rgba(255,255,255,.8);
    font-size: 1rem;
    font-weight: 500;
    transition: color .2s, background .2s;
}
.mobile-nav-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.mobile-nav-active     { color: #F26522 !important; background: rgba(242,101,34,.12); }

/* Hamburger */
.hamburger-line {
    display: block;
    width: 24px;
    height: 2.5px;
    background: #1F2A44;
    border-radius: 2px;
    transition: transform .3s, opacity .3s, width .3s;
}
#menu-toggle.open .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#menu-toggle.open .hamburger-line:nth-child(2) { opacity: 0; width: 0; }
#menu-toggle.open .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Hero ---- */
.hero-section {
    background: linear-gradient(135deg, #141c2e 0%, #1F2A44 50%, #253354 100%);
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

/* ---- Buttons ---- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #F26522;
    color: #fff;
    padding: .8rem 1.75rem;
    border-radius: .6rem;
    font-weight: 600;
    font-size: .95rem;
    transition: background .25s, transform .2s, box-shadow .25s;
    box-shadow: 0 4px 20px rgba(242,101,34,.4);
    white-space: nowrap;
    cursor: pointer;
    border: none;
    text-decoration: none;
}
.btn-primary:hover {
    background: #d4561a;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(242,101,34,.5);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: transparent;
    color: #fff;
    padding: .8rem 1.75rem;
    border-radius: .6rem;
    font-weight: 600;
    font-size: .95rem;
    border: 2px solid rgba(255,255,255,.4);
    transition: background .25s, border-color .25s, transform .2s;
    white-space: nowrap;
    text-decoration: none;
}
.btn-outline:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.8);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #1F2A44;
    color: #fff;
    padding: .8rem 1.75rem;
    border-radius: .6rem;
    font-weight: 600;
    font-size: .95rem;
    transition: background .25s, transform .2s;
    white-space: nowrap;
    text-decoration: none;
    border: none;
    cursor: pointer;
}
.btn-secondary:hover { background: #253354; transform: translateY(-2px); }

/* ---- Section headings ---- */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .9rem;
    background: rgba(242,101,34,.1);
    color: #F26522;
    border-radius: 99px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    color: #1F2A44;
    line-height: 1.25;
}
.section-title span { color: #F26522; }
.section-subtitle {
    color: #6B7280;
    font-size: 1rem;
    line-height: 1.75;
    max-width: 44rem;
    margin: .75rem auto 0;
}
.section-divider {
    width: 3rem;
    height: 4px;
    background: linear-gradient(90deg, #F26522, #f8803a);
    border-radius: 2px;
    margin: 1rem 0;
}
.section-divider.mx-auto { margin-left: auto; margin-right: auto; }

/* ---- Service cards ---- */
.service-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 24px rgba(0,0,0,.07);
    transition: transform .3s ease, box-shadow .3s ease;
    border: 1px solid rgba(0,0,0,.05);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #F26522, #f8803a);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,.13); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: .75rem;
    background: rgba(242,101,34,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #F26522;
    margin-bottom: 1.25rem;
    transition: background .3s, color .3s;
}
.service-card:hover .service-icon {
    background: #F26522;
    color: #fff;
}

.service-media {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: .8rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(0,0,0,.06);
}

/* ---- Service detail content ---- */
.service-detail-content {
    color: #1F2A44;
}

.service-detail-content > p {
    margin: 0 0 1rem;
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.85;
}

.service-detail-content > p:first-child {
    margin-bottom: .4rem;
}

.service-detail-content > p:first-child strong {
    display: block;
    color: #0f172a;
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.15;
}

.service-detail-content h3 {
    margin: 1.8rem 0 1rem;
    color: #F26522;
    font-family: 'Inter', sans-serif;
    font-size: .95rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.service-detail-content ol,
.service-detail-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.service-detail-content ol {
    display: grid;
    gap: 1rem;
}

.service-detail-content ol li {
    margin: 0;
    padding: 1.1rem 1.2rem;
    border-radius: 1rem;
    border: 1px solid rgba(242,101,34,.14);
    background: linear-gradient(180deg, #fff 0%, #fff7f2 100%);
    box-shadow: 0 10px 26px rgba(15, 23, 42, .05);
    color: #334155;
    line-height: 1.75;
}

.service-detail-content ol li strong {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: .55rem;
    color: #0f172a;
    font-family: 'Inter', sans-serif;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.35;
}

.service-detail-content ol li br {
    display: none;
}

.service-detail-content ol li i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: .8rem;
    background: rgba(242,101,34,.12);
    color: #F26522;
    box-shadow: inset 0 0 0 1px rgba(242,101,34,.08);
    flex-shrink: 0;
}

.service-detail-content ul {
    display: grid;
    gap: .75rem;
}

.service-detail-content ul li {
    position: relative;
    margin: 0;
    padding: 1rem 1.1rem 1rem 3rem;
    border-radius: .95rem;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, .06);
    color: #334155;
    line-height: 1.7;
}

.service-detail-content ul li::before {
    content: '\\f058';
    position: absolute;
    left: 1rem;
    top: 1rem;
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #F26522;
    font-size: 1rem;
}

.service-detail-content ul li strong {
    color: #0f172a;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
}

/* ---- Homepage gallery ---- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.gallery-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    min-height: 220px;
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    transition: transform .4s ease;
}

.gallery-card:hover img {
    transform: scale(1.06);
}

.gallery-card figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: .7rem .9rem;
    font-size: .85rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0));
}

/* ---- Feature/Why-choose-us cards ---- */
.feature-card {
    background: #fff;
    border-radius: .75rem;
    padding: 1.75rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
    border: 1px solid rgba(0,0,0,.04);
    transition: box-shadow .3s, transform .3s;
}
.feature-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.1); transform: translateY(-3px); }

/* ---- Counter / Stats ---- */
.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #F26522;
    line-height: 1;
}

/* ---- Steps / Process ---- */
.step-number {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #F26522;
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

/* ---- Testimonials ---- */
.testimonial-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    border: 1px solid rgba(0,0,0,.05);
}
.stars { color: #F59E0B; display: flex; gap: 2px; }

/* ---- CTA Banner ---- */
.cta-banner {
    background: linear-gradient(135deg, #F26522 0%, #d4561a 100%);
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* ---- Contact cards ---- */
.contact-info-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.75rem;
    box-shadow: 0 4px 24px rgba(0,0,0,.07);
    border: 1px solid rgba(0,0,0,.05);
    transition: transform .3s, box-shadow .3s;
}
.contact-info-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,.12); }

/* ---- Form ---- */
.form-input {
    width: 100%;
    border: 1.5px solid #E5E7EB;
    border-radius: .5rem;
    padding: .75rem 1rem;
    font-size: .925rem;
    transition: border-color .25s, box-shadow .25s;
    background: #fff;
    color: #1F2A44;
    outline: none;
}
.form-input:focus {
    border-color: #F26522;
    box-shadow: 0 0 0 3px rgba(242,101,34,.12);
}
.form-label {
    display: block;
    font-weight: 500;
    font-size: .875rem;
    color: #374151;
    margin-bottom: .4rem;
}

/* ---- Page hero (inner pages) ---- */
.page-hero {
    background: linear-gradient(135deg, #141c2e 0%, #1F2A44 60%, #253354 100%);
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.breadcrumb { font-size: .85rem; }
.breadcrumb a  { color: rgba(255,255,255,.6); transition: color .2s; }
.breadcrumb a:hover { color: #F26522; }
.breadcrumb span { color: rgba(255,255,255,.4); margin: 0 .4rem; }
.breadcrumb .current { color: #F26522; }

/* ---- Testimonials slider ---- */
.testimonials-track {
    display: flex;
    gap: 1.5rem;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
}

/* ---- Scroll-snapping slider (mobile) ---- */
@media (max-width: 768px) {
    .slider-container { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
    .slider-container::-webkit-scrollbar { display: none; }
    .slider-item { scroll-snap-align: start; }
}

/* ---- Back to top ---- */
#back-to-top.show { opacity: 1 !important; visibility: visible !important; }

/* ---- Admin notification ---- */
.toast {
    position: fixed; top: 1.5rem; right: 1.5rem; z-index: 9999;
    display: flex; align-items: center; gap: .75rem;
    padding: 1rem 1.5rem;
    border-radius: .6rem;
    color: #fff;
    font-size: .9rem;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
    animation: slideRight .4s ease;
    max-width: 400px;
}
.toast.success { background: #059669; }
.toast.error   { background: #DC2626; }
.toast.info    { background: #1F2A44; }

/* ---- Utility ---- */
.container { max-width: 1200px; margin: 0 auto; }
.text-primary { color: #F26522; }
.bg-primary   { background-color: #F26522; }
.bg-navy      { background-color: #1F2A44; }
.text-navy    { color: #1F2A44; }

/* ---- Lazy image fade ---- */
img.lazy { opacity: 0; transition: opacity .5s; }
img.lazy.loaded { opacity: 1; }

/* ---- Accessibility ---- */
:focus-visible { outline: 3px solid #F26522; outline-offset: 3px; }

/* ---- Mobile refinements ---- */
@media (max-width: 640px) {
    #site-header img.site-logo { max-height: 42px; }
    .stat-number { font-size: 2rem; }
    .section-title { font-size: 1.65rem; }
    .gallery-grid { grid-template-columns: 1fr; }
    .service-media { height: 170px; }
    .service-detail-content > p { font-size: 1rem; }
    .service-detail-content ol li,
    .service-detail-content ul li { padding: 1rem; }
    .service-detail-content ul li { padding-left: 2.75rem; }
    .service-detail-content ol li strong { font-size: 1rem; }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
