/* ================================================================
   Pasumai Bharatham — Site Redesign Overlay
   Loaded AFTER all existing stylesheets in header.blade.php.
   Pure additive polish: no markup changes, no JS changes.
   ================================================================ */

:root {
    --pb-green: #2f8d3a;
    --pb-green-deep: #1f6b27;
    --pb-green-soft: #e8f3ea;
    --pb-accent: #f5a623;
    --pb-ink: #1d2a1f;
    --pb-muted: #5c6b5e;
    --pb-line: #e7ece6;
    --pb-bg-soft: #f7faf6;
    --pb-shadow-sm: 0 4px 14px rgba(28, 60, 32, 0.06);
    --pb-shadow-md: 0 14px 38px rgba(28, 60, 32, 0.10);
    --pb-shadow-lg: 0 22px 60px rgba(28, 60, 32, 0.14);
    --pb-radius: 14px;
    --pb-radius-sm: 10px;
    --pb-radius-lg: 22px;
    --pb-trans: 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Global typography & rendering polish ---------- */
html { scroll-behavior: smooth; }

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    color: var(--pb-ink);
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.012em;
    color: var(--pb-ink);
}

h1 { line-height: 1.1; }
h2 { line-height: 1.18; }
p  { line-height: 1.75; color: var(--pb-muted); }

a { transition: color var(--pb-trans), opacity var(--pb-trans); }

::selection { background: var(--pb-green); color: #fff; }

/* Focus ring — accessibility upgrade */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.theme-btn:focus-visible {
    outline: 3px solid rgba(47, 141, 58, 0.45);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- Buttons ---------- */
.theme-btn,
.theme-btn.style-one,
.theme-btn.style-two {
    border-radius: 999px !important;
    padding: 14px 32px !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
    box-shadow: 0 8px 22px rgba(47, 141, 58, 0.22);
    transition: transform var(--pb-trans), box-shadow var(--pb-trans), background-color var(--pb-trans) !important;
    border: none !important;
}

.theme-btn:hover,
.theme-btn.style-one:hover,
.theme-btn.style-two:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(47, 141, 58, 0.32);
}

.theme-btn:active { transform: translateY(0); }

/* ---------- Header polish ---------- */
.header-area.header-one {
    transition: box-shadow var(--pb-trans), background-color var(--pb-trans);
}

.header-area .brand-logo img {
    transition: transform var(--pb-trans);
}

.header-area .brand-logo:hover img {
    transform: scale(1.04);
}

.theme-menu-list > li > a {
    position: relative;
    transition: color var(--pb-trans);
}

.theme-menu-list > li > a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--pb-green);
    transform: translateX(-50%);
    transition: width var(--pb-trans);
    border-radius: 2px;
}

.theme-menu-list > li:hover > a::after,
.theme-menu-list > li.active > a::after {
    width: 26px;
}

/* ---------- Hero ---------- */
.agricko-hero .single-slider {
    position: relative;
    overflow: hidden;
}

.agricko-hero .image-layer {
    transform: scale(1.02);
    transition: transform 14s ease-out;
}

.agricko-hero:hover .image-layer { transform: scale(1.08); }

.agricko-hero .single-slider::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,
        rgba(8, 28, 12, 0.55) 0%,
        rgba(8, 28, 12, 0.25) 45%,
        rgba(8, 28, 12, 0.55) 100%);
    z-index: 1;
}

.agricko-hero .container-fluid { position: relative; z-index: 2; }

.agricko-hero .hero-content .tag-line {
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 8px 20px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.agricko-hero .hero-content h1 {
    color: #fff;
    text-shadow: 0 4px 22px rgba(0, 0, 0, 0.35);
    font-weight: 800;
}

.agricko-hero .hero-content h1 span {
    color: var(--pb-accent);
    background: linear-gradient(120deg, #ffd24a, var(--pb-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.agricko-hero .hero-button { gap: 14px; display: inline-flex; flex-wrap: wrap; }

/* ---------- Feature strip ---------- */
.agricko-features-sec { margin-top: -60px; position: relative; z-index: 5; }

.agricko-features-wrapper {
    background: #fff;
    border-radius: var(--pb-radius-lg);
    box-shadow: var(--pb-shadow-md);
    padding: 30px 20px;
    border: 1px solid var(--pb-line);
}

.agricko-feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 14px;
    border-radius: var(--pb-radius);
    transition: background-color var(--pb-trans), transform var(--pb-trans);
}

.agricko-feature-item:hover {
    background: var(--pb-green-soft);
    transform: translateY(-3px);
}

.agricko-feature-item .icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pb-green), var(--pb-green-deep));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 8px 20px rgba(47, 141, 58, 0.28);
    transition: transform var(--pb-trans);
}

.agricko-feature-item:hover .icon { transform: rotate(-6deg) scale(1.06); }

.agricko-feature-item .content h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    line-height: 1.35;
}

/* ---------- Section titles ---------- */
.section-title .sub-title {
    color: var(--pb-green);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.section-title h2 {
    font-weight: 800;
    font-size: clamp(28px, 3.4vw, 44px);
    margin-top: 10px;
}

/* ---------- About section ---------- */
.agricko-about-sec { background: linear-gradient(180deg, #fff 0%, var(--pb-bg-soft) 100%); }

.agricko-image-box .agricko-image img {
    border-radius: var(--pb-radius);
    box-shadow: var(--pb-shadow-md);
    transition: transform var(--pb-trans);
}

.agricko-image-box .agricko-image:hover img { transform: scale(1.02); }

.agricko-image-box .experience-box {
    border-radius: var(--pb-radius);
    box-shadow: var(--pb-shadow-md);
    background: #fff;
    padding: 18px 22px;
}

.agricko-left-iconic-box {
    background: #fff;
    border: 1px solid var(--pb-line);
    border-radius: var(--pb-radius);
    padding: 22px;
    transition: transform var(--pb-trans), box-shadow var(--pb-trans), border-color var(--pb-trans);
    margin-bottom: 18px;
}

.agricko-left-iconic-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--pb-shadow-md);
    border-color: rgba(47, 141, 58, 0.35);
}

.agricko-left-iconic-box .icon {
    color: var(--pb-green);
    font-size: 34px;
}

/* ---------- Service / Choose / cards (generic) ---------- */
.agricko-service-item,
.agricko-choose-item,
.agricko-team-item,
.agricko-blog-item,
.agricko-project-item {
    border-radius: var(--pb-radius);
    overflow: hidden;
    transition: transform var(--pb-trans), box-shadow var(--pb-trans);
    box-shadow: var(--pb-shadow-sm);
    background: #fff;
}

.agricko-service-item:hover,
.agricko-choose-item:hover,
.agricko-team-item:hover,
.agricko-blog-item:hover,
.agricko-project-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--pb-shadow-lg);
}

.agricko-service-item img,
.agricko-team-item img,
.agricko-blog-item img,
.agricko-project-item img {
    transition: transform 0.6s ease;
}

.agricko-service-item:hover img,
.agricko-team-item:hover img,
.agricko-blog-item:hover img,
.agricko-project-item:hover img {
    transform: scale(1.05);
}

/* ---------- Contact info / cards ---------- */
.agricko-contact-info-box {
    border-radius: var(--pb-radius);
    transition: transform var(--pb-trans), box-shadow var(--pb-trans);
}

.agricko-contact-info-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--pb-shadow-md);
}

.agricko-contact-info-box .icon {
    color: var(--pb-green);
    font-size: 30px;
}

/* ---------- Forms ---------- */
input.form_control,
textarea.form_control,
select.form_control,
.form_control {
    border-radius: var(--pb-radius-sm) !important;
    border: 1px solid var(--pb-line) !important;
    padding: 14px 18px !important;
    transition: border-color var(--pb-trans), box-shadow var(--pb-trans), background-color var(--pb-trans);
    background-color: #fff;
}

input.form_control:focus,
textarea.form_control:focus,
select.form_control:focus,
.form_control:focus {
    border-color: var(--pb-green) !important;
    box-shadow: 0 0 0 4px rgba(47, 141, 58, 0.12) !important;
    outline: none;
}

/* ---------- Page banner ---------- */
.page-title-banner,
.page-banner,
.banner-area {
    position: relative;
}

.page-title-banner::after,
.page-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,
        rgba(31, 107, 39, 0.65) 0%,
        rgba(8, 28, 12, 0.45) 100%);
    z-index: 0;
    pointer-events: none;
}

.page-title-banner .container,
.page-banner .container { position: relative; z-index: 1; }

.page-title-banner h1,
.page-banner h1,
.page-title-banner h2,
.page-banner h2 {
    color: #fff;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

.breadcrumb a, .breadcrumb li, .breadcrumb-item { color: #fff !important; }

/* ---------- Footer ---------- */
.default-footer.footer-one {
    position: relative;
}

.default-footer.footer-one::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 28, 12, 0.86), rgba(8, 28, 12, 0.94));
    z-index: 0;
}

.default-footer .container,
.default-footer .copyright-area { position: relative; z-index: 1; }

.default-footer .footer-widget .widget-title {
    color: #fff;
    font-weight: 700;
    position: relative;
    padding-bottom: 14px;
    margin-bottom: 22px;
}

.default-footer .footer-widget .widget-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 3px;
    border-radius: 2px;
    background: var(--pb-accent);
}

.default-footer .footer-widget,
.default-footer p,
.default-footer a {
    color: rgba(255, 255, 255, 0.82);
}

.default-footer .widget-nav li a {
    position: relative;
    padding-left: 18px;
    transition: color var(--pb-trans), padding-left var(--pb-trans);
}

.default-footer .widget-nav li a::before {
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 1px;
    color: var(--pb-accent);
    transition: transform var(--pb-trans);
}

.default-footer .widget-nav li a:hover {
    color: #fff;
    padding-left: 22px;
}

.default-footer .widget-nav li a:hover::before { transform: translateX(3px); }

.default-footer .agricko-info-box .icon {
    color: var(--pb-accent);
}

.default-footer .agricko-info-box .title {
    color: #fff;
    font-weight: 600;
}

.default-footer .agricko-info-box p,
.default-footer .agricko-info-box p a {
    color: rgba(255, 255, 255, 0.78);
}

.social-box a {
    transition: transform var(--pb-trans), background-color var(--pb-trans), color var(--pb-trans), border-color var(--pb-trans);
}

.social-box a:hover {
    transform: translateY(-3px);
    background: var(--pb-accent);
    border-color: var(--pb-accent) !important;
    color: #1d2a1f;
}

.copyright-area {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 22px 0;
}

.copyright-area p { color: rgba(255, 255, 255, 0.7); margin: 0; }

/* ---------- Back to top ---------- */
.back-to-top {
    background: linear-gradient(135deg, var(--pb-green), var(--pb-green-deep)) !important;
    color: #fff !important;
    border-radius: 50% !important;
    box-shadow: 0 10px 24px rgba(47, 141, 58, 0.35);
    transition: transform var(--pb-trans), box-shadow var(--pb-trans);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 32px rgba(47, 141, 58, 0.45);
}

/* ---------- Preloader / accent ---------- */
.preloader .loader {
    border-top-color: var(--pb-green) !important;
}

/* ---------- Section spacing rhythm tweaks ---------- */
section { scroll-margin-top: 90px; }

.agricko-about-sec,
.agricko-service-sec,
.agricko-intro-sec,
.agricko-contact-sec,
.agricko-features-sec,
.agricko-faq-sec,
.agricko-team-sec,
.agricko-testimonial-sec,
.agricko-blog-sec,
.agricko-choose-sec,
.agricko-process-sec,
.agricko-project-sec,
.agricko-cta-sec,
.agricko-benefit-sec {
    padding-top: clamp(60px, 8vw, 110px);
    padding-bottom: clamp(60px, 8vw, 110px);
}

/* ---------- Subtle dividers between alternating sections ---------- */
.agricko-service-sec { background: var(--pb-bg-soft); }
.agricko-intro-sec   { background: #fff; }
.agricko-contact-sec { background: var(--pb-bg-soft); }

/* ---------- Image global polish ---------- */
img { max-width: 100%; height: auto; }

/* ---------- Responsive refinements ---------- */
@media (max-width: 1199px) {
    .agricko-features-sec { margin-top: -40px; }
}

@media (max-width: 767px) {
    .agricko-hero .hero-content h1 { font-size: clamp(32px, 8vw, 48px); }
    .agricko-features-sec { margin-top: 0; padding-top: 60px; }
    .theme-btn { padding: 12px 24px !important; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
