/* ----------------------------------------------------- */
/* Tokens                                                  */
/* ----------------------------------------------------- */
:root {
  --color-red: #e4545b;
  --color-red-hover: #f4646b;
  --color-red-soft: #ec888d;
  --color-navy: #333946;
  --color-navy-deep: #20232b;
  --color-text: #979aa1;
  --color-text-strong: #696b70;
  --color-text-muted: #8c9aaa;
  --color-bg: #ffffff;
  --color-bg-soft: #f5f7fc;
  --color-bg-soft-2: #f8f9fc;
  --color-border: #e9ecef;
  --color-border-2: #e3e7eb;
  --color-cyan: #54cde7;
  --color-th: #47485f;
  --grad-dark: linear-gradient(#3d434f, #313643);
  --grad-cyan: linear-gradient(#5cdae5, #50cdd9);
  --container: 1140px;
  --radius: 3px;
  --radius-lg: 6px;
  --transition: 0.4s ease-in-out;
  --transition-slow: 0.6s ease-in-out;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 72px;
}

/* ----------------------------------------------------- */
/* Reset / base                                            */
/* ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { background: #fff; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  line-height: 20px;
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

::selection { background: #353648; color: #fff; text-shadow: none; }

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

a { color: var(--color-text-strong); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--color-red); }

button {
  font-family: inherit;
  cursor: pointer;
}

ul { padding: 0; margin: 0; }

p { margin: 0 0 20px; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Open Sans', sans-serif;
  font-weight: 500;
  color: var(--color-text-strong);
  text-align: center;
  margin: 0;
  padding: 0 0 20px;
}

h1 { font-size: 44px; line-height: 44px; font-weight: 300; }
h2 { font-size: 36px; line-height: 36px; font-weight: 600; text-transform: uppercase; padding-bottom: 3px; }
h3 { font-size: 24px; line-height: 24px; font-weight: 400; }
h4 { font-size: 20px; line-height: 20px; }
h5 { font-size: 16px; line-height: 16px; }
h6 { font-size: 14px; line-height: 14px; font-weight: 600; }

hr { background: rgba(255,255,255,0.1); height: 1px; margin: 0 0 20px; border: 0; }

blockquote {
  position: relative;
  font-size: 15px;
  line-height: 20px;
  font-style: italic;
  color: var(--color-text-muted);
  padding: 0 20px;
  margin: 0;
  border-left: 5px solid var(--color-border-2);
}

.white { color: #fff; }
.center { text-align: center; }
.pt-0 { padding-top: 0 !important; }

.skip-link {
  position: absolute;
  left: 15px;
  top: 15px;
  z-index: 10000;
  color: #fff;
  background: var(--color-red);
  padding: 10px 14px;
  border-radius: var(--radius);
  transform: translateY(-140%);
}

.skip-link:focus { transform: translateY(0); }

/* ----------------------------------------------------- */
/* Container                                               */
/* ----------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 30px);
  margin: 0 auto;
  padding: 0 15px;
}

.section { padding: 45px 15px; }

.section-head { padding: 0 0 30px; }
.section-head h2 + h3 { padding-top: 5px; }
.section-head p { text-align: center; }

/* ----------------------------------------------------- */
/* Header / Hero                                           */
/* ----------------------------------------------------- */
.hero {
  background: url('img/bg-1.jpg') center top / cover no-repeat;
  position: relative;
  padding-bottom: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(32,35,43,0.25), rgba(32,35,43,0.55));
  pointer-events: none;
}

.hero > * { position: relative; }

/* ----------------------------------------------------- */
/* Navbar                                                  */
/* ----------------------------------------------------- */
.navbar {
  width: 100%;
  padding: 20px 0;
  background: transparent;
  transition: background var(--transition-slow), box-shadow var(--transition-slow);
  z-index: 999;
}

.navbar.is-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--color-navy-deep);
  box-shadow: 0 2px 3px rgba(0,0,0,0.1);
  padding: 12px 0;
  animation: slideDown 0.4s ease-out;
}

.page-nav.is-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--color-navy-deep);
  box-shadow: 0 2px 3px rgba(0,0,0,0.1);
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo-link { display: inline-flex; }
.logo { width: auto; height: auto; padding-top: 3px; }

.nav-menu {
  display: flex;
  gap: 4px;
  list-style: none;
}

.nav-menu a {
  display: inline-block;
  font-size: 14px;
  line-height: 42px;
  color: #fff;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,0);
  border-radius: var(--radius);
  transition: border-color 0.3s, background 0.3s;
}

.nav-menu li:hover > a { border-color: rgba(255,255,255,0.5); }

.nav-menu li.active > a,
.nav-menu li.active:hover > a {
  background: var(--color-navy);
  border-color: rgba(255,255,255,0);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: var(--radius);
  padding: 0 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 991px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 100%;
    right: 15px;
    flex-direction: column;
    gap: 0;
    background: var(--color-navy-deep);
    border-radius: var(--radius);
    padding: 8px;
    min-width: 200px;
    transform-origin: top right;
    transform: scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
  }
  .nav-menu.is-open { opacity: 1; transform: scale(1); pointer-events: auto; }
  .nav-menu a { line-height: 36px; padding: 4px 16px; border: 0 !important; }
  .nav-menu li.active > a { background: var(--color-red); }
}

/* ----------------------------------------------------- */
/* Hero content                                            */
/* ----------------------------------------------------- */
.hero-content {
  position: relative;
  padding-top: 60px;
  padding-bottom: 40px;
  min-height: 540px;
  display: grid;
  align-items: center;
}

.hero-content::before {
  content: "";
  position: absolute;
  inset: 0 15px;
  background: url('img/header/bg-1.jpg') center center / cover no-repeat;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.hero-content > * {
  position: relative;
  z-index: 1;
}

.hero-card {
  display: grid;
  gap: 14px;
  justify-items: start;
  max-width: 560px;
  margin-left: auto;
  padding: 30px;
}

.hero-eyebrow {
  font-size: 40px;
  font-weight: 300;
  color: #fff;
  margin: 0;
  line-height: 1;
}

.hero-title {
  font-size: 30px;
  font-weight: 600;
  color: var(--color-red);
  margin: 0 0 10px;
  text-align: left;
  line-height: 1;
  padding: 0;
}

.hero-features {
  list-style: none;
  display: grid;
  gap: 10px;
}

.hero-features li {
  display: grid;
  gap: 6px;
}

.hero-pill {
  display: inline-block;
  background: var(--color-red);
  color: #fff;
  font-size: 22px;
  font-weight: 300;
  line-height: 38px;
  padding: 0 14px;
  border-radius: 4px;
  width: fit-content;
}

.hero-sub {
  color: #fff;
  font-size: 18px;
  font-weight: 300;
  padding-left: 4px;
}

@media (max-width: 768px) {
  .hero-content { padding-top: 30px; min-height: 0; }
  .hero-card { margin: 0 auto; }
  .hero-eyebrow { font-size: 32px; }
  .hero-title { font-size: 24px; }
  .hero-pill { font-size: 18px; line-height: 32px; }
  .hero-sub { font-size: 15px; }
}

/* ----------------------------------------------------- */
/* Social row                                              */
/* ----------------------------------------------------- */
.social-row { padding: 0 15px; }

.social-panel {
  display: grid;
  grid-template-columns: 2fr 1fr;
  background: var(--color-navy);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
}

.brands {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  padding: 12px 30px;
  gap: 20px;
}

.brands img { width: auto; max-height: 36px; }

.social-bg {
  background: var(--color-red);
  border-radius: 0 0 var(--radius-lg) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 16px;
}

.social-bg a {
  color: var(--color-red-soft);
  font-size: 22px;
  width: 38px;
  height: 38px;
  line-height: 38px;
  text-align: center;
  border-radius: var(--radius);
  transition: color 0.3s;
}

.social-bg a:hover { color: #fff; }

@media (max-width: 768px) {
  .social-panel { grid-template-columns: 1fr; }
  .social-bg { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
}

/* ----------------------------------------------------- */
/* Services                                                */
/* ----------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 50px;
}

.service {
  display: grid;
  grid-template-rows: auto 1fr;
}

.service img {
  border-radius: var(--radius) var(--radius) 0 0;
  width: 100%;
}

.service-content {
  position: relative;
  background: var(--color-bg-soft);
  text-align: center;
  padding: 65px 30px 30px;
  border-radius: 0 0 var(--radius) var(--radius);
}

.service-content i {
  position: absolute;
  top: 0;
  left: 50%;
  width: 80px;
  height: 80px;
  line-height: 80px;
  margin-left: -40px;
  margin-top: -40px;
  font-size: 30px;
  color: #fff;
  background: var(--color-navy);
  text-align: center;
  border-radius: var(--radius);
  transition: var(--transition-slow);
}

.service:hover .service-content i {
  background: var(--color-red);
  transform: scale(1.15);
}

.service-content h4 { padding-bottom: 15px; }

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------- */
/* Tabs                                                    */
/* ----------------------------------------------------- */
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.tabs-nav {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tab-btn {
  width: 100%;
  background: #fff;
  border: 1px solid #bdc1ca;
  color: #bdc1ca;
  font-size: 40px;
  height: 130px;
  line-height: 130px;
  text-align: center;
  padding: 0;
  transition: color 0.3s, border-color 0.3s;
}

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

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.tab-panel h4 { color: var(--color-red); text-align: left; }
.tab-panel p { text-align: left; }

/* Text tabs (product detail) instead of the icon-sized default */
.tabs.tabs-text { grid-template-columns: 1fr; }

.tabs.tabs-text .tab-btn {
  font-size: 13px;
  height: 50px;
  line-height: 48px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .tabs { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------- */
/* About                                                   */
/* ----------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.about-grid img { border-radius: var(--radius); }

.text-content h4 { color: var(--color-red); text-align: left; padding-bottom: 18px; }

.social-2 { display: flex; flex-wrap: wrap; gap: 4px; }
.social-2.center { justify-content: center; }

.social-2 a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--grad-dark);
  transition: background 0.3s;
}

.social-2 a:hover { color: #fff; background: var(--grad-cyan); }

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------- */
/* Image overlay (projects + portfolio)                    */
/* ----------------------------------------------------- */
.image-item {
  position: relative;
  display: block;
  background: var(--color-navy);
  overflow: hidden;
}

.image-item img {
  width: 100%;
  display: block;
  transition: var(--transition-slow);
}

.image-item:hover img { opacity: 0.1; }

.item-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  text-align: center;
  color: #9299a1;
  font-size: 15px;
  padding: 30px;
  opacity: 0;
  transition: var(--transition);
}

.item-overlay h4 { color: #fff; padding-bottom: 14px; }
.item-overlay p { margin: 0; }

.image-item:hover .item-overlay { opacity: 1; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .projects-grid { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------- */
/* Promo                                                   */
/* ----------------------------------------------------- */
.promo-area {
  background: url('img/promo/bg-1.jpg') center top repeat-y;
  background-size: cover;
  margin-top: 80px;
}

.promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  padding: 60px 15px 40px;
}

.promo-text h3 {
  color: #fff;
  text-align: left;
  font-size: 26px;
  line-height: 36px;
  font-weight: 300;
  padding-bottom: 25px;
}

.promo-image img { width: auto; max-width: 100%; margin: 0 auto; }

@media (max-width: 768px) {
  .promo-grid { grid-template-columns: 1fr; text-align: center; }
  .promo-text h3 { text-align: center; }
}

/* ----------------------------------------------------- */
/* Portfolio                                               */
/* ----------------------------------------------------- */
.portfolio {
  background: var(--color-navy);
  padding: 50px 0 55px;
}

.portfolio h2, .portfolio h3 { color: #fff; }
.portfolio h3 { font-weight: 300; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 30px;
}

.filter-showcase .section-head { padding-bottom: 24px; }

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 30px;
}

.filter-button {
  min-width: 92px;
  height: 38px;
  color: var(--color-text-muted);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: color 0.25s, background 0.25s, border-color 0.25s;
}

.filter-button:hover,
.filter-button.active {
  color: #fff;
  background: var(--color-red);
  border-color: var(--color-red);
}

.home-filter-grid {
  margin-top: 0;
}

.filter-item[hidden] { display: none; }

@media (max-width: 768px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------- */
/* Home expansions                                         */
/* ----------------------------------------------------- */
.counter-band {
  background: var(--color-navy);
  color: #fff;
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 0 15px;
}

.counter-grid article {
  min-height: 150px;
  display: grid;
  align-content: center;
  justify-items: center;
  background: rgba(255,255,255,0.05);
  padding: 30px 20px;
  text-align: center;
}

.counter-grid strong {
  display: block;
  font-size: 42px;
  line-height: 1;
  color: var(--color-red);
  padding-bottom: 10px;
}

.counter-grid span {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #d4d7de;
}

.shop-grid,
.pricing-grid,
.team-grid,
.variant-grid,
.card-grid,
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.shop-card,
.pricing-card,
.team-card,
.content-card,
.article-card,
.product-card {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.shop-card > div,
.pricing-card,
.team-card,
.content-card,
.article-card,
.product-card {
  padding: 28px;
}

.shop-card img,
.team-card img,
.article-card img,
.product-card img,
.media-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.shop-card h4,
.pricing-card h4,
.team-card h4,
.content-card h4,
.article-card h4,
.product-card h4 {
  text-align: left;
  padding-bottom: 12px;
}

.price {
  color: var(--color-red);
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  margin-bottom: 18px;
}

.pricing-card.featured {
  border-color: var(--color-red);
  box-shadow: 0 10px 30px rgba(228,84,91,0.14);
}

.pricing-card .list-a {
  margin-bottom: 24px;
}

.team-card {
  text-align: left;
  display: flex;
  flex-direction: column;
}

.team-card p {
  margin-bottom: 0;
}

.team-card .avatar {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 42px;
  font-weight: 300;
  letter-spacing: 6px;
  text-indent: 6px;
  color: #fff;
  background: var(--grad-dark);
}

.team-card .social-2 {
  margin-top: auto;
  padding-top: 16px;
  justify-content: flex-start;
}

.variant-grid {
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.variant-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  color: #fff;
  background: var(--grad-dark);
  border-radius: var(--radius);
  padding: 10px;
  text-align: center;
}

.variant-grid a:hover {
  color: #fff;
  background: var(--color-red);
}

@media (max-width: 991px) {
  .counter-grid,
  .shop-grid,
  .pricing-grid,
  .team-grid,
  .card-grid,
  .media-grid { grid-template-columns: repeat(2, 1fr); }
  .variant-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .counter-grid,
  .shop-grid,
  .pricing-grid,
  .team-grid,
  .card-grid,
  .media-grid,
  .variant-grid { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------- */
/* Inner pages                                             */
/* ----------------------------------------------------- */
.page-hero {
  background: linear-gradient(180deg, rgba(32,35,43,0.82), rgba(32,35,43,0.82)), url('img/header/bg-2.jpg') center / cover no-repeat;
  color: #fff;
  padding: 50px 0 60px;
}

.page-hero h1,
.page-hero p {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.page-hero h1 {
  color: #fff;
  font-weight: 600;
  padding-bottom: 14px;
}

.page-hero p {
  color: #d8dbe2;
  font-size: 16px;
  line-height: 26px;
  margin-bottom: 0;
}

.page-nav {
  background: var(--color-navy-deep);
  padding: 14px 0;
}

.page-nav .nav-inner {
  align-items: center;
}

.page-nav .nav-menu a {
  line-height: 36px;
}

.page-main {
  padding: 50px 0 0;
}

.detail-grid,
.checkout-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.content-card + .content-card,
.article-card + .article-card {
  margin-top: 24px;
}

/* Card grids align rows themselves — kill the stacked-list offset there */
.card-grid .article-card + .article-card,
.shop-grid .shop-card + .shop-card,
.team-grid .team-card + .team-card,
.pricing-grid .pricing-card + .pricing-card,
.media-grid .article-card + .article-card {
  margin-top: 0;
}

.content-card ul,
.article-card ul,
.product-card ul {
  margin: 0;
}

.meta {
  color: var(--color-red);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid label {
  display: grid;
  gap: 6px;
  color: var(--color-text-strong);
  font-weight: 700;
}

.form-grid input,
.form-grid textarea,
.search-form input {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 13px 14px;
  font: inherit;
  color: var(--color-text-strong);
  background: #fff;
}

.form-grid textarea {
  min-height: 130px;
  resize: vertical;
}

.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 30px;
}

.cart-summary {
  background: var(--color-navy);
  color: #fff;
  padding: 30px;
  border-radius: var(--radius);
}

.cart-summary h4 {
  color: #fff;
}

.cart-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.cart-line:last-child {
  border-bottom: 0;
  color: var(--color-red);
  font-weight: 700;
}

@media (max-width: 768px) {
  .detail-grid,
  .checkout-grid,
  .contact-grid,
  .search-form { grid-template-columns: 1fr; }
}

@media (max-width: 991px) {
  .page-nav .nav-inner {
    flex-wrap: wrap;
  }

  .page-nav .nav-menu {
    position: static;
    flex: 1 1 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    min-width: 0;
    padding: 6px 0 0;
    background: transparent;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .page-nav .nav-menu a {
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,0.18) !important;
  }
}

/* ----------------------------------------------------- */
/* Project Detail                                          */
/* ----------------------------------------------------- */
.portfolio-detail {
  padding: 70px 0;
  color: #97999d;
  text-align: center;
}

.portfolio-detail h2, .portfolio-detail h3 { color: var(--color-text-strong); }
.portfolio-detail h3 { font-weight: 300; }

.project-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  margin: 30px 0 0;
}

.project-gallery img { width: 100%; }

.project-content {
  background: var(--color-bg-soft);
  padding: 40px;
  border-radius: 0 0 var(--radius) var(--radius);
}

.project-tags { font-size: 14px; }
.project-tags a:hover { color: var(--color-red); }

.project-content p { text-align: center; }

@media (max-width: 768px) {
  .project-gallery { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------- */
/* Parallax                                                */
/* ----------------------------------------------------- */
.parallax {
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  color: #fff;
  margin-top: 100px;
}

.parallax-overlay {
  background: rgba(76,114,179,0.9);
  padding: 115px 0 80px;
  text-align: center;
}

.parallax h3 {
  font-size: 24px;
  font-weight: 300;
  color: #fff;
  padding-bottom: 30px;
}

.parallax p {
  font-size: 14px;
  line-height: 22px;
}

.parallax .client { font-size: 15px; font-style: italic; }

.testimonial-track {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  min-height: 220px;
}

.testimonial-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.testimonial-slide.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.testimonial-dots button {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-border-2);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s;
}

.testimonial-dots button.active {
  background: var(--color-th);
  border: 3px solid var(--color-border-2);
}

@media (max-width: 991px) {
  .parallax { background-attachment: scroll; background-position: 50% 0 !important; }
}

/* ----------------------------------------------------- */
/* Buttons                                                 */
/* ----------------------------------------------------- */
.btn, .btn-small, .btn-large, .btn-large-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Open Sans', sans-serif;
  color: #fff;
  font-size: 14px;
  height: 46px;
  border: 0;
  padding: 0 35px;
  border-radius: var(--radius);
  background: var(--grad-dark);
  text-shadow: none;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  -webkit-font-smoothing: subpixel-antialiased;
}

.btn i, .btn-small i, .btn-large i, .btn-large-icon i {
  font-size: 18px;
}

.btn:hover, .btn-small:hover, .btn-large:hover, .btn-large-icon:hover {
  color: #fff;
  background: var(--grad-cyan);
}

.btn-small { font-size: 13px; height: 38px; padding: 0 24px; }
.btn-large { font-size: 18px; height: 60px; padding: 0 30px; }
.btn-large-icon { font-size: 15px; height: 60px; padding: 0 50px; }

.bc-2 {
  border: 1px solid rgba(255,255,255,0.5);
  background: transparent;
}
.bc-2:hover {
  border-color: transparent;
  background: var(--color-red);
}

.bc-3 { background: var(--color-red); }
.bc-3:hover { background: var(--color-red-hover); }

/* Outline button on light backgrounds (dark hero/promo keeps the white variant) */
.section .btn.bc-2,
.section .btn-small.bc-2,
.section .btn-large.bc-2 {
  color: var(--color-text-strong);
  border-color: var(--color-border-2);
}

.section .btn.bc-2:hover,
.section .btn-small.bc-2:hover,
.section .btn-large.bc-2:hover {
  color: #fff;
  border-color: transparent;
  background: var(--color-red);
}

/* Component blocks */
.component-block { margin-bottom: 40px; }
.component-block h4 { text-align: left; padding-bottom: 18px; }

.component-block.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.component-block.three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
}

.component-block.client-alerts {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
}

@media (max-width: 768px) {
  .component-block.two-col,
  .component-block.three-col,
  .component-block.client-alerts { grid-template-columns: 1fr; }
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

/* ----------------------------------------------------- */
/* Paging                                                  */
/* ----------------------------------------------------- */
.paging {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.paging .btn {
  font-size: 13px;
  width: auto;
  height: 30px;
  padding: 0 12px;
  color: var(--color-text-muted) !important;
  background: transparent;
  border: 1px solid var(--color-border);
}

.paging .btn:hover {
  color: #fff !important;
  background: var(--color-cyan);
  border-color: var(--color-cyan);
}

/* ----------------------------------------------------- */
/* Tags                                                    */
/* ----------------------------------------------------- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  font-size: 13px;
  color: #fff;
  background: var(--color-text-muted);
  border-radius: 2px;
  padding: 0 12px;
  transition: background 0.3s;
}

.tag:hover { background: var(--color-cyan); color: #fff; }

/* ----------------------------------------------------- */
/* Tables                                                  */
/* ----------------------------------------------------- */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  color: #fff;
  background: var(--color-th);
  font-weight: normal;
  padding: 15px 20px;
  border: 1px solid var(--color-th);
  border-right-color: #f0f1f4;
  text-align: left;
}

.table th:last-child { border-right-color: var(--color-th); }

.table td {
  color: var(--color-text-muted);
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 15px 20px;
}

.table-2 th { background: var(--color-red); border-color: var(--color-red); border-right-color: #fff; }
.table-2 th:last-child { border-right-color: var(--color-red); }
.table-2 td { background: var(--color-bg-soft-2); }

/* ----------------------------------------------------- */
/* Testimonials                                            */
/* ----------------------------------------------------- */
.testimonials {
  color: var(--color-text-muted);
  background: var(--color-bg-soft-2);
  border: 1px solid var(--color-border);
  padding: 25px;
}

.w-position { color: var(--color-text-muted); padding-left: 10px; }

.testimonial-2 {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  align-items: start;
  text-align: center;
}

.testimonial-2 .member-detail img {
  border-radius: 50%;
  margin: 0 auto;
  width: 120px;
  height: 120px;
  object-fit: cover;
}

.testimonial-2 h5 { margin-top: 12px; padding-bottom: 5px; }
.testimonial-2 .function {
  color: var(--color-red);
  font-style: italic;
  display: block;
  padding-bottom: 10px;
}

.testimonial-2 p { text-align: left; margin-top: 0; }

@media (max-width: 768px) { .testimonial-2 { grid-template-columns: 1fr; } }

/* ----------------------------------------------------- */
/* Lists                                                   */
/* ----------------------------------------------------- */
.list-a {
  list-style: none;
}

.list-a li {
  position: relative;
  padding-left: 28px;
  line-height: 28px;
}

.list-a i {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 16px;
  line-height: 28px;
}

.list-a a { color: #353648; }
.list-a a:hover { color: var(--color-red); }

/* ----------------------------------------------------- */
/* Client Says                                             */
/* ----------------------------------------------------- */
.client-says {
  font-style: italic;
  padding: 30px 45px;
  color: var(--color-text-muted);
  background: var(--color-bg-soft-2);
  border: 1px solid var(--color-border);
}

.client-says-2 {
  font-style: italic;
  color: #646686;
  text-align: right;
  padding: 15px 30px 0 0;
}

.client-name {
  float: left;
  font-style: normal;
}

.client-name i {
  font-size: 22px;
  padding-right: 15px;
}

/* ----------------------------------------------------- */
/* Progress bars                                           */
/* ----------------------------------------------------- */
.progress-bar-shortcode .progress {
  height: 38px;
  background: #f0f0f0;
  margin-bottom: 10px;
  overflow: hidden;
}

.progress-bar-shortcode .progress-bar {
  height: 100%;
  width: 0;
  color: #fff;
  background: var(--color-red);
  font-size: 14px;
  display: flex;
  align-items: center;
  padding-left: 20px;
  transition: width 1.4s ease;
}

/* ----------------------------------------------------- */
/* Boxes                                                   */
/* ----------------------------------------------------- */
.boxes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 0;
}

/* Equal-height boxes: the bordered paragraph fills the stretched card */
.boxes-grid .box {
  display: flex;
  flex-direction: column;
}

.boxes-grid .box p {
  flex: 1;
}

.boxes-two { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 768px) {
  .boxes-two { grid-template-columns: 1fr; }
}

.box h5 {
  color: #fff;
  background: var(--color-red);
  padding: 15px 20px;
  text-align: left;
  margin: 0;
  border: 1px solid #efefef;
  border-bottom: 0;
}

.box-gray h5 { background: var(--color-text-muted); }
.box-theme-color h5 { background: #353648; }

.box p {
  padding: 15px 20px;
  border: 1px solid #efefef;
  margin: 0;
}

@media (max-width: 768px) { .boxes-grid { grid-template-columns: 1fr; } }

/* ----------------------------------------------------- */
/* Alerts                                                  */
/* ----------------------------------------------------- */
.alert {
  position: relative;
  margin-bottom: 9px;
  padding: 18px 50px 18px 20px;
  color: #789ab9;
  background: #e6edf2;
}

.alert-error { color: #93545d; background: #ff92a1; }
.alert-info { color: #7f7e00; background: #eae9b9; }
.alert-success { color: #598157; background: #99de95; }

.alert-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: transparent;
  border: 0;
  color: inherit;
  font-size: 22px;
  line-height: 1;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.alert-close:hover { opacity: 1; }

/* ----------------------------------------------------- */
/* Map                                                     */
/* ----------------------------------------------------- */
.map-container {
  position: relative;
}

#map {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

.map-button {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  padding-top: 140px;
  pointer-events: none;
}

.map-button .btn { pointer-events: auto; }

/* ----------------------------------------------------- */
/* Social footer red bar                                   */
/* ----------------------------------------------------- */
.social-container {
  position: relative;
  margin-top: 0;
  z-index: 5;
}

.social-container .container {
  max-width: none;
  padding: 0;
}

.social-footer {
  text-align: center;
  background: var(--color-red);
  padding: 18px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.social-footer a {
  color: var(--color-red-soft);
  font-size: 22px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  transition: color 0.3s;
}

.social-footer a:hover { color: #fff; }

/* ----------------------------------------------------- */
/* Footer                                                  */
/* ----------------------------------------------------- */
.footer {
  background: url('img/bg-footer.jpg') top center / cover no-repeat;
  padding-top: 0;
}

.panel-footer {
  background: rgba(47,52,64,0.9);
  padding: 30px 50px;
  border-radius: 0 0 5px 5px;
  line-height: 1.8em;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-top: 20px;
  padding-bottom: 10px;
}

.footer-col h4 {
  text-align: left;
  padding-top: 5px;
  padding-bottom: 16px;
  color: #fff;
}

.footer-col p { margin-bottom: 16px; }

.logo-footer { width: auto; }

.blog-mini { padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.06); margin-bottom: 12px; }
.blog-mini:last-child { border-bottom: 0; }
.blog-mini p { margin-bottom: 0; }

.tweet {
  position: relative;
  padding-left: 50px;
  margin-bottom: 20px;
}

.tweet i {
  position: absolute;
  top: 5px;
  left: 0;
  color: #fff;
  font-size: 16px;
  width: 34px;
  height: 34px;
  line-height: 32px;
  text-align: center;
  border: 1px solid #3b3f4a;
}

.back-to-top-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.back-tt {
  width: 50px;
  height: 50px;
  padding: 0 !important;
  border-radius: var(--radius) var(--radius) 0 0;
}

@media (max-width: 768px) {
  .panel-footer { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .back-to-top-row { justify-content: center; }
}

/* ===================================================== */
/* Subpage modules                                        */
/* (styles for blog, shop flow, project detail, search,   */
/*  grid demo, typography, components and simple footer)  */
/* ===================================================== */

/* ----------------------------------------------------- */
/* Utilities                                              */
/* ----------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.lead {
  font-size: 16px;
  line-height: 26px;
  color: var(--color-text-muted);
}

code, kbd, pre {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

code {
  font-size: 12px;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2px 6px;
  color: #b8434a;
}

kbd {
  font-size: 12px;
  background: #fff;
  border: 1px solid var(--color-border-2);
  border-bottom-width: 3px;
  border-radius: var(--radius);
  padding: 2px 8px;
  color: var(--color-text-strong);
}

pre {
  font-size: 12px;
  line-height: 20px;
  background: var(--color-navy-deep);
  color: #dfe3ea;
  padding: 20px;
  border-radius: var(--radius);
  overflow: auto;
  margin: 0 0 20px;
}

pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
}

/* ----------------------------------------------------- */
/* Forms — selects, checks, radios, multi-column          */
/* ----------------------------------------------------- */
select {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 13px 14px;
  font: inherit;
  color: var(--color-text-strong);
  background: #fff;
}

.form-grid input[type="checkbox"],
.form-grid input[type="radio"],
.contact-form input[type="checkbox"] {
  width: auto;
}

.form-grid label.radio,
.form-grid label:has(> input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  color: var(--color-text);
}

.form-span { grid-column: 1 / -1; }

.form-heading {
  grid-column: 1 / -1;
  text-align: left;
  color: var(--color-red);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}

.checkout-form,
.demo-form {
  grid-template-columns: 1fr 1fr;
}

.summary-list { list-style: none; }

.summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--color-border);
}

.order-summary {
  position: sticky;
  top: 90px;
}

.btn[disabled],
.btn-small[disabled],
.btn-large[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Contact page */
.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: var(--color-text-strong);
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 13px 14px;
  font: inherit;
  color: var(--color-text-strong);
  background: #fff;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form .btn,
.contact-form .btn-large {
  justify-self: start;
}

.contact-aside {
  background: var(--color-bg-soft-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 30px 32px;
}

.contact-aside h4 {
  text-align: left;
  color: var(--color-red);
  padding-bottom: 10px;
}

.contact-aside p { margin-bottom: 18px; }
.contact-aside .social-2 { margin-top: 24px; }

/* ----------------------------------------------------- */
/* Simple footer (panel-footer variant)                   */
/* ----------------------------------------------------- */
.footer-grid h4 {
  color: #fff;
  text-align: left;
  padding-top: 5px;
  padding-bottom: 16px;
}

.panel-footer a { color: #b9bec8; }
.panel-footer a:hover { color: #fff; }

.social-3 {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-3 a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #fff;
  font-size: 16px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  transition: background 0.3s;
}

.social-3 a:hover { background: var(--color-red); color: #fff; }

.footer-posts { list-style: none; }

.footer-posts li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-posts li:last-child { border-bottom: 0; }
.footer-posts span { font-size: 12px; color: #8c93a3; white-space: nowrap; }

.footer-tweets { list-style: none; }

.footer-tweets li {
  position: relative;
  padding-left: 46px;
  margin-bottom: 16px;
  color: #b9bec8;
}

.footer-tweets li:last-child { margin-bottom: 0; }

.footer-tweets i {
  position: absolute;
  top: 2px;
  left: 0;
  color: #fff;
  font-size: 15px;
  width: 34px;
  height: 34px;
  line-height: 32px;
  text-align: center;
  border: 1px solid #3b3f4a;
  border-radius: var(--radius);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 10px;
  padding-top: 18px;
}

.footer-bottom p { margin: 0; color: #b9bec8; }

.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #fff;
  font-size: 16px;
  background: var(--color-red);
  border-radius: var(--radius);
  transition: background 0.3s;
}

.back-to-top:hover { background: var(--color-red-hover); color: #fff; }

/* ----------------------------------------------------- */
/* Pagination                                             */
/* ----------------------------------------------------- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 36px;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  color: var(--color-text-muted);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: color 0.25s, background 0.25s, border-color 0.25s;
}

.page-link:hover {
  color: #fff;
  background: var(--color-cyan);
  border-color: var(--color-cyan);
}

.page-link.active,
.page-link.active:hover {
  color: #fff;
  background: var(--color-red);
  border-color: var(--color-red);
}

/* ----------------------------------------------------- */
/* Blog                                                   */
/* ----------------------------------------------------- */
.article-card {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.article-body {
  padding: 24px 28px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.article-body .btn-small { margin-top: auto; }

.article-body h4 { padding-bottom: 10px; }
.article-body > p { margin-bottom: 16px; }

.blog-detail {
  max-width: 820px;
  margin: 0 auto;
}

.article-head {
  text-align: center;
  padding-bottom: 30px;
}

.article-head h2 { padding-bottom: 12px; }

.article-figure { margin: 0 0 30px; }
.article-figure img { border-radius: var(--radius); }

.article-figure figcaption {
  font-size: 12px;
  color: var(--color-text-muted);
  padding-top: 10px;
  text-align: center;
}

.article-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
}

.share {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share span { color: var(--color-text-muted); margin-right: 4px; }

.share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: var(--grad-dark);
  border-radius: var(--radius);
  transition: background 0.3s;
}

.share a:hover { background: var(--color-red); color: #fff; }

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.big-quote {
  border-left: 0;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
  font-size: 24px;
  line-height: 36px;
  font-weight: 300;
  color: var(--color-text-strong);
}

.big-quote p { margin-bottom: 14px; }

.big-quote cite {
  font-size: 14px;
  font-style: normal;
  color: var(--color-text-muted);
}

/* Comments */
.comment-list {
  list-style: none;
  display: grid;
  gap: 20px;
  margin-bottom: 40px;
}

.comment {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  background: var(--color-bg-soft-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
}

.comment img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.comment h5 { text-align: left; padding-bottom: 8px; }
.comment h5 .meta { padding-left: 10px; }
.comment p { margin: 0; text-align: left; }

.comment-form {
  border-top: 1px solid var(--color-border);
  padding-top: 30px;
}

/* Typography page */
.type-block {
  padding: 18px 0 22px;
  border-bottom: 1px solid var(--color-border);
}

.type-block:last-child { border-bottom: 0; }

.type-block h1,
.type-block h2,
.type-block h3,
.type-block h4,
.type-block h5,
.type-block h6 {
  text-align: left;
  padding-bottom: 8px;
}

.type-block .meta { margin: 0; }

.prose {
  max-width: 820px;
  margin: 0 auto;
}

.prose h3 { text-align: left; padding-top: 14px; }

.prose ol {
  padding-left: 22px;
  margin: 0 0 20px;
}

.prose ol li { margin-bottom: 6px; }
.prose blockquote { margin: 24px 0; }

/* ----------------------------------------------------- */
/* Cart                                                   */
/* ----------------------------------------------------- */
.cart-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.cart-table input[type="number"] {
  width: 74px;
  padding: 10px 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font: inherit;
  color: var(--color-text-strong);
}

.cart-product {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cart-product img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius);
  flex: none;
}

.cart-product h5 { text-align: left; padding-bottom: 4px; }
.cart-product .meta { margin: 0; }

.cart-remove {
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: var(--radius);
  color: var(--color-text-muted);
  transition: color 0.3s, background 0.3s, border-color 0.3s;
}

.cart-remove:hover {
  color: #fff;
  background: var(--color-red);
  border-color: var(--color-red);
}

.cart-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

.cart-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
  align-items: start;
}

.coupon-card p { margin-bottom: 16px; }

.coupon-form {
  display: flex;
  gap: 10px;
}

.coupon-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 11px 12px;
  font: inherit;
  color: var(--color-text-strong);
}

.totals-list { list-style: none; }

.totals-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

.totals-list li:last-child { border-bottom: 0; }

.totals-line {
  border-top: 2px solid var(--color-navy);
  margin-top: 6px;
  padding-top: 14px;
  font-size: 15px;
  color: var(--color-text-strong);
}

.totals-line strong {
  color: var(--color-red);
  font-size: 18px;
}

.totals-card .btn { margin-top: 16px; }

/* ----------------------------------------------------- */
/* Product detail                                         */
/* ----------------------------------------------------- */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: start;
}

.product-gallery {
  display: grid;
  gap: 12px;
}

.product-main {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.product-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.product-thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 2px solid transparent;
  opacity: 0.65;
  cursor: pointer;
  transition: opacity 0.3s, border-color 0.3s;
}

.product-thumbs img:hover { opacity: 1; }

.product-thumbs img.active {
  border-color: var(--color-red);
  opacity: 1;
}

.product-info h2 { text-align: left; }

.rating {
  color: var(--color-red);
  font-size: 15px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.rating span {
  color: var(--color-text-muted);
  font-size: 12px;
  letter-spacing: 0;
  margin-left: 6px;
}

.product-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
  margin: 24px 0;
}

/* Keep action buttons in the product form the same height */
.product-form .btn,
.product-form .btn-small {
  height: 46px;
}

.product-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  color: var(--color-text-strong);
}

.product-form input[type="number"] {
  width: 90px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 12px 14px;
  font: inherit;
  color: var(--color-text-strong);
}

.review-list { list-style: none; }

.review-list li {
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
}

.review-list li:last-child { border-bottom: 0; }
.review-list .meta { margin: 0; }
.review-list p { margin: 8px 0 0; text-align: left; }

/* ----------------------------------------------------- */
/* Project detail                                         */
/* ----------------------------------------------------- */
.project-hero img {
  width: 100%;
  border-radius: var(--radius);
}

.project-meta-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: start;
  margin-top: 34px;
}

.project-summary h2 {
  text-align: left;
  padding-bottom: 10px;
}

.project-facts strong {
  display: inline-block;
  min-width: 86px;
  color: var(--color-text-strong);
}

.project-facts .btn-small { margin-top: 18px; }

.project-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

/* ----------------------------------------------------- */
/* Timeline                                               */
/* ----------------------------------------------------- */
.timeline {
  list-style: none;
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 4px;
}

.timeline li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px dashed var(--color-border);
}

.timeline li:last-child { border-bottom: 0; }

.timeline .year,
.timeline .when {
  color: var(--color-red);
  font-weight: 700;
  font-size: 15px;
  line-height: 20px;
}

.timeline h5 { text-align: left; padding-bottom: 6px; }
.timeline p { margin: 0; text-align: left; }

/* ----------------------------------------------------- */
/* Search                                                 */
/* ----------------------------------------------------- */
.search-form-large {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto 18px;
}

.search-form-large input {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font: inherit;
  color: var(--color-text-strong);
  background: #fff;
}

.search-meta { text-align: center; }

.search-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.search-result {
  background: var(--color-bg-soft-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.search-result h4 { text-align: left; padding-bottom: 6px; }
.search-result p { margin-bottom: 12px; }

.result-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-red);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.result-more:hover { color: var(--color-red-hover); }

@media (max-width: 768px) {
  .search-results { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------- */
/* Grid system demo                                       */
/* ----------------------------------------------------- */
.grid-demo {
  display: grid;
  gap: 12px;
}

.row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.col-12 { grid-column: span 12; }
.col-8 { grid-column: span 8; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }
.col-3 { grid-column: span 3; }

.grid-demo [class*="col-"] {
  background: var(--color-navy);
  color: #fff;
  text-align: center;
  padding: 18px 10px;
  border-radius: var(--radius);
  font-size: 12px;
  letter-spacing: 1px;
}

.box h4 { text-align: left; padding-bottom: 10px; }
.box h4 i { margin-right: 8px; color: var(--color-red); }

/* ----------------------------------------------------- */
/* Components page                                        */
/* ----------------------------------------------------- */
.progress {
  height: 38px;
  background: #f0f0f0;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: var(--radius);
}

.progress-bar {
  height: 100%;
  width: 0;
  color: #fff;
  background: var(--color-red);
  font-size: 14px;
  display: flex;
  align-items: center;
  padding-left: 20px;
  transition: width 1.4s ease;
}

.progress .progress-bar.bc-2 { background: var(--color-navy); }
.progress .progress-bar.bc-3 { background: var(--color-red); }

.accordion {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
}

.accordion details { border-bottom: 1px solid var(--color-border); }
.accordion details:last-child { border-bottom: 0; }

.accordion summary {
  position: relative;
  padding: 16px 48px 16px 20px;
  font-weight: 600;
  color: var(--color-text-strong);
  cursor: pointer;
  list-style: none;
}

.accordion summary::-webkit-details-marker { display: none; }

.accordion summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-red);
  font-size: 18px;
  line-height: 1;
}

.accordion details[open] summary::after { content: "–"; }
.accordion details[open] summary { color: var(--color-red); }

.accordion details p {
  padding: 0 20px 18px;
  margin: 0;
}

.tag-success { background: #598157; }
.tag-info { background: #54cde7; }
.tag-warning { background: #e2a03f; }

.tag-success:hover { background: #4a6f48; }
.tag-info:hover { background: #3fbcd4; }
.tag-warning:hover { background: #c98d33; }

.alert-warning {
  color: #8a5a1e;
  background: #fbd9a0;
}

/* ----------------------------------------------------- */
/* Home variant touches                                   */
/* ----------------------------------------------------- */
.counter-grid > article,
.counter-grid > .counter {
  min-height: 150px;
  display: grid;
  align-content: center;
  justify-items: center;
  background: rgba(255,255,255,0.05);
  padding: 30px 20px;
  text-align: center;
}

.counter .ico,
.counter-grid .counter i {
  font-size: 22px;
  color: var(--color-red);
  padding-bottom: 12px;
}

/* Service cards without a photo — icon straddles the card's top edge */
.service-content:first-child {
  padding-top: 72px;
}

.service-content:first-child i {
  top: -40px;
  margin-top: 0;
}

.brands:has(h3) {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.brands h3 {
  color: #fff;
  text-align: left;
  padding-bottom: 8px;
}

.brands p {
  color: #d4d7de;
  margin: 0;
  text-align: left;
}

.role {
  color: var(--color-red);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: -8px 0 10px;
}

.price span {
  font-size: 14px;
  color: var(--color-text-muted);
  font-weight: 400;
  margin-left: 4px;
}

/* Full-width bands inside page-main keep the standard section rhythm */
.page-main .parallax,
.page-main .promo-area {
  margin-top: 0;
}

.parallax h2 {
  color: #fff;
  padding-bottom: 14px;
}

.parallax .btn { margin-top: 10px; }

.outcome-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 720px;
  margin: 6px auto 26px;
}

.outcome-stats strong {
  display: block;
  font-size: 40px;
  line-height: 1;
  font-weight: 600;
  color: #fff;
  padding-bottom: 8px;
}

.outcome-stats span {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #d8e2f5;
}

@media (max-width: 640px) {
  .outcome-stats { grid-template-columns: 1fr; gap: 24px; }
}

.projects-grid + .center,
.shop-grid + .center,
.portfolio-grid + .center {
  margin-top: 30px;
}

/* ----------------------------------------------------- */
/* Responsive for subpage modules                         */
/* ----------------------------------------------------- */
@media (max-width: 768px) {
  .checkout-form,
  .demo-form,
  .product-detail-grid,
  .project-meta-grid,
  .cart-summary-grid,
  .search-form-large { grid-template-columns: 1fr; }

  .order-summary { position: static; }

  .footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 640px) {
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .comment { grid-template-columns: 1fr; }
  .comment img { width: 56px; height: 56px; }
  .big-quote { padding: 0 10px; font-size: 20px; line-height: 30px; }
}
