/* ═══════════════════════════════════════════════
   TSAS — Tricity Silicon and Aluminium Services
   style.css
   Color theme: Deep Navy + Burnt Orange accent
   (inspired by Safex industrial theme)
═══════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --accent:       #e87722;   /* burnt orange */
  --accent-dark:  #c4621a;
  --accent-light: #f4a459;
  --dark:         #062b89;   /* deep navy-black */
  --dark-mid:     #062b89;
  --dark-soft:    #243040;
  --text-muted:   #8a9ab0;
}

/* ── Base ── */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: #1e2a38;
  line-height: 1.6;
}

/* Custom colour classes surfaced in HTML */
.text-accent       { color: var(--accent); }
.text-accent-light { color: var(--accent-light); }
.bg-dark            { background-color: var(--dark); }
.bg-accent          { background-color: var(--accent); }

/* ════════════════════════════════
   NAVBAR
════════════════════════════════ */
#navbar {
  background: transparent;
}

#navbar > div {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

#navbar.scrolled {
  background: var(--dark);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
  padding-top: 0;
  padding-bottom: 0;
}

#navbar.scrolled > div {
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

#logo-img {
  transition: height 0.3s;
}

#navbar.scrolled #logo-img {
  height: 52px;
}

.nav-link {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  position: relative;
  transition: color 0.25s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}

.nav-link:hover { color: var(--accent-light); }
.nav-link:hover::after { width: 100%; }

.mobile-nav-link {
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: block;
  transition: color 0.2s;
}

.mobile-nav-link:hover { color: var(--accent-light); }

/* ════════════════════════════════
   BUTTONS
════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 1.6rem;
  border-radius: 6px;
  text-decoration: none;
  border: 2px solid var(--accent);
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,119,34,0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 1.6rem;
  border-radius: 6px;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.5);
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
}

.btn-outline:hover {
  border-color: var(--accent-light);
  background: rgba(232,119,34,0.12);
  transform: translateY(-2px);
}

/* ════════════════════════════════
   HERO
════════════════════════════════ */
.hero-bg {
  background:
    linear-gradient(135deg, var(--dark) 0%, var(--dark-mid) 50%, #1e3050 100%);
  
}

.hero-overlay {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='1' cy='1' r='1' fill='rgba(232,119,34,0.06)'/%3E%3C/svg%3E");
  background-image:url("Images/Hero-image.jpg") ;
  opacity: 10%;
}

.hero-content { animation: fadeInUp 0.8s ease both; }

.stat-card {
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--accent);
  padding-left: 0.75rem;
}
.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-light);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-visual-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  width: 340px;
  animation: fadeInRight 0.9s ease both;
}

.hero-icon-ring {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(232,119,34,0.15);
  border: 2px solid rgba(232,119,34,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  animation: spin-slow 12s linear infinite;
}

.feature-pill {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
}

/* ════════════════════════════════
   SECTION COMMON
════════════════════════════════ */
.section-header { text-align: center; }

.section-tag {
  display: inline-block;
  background: rgba(232,119,34,0.1);
  color: var(--accent);
  border: 1px solid rgba(232,119,34,0.3);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #0f1923;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtitle {
  max-width: 600px;
  margin: 0 auto;
  color: #5a6e84;
  font-size: 1rem;
  line-height: 1.7;
}

/* ════════════════════════════════
   SERVICE CARDS
════════════════════════════════ */
.service-card {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(15,25,35,0.12);
  border-color: rgba(232,119,34,0.25);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: rgba(232,119,34,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  color: var(--accent);
  margin-bottom: 1.2rem;
  transition: background 0.3s, color 0.3s;
}

.service-card:hover .service-icon-wrap {
  background: var(--accent);
  color: #fff;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f1923;
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.9rem;
  color: #5a6e84;
  line-height: 1.65;
  margin-bottom: 1.2rem;
}

.service-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.service-link:hover { gap: 8px; }

/* ════════════════════════════════
   PRODUCTS
════════════════════════════════ */
.filter-btn {
  padding: 0.45rem 1.2rem;
  border-radius: 25px;
  border: 2px solid #dde3eb;
  background: transparent;
  color: #4a5e72;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}

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

.product-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e8edf3;
  background: #fff;
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(15,25,35,0.12);
}

.product-card.hidden { display: none; }

.product-img-wrap {
  position: relative;
  background: #f4f7fa;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #8a9ab0;
}

/* Themed placeholder backgrounds */
.product-img-bg-silicone  { background: linear-gradient(135deg, #fff7f0 0%, #fde8d4 100%); }
.product-img-bg-pu        { background: linear-gradient(135deg, #fff8ed 0%, #fde3b8 100%); }
.product-img-bg-aluminium { background: linear-gradient(135deg, #eef3ff 0%, #d0dcf8 100%); }
.product-img-bg-tape      { background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%); }
.product-img-bg-tape-brown{ background: linear-gradient(135deg, #fdf3ea 0%, #e8c9a0 100%); }
.product-img-bg-tape-grey { background: linear-gradient(135deg, #f0f0f0 0%, #c8c8c8 100%); }
.product-img-bg-glass     { background: linear-gradient(135deg, #eef6ff 0%, #bdd9f7 100%); }
.product-img-bg-acp       { background: linear-gradient(135deg, #fff4ec 0%, #fdd3ae 100%); }
.product-img-bg-wpc       { background: linear-gradient(135deg, #fdf6ee 0%, #d9b889 100%); }
.product-img-bg-upvc      { background: linear-gradient(135deg, #f0f4ff 0%, #c5d3f5 100%); }

/* Icon-only placeholder for products without images */
.product-img-icon {
  width: 100%;
  height: 100%;
  flex-direction: column;
  gap: 0.4rem;
}

.product-img-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* Actual product images */
.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-body {
  padding: 1.4rem;
}

.product-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f1923;
  margin-bottom: 0.5rem;
}

.product-body p {
  font-size: 0.85rem;
  color: #5a6e84;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #edf0f4;
  padding-top: 0.8rem;
}

.product-spec {
  font-size: 0.78rem;
  color: #8a9ab0;
}

.product-cta {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  padding: 4px 12px;
  border: 1.5px solid var(--accent);
  border-radius: 20px;
  transition: background 0.2s, color 0.2s;
}

.product-cta:hover {
  background: var(--accent);
  color: #fff;
}

/* ════════════════════════════════
   WHY US BANNER
════════════════════════════════ */
.why-us-bg {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-soft) 100%);
}
.why-us-overlay {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Crect x='0' y='0' width='1' height='80' fill='rgba(255,255,255,0.02)'/%3E%3C/svg%3E") repeat;
}

.why-card {
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(4px);
  transition: transform 0.3s, background 0.3s;
}
.why-card:hover {
  transform: translateY(-4px);
  background: rgba(232,119,34,0.08);
}

/* ════════════════════════════════
   TESTIMONIALS
════════════════════════════════ */
.testimonial-card {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 20px;
  padding: 2rem;
  transition: box-shadow 0.3s;
}

.testimonial-card:hover {
  box-shadow: 0 16px 40px rgba(15,25,35,0.1);
}

.stars i {
  color: #f4a459;
  font-size: 0.9rem;
}

.testimonial-text {
  font-size: 0.93rem;
  color: #4a5e72;
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 1.4rem;
  position: relative;
}

.testimonial-text::before {
  content: '"';
  font-size: 4rem;
  color: rgba(232,119,34,0.1);
  font-family: Georgia, serif;
  line-height: 0;
  position: absolute;
  top: 1rem;
  left: -0.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
  color: #0f1923;
}

.testimonial-author span {
  font-size: 0.78rem;
  color: #8a9ab0;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #dde3eb;
  background: #fff;
  color: #4a5e72;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
}

.slider-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dde3eb;
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

/* ════════════════════════════════
   CONTACT
════════════════════════════════ */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(232,119,34,0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #2d3e4f;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid #dde3eb;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #1e2a38;
  background: #fff;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  font-family: 'Inter', sans-serif;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,119,34,0.12);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #e74c3c;
}

.error-msg {
  font-size: 0.78rem;
  color: #e74c3c;
  min-height: 1rem;
}

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: #8a9ab0;
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
  display: block;
}

.footer-links a:hover {
  color: var(--accent-light);
  padding-left: 4px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #8a9ab0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.social-icon:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ════════════════════════════════
   BACK TO TOP
════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 4px 20px rgba(232,119,34,0.4);
  z-index: 100;
}

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

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

/* ════════════════════════════════
   ANIMATIONS
════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Intersection-observer driven reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Logo fallback text colour when on a scrolled/dark navbar */
.logo-fallback-text { color: #fff; }

/* ════════════════════════════════
   RESPONSIVE TWEAKS
════════════════════════════════ */
@media (max-width: 640px) {
  .back-to-top { bottom: 1rem; right: 1rem; }
}
