/*
Kapoor Trading Corporation — site styles
Base layout classes originate from the "Atlanta" WebThemez Bootstrap 3 template;
palette, typography and components below have been redesigned.
*/

:root {
    --color-navy: #0f172a;
    --color-navy-soft: #16233d;
    --color-accent: #0891b2;
    --color-accent-dark: #0e7490;
    --color-accent-light: #e0f7fa;
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.10);
    --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.16);
    --radius: 10px;
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* General */
html {
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--color-navy);
}

h1, .h1, h2, .h2, h3, .h3 {
    margin-top: 30px;
}

a {
    color: var(--color-accent-dark);
}

a:hover, a:focus {
    color: var(--color-navy);
}

blockquote {
    font-style: italic;
    font-family: Georgia, serif;
    color: #94a3b8;
    border-left-color: var(--color-accent);
    margin: 30px 0 30px;
}

label {
    color: var(--color-text-muted);
}

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

/* Navbar */
.navbar-inverse.headroom {
    background: rgba(15, 23, 42, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 76px;
    padding-top: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.navbar-inverse .navbar-nav > li > a {
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.3px;
    padding-top: 24px;
    padding-bottom: 24px;
    transition: color 0.2s ease;
}

.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
    color: #fff;
    background: none;
}

.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover,
.navbar-inverse .navbar-nav > .active > a:focus {
    color: #fff;
    background: none;
    box-shadow: inset 0 -2px 0 var(--color-accent);
}

.navbar-inverse .navbar-brand {
    padding: 8px 0 0 15px;
}

.navbar-brand-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #fff !important;
    padding-top: 14px;
}

.navbar-brand-text span {
    color: var(--color-accent);
}

.navbar-toggle {
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggle .icon-bar {
    background-color: #fff;
}

/* Hero */
#head {
    background:
        linear-gradient(135deg, rgba(9, 14, 28, 0.92) 0%, rgba(14, 33, 51, 0.88) 45%, rgba(11, 66, 77, 0.85) 100%),
        url(../images/home.jpg) center/cover no-repeat;
    min-height: 340px;
    text-align: center;
    padding-top: 110px;
    color: white;
    font-family: var(--font-sans);
    font-weight: 300;
    position: relative;
    overflow: hidden;
}

#head::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(8, 145, 178, 0.25), transparent 55%);
    pointer-events: none;
}

#head.secondary {
    height: 88px;
    min-height: 88px;
    padding-top: 0px;
    background: linear-gradient(135deg, #0b1224 0%, #123249 100%);
}

/* Floating decorative capacitor icons */
.floating-icons {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.float-icon {
    position: absolute;
    display: block;
    color: rgba(255, 255, 255, 0.5);
    animation: floatIcon 7s ease-in-out infinite;
}

.float-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.fi-1 { top: 18%; left: 8%;  width: 34px; height: 34px; animation-delay: 0s;   opacity: 0.5; }
.fi-2 { top: 68%; left: 14%; width: 22px; height: 22px; animation-delay: 1.4s; opacity: 0.35; }
.fi-3 { top: 22%; left: 90%; width: 30px; height: 30px; animation-delay: 2.2s; opacity: 0.45; }
.fi-4 { top: 78%; left: 84%; width: 20px; height: 20px; animation-delay: 0.8s; opacity: 0.3; }
.fi-5 { top: 48%; left: 4%;  width: 16px; height: 16px; animation-delay: 3s;   opacity: 0.25; }
.fi-6 { top: 10%; left: 50%; width: 18px; height: 18px; animation-delay: 1.8s; opacity: 0.25; }

@keyframes floatIcon {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-16px) rotate(6deg); }
}

@media (max-width: 767px) {
    .floating-icons { display: none; }
}

.img-float {
    animation: floatImg 4.5s ease-in-out infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.img-float:hover {
    animation-play-state: paused;
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.18);
}

@keyframes floatImg {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

@media (prefers-reduced-motion: reduce) {
    .img-float { animation: none; }
}

#head .lead {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 42px;
    margin-bottom: 10px;
    color: white;
    line-height: 1.2em;
}

#head .tagline {
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 25px;
}

#head .tagline a {
    color: #fff;
}

#head .btn {
    margin-bottom: 10px;
}

#head .btn-default {
    text-shadow: none;
    background: transparent;
    color: rgba(255, 255, 255, .7);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5);
    border-radius: 6px;
    transition: all 0.2s ease;
}

#head .btn-default:hover,
#head .btn-default:focus {
    color: #0b1224;
    box-shadow: inset 0 0 0 2px #fff;
    background: #fff;
}

/* da-slider overrides (structure/animation from da-slider.css, restyled) */
.da-slider {
    background: transparent;
    height: 210px;
}

.da-slide h2 {
    font-weight: 700;
    text-shadow: none;
}

.da-slide p {
    font-weight: 400;
    opacity: 0.92;
}

.da-dots span.da-dots-current:after {
    background: var(--color-accent);
}

/* Intro / section headings */
.intro-section {
    padding: 8px 0 10px;
    border-bottom: 1px solid var(--color-border);
}

.heading {
    margin-top: 25px;
    margin-bottom: 15px;
}

.heading h2 {
    margin-top: 25px;
}

.intro-section h2 {
    font-weight: 700;
    color: var(--color-navy);
    margin-top: 3px;
}

.section-divider {
    width: 56px;
    height: 3px;
    background: var(--color-accent);
    margin: 18px auto 30px;
    border-radius: 2px;
}

/* Stats */
.stats-row {
    background: var(--color-surface);
    padding: 10px 0;
    margin: 0;
    border-bottom: 1px solid var(--color-border);
}

.stat-box {
    text-align: center;
    padding: 34px 15px;
}

.stat-box h3 {
    font-size: 40px;
    font-weight: 700;
    color: var(--color-accent-dark);
    margin-top: 0;
}

.stat-box p {
    color: var(--color-text-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Panels (bootstrap resets) */
.panel {
    margin-bottom: 0px;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 0px;
    box-shadow: none;
}

.panel-body {
    padding: 0px;
}

.panel.panel-default {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.panel.panel-default:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.panel.panel-default .btn-sm {
    margin-top: 8px;
}

/* Buttons */
.btn {
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: all 0.2s ease;
}

.btn-action, .btn-primary {
    color: #fff;
    background: var(--color-accent);
    background-image: none;
    border: 0 none;
}

.btn-action:hover, .btn-primary:hover,
.btn-action:focus, .btn-primary:focus {
    background: var(--color-accent-dark);
    color: #fff;
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.slideUp {
    top: -100px;
}

.headroom {
    transition: all 0.4s ease-out;
}

/* Highlights (core services boxes) */
.row:has(> .highlight) {
    display: flex;
    flex-wrap: wrap;
}

.highlight {
    margin-top: 30px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 30px 20px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.highlight:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.highlight .h-body {
    flex: 1;
}

.h-caption {
    text-align: center;
}

.h-caption i {
    display: block;
    font-size: 42px;
    color: var(--color-accent);
    margin-bottom: 18px;
}

.h-caption h4 {
    color: var(--color-navy);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
    margin-top: 0;
}

.h-body p {
    color: var(--color-text-muted);
    font-size: 14px;
}

.jumbotron {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.page-title {
    margin-top: 20px;
    font-weight: 700;
    color: var(--color-navy);
}

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

.breadcrumb {
    background: none;
    padding: 0;
    margin: 30px 0 0px 0;
}

.breadcrumb > .active {
    color: var(--color-text-muted);
}

ul.list-spaces li {
    margin-bottom: 10px;
}

/* Helpers */
.container-full {
    margin: 0 auto;
    width: 100%;
}

.top-space {
    margin-top: 60px;
}

.top-margin {
    margin-top: 20px;
}

img {
    max-width: 100%;
}

img.pull-right {
    margin-left: 10px;
}

img.pull-left {
    margin-right: 10px;
}

#map {
    width: 100%;
    height: 280px;
}

#social {
    margin-top: 50px;
    margin-bottom: 50px;
}

#social .wrapper {
    width: 340px;
    margin: 0 auto;
}

.sidebar {
    padding-top: 36px;
    padding-bottom: 30px;
}

.sidebar .panel {
    margin-bottom: 24px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 22px;
}

.sidebar .panel h4 {
    margin-top: 0;
    color: var(--color-navy);
}

.sidebar h1, .sidebar .h1, .sidebar h2, .sidebar .h2, .sidebar h3, .sidebar .h3 {
    margin-top: 20px;
}

/* Forms */
.form-control {
    border-radius: 6px;
    border-color: var(--color-border);
    box-shadow: none;
    margin-bottom: 14px;
    height: 44px;
}

textarea.form-control {
    height: auto;
}

.form-control:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15);
}

/* Footer */
.footer1 {
    background: var(--color-navy);
    padding: 50px 0 10px 0;
    font-size: 13px;
    color: #94a3b8;
}

.footer1 a {
    color: #cbd5e1;
}

.footer1 a:hover {
    color: #fff;
}

.footer1 .panel {
    margin-bottom: 30px;
}

.footer1 .panel-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 18px;
}

.footer1 .entry-meta {
    border-top: 1px solid #334155;
    border-bottom: 1px solid #334155;
    margin: 0 0 35px 0;
    padding: 2px 0;
    color: #94a3b8;
    font-size: 0.75rem;
}

.follow-me-icons {
    font-size: 26px;
}

.follow-me-icons i {
    float: left;
    margin: 0 14px 0 0;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.follow-me-icons a:hover i {
    color: var(--color-accent);
}

.footer2 {
    background: #0b1224;
    padding: 16px 0;
    color: #64748b;
    font-size: 12px;
    border-top: 1px solid #1e293b;
}

.footer2 a {
    color: #94a3b8;
}

.footer2 a:hover {
    color: #fff;
}

.footer2 p {
    margin: 0;
}

.panel-simplenav {
    margin-left: -5px;
}

.panel-simplenav a {
    margin: 0 5px;
}

/* Testimonials / carousel */
#quote-carousel {
    padding: 0 10px 30px 10px;
    margin-top: 30px;
}

#quote-carousel .item blockquote {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 30px;
}

#quote-carousel .carousel-control {
    background: none;
    color: var(--color-navy);
    font-size: 2.1em;
    text-shadow: none;
    margin-top: 30px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

#quote-carousel .carousel-control:hover {
    opacity: 1;
}

#quote-carousel .carousel-control.left {
    left: -12px;
}

#quote-carousel .carousel-control.right {
    right: -12px !important;
}

#quote-carousel .carousel-indicators {
    right: 50%;
    top: auto;
    bottom: 0px;
    margin-right: -19px;
}

#quote-carousel .carousel-indicators li {
    background: var(--color-border);
    border-color: transparent;
}

#quote-carousel .carousel-indicators .active {
    background: var(--color-accent);
}

#quote-carousel img {
    width: 250px;
    height: 100px;
}

.item blockquote {
    border-left: none;
    margin: 0;
}

.item blockquote p {
    color: var(--color-text);
}

.item blockquote img {
    margin-bottom: 10px;
}

.item blockquote p:before {
    content: "\f10d";
    font-family: 'Fontawesome';
    float: left;
    margin-right: 10px;
    color: var(--color-accent);
}

.contact ul {
    padding: 0px;
}

.contact ul li {
    margin-bottom: 10px;
    list-style: none;
}

footer ul li {
    list-style: none;
}

#map-canvas {
    height: 100%;
    margin: 0px;
    padding: 0px;
}

/* Portfolio / associates */
.isotopeWrapper article {
    margin-bottom: 30px;
}

#portfolio img {
    width: 100%;
}

#portfolio article p {
    margin-bottom: 1.45em;
}

nav#filter {
    margin-bottom: 1.5em;
}

nav#filter li {
    display: inline-block;
    margin: 0 0 0 5px;
}

nav#filter a {
    padding: 4px 12px;
    line-height: 20px;
    border: 1px solid var(--color-accent);
    border-radius: 4px;
    text-decoration: none;
    color: var(--color-accent-dark);
}

nav#filter a.current {
    background: var(--color-accent);
    color: #fff;
}

.iconColor .fa {
    color: var(--color-accent);
}

.portfolio-items article img {
    width: 100%;
}

.portfolio-item {
    display: block;
    position: relative;
    transition: all 0.2s ease-in-out;
}

.portfolio-item img {
    transition: all 300ms linear;
}

.portfolio-item .portfolio-desc {
    display: block;
    opacity: 0;
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    color: rgba(220, 220, 220);
}

.fancybox-overlay {
    background: rgba(15, 23, 42, 0.75);
}

.portfolio-item:hover .portfolio-desc {
    padding-top: 20%;
    height: 100%;
    transition: all 200ms ease-in-out 0s;
    opacity: 1;
    background: rgba(15, 23, 42, 0.75);
}

.portfolio-item .portfolio-desc a {
    color: #fff;
    text-align: center;
    display: block;
}

.portfolio-item .portfolio-desc a:hover {
    text-decoration: none;
}

.portfolio-item .portfolio-desc .folio-info {
    top: -20px;
    padding: 30px;
    height: 0;
    opacity: 0;
    position: relative;
}

.portfolio-item:hover .folio-info {
    height: 100%;
    opacity: 1;
    transition: all 500ms ease-in-out 0s;
    top: 5px;
}

.portfolio-item .portfolio-desc .folio-info h5 {
    text-transform: uppercase;
    text-align: center;
    font-weight: 700;
    font-size: 1.4em;
}

.portfolio-item .portfolio-desc .folio-info p {
    color: #ffffff;
    font-size: 12px;
}

/**
  MEDIA QUERIES
*/
@media (max-width: 767px) {
    #head {
        min-height: 300px;
        padding-top: 90px;
    }

    #head .lead {
        font-size: 30px;
    }

    .stat-box {
        padding: 24px 15px;
    }

    .da-slider {
        height: 260px;
    }

    .da-slide h2 {
        white-space: normal;
        font-size: 26px;
        line-height: 1.25;
        width: 90%;
        top: 0;
    }

    .da-slide p {
        width: 90%;
        top: 90px;
        height: auto;
        max-height: none;
        font-size: 14px;
        line-height: 1.4;
        overflow: visible;
    }

    .da-slide .da-img {
        display: none;
    }

    .da-slide .da-link {
        top: 180px;
    }
}

@media (min-width: 768px) {
    #quote-carousel {
        margin-bottom: 0;
        padding: 0 40px 30px 40px;
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .navbar-collapse ul {
        text-align: right;
        margin-right: 0px;
    }

    .navbar-inverse.headroom {
        min-height: auto;
        padding-top: 0;
    }
}

@media (max-width: 768px) {
    #quote-carousel .carousel-indicators {
        bottom: -20px !important;
    }

    #quote-carousel .carousel-indicators li {
        display: inline-block;
        margin: 0px 5px;
        width: 15px;
        height: 15px;
    }

    #quote-carousel .carousel-indicators li.active {
        margin: 0px 5px;
        width: 20px;
        height: 20px;
    }
}
