/* ================================================
   NIPRO AGENCY - style.css
   Full pixel-perfect recreation from PSD
   ================================================ */

/* ---------- VARIABLES ---------- */
:root {
    --primary: #2d2d2d;
    --dark: #1a1a1a;
    --light-gray: #f8f8f8;
    --mid-gray: #888;
    --border: #ddd;
    --accent: #2d2d2d;
    --font-heading: 'Josefin Sans', sans-serif;
    --font-body: 'Lato', sans-serif;
    --transition: all 0.3s ease;
}

/* ---------- RESET & BASE ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--primary);
    line-height: 1.7;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
a:hover { color: var(--mid-gray); }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: 0.04em;
}

/* ---------- UTILITIES ---------- */
.section-padding { padding: 90px 0; }
.section-padding-sm { padding: 0 0 80px; }

.section-title {
    margin-bottom: 40px;
}
.section-title h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.12em;
    color: var(--primary);
    margin-bottom: 0;
}
.title-line {
    width: 1px;
    height: 50px;
    background: var(--border);
    margin: 0 auto 20px;
}
.title-line.light {
    background: rgba(255,255,255,0.4);
}

.section-heading {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

/* ---------- BUTTONS ---------- */
.btn-arrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--primary);
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-size: 12px;
    letter-spacing: 0.15em;
    font-weight: 400;
    color: var(--primary);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
}
.btn-arrow:hover {
    background: var(--primary);
    color: #fff;
}
.btn-arrow.white {
    border-color: #fff;
    color: #fff;
}
.btn-arrow.white:hover {
    background: #fff;
    color: var(--primary);
}
.btn-arrow-sm {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--mid-gray);
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    transition: var(--transition);
}
.btn-arrow-sm:hover { color: var(--primary); }

/* ================================================
   NAVBAR
================================================ */
#mainNav {
    background: #fff;
    padding: 18px 0;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
    z-index: 1000;
}
#mainNav.scrolled {
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    border-bottom-color: var(--border);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: var(--primary) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand-line {
    width: 1px;
    height: 30px;
    background: var(--border);
    display: inline-block;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 12px;
    letter-spacing: 0.12em;
    color: var(--primary) !important;
    padding: 6px 14px !important;
    font-weight: 400;
}
.nav-link:hover, .nav-link.active {
    color: var(--mid-gray) !important;
}
.nav-search { font-size: 14px !important; }

/* Search Bar */
.search-bar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 15px 0;
    display: none;
    z-index: 999;
}
.search-bar.open { display: block; }
.search-bar input {
    width: calc(100% - 40px);
    border: none;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    padding: 8px 4px;
    outline: none;
    font-family: var(--font-body);
}
#searchClose {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: var(--mid-gray);
    margin-left: 10px;
}

/* ================================================
   HERO SECTION
================================================ */
.hero-section {
    position: relative;
    margin-top: 68px;
}
.hero-slider { width: 100%; }
.hero-slide {
    position: relative;
    height: 620px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.1);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 560px;
    padding-top: 200px;
}
.hero-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.hero-text {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 480px;
}
.hero-section .btn-arrow {
    border-color: #fff;
    color: #fff;
    background: transparent;
}
.hero-section .btn-arrow:hover {
    background: #fff;
    color: var(--primary);
}

/* Slick dots override */
.hero-slider .slick-dots { bottom: 20px; }
.hero-slider .slick-dots li button:before { color: #fff; font-size: 10px; }
.hero-slider .slick-dots li.slick-active button:before { color: #fff; opacity: 1; }

/* Hero Nav */
.hero-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    background: #fff;
    padding: 14px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--mid-gray);
    z-index: 10;
    cursor: pointer;
}
.hero-prev, .hero-next {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}
.hero-prev:hover, .hero-next:hover { color: var(--primary); }
.hero-sep { color: var(--border); }

/* ================================================
   WELCOME SECTION
================================================ */
.section-subtitle {
    max-width: 800px;
    margin: 0 auto;
    color: var(--mid-gray);
    font-size: 14px;
    line-height: 1.9;
    text-align: center;
}

/* ================================================
   SERVICES SECTION
================================================ */
.service-card {
    padding: 45px 30px 35px;
    text-align: center;
    border: 1px solid var(--border);
    margin: 0 -1px -1px 0;
    transition: var(--transition);
    background: #fff;
    height: 100%;
}
.service-card:hover, .service-card.active {
    border-color: var(--primary);
    z-index: 2;
    position: relative;
}
.service-icon {
    font-size: 32px;
    color: var(--mid-gray);
    margin-bottom: 20px;
    line-height: 1;
}
.service-card h4 {
    font-size: 13px;
    letter-spacing: 0.15em;
    font-weight: 400;
    margin-bottom: 10px;
}
.service-line {
    width: 25px;
    height: 2px;
    background: var(--primary);
    margin: 10px auto 15px;
}
.service-card p {
    font-size: 13px;
    color: var(--mid-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ================================================
   ABOUT SECTION
================================================ */
.about-img-wrap { overflow: hidden; }
.about-img { 
    width: 100;
     display: block; 
     transition: transform 0.5s ease; }
.about-img-wrap:hover .about-img { transform: scale(1.03); }
.about-text {
    color: var(--mid-gray);
    font-size: 13.5px;
    line-height: 1.85;
    margin-bottom: 16px;
}

/* ================================================
   PORTFOLIO SECTION
================================================ */
.portfolio-filter { margin-bottom: 30px; }
.filter-btn {
    background: none;
    border: 1px solid transparent;
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 0.15em;
    padding: 8px 18px;
    cursor: pointer;
    color: var(--mid-gray);
    transition: var(--transition);
    margin: 3px;
}
.filter-btn.active, .filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.portfolio-item { overflow: hidden; }
.portfolio-wrap {
    position: relative;
    overflow: hidden;
}
.portfolio-wrap img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.portfolio-wrap:hover img { transform: scale(1.06); }

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.portfolio-wrap:hover .portfolio-overlay {
    background: rgba(255,255,255,0.75);
}
.portfolio-info {
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}
.portfolio-wrap:hover .portfolio-info {
    opacity: 1;
    transform: translateY(0);
}

/* Active overlay (shown by default – like in PSD) */
.active-overlay {
    background: rgba(255,255,255,0) !important;
    align-items: flex-end !important;
    padding: 0;
}
.active-overlay .portfolio-info {
    opacity: 1 !important;
    transform: none !important;
    background: #fff;
    width: 100%;
    padding: 16px 20px;
    text-align: left;
}
.active-overlay .portfolio-caption h5 {
    font-size: 12px;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 2px;
}
.active-overlay .portfolio-caption span {
    font-size: 11px;
    color: var(--mid-gray);
}
.portfolio-zoom {
    width: 44px;
    height: 44px;
    border: 1px solid var(--primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 14px;
    transition: var(--transition);
    margin-bottom: 10px;
}
.portfolio-zoom:hover { background: var(--primary); color: #fff; }

/* ================================================
   WHY CHOOSE NIPRO
================================================ */
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 20px;
}
.feature-icon {
    font-size: 24px;
    color: #bbb;
    min-width: 36px;
    padding-top: 2px;
}
.feature-text h5 {
    font-size: 12px;
    letter-spacing: 0.12em;
    font-weight: 600;
    margin-bottom: 8px;
}
.active-feature .feature-text h5 {
    font-weight: 700;
}
.active-feature .feature-icon { color: var(--primary); }
.feature-text p {
    font-size: 13px;
    color: var(--mid-gray);
    line-height: 1.7;
    margin: 0;
}
.feature-divider {
    height: 1px;
    background: var(--border);
    margin-bottom: 0;
}
.active-divider { background: var(--primary); }

/* ================================================
   TEAM SECTION
================================================ */
.team-section { position: relative; }
.team-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 90px 0;
    position: relative;
}
.team-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.55);
}
.team-bg .container { position: relative; z-index: 2; }
.team-bg .section-title h2 { color: var(--primary); }

.team-col { padding: 0; }
.team-card {
    background: #fff;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.team-card .team-img-wrap { overflow: hidden; }
.team-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.team-card:hover img { transform: scale(1.05); }
.team-info {
    background: #fff;
    padding: 16px 18px 18px;
}
.team-info h5 {
    font-size: 11px;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 4px;
}
.team-info p {
    font-size: 12px;
    color: var(--mid-gray);
    margin: 0;
}

/* Social icons on active card */
.team-social {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    z-index: 3;
    background: rgba(255,255,255,0.9);
    padding: 8px 0;
}
.team-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: var(--mid-gray);
    font-size: 13px;
    transition: var(--transition);
}
.team-social a:hover { color: var(--primary); background: #f0f0f0; }

/* ================================================
   PRICING SECTION
================================================ */
.pricing-card {
    border: 1px solid var(--border);
    padding: 30px 25px 28px;
    position: relative;
    transition: var(--transition);
    background: #fff;
    height: 100%;
}
.pricing-card:hover { border-color: #aaa; }
.pricing-card.featured {
    border-color: var(--primary);
    border-width: 2px;
}
.pricing-name {
    font-size: 12px;
    letter-spacing: 0.18em;
    font-weight: 400;
    color: var(--mid-gray);
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 12px;
}
.pricing-name::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--border);
}
.pricing-price { margin-bottom: 24px; }
.price-num {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 300;
    letter-spacing: -0.02em;
}
.price-per {
    font-size: 12px;
    color: var(--mid-gray);
}
.pricing-list {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
}
.pricing-list li {
    font-size: 13px;
    color: var(--mid-gray);
    padding: 7px 0;
    border-bottom: 1px solid #f0f0f0;
}

/* ================================================
   CTA STRIP
================================================ */
.cta-strip {
    background: var(--light-gray);
    padding: 28px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.cta-text {
    font-family: var(--font-heading);
    font-size: 13px;
    letter-spacing: 0.12em;
    color: var(--mid-gray);
}
.cta-sep { margin: 0 10px; }

/* ================================================
   TESTIMONIALS SECTION
================================================ */
.testimonial-wrapper {
    max-width: 100%;
    position: relative;
}
.testimonial-item {
    padding: 40px;
    border: 1px solid var(--border);
    background: #fff;
}
.testi-img-wrap {
    position: relative;
    display: inline-block;
}
.quote-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 20px;
    color: var(--mid-gray);
    z-index: 2;
    background: #fff;
    padding: 2px 5px;
}
.testi-img {
    width: 100%;
    max-width: 240px;
    height: 280px;
    object-fit: cover;
}
.testi-name {
    font-size: 14px;
    letter-spacing: 0.12em;
    font-weight: 600;
    margin-bottom: 4px;
}
.testi-role {
    font-size: 12px;
    color: var(--mid-gray);
    margin-bottom: 2px;
}
.testi-company {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}
.testi-text {
    font-size: 13.5px;
    color: var(--mid-gray);
    line-height: 1.85;
    margin: 0;
}

/* Testimonial nav (PREV / NEXT as vertical side buttons) */
.testi-nav-wrap {
    display: flex;
    position: absolute;
    right: -80px;
    top: 0;
    height: 100%;
    flex-direction: column;
    width: 60px;
    border: 1px solid var(--border);
    background: #fff;
}
.testi-nav-left, .testi-nav-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.testi-nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
}
.testi-line {
    width: 1px;
    height: 30px;
    background: var(--border);
    display: block;
    /* Two lines from PSD */
    box-shadow: 5px 0 0 var(--border);
}
.testi-prev-btn, .testi-next-btn {
    background: none;
    border: none;
    cursor: pointer;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-family: var(--font-heading);
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--mid-gray);
    padding: 15px 0;
    transition: var(--transition);
}
.testi-prev-btn { transform: rotate(0deg); }
.testi-prev-btn:hover, .testi-next-btn:hover { color: var(--primary); }

/* slick override for testimonials */
#testimonialSlider .slick-slide { outline: none; }

/* ================================================
   CONTACT SECTION
================================================ */
.contact-box {
    border: 1px solid var(--border);
    padding: 50px 60px;
    background: #fff;
}
.contact-title-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    justify-content: center;
}
.contact-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}
.contact-heading {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.14em;
    padding: 0 30px;
    white-space: nowrap;
}
.contact-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 12px 4px;
    font-size: 13px;
    font-family: var(--font-body);
    outline: none;
    background: transparent;
    color: var(--primary);
    transition: var(--transition);
}
.contact-input:focus {
    border-bottom-color: var(--primary);
}
.contact-input::placeholder { color: #aaa; }
.contact-textarea { height: 120px; resize: none; }

/* ================================================
   FOOTER
================================================ */
#footer { background: #1c1c1c; color: #999; }
.footer-top { padding: 70px 0 40px; }
.footer-brand {
    font-family: var(--font-heading);
    font-size: 14px;
    letter-spacing: 0.2em;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}
.footer-brand .brand-line { background: #444; }
.footer-about {
    font-size: 12.5px;
    line-height: 1.85;
    color: #888;
    margin-bottom: 20px;
}
.footer-social { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-social a {
    width: 32px;
    height: 32px;
    border: 1px solid #444;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 12px;
    transition: var(--transition);
}
.footer-social a:hover { border-color: #888; color: #fff; }

.footer-heading {
    font-size: 11px;
    letter-spacing: 0.18em;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 600;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    font-size: 12.5px;
    color: #888;
    transition: var(--transition);
}
.footer-links a:hover { color: #fff; padding-left: 5px; }

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-contact-list li {
    font-size: 12.5px;
    color: #888;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.footer-contact-list i {
    margin-top: 3px;
    color: #666;
    min-width: 14px;
}

.footer-bottom {
    border-top: 1px solid #2e2e2e;
    padding: 18px 0;
}
.footer-bottom p {
    font-size: 11.5px;
    color: #666;
    margin: 0;
}
.footer-bottom-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
}
.footer-bottom-links a {
    font-size: 11.5px;
    color: #666;
    transition: var(--transition);
}
.footer-bottom-links a:hover { color: #fff; }

/* ================================================
   BACK TO TOP
================================================ */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 42px;
    height: 42px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 999;
}
#backToTop.show { opacity: 1; pointer-events: all; }
#backToTop:hover { background: #444; color: #fff; }

/* ================================================
   RESPONSIVE
================================================ */

/* Large screens */
@media (max-width: 1199px) {
    .hero-title { font-size: 38px; }
    .testi-nav-wrap { right: -50px; width: 46px; }
}

/* Medium screens (tablets) */
@media (max-width: 991px) {
    .hero-section { margin-top: 62px; }
    .hero-slide { height: 500px; }
    .hero-content { padding-top: 150px; }
    .hero-title { font-size: 32px; }
    .section-padding { padding: 65px 0; }
    .service-card { border-right: 1px solid var(--border); }
    .testi-nav-wrap { position: static; flex-direction: row; width: 100%; margin-top: 15px; height: 50px; }
    .testi-prev-btn, .testi-next-btn { writing-mode: horizontal-tb; transform: none; }
    .testi-line { height: 1px; width: 30px; box-shadow: 0 5px 0 var(--border); }
    .contact-box { padding: 40px 30px; }
    .team-card img { height: 240px; }
}

/* Small screens (large mobile) */
@media (max-width: 767px) {
    #mainNav { padding: 12px 0; }
    .hero-section { margin-top: 58px; }
    .hero-slide { height: 440px; }
    .hero-title { font-size: 26px; }
    .hero-text { font-size: 13px; }
    .section-title h2 { font-size: 18px; }
    .section-padding { padding: 50px 0; }
    .contact-box { padding: 30px 20px; }
    .contact-heading { font-size: 15px; padding: 0 15px; }
    .pricing-card { margin-bottom: 10px; }
    .footer-bottom-links { justify-content: center; flex-wrap: wrap; gap: 12px; }
    .footer-bottom p { text-align: center; margin-bottom: 10px; }
    .hero-nav { padding: 10px 16px; font-size: 10px; gap: 12px; }
    .team-social { display: none; }
    .feature-item { gap: 12px; }
    .cta-strip .d-flex { justify-content: center; flex-direction: column; align-items: center; text-align: center; }
}

/* Extra small screens */
@media (max-width: 575px) {
    .hero-slide { height: 380px; }
    .hero-title { font-size: 22px; }
    .hero-content { padding-top: 120px; }
    .hero-text { display: none; }
    .testi-img { max-width: 160px; height: 200px; }
    .testimonial-item { padding: 25px 20px; }
    .portfolio-wrap img { height: 220px; }
    .team-card img { height: 200px; }
    .price-num { font-size: 32px; }
    .footer-bottom-links { gap: 8px; }
}

/* ================================================
   ANIMATIONS & SCROLL REVEALS
================================================ */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }
.fade-up.delay-4 { transition-delay: 0.4s; }