/* Rameshwar Industries */
:root {
  --primary: #2e3192;
  --primary-dark: #23267a;
  --secondary: #00aeef;
  --dark: #111111;
  --dark-2: #1a1a1a;
  --dark-3: #222;
  --text: #555;
  --text-dark: #1f1f1f;
  --white: #fff;
  --light: #f5f5f5;
  --border: #e8e8e8;
  --font: 'Roboto', sans-serif;
  --heading: 'Space Grotesk', sans-serif;
  --container: 1320px;
  --radius: 6px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

body.has-cursor {
  cursor: none;
}

body.has-cursor a,
body.has-cursor button {
  cursor: none;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading);
  color: var(--text-dark);
  line-height: 1.25;
  font-weight: 700;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section {
  padding: 110px 0;
}

.section-dark {
  background: var(--dark);
  color: #cfcfcf;
}

.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5 {
  color: var(--white);
}

.section-light {
  background: var(--light);
}

.section-label {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--secondary);
  margin-bottom: 12px;
  position: relative;
  padding-left: 28px;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 2px;
  background: var(--secondary);
  transform: translateY(-50%);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 50px;
}

.section-head.center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  max-width: 620px;
}

.section-head.white .section-label {
  color: var(--secondary);
}

.section-head.white h2 {
  color: var(--white);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 4px;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.btn-block {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--primary);
  font-size: 14px;
}

.link-arrow i {
  transition: var(--transition);
}

.link-arrow:hover i {
  transform: translateX(5px);
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s;
}

body.has-cursor .cursor-dot,
body.has-cursor .cursor-outline {
  opacity: 1;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  transform: translate(-50%, -50%);
}

.cursor-outline {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--primary);
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
}

.cursor-outline.hover {
  width: 55px;
  height: 55px;
  background: rgba(46, 49, 146, 0.12);
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
}

.preloader.hide {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preloader-logo {
  position: relative;
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
  margin: 0 auto 8px;
}

.preloader-logo::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(46, 49, 146, 0.1);
  border-top-color: var(--secondary);
  border-right-color: var(--primary);
  animation: preloaderSpin 1.4s linear infinite;
}

.preloader-logo img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  padding: 8px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 1px rgba(46, 49, 146, 0.06);
}

.loader-bar {
  display: none;
}

@keyframes preloaderSpin {
  to { transform: rotate(360deg); }
}

@keyframes loadBar {
  to { width: 100%; }
}

/* Top Bar */
.top-bar {
  background: var(--dark);
  color: #aaa;
  font-size: 13px;
  padding: 10px 0;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.top-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.top-contact li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-contact i {
  color: var(--secondary);
}

.top-social {
  display: flex;
  gap: 12px;
}

.top-social a {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #ccc;
  font-size: 12px;
}

.top-social a:hover {
  background: var(--primary);
  color: var(--white);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 90px;
}

.logo img {
  height: 52px;
  width: auto;
}

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-dark);
}

.main-nav > ul > li > a i {
  font-size: 10px;
  opacity: 0.6;
}

.main-nav > ul > li.active > a,
.main-nav > ul > li > a:hover {
  color: var(--primary);
}

.has-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: 4px;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition);
  z-index: 100;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text-dark);
}

.dropdown a:hover,
.dropdown li.active a {
  color: var(--primary);
  background: rgba(46, 49, 146, 0.06);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.search-btn {
  width: 42px;
  height: 42px;
  border: none;
  background: var(--light);
  border-radius: 50%;
  color: var(--text-dark);
  font-size: 15px;
}

.search-btn:hover {
  background: var(--primary);
  color: var(--white);
}

.header-info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  font-size: 13px;
}

.hi-email {
  color: var(--text);
}

.hi-phone {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 15px;
}

.hi-phone:hover {
  color: var(--primary);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: var(--transition);
}

/* Search Overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.search-overlay.open {
  opacity: 1;
  visibility: visible;
}

.search-close {
  position: absolute;
  top: 30px;
  right: 40px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 28px;
}

.search-form {
  display: flex;
  width: min(90%, 640px);
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.search-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-size: 28px;
  padding: 16px 0;
  font-family: var(--heading);
}

.search-form button {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 22px;
  padding: 0 10px;
}

/* Hero */
.hero {
  position: relative;
  color: var(--white);
}

.hero-swiper {
  height: min(100vh, 820px);
  min-height: 620px;
}

.hero .swiper-slide {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  transition: transform 6s ease;
}

.swiper-slide-active .hero-bg {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.25) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 40px;
  padding-bottom: 120px;
  max-width: 720px;
  margin-left: max(20px, calc((100% - var(--container)) / 2));
  margin-right: auto;
}

.hero-sub {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}

.hero-content h1 {
  font-size: clamp(42px, 7vw, 78px);
  color: var(--white);
  text-transform: capitalize;
  margin-bottom: 18px;
}

.hero-content p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin-bottom: 22px;
}

.hero-tags span {
  display: inline-block;
  padding: 8px 16px;
  border-left: 3px solid var(--primary);
  background: rgba(46, 49, 146, 0.15);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 28px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero .anim-up {
  opacity: 0;
  transform: translateY(40px);
}

.swiper-slide-active .anim-up {
  animation: fadeUp 0.8s ease forwards;
}

.swiper-slide-active .delay-1 { animation-delay: 0.15s; }
.swiper-slide-active .delay-2 { animation-delay: 0.3s; }
.swiper-slide-active .delay-3 { animation-delay: 0.45s; }
.swiper-slide-active .delay-4 { animation-delay: 0.6s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-pagination {
  bottom: 40px !important;
  left: max(20px, calc((100% - var(--container)) / 2)) !important;
  width: auto !important;
  text-align: left !important;
}

.hero-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.4);
  opacity: 1;
}

.hero-pagination .swiper-pagination-bullet-active {
  background: var(--primary);
  width: 28px;
  border-radius: 10px;
}

.hero-nav {
  position: absolute;
  right: 40px;
  bottom: 40px;
  z-index: 5;
  display: flex;
  gap: 10px;
}

.hero-prev,
.hero-next {
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.3);
  color: var(--white);
  border-radius: 50%;
  transition: var(--transition);
}

.hero-prev:hover,
.hero-next:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.hero-feature {
  position: absolute;
  right: max(20px, calc((100% - var(--container)) / 2));
  bottom: -50px;
  z-index: 10;
  display: flex;
  width: min(420px, 90vw);
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}

.hf-img {
  width: 140px;
  flex-shrink: 0;
}

.hf-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hf-body {
  padding: 22px;
}

.hf-body h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

.hf-body p {
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--text);
}

/* About */
.about {
  padding-top: 160px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-media {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 18px;
}

.about-img-main {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.about-img-main img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: var(--primary);
  color: var(--white);
  padding: 18px 22px;
  border-radius: 8px;
  text-align: center;
  min-width: 130px;
}

.about-badge span {
  font-family: var(--heading);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}

.about-badge small {
  display: block;
  font-size: 12px;
  margin-top: 4px;
  opacity: 0.95;
}

.about-img-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}

.about-img-side img:first-child {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 8px;
}

.about-man {
  position: absolute;
  bottom: -10px;
  right: -20px;
  width: 150px !important;
  height: 150px !important;
  object-fit: cover !important;
  border-radius: 12px;
  border: 4px solid #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  filter: none;
  animation: floatY 3.5s ease-in-out infinite;
}

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

.about-content h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  margin-bottom: 16px;
}

.about-content > p {
  margin-bottom: 28px;
}

.about-tabs {
  margin-bottom: 32px;
}

.tab-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 22px;
  border: 1px solid var(--border);
  background: var(--white);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark);
  border-radius: 4px;
  transition: var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.tab-panel {
  display: none;
  padding: 18px 20px;
  background: var(--light);
  border-left: 3px solid var(--primary);
  border-radius: 0 6px 6px 0;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-item h3 {
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-item p {
  font-size: 14px;
  color: var(--text);
}

/* Services */
.service-card {
  background: var(--dark-2);
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.sc-img {
  height: 220px;
  overflow: hidden;
}

.sc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .sc-img img {
  transform: scale(1.08);
}

.sc-body {
  padding: 28px 24px 32px;
  position: relative;
}

.sc-num {
  position: absolute;
  top: -22px;
  right: 20px;
  font-family: var(--heading);
  font-size: 48px;
  font-weight: 700;
  color: rgba(46, 49, 146, 0.25);
  line-height: 1;
}

.sc-body h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--white);
}

.sc-body p {
  margin-bottom: 18px;
  font-size: 15px;
}

.services-pagination,
.team-pagination,
.testi-pagination {
  margin-top: 40px;
  position: static !important;
}

.services-pagination .swiper-pagination-bullet,
.team-pagination .swiper-pagination-bullet,
.testi-pagination .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.3);
  opacity: 1;
}

.services-pagination .swiper-pagination-bullet-active,
.team-pagination .swiper-pagination-bullet-active,
.testi-pagination .swiper-pagination-bullet-active {
  background: var(--primary);
  width: 24px;
  border-radius: 10px;
}

.team-pagination .swiper-pagination-bullet {
  background: #ccc;
}

/* Why */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.why-content h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  margin-bottom: 16px;
}

.why-content > p {
  margin-bottom: 28px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 32px;
}

.feature-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.fi-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(46, 49, 146, 0.1);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 22px;
}

.fi-icon img {
  width: 28px;
  height: 28px;
}

.feature-item h4 {
  font-size: 18px;
  margin-bottom: 4px;
}

.feature-item p {
  font-size: 14px;
}

.why-form-wrap {
  position: relative;
}

.why-images {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  margin-bottom: -80px;
  position: relative;
  z-index: 1;
}

.why-images img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
}

.ask-form {
  position: relative;
  z-index: 2;
  background: var(--white);
  padding: 36px 32px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-left: 40px;
  margin-top: 40px;
}

.ask-form h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.ask-form > p {
  margin-bottom: 22px;
  font-size: 14px;
}

.ask-form input,
.ask-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 14px 16px;
  margin-bottom: 14px;
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
  background: var(--light);
}

.ask-form input:focus,
.ask-form textarea:focus {
  border-color: var(--primary);
  background: var(--white);
}

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.process-item {
  background: var(--white);
  padding: 36px 28px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}

.process-item:hover {
  transform: translateY(-8px);
  background: var(--primary);
}

.process-item:hover h3,
.process-item:hover p,
.process-item:hover .pi-icon,
.process-item:hover .pi-num {
  color: var(--white);
}

.process-item:hover .pi-icon {
  background: rgba(255, 255, 255, 0.15);
}

.pi-num {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--heading);
  font-size: 42px;
  font-weight: 700;
  color: rgba(46, 49, 146, 0.15);
  line-height: 1;
  transition: var(--transition);
}

.pi-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(46, 49, 146, 0.1);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 26px;
  margin-bottom: 20px;
  transition: var(--transition);
}

.process-item h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.process-item p {
  font-size: 14px;
}

/* Projects */
.projects {
  background: var(--dark);
  padding-bottom: 100px;
}

.projects .section-head {
  margin-bottom: 40px;
}

.project-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 420px;
}

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

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

.pc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.85));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 28px;
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .pc-overlay {
  opacity: 1;
}

.pc-overlay h4 {
  color: var(--white);
  font-size: 22px;
}

.pc-link {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.project-cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: center;
  margin-top: 50px;
  padding: 36px 40px;
  background: var(--dark-2);
  border-radius: 8px;
  border-left: 4px solid var(--primary);
}

.pcta-left h3 {
  font-size: 48px;
  color: var(--primary);
  line-height: 1;
}

.pcta-left p {
  color: #aaa;
  font-size: 14px;
}

.project-cta > p {
  color: #bbb;
  max-width: 520px;
}

/* Team */
.team-card {
  text-align: center;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-8px);
}

.tc-img {
  height: 320px;
  overflow: hidden;
  position: relative;
}

.tc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.team-card:hover .tc-img img {
  transform: scale(1.06);
}

.tc-body {
  padding: 24px 20px 28px;
  position: relative;
}

.tc-body h3 {
  font-size: 20px;
  margin-bottom: 4px;
}

.tc-body > span {
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
}

.tc-social {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
}

.team-card:hover .tc-social {
  opacity: 1;
  transform: translateY(0);
}

.tc-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--light);
  display: grid;
  place-items: center;
  color: var(--text-dark);
  font-size: 13px;
}

.tc-social a:hover {
  background: var(--primary);
  color: var(--white);
}

/* Testimonials */
.testi-card {
  background: var(--dark-2);
  padding: 36px 32px;
  border-radius: 8px;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.testi-card:hover {
  border-color: var(--primary);
}

.testi-quote {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(46, 49, 146, 0.15);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 20px;
}

.testi-card > p {
  font-size: 16px;
  color: #ccc;
  margin-bottom: 28px;
  min-height: 90px;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
}

.testi-author img:first-child {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
}

.testi-author h5 {
  font-size: 16px;
  margin-bottom: 2px;
}

.testi-author span {
  font-size: 13px;
  color: var(--primary);
}

.testi-logo {
  margin-left: auto;
  height: 28px;
  width: auto;
  opacity: 0.7;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
}

.blog-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-6px);
}

.bc-img {
  position: relative;
  overflow: hidden;
}

.bc-img img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-card:hover .bc-img img {
  transform: scale(1.06);
}

.bc-cat {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: var(--primary);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 3px;
}

.bc-body {
  padding: 24px;
}

.bc-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #888;
  margin-bottom: 10px;
}

.bc-body h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.bc-body h3 a:hover {
  color: var(--primary);
}

.blog-side {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.blog-card.horizontal {
  display: grid;
  grid-template-columns: 180px 1fr;
}

.blog-card.horizontal .bc-img img {
  height: 100%;
  min-height: 160px;
}

.blog-card.horizontal .bc-body h3 {
  font-size: 18px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 50px;
  align-items: center;
}

.contact-intro h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  margin-bottom: 16px;
}

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

.contact-card {
  background: var(--dark-2);
  padding: 28px 24px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.contact-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.cc-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(46, 49, 146, 0.15);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 18px;
  margin-bottom: 16px;
}

.contact-card h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

.contact-card p,
.contact-card a {
  font-size: 14px;
  color: #bbb;
}

.contact-card a:hover {
  color: var(--primary);
}

/* Footer */
.site-footer {
  background: #0b1c33;
  color: #c5cdd8;
}

.footer-top {
  padding: 40px 0 0;
  background: #fff;
}

.footer-newsletter {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px 40px;
  padding-bottom: 40px;
}

.fn-logo {
  display: block;
  flex-shrink: 0;
}

.fn-logo img {
  height: 56px;
  width: auto;
  display: block;
}

.fn-text {
  font-size: 15px;
  color: #555;
  max-width: 340px;
  line-height: 1.6;
  margin: 0;
}

.fn-form {
  display: flex;
  align-items: stretch;
  min-width: min(100%, 420px);
  background: #fff;
  border: 1px solid #dce3ec;
  border-radius: 4px;
  overflow: hidden;
}

.fn-form input {
  flex: 1;
  min-width: 0;
  padding: 16px 18px;
  border: none;
  background: transparent;
  color: var(--text-dark);
  outline: none;
  font-size: 14px;
  font-family: var(--font);
}

.fn-form input::placeholder {
  color: #888;
}

.fn-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  border: none;
  background: var(--secondary);
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font);
  white-space: nowrap;
  transition: var(--transition);
}

.fn-submit:hover {
  background: var(--primary);
}

.fn-submit svg {
  flex-shrink: 0;
}

.footer-divider {
  display: none;
}

.footer-main {
  padding: 70px 0 55px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr 1.1fr 0.9fr;
  gap: 40px 36px;
}

.footer-grid h4 {
  color: var(--white);
  font-size: 20px;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 0;
  font-weight: 700;
}

.footer-grid h4::after {
  display: none;
}

.fg-about p {
  margin-bottom: 28px;
  font-size: 15px;
  line-height: 1.8;
  max-width: 300px;
  color: #c5cdd8;
}

.since-title {
  font-family: var(--heading);
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--secondary);
  letter-spacing: 0.02em;
}

.fg-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
}

.fg-links ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.fg-link-col h4 {
  margin-bottom: 22px;
}

.fg-links a {
  display: block;
  font-size: 15px;
  color: #c5cdd8;
  padding: 0;
}

.fg-links a i {
  display: none;
}

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

.fg-contact .fg-block + .fg-block,
.fg-social .fg-block + .fg-block {
  margin-top: 32px;
}

.fg-contact .fg-block h4,
.fg-social .fg-block h4 {
  margin-bottom: 14px;
}

.fg-contact p,
.fg-social p {
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
  color: #c5cdd8;
}

.fg-contact a,
.fg-social a {
  color: #c5cdd8;
}

.fg-contact a:hover,
.fg-social a:hover {
  color: var(--secondary);
}

.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  color: #ddd;
  font-size: 15px;
}

.footer-social a:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
  text-align: center;
  font-size: 14px;
  color: #9aa6b5;
}

.footer-bottom p {
  margin: 0;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 46px;
  height: 46px;
  border-radius: 4px;
  background: var(--secondary);
  color: var(--white);
  border: none;
  font-size: 16px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(0, 174, 239, 0.35);
  display: grid;
  place-items: center;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary);
}

/* Reveal helpers (GSAP sets final state) */
.reveal,
.reveal-left,
.reveal-right,
.process-item {
  opacity: 0;
}

/* Responsive */
@media (max-width: 1199px) {
  .header-info,
  .header-cta {
    display: none;
  }

  .about-grid,
  .why-grid,
  .contact-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-newsletter {
    grid-template-columns: auto 1fr;
  }

  .fn-form {
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
    max-width: 520px;
  }

  .project-cta {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-feature {
    position: relative;
    right: auto;
    bottom: auto;
    margin: -40px auto 0;
    width: min(480px, calc(100% - 40px));
  }

  .about {
    padding-top: 80px;
  }
}

@media (max-width: 991px) {
  .top-bar {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--white);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    padding: 80px 24px 40px;
    transition: var(--transition);
    z-index: 1001;
    overflow-y: auto;
  }

  .main-nav.open {
    right: 0;
  }

  .main-nav > ul {
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav > ul > li > a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    display: none;
    padding-left: 12px;
  }

  .has-dropdown.open .dropdown {
    display: block;
  }

  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-swiper {
    min-height: 560px;
    height: 70vh;
  }

  .hero-nav {
    display: none;
  }

  .about-media {
    grid-template-columns: 1fr 1fr;
  }

  .about-img-main img {
    height: 360px;
  }

  .about-man {
    display: none;
  }
}

@media (max-width: 767px) {
  .section {
    padding: 70px 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .process-grid,
  .contact-cards,
  .footer-grid,
  .about-stats {
    grid-template-columns: 1fr;
  }

  .about-media,
  .why-images,
  .blog-card.horizontal {
    grid-template-columns: 1fr;
  }

  .ask-form {
    margin-left: 0;
  }

  .footer-newsletter,
  .fn-form {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-newsletter {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .fn-form {
    min-width: 0;
    width: 100%;
  }

  .fn-submit {
    padding: 14px 18px;
    justify-content: center;
  }

  .fg-links {
    grid-template-columns: 1fr;
  }

  .fg-links ul {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-bottom: 60px;
  }

  .top-contact li:first-child {
    display: none;
  }
}

@media (max-width: 575px) {
  .logo img {
    height: 40px;
  }

  .header-inner {
    min-height: 70px;
  }

  .hero-content h1 {
    font-size: 36px;
  }
}

/* Desktop cursor only */
@media (pointer: fine) {
  body.has-cursor {
    cursor: none;
  }
}

@media (pointer: coarse) {
  .cursor-dot,
  .cursor-outline {
    display: none !important;
  }
}

/* ========== Inner pages ========== */
.page-banner {
  position: relative;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: #fff;
}
.page-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(46, 49, 146, 0.88), rgba(11, 28, 51, 0.55));
}
.page-banner-content {
  position: relative;
  z-index: 1;
  padding: 80px 0 60px;
}
.page-banner h1 {
  color: #fff;
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 12px;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,.75);
}
.breadcrumb li:not(:last-child)::after {
  content: ">";
  margin-left: 8px;
  opacity: .7;
}
.breadcrumb a:hover { color: var(--primary); }

.services-page-grid,
.projects-page-grid,
.team-page-grid,
.blog-page-grid,
.pricing-grid {
  display: grid;
  gap: 28px;
}
.services-page-grid { grid-template-columns: repeat(3, 1fr); }
.services-page .service-card { background: #111; }
.projects-page-grid { grid-template-columns: repeat(3, 1fr); }
.projects-page .project-card { height: 360px; }
.projects-page .pc-overlay { opacity: 1; }
.team-page-grid { grid-template-columns: repeat(3, 1fr); }
.blog-page-grid { grid-template-columns: repeat(3, 1fr); }
.pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }

.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  transition: var(--transition);
}
.price-card:hover,
.price-card.featured {
  transform: translateY(-6px);
  border-color: var(--primary);
}
.price-card.featured { background: var(--dark); color: #ccc; }
.price-card.featured h3,
.price-card.featured .price { color: #fff; }
.price-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}
.price {
  font-family: var(--heading);
  font-size: 48px;
  font-weight: 700;
  color: var(--primary);
  margin: 16px 0 24px;
  line-height: 1;
}
.price span { font-size: 24px; vertical-align: super; }
.price small { font-size: 16px; color: #888; font-weight: 500; }
.price-card ul { margin-bottom: 28px; text-align: left; }
.price-card li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
  font-size: 14px;
}
.price-card.featured li { border-color: rgba(255,255,255,.08); }

.service-single-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr;
  gap: 40px;
  align-items: start;
}
.ss-hero {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 28px;
}
.team-detail-img { height: 480px; object-fit: cover; object-position: top; }
.ss-main h2 { font-size: 34px; margin-bottom: 14px; }
.role-tag {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 16px;
}
.ss-features { margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.side-box {
  background: var(--light);
  border-radius: 8px;
  padding: 28px 24px;
  margin-bottom: 20px;
}
.side-box h4 { margin-bottom: 16px; }
.side-links li { border-bottom: 1px solid var(--border); }
.side-links a {
  display: block;
  padding: 12px 0;
  font-weight: 500;
  color: var(--text-dark);
}
.side-links a:hover { color: var(--primary); padding-left: 6px; }
.side-cta {
  background: var(--dark);
  color: #ccc;
}
.side-cta h4 { color: #fff; }

.detail-list { margin: 22px 0; }
.detail-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.detail-list i { color: var(--primary); width: 18px; }

.faq-wrap { max-width: 860px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 14px;
  padding: 4px 20px;
  box-shadow: var(--shadow);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-family: var(--heading);
  color: var(--text-dark);
  padding: 16px 0;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { padding-bottom: 16px; font-size: 15px; }

.appointment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.appointment-grid .ask-form { margin: 0; }

.dropdown.mega {
  min-width: 240px;
  max-height: 70vh;
  overflow-y: auto;
}

@media (max-width: 991px) {
  .services-page-grid,
  .projects-page-grid,
  .team-page-grid,
  .blog-page-grid,
  .pricing-grid,
  .service-single-grid,
  .appointment-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 767px) {
  .services-page-grid,
  .projects-page-grid,
  .team-page-grid,
  .blog-page-grid,
  .pricing-grid,
  .service-single-grid,
  .appointment-grid {
    grid-template-columns: 1fr;
  }
  .ss-hero { height: 260px; }
  .page-banner { min-height: 240px; }
}

/* ========== About Us 01 – history, partners ========== */
.history-tabs {
  max-width: 1100px;
  margin: 0 auto;
}

.history-years.tab-nav {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 48px;
  gap: 8px;
  flex-wrap: nowrap;
}

.history-years::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 18px;
  height: 2px;
  background: var(--border);
}

.history-year.tab-btn,
.history-year.tab-btn.active,
.history-year.tab-btn:hover {
  position: relative;
  z-index: 1;
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
  font-family: var(--heading);
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 90px;
}

.history-year::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--border);
  transition: var(--transition);
}

.history-year.tab-btn.active,
.history-year.tab-btn:hover {
  color: var(--primary);
}

.history-year.active::before,
.history-year:hover::before {
  border-color: var(--primary);
  background: var(--primary);
}

.history-panel.tab-panel {
  display: none;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  background: #fff;
  border: 0;
  border-radius: 8px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.history-panel.tab-panel.active {
  display: grid;
}

.history-media {
  overflow: hidden;
  border-radius: 8px;
  height: 360px;
}

.history-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.history-copy {
  padding: 12px 20px 12px 8px;
}

.history-copy h3 {
  font-size: 32px;
  margin-bottom: 16px;
}

.history-points {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dark);
  font-weight: 500;
}

.history-points i {
  color: var(--primary);
}

.partners {
  padding-top: 40px;
}

.partner-logo {
  height: 90px;
  display: grid;
  place-items: center;
  background: var(--light);
  border-radius: 8px;
  padding: 18px 28px;
}

.partner-logo img {
  max-height: 48px;
  width: auto;
  margin: 0 auto;
  filter: grayscale(1);
  opacity: 0.7;
  transition: var(--transition);
}

.partner-logo:hover img {
  filter: none;
  opacity: 1;
}

/* ========== Contact 1 ========== */
.contact-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-offices h3 {
  font-size: 32px;
  margin-bottom: 28px;
}

.office-facts {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 28px;
}

.office-facts li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.of-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(46, 49, 146, 0.12);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 18px;
}

.office-facts span {
  display: block;
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.office-facts p,
.office-facts a {
  color: var(--text-dark);
  font-weight: 500;
}

.office-facts a:hover {
  color: var(--primary);
}

.contact-map {
  border-radius: 8px;
  overflow: hidden;
  height: 260px;
  box-shadow: var(--shadow);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.ask-form.contact-form {
  margin: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.office-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.office-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.office-card:hover {
  transform: translateY(-6px);
}

.oc-img {
  height: 210px;
  overflow: hidden;
}

.oc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.office-card:hover .oc-img img {
  transform: scale(1.08);
}

.oc-body {
  padding: 24px 22px 28px;
}

.oc-body h4 {
  font-size: 22px;
  margin-bottom: 12px;
}

.oc-body p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 6px;
}

.oc-body i {
  color: var(--primary);
  width: 16px;
}

.oc-body a:hover {
  color: var(--primary);
}

@media (max-width: 991px) {
  .history-panel.active,
  .contact-main-grid {
    grid-template-columns: 1fr;
  }
  .history-media {
    height: 260px;
  }
  .office-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .history-years {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 8px;
  }
  .history-years::before {
    display: none;
  }
  .history-copy h3 {
    font-size: 24px;
  }
  .form-row,
  .office-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== Products & Shades ========== */
.section-sub {
  max-width: 640px;
  margin: 12px auto 0;
  color: var(--text);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-line-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.product-line-card:hover {
  transform: translateY(-6px);
  border-color: var(--secondary);
}

.plc-swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 72px;
}

.plc-swatches.single span {
  grid-column: 1 / -1;
}

.plc-swatches span {
  display: block;
  height: 100%;
}

.plc-body {
  padding: 22px 20px 26px;
}

.plc-body h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.plc-body p {
  font-size: 14px;
  margin-bottom: 16px;
  min-height: 44px;
}

.product-intro {
  max-width: 760px;
  margin-bottom: 40px;
}

.product-lead {
  font-size: 17px;
  margin-top: 12px;
}

.shade-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.shade-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.shade-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
}

.shade-swatch {
  height: 140px;
}

.shade-body {
  padding: 22px 18px 24px;
}

.shade-body h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.shade-hex {
  font-size: 14px;
  margin-bottom: 12px;
  font-family: var(--heading);
}

.shade-rgb {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.shade-rgb li {
  flex: 1;
  text-align: center;
  background: var(--light);
  border-radius: 4px;
  padding: 8px 4px;
  font-size: 13px;
  font-weight: 600;
}

.shade-rgb span {
  display: block;
  font-size: 11px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 2px;
}

.shade-table-wrap {
  overflow-x: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.shade-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  min-width: 640px;
}

.shade-table th,
.shade-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.shade-table th {
  background: var(--primary);
  color: #fff;
  font-family: var(--heading);
  font-weight: 600;
}

.shade-table tr:last-child td {
  border-bottom: 0;
}

.shade-dot {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.08);
}

.enquiry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.enquiry-grid .ask-form {
  margin: 0;
}

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

.contact-person-card {
  background: #fff;
  border-radius: 8px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--secondary);
  text-align: center;
}

.contact-person-card h4 {
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--primary);
}

.contact-person-card p {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-person-card span {
  font-size: 13px;
  color: var(--text);
}

.contact-info-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.cic-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 22px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  height: 100%;
}

a.cic-card:hover {
  transform: translateY(-6px);
  border-color: var(--secondary);
}

.cic-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(46, 49, 146, 0.08);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 20px;
}

.cic-card h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--primary);
}

.cic-card p {
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
  color: var(--text);
}

.contact-lead {
  font-size: 15px;
  margin: -8px 0 22px;
  color: var(--text);
}

.contact-form select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text-dark);
  background: #fff;
  outline: none;
}

.contact-form select:focus {
  border-color: var(--secondary);
}

.cpc-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
  flex-wrap: wrap;
}

.cpc-actions .btn {
  padding: 10px 18px;
  font-size: 13px;
}

@media (max-width: 991px) {
  .contact-info-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .contact-info-cards,
  .contact-person-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {
  .products-grid,
  .shade-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .enquiry-grid {
    grid-template-columns: 1fr;
  }
}

.product-color-bar {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 200px;
}

/* ========== Product series navigation ========== */
.products-page {
  background: linear-gradient(180deg, #f4f6fb 0%, #fff 320px);
}

.products-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 56px;
  background: #fff;
  border-radius: 12px;
  padding: 28px 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.ps-item {
  text-align: center;
  padding: 8px 12px;
  border-right: 1px solid var(--border);
}

.ps-item:last-child {
  border-right: 0;
}

.ps-item strong {
  display: block;
  font-family: var(--heading);
  font-size: 28px;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 4px;
}

.ps-item span {
  font-size: 13px;
  color: var(--text);
}

.series-main-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 56px;
}

.series-main-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
  height: 100%;
}

.series-main-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 60px rgba(46, 49, 146, 0.14);
  border-color: rgba(0, 174, 239, 0.45);
}

.smc-visual {
  position: relative;
  min-height: 180px;
  padding: 24px;
  background: linear-gradient(135deg, var(--series-accent, var(--primary)), var(--secondary));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.smc-num {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--heading);
  font-size: 56px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.18);
  line-height: 1;
}

.smc-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 16px;
  width: fit-content;
}

.smc-swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.smc-swatches span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease;
}

.series-main-card:hover .smc-swatches span {
  transform: translateY(-3px);
}

.smc-body {
  padding: 28px 26px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.smc-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 10px;
}

.smc-body h3 {
  font-size: 26px;
  margin-bottom: 10px;
}

.smc-body p {
  font-size: 14px;
  margin-bottom: 20px;
  flex: 1;
  line-height: 1.65;
}

.smc-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-top: auto;
}

.series-main-card:hover .smc-cta {
  color: var(--secondary);
}

.smc-cta i {
  transition: transform 0.3s ease;
}

.series-main-card:hover .smc-cta i {
  transform: translateX(6px);
}

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

.spectron-feature-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  background: var(--primary);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(46, 49, 146, 0.2);
}

.sf-swatches {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  min-height: 220px;
}

.sf-swatches span {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 55px;
}

.sf-content {
  padding: 36px 40px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sf-content .section-label {
  color: var(--secondary);
}

.sf-content h3 {
  color: #fff;
  font-size: 32px;
  margin: 8px 0 12px;
}

.sf-content p {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 24px;
  max-width: 520px;
}

.sf-content .btn-primary {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Series list page */
.series-hero {
  background: var(--light);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}

.series-hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 36px 40px;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--series-accent, var(--primary));
}

.sh-copy h2 {
  font-size: 34px;
  margin: 8px 0 12px;
}

.sh-copy p {
  max-width: 560px;
  margin-bottom: 18px;
}

.sh-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.sh-meta span {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.sh-meta i {
  color: var(--secondary);
  margin-right: 6px;
}

.sh-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 280px;
  justify-content: flex-end;
}

.sh-swatches span {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.products-series-page {
  background: #fff;
}

.product-shade-grid {
  margin-bottom: 20px;
}

.product-shade-card {
  height: 100%;
}

.product-shade-card .psc-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-shade-card .shade-swatch {
  position: relative;
  height: 160px;
}

.psc-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(46, 49, 146, 0.75);
  color: #fff;
  font-family: var(--heading);
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-shade-card:hover .psc-hover {
  opacity: 1;
}

.psc-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--secondary);
  background: rgba(0, 174, 239, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.psc-code {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.product-shade-card .shade-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-shade-card .link-arrow {
  margin-top: auto;
  padding-top: 12px;
}

/* Product detail page */
.products-detail-page {
  background: linear-gradient(180deg, #f4f6fb 0%, #fff 400px);
  padding-bottom: 80px;
}

.detail-panel {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 40px;
  margin-bottom: 56px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 48px;
  align-items: start;
}

.detail-visual-card {
  position: sticky;
  top: 120px;
}

.detail-swatch {
  height: 320px;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}

.detail-swatch-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 30px;
}

.detail-color-box {
  background: var(--light);
  border-radius: 0 0 12px 12px;
  padding: 22px 20px;
  margin-top: -8px;
  border: 1px solid var(--border);
  border-top: 0;
}

.detail-hex {
  font-family: var(--heading);
  font-size: 16px;
  margin-bottom: 14px;
}

.detail-info-card h2 {
  font-size: 34px;
  margin-bottom: 12px;
}

.detail-code {
  font-size: 16px;
  margin-bottom: 18px;
  color: var(--primary);
  font-weight: 600;
}

.detail-code i {
  margin-right: 8px;
  color: var(--secondary);
}

.detail-lead {
  font-size: 16px;
  margin-bottom: 24px;
  line-height: 1.75;
}

.detail-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.detail-spec {
  background: var(--light);
  border-radius: 8px;
  padding: 16px 18px;
  border: 1px solid var(--border);
}

.detail-spec span {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 4px;
}

.detail-spec strong {
  font-family: var(--heading);
  font-size: 15px;
  color: var(--text-dark);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.detail-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline-dark:hover {
  background: var(--primary);
  color: #fff;
}

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

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.related-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  padding-bottom: 18px;
}

.related-card:hover {
  transform: translateY(-6px);
  border-color: var(--secondary);
}

.related-swatch {
  display: block;
  height: 90px;
  margin-bottom: 14px;
}

.related-name {
  display: block;
  font-family: var(--heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  padding: 0 12px;
  margin-bottom: 4px;
  line-height: 1.35;
}

.related-code {
  display: block;
  font-size: 12px;
  color: var(--text);
  padding: 0 12px;
}

.product-empty {
  text-align: center;
  padding: 80px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.back-series-link {
  margin-top: 48px;
  text-align: center;
}

@media (max-width: 991px) {
  .products-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .ps-item:nth-child(2) {
    border-right: 0;
  }

  .ps-item {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
  }

  .ps-item:nth-last-child(-n+2) {
    border-bottom: 0;
    padding-bottom: 8px;
  }

  .series-main-grid,
  .shade-grid,
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .spectron-feature-inner {
    grid-template-columns: 1fr;
  }

  .sf-swatches {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
    min-height: 80px;
  }

  .series-hero-inner {
    grid-template-columns: 1fr;
    padding: 28px 24px;
  }

  .sh-swatches {
    max-width: none;
    justify-content: flex-start;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-visual-card {
    position: static;
  }

  .detail-panel {
    padding: 28px 22px;
  }
}

@media (max-width: 575px) {
  .products-stats,
  .series-main-grid,
  .shade-grid,
  .related-grid,
  .detail-spec-grid {
    grid-template-columns: 1fr;
  }

  .detail-swatch {
    height: 240px;
  }
}
