/* =========================================================
   Tria — Frontend Design System
   Premium finishing & construction corporate site
   ========================================================= */

:root {
  --brand-navy: #10192b;
  --brand-navy-2: #182338;
  --brand-gold: #c9a227;
  --brand-gold-light: #e2c465;
  --brand-ivory: #f7f5f0;
  --brand-gray: #6b7280;
  --brand-border: #e7e4dc;
  --font-ar: 'Tajawal', sans-serif;
  --font-en: 'Plus Jakarta Sans', sans-serif;
  --radius: 14px;
  --shadow-soft: 0 10px 40px rgba(16, 25, 43, .08);
  --shadow-strong: 0 20px 60px rgba(16, 25, 43, .18);
}

html[dir="rtl"] body { font-family: var(--font-ar); }
html[dir="ltr"] body { font-family: var(--font-en); }

body {
  color: var(--brand-navy);
  background: #fff;
  overflow-x: hidden;
}

a { text-decoration: none; }

.text-gold { color: var(--brand-gold) !important; }
.bg-navy { background-color: var(--brand-navy) !important; }
.bg-ivory { background-color: var(--brand-ivory) !important; }

.btn-gold {
  background: linear-gradient(135deg, var(--brand-gold-light), var(--brand-gold));
  border: none;
  color: var(--brand-navy);
  font-weight: 600;
  padding: .75rem 1.75rem;
  border-radius: 50px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(201, 162, 39, .35);
  color: var(--brand-navy);
}

.btn-outline-navy {
  border: 1.5px solid var(--brand-navy);
  color: var(--brand-navy);
  font-weight: 600;
  padding: .7rem 1.6rem;
  border-radius: 50px;
  transition: all .25s ease;
  background: transparent;
}
.btn-outline-navy:hover {
  background: var(--brand-navy);
  color: #fff;
}

/* ===== Navbar ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(16, 25, 43, .96);
  backdrop-filter: blur(6px);
  transition: all .3s ease;
}
.site-header .navbar-brand img { height: 80px; }
.site-header .nav-link {
  color: rgba(255,255,255,.85) !important;
  font-weight: 500;
  padding: .5rem 1rem !important;
  position: relative;
}
.site-header .nav-link:hover,
.site-header .nav-link.active { color: var(--brand-gold-light) !important; }
.topbar {
  background: var(--brand-navy-2);
  color: rgba(255,255,255,.75);
  font-size: .85rem;
}
.topbar a { color: rgba(255,255,255,.75); }
.topbar a:hover { color: var(--brand-gold-light); }
.lang-switch a {
  color: rgba(255,255,255,.75);
  font-weight: 600;
  padding: 0 .35rem;
}
.lang-switch a.active { color: var(--brand-gold-light); }

/* ===== Hero Slider ===== */
.hero-slider { position: relative; }
.hero-slide {
  height: 88vh;
  min-height: 560px;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16,25,43,.55) 0%, rgba(16,25,43,.75) 100%);
  pointer-events: none;
}
.hero-slide .hero-content { position: relative; z-index: 2; color: #fff; }
.hero-slide .hero-content .eyebrow {
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brand-gold-light);
  font-weight: 600;
  font-size: .85rem;
}
.hero-slide .hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.2;
}
.hero-slider .swiper-pagination-bullet { background: #fff; opacity: .5; }
.hero-slider .swiper-pagination-bullet-active { background: var(--brand-gold); opacity: 1; }
.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev { color: #fff; }

/* ===== Section heading ===== */
.section-heading .eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--brand-gold);
  font-weight: 700;
  font-size: .85rem;
}
.section-heading h2 {
  font-weight: 800;
  color: var(--brand-navy);
}
.section-heading p { color: var(--brand-gray); }

/* ===== Counters / Overview ===== */
.counter-box { text-align: center; }
.counter-box .num {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--brand-navy);
}
.counter-box .label { color: var(--brand-gray); font-weight: 500; }

/* ===== Category cards ===== */
.category-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 320px;
  display: block;
  box-shadow: var(--shadow-soft);
}
.category-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.category-card:hover img { transform: scale(1.08); }
.category-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,25,43,.05) 30%, rgba(16,25,43,.9) 100%);
}
.category-card .cat-body {
  position: absolute; bottom: 0; inset-inline: 0;
  z-index: 2; padding: 1.5rem; color: #fff;
}
.category-card .cat-body i {
  font-size: 1.75rem; color: var(--brand-gold-light);
}
.category-card .cat-body h5 { font-weight: 700; margin: .5rem 0 0; }
.category-card .cat-body small { color: rgba(255,255,255,.7); }
.category-card.no-image {
  background: var(--brand-navy);
  display: flex; align-items: center; justify-content: center;
}

/* ===== Project cards ===== */
.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: #fff;
  transition: transform .3s ease, box-shadow .3s ease;
  height: 100%;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-strong); }
.project-card .thumb { position: relative; overflow: hidden; height: 240px; }
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-card:hover .thumb img { transform: scale(1.06); }
.project-card .badge-featured {
  position: absolute; top: 1rem; inset-inline-start: 1rem;
  background: var(--brand-gold); color: var(--brand-navy);
  font-weight: 700; z-index: 2;
}
.project-card .cat-tag {
  position: absolute; bottom: 1rem; inset-inline-start: 1rem;
  background: rgba(16,25,43,.8); color: #fff;
  font-size: .75rem; padding: .3rem .8rem; border-radius: 50px; z-index: 2;
}
.project-card .body { padding: 1.4rem; }
.project-card .body h5 { font-weight: 700; margin-bottom: .4rem; }
.project-card .body .meta { color: var(--brand-gray); font-size: .875rem; }

/* ===== Testimonials ===== */
.testimonial-card {
  background: var(--brand-ivory);
  border-radius: var(--radius);
  padding: 2rem;
  height: 100%;
  border: 1px solid var(--brand-border);
}
.testimonial-card .stars { color: var(--brand-gold); }
.testimonial-card .avatar {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
}
.testimonial-card blockquote { color: var(--brand-navy); font-size: 1rem; }

/* ===== Partners ===== */
.partner-logo {
  display: flex; align-items: center; justify-content: center;
  height: 110px; padding: 1rem;
  filter: grayscale(1); opacity: .7;
  transition: all .3s ease;
}
.partner-logo:hover { filter: grayscale(0); opacity: 1; }
.partner-logo img { max-height: 60px; max-width: 100%; object-fit: contain; }

/* ===== Cost Calculator ===== */
.calculator-panel {
  background: var(--brand-navy);
  border-radius: 24px;
  color: #fff;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}
.calculator-panel::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at top left, rgba(201,162,39,.18), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.calculator-panel > .row {
  position: relative;
  z-index: 1;
}
.calculator-panel label { color: rgba(255,255,255,.75); font-weight: 500; }
.calculator-panel .form-select,
.calculator-panel .form-control {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  padding: .75rem 1rem;
  border-radius: 10px;
}
.calculator-panel .form-select:focus,
.calculator-panel .form-control:focus {
  background: rgba(255,255,255,.12);
  border-color: var(--brand-gold);
  box-shadow: none;
  color: #fff;
}
.calculator-panel .form-select option { color: #10192b; }
.calc-result {
  background: rgba(255,255,255,.06);
  border: 1px dashed rgba(201,162,39,.5);
  border-radius: 16px;
  padding: 1.5rem;
}
.calc-result .total {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--brand-gold-light);
}
.calc-result .row-line {
  display: flex; justify-content: space-between;
  padding: .35rem 0;
  color: rgba(255,255,255,.8);
  border-bottom: 1px dashed rgba(255,255,255,.12);
}

/* ===== Blog ===== */
.blog-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); height: 100%; }
.blog-card .thumb { height: 220px; overflow: hidden; }
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.blog-card:hover .thumb img { transform: scale(1.06); }
.blog-card .body { padding: 1.4rem; }
.blog-card .meta { color: var(--brand-gray); font-size: .8rem; }
.blog-card h5 { font-weight: 700; }
.blog-card h5 a { color: var(--brand-navy); }
.blog-card h5 a:hover { color: var(--brand-gold); }

/* ===== Page header / breadcrumb ===== */
.page-header {
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-2));
  padding: 6rem 0 3.5rem;
  color: #fff;
  position: relative;
}
.page-header h1 { font-weight: 800; }
.breadcrumb-nav a { color: rgba(255,255,255,.7); }
.breadcrumb-nav a:hover { color: var(--brand-gold-light); }
.breadcrumb-nav .active { color: var(--brand-gold-light); }

/* ===== FAQ Accordion ===== */
.faq-accordion .accordion-item {
  border: 1px solid var(--brand-border);
  border-radius: var(--radius) !important;
  overflow: hidden;
  margin-bottom: 1rem;
}
.faq-accordion .accordion-button {
  font-weight: 700;
  color: var(--brand-navy);
  background: #fff;
  padding: 1.25rem 1.5rem;
}
.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--brand-navy);
  background: var(--brand-ivory);
  box-shadow: none;
}
.faq-accordion .accordion-button:focus {
  box-shadow: 0 0 0 .2rem rgba(201,162,39,.15);
  border-color: var(--brand-gold);
}
.faq-accordion .accordion-button::after {
  filter: sepia(1) saturate(4) hue-rotate(0deg);
}
.faq-accordion .accordion-body {
  color: var(--brand-gray);
  padding: 1.25rem 1.5rem 1.5rem;
}

/* ===== Contact CTA ===== */
.cta-band {
  background: var(--brand-navy);
  border-radius: 24px;
  color: #fff;
  padding: 3.5rem;
}

/* ===== Footer ===== */
.site-footer { background: var(--brand-navy); color: rgba(255,255,255,.75); }
.site-footer h5 { color: #fff; font-weight: 700; }
.site-footer a { color: rgba(255,255,255,.65); }
.site-footer a:hover { color: var(--brand-gold-light); }
.site-footer .social-icons a {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08);
  margin-inline-end: .5rem;
}
.site-footer .social-icons a:hover { background: var(--brand-gold); color: var(--brand-navy); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.25rem 0;
  font-size: .875rem;
}

/* ===== Floating buttons ===== */
.whatsapp-float {
  position: fixed; bottom: 24px; inset-inline-end: 24px;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; z-index: 1050;
  box-shadow: 0 8px 24px rgba(37,211,102,.4);
}
.btn-scroll-top {
  position: fixed; bottom: 24px; inset-inline-start: 24px;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--brand-navy); color: #fff; border: none;
  display: none; align-items: center; justify-content: center;
  z-index: 1050; box-shadow: var(--shadow-soft);
}
.btn-scroll-top.show { display: flex; }

/* ===== Gallery ===== */
.gallery-thumb { border-radius: 10px; overflow: hidden; display: block; position: relative; }
.gallery-thumb img { width: 100%; height: 180px; object-fit: cover; transition: transform .4s ease; }
.gallery-thumb:hover img { transform: scale(1.08); }

/* ===== Forms ===== */
.form-control, .form-select {
  border-radius: 10px;
  padding: .7rem 1rem;
  border: 1px solid var(--brand-border);
}
.form-control:focus, .form-select:focus {
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 .2rem rgba(201,162,39,.15);
}

@media (max-width: 767px) {
  .hero-slide { height: 70vh; }
  .calculator-panel, .cta-band { padding: 2rem 1.25rem; }
}
