/* ============================================
   Trinoxa Inc — Corporate Website Styles
   ============================================ */

:root {
  --primary: #8B5A3C;
  --primary-dark: #704831;
  --primary-light: #A67252;
  --accent: #C49A6C;
  --accent-light: #D4B08A;
  --dark: #1a1f2e;
  --dark-soft: #252b3b;
  --text: #4a5568;
  --text-light: #718096;
  --white: #ffffff;
  --light-bg: #f7f9fc;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--dark);
  line-height: 1.3;
}

a {
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.section-padding {
  padding: 100px 0;
}

.bg-light {
  background-color: var(--light-bg);
}

.bg-dark-section {
  background-color: var(--dark);
}

/* ---- Navigation ---- */
#mainNav {
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}

#mainNav.scrolled {
  background: rgba(26, 31, 46, 0.97);
  backdrop-filter: blur(10px);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white) !important;
}

.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--primary);
  border-radius: 8px;
  font-size: 1.1rem;
  color: var(--white);
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 16px !important;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--white) !important;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon {
  filter: invert(1);
}

.btn-nav {
  padding: 8px 24px !important;
  font-size: 0.9rem !important;
  border-radius: 50px;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  border-radius: 50px;
  padding: 12px 32px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: var(--transition);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 90, 60, 0.35);
}

.btn-outline-light {
  border-radius: 50px;
  padding: 12px 32px;
  font-weight: 600;
  border-width: 2px;
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--dark);
  transform: translateY(-2px);
}

/* ---- Hero ---- */
.hero-section {
  position: relative;
  min-height: 100vh;
  background: url('https://images.unsplash.com/photo-1572274407649-6cb883740677?w=1920&h=1080&fit=crop') center/cover no-repeat;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 31, 46, 0.88) 0%, rgba(139, 90, 60, 0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-subtitle {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: var(--white);
  margin-bottom: 24px;
  font-weight: 700;
}

.hero-desc {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---- Stats ---- */
.stats-section {
  background: var(--white);
  padding: 60px 0;
  margin-top: -60px;
  position: relative;
  z-index: 3;
}

.stats-section .container {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 48px 32px;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-number::after {
  content: '+';
  font-size: 1.6rem;
  color: var(--accent);
}

.stat-item:nth-child(4) .stat-number::after {
  content: '%';
}

.stat-label {
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0;
}

/* ---- Section Headers ---- */
.section-tag {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-tag.light {
  color: var(--accent);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 16px;
}

.section-desc {
  max-width: 640px;
  margin: 0 auto 48px;
  color: var(--text-light);
  font-size: 1.05rem;
}

.text-light-opacity {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* ---- Service Cards ---- */
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-img {
  overflow: hidden;
  height: 220px;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
  transform: scale(1.08);
}

.service-body {
  padding: 28px;
}

.service-body h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.service-body p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.service-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-link:hover {
  color: var(--primary-dark);
  gap: 10px;
}

/* ---- About Section ---- */
.about-section {
  background: var(--white);
}

.about-pill {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.about-heading {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  line-height: 1.35;
  margin-bottom: 20px;
  color: var(--dark);
}

.about-heading .text-accent {
  color: var(--accent);
}

.about-desc {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 520px;
}

.about-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 24px;
}

.about-feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.about-feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
}

.about-feature-item h5 {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.about-feature-item p {
  color: var(--text-light);
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
}

.about-image-wrapper {
  position: relative;
}

.about-image {
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.rating-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--white);
  border-radius: 14px;
  padding: 18px 24px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.rating-score {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.rating-stars {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin: 4px 0;
}

.rating-text {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ---- Why Choose Us ---- */
.why-us-section {
  background: var(--light-bg);
}

.why-us-desc {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 32px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  flex-shrink: 0;
  color: var(--primary);
  font-size: 1.3rem;
  margin-top: 2px;
}

.feature-item h5 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--dark);
}

.feature-item p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.7;
}

.why-us-image-wrapper {
  position: relative;
}

.why-us-image {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.why-us-badge {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 32px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.why-us-badge-score {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.why-us-badge-label {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
  margin-top: 4px;
}

/* ---- Gallery ---- */
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: var(--white);
  transform: translateY(8px);
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
  opacity: 1;
}

.gallery-caption h5 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 2px;
}

.gallery-caption p {
  font-size: 0.85rem;
  opacity: 0.8;
  margin: 0;
}

/* ---- Testimonials ---- */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  height: 100%;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.testimonial-stars {
  color: var(--accent);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-card blockquote {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
  border: none;
  padding: 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.testimonial-author h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  margin-bottom: 2px;
  font-size: 0.95rem;
}

.testimonial-author span {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ---- Contact ---- */
.contact-image-wrapper {
  height: 100%;
  min-height: 480px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.contact-image {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  display: block;
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  height: 100%;
}

.contact-form .form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
}

.contact-form .form-control,
.contact-form .form-select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.95rem;
  transition: var(--transition);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 90, 60, 0.15);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 320px;
}

.footer-heading {
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 40px 0 24px;
}

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
}

/* ---- Back to Top ---- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 4px 16px rgba(139, 90, 60, 0.4);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(26, 31, 46, 0.98);
    padding: 20px;
    border-radius: var(--radius);
    margin-top: 12px;
  }

  .section-padding {
    padding: 70px 0;
  }

  .stats-section {
    margin-top: -40px;
  }

  .stats-section .container {
    padding: 32px 20px;
  }

  .why-us-badge {
    left: 50%;
    transform: translateX(-50%);
    bottom: -20px;
  }

  .why-us-image {
    height: 320px;
  }

  .about-image {
    height: 320px;
  }

  .about-features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .rating-badge {
    top: 16px;
    right: 16px;
    padding: 14px 18px;
  }

  .contact-form {
    padding: 28px;
  }

  .contact-image-wrapper,
  .contact-image {
    min-height: 280px;
  }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .gallery-item img {
    height: 220px;
  }
}
