/* Header / Navbar */
.sf-header .navbar {
    min-height: 64px;
}

.sf-logo {
    place-items: center;

    border-radius: 10px;
}

.navbar .nav-link {
    font-weight: 500;
    padding: .6rem 1rem;
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
    color: #0d6efd;
}

/* shrink on scroll (added via JS) */
.sf-header.shrink .navbar {
    backdrop-filter: saturate(140%) blur(6px);
    background: rgba(255, 255, 255, .9) !important;
    transition: all .25s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
}


/* Hero Slider */
.sf-hero,
.sf-hero .carousel,
.sf-hero .carousel-inner,
.sf-hero .carousel-item {
    height: min(92vh, 760px);
}

.sf-slide {
    position: relative;
    background: linear-gradient(135deg, #0b0f15, #222a35);
    background-size: cover;
    background-position: center;
}

.sf-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .55));
}

.sf-hero h1,
.sf-hero h2 {
    text-shadow: 0 4px 30px rgba(0, 0, 0, .4);
}

.sf-hero .btn {
    border-radius: 999px;
    padding: .7rem 1.4rem;
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 100%;
}

/* ===== Flooring Solutions Section ===== */
.sf-solutions {
    padding: 60px 0 80px;
    background: #f7f7f7;
    /* fallback */
    overflow: hidden;
}

.sf-solutions__bg {
    position: absolute;
    inset: 0;
    background: url("../images/solutions-bg.jpg") center/cover no-repeat fixed;
    filter: grayscale(100%);
    opacity: .35;
}

.sf-solutions>.container {
    position: relative;
    z-index: 2;
}

.sf-solutions__title {
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #2b2b2b;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .25);
}

/* Grid: 2 columns, 2 rows */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
}

/* Each item: image + dark card */
.solution {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.solution-media {
    height: 340px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .15);
}

.solution-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.solution-card {
    background: #3a3a3a;
    color: #dcdcdc;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
}

.solution-card h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 12px;
}

.solution-card p {
    font-size: 14.5px;
    line-height: 1.75;
    margin: 0;
}

.solution-card .btn {
    align-self: flex-start;
    margin-top: 18px;
    border: 1px solid #e5e5e5;
    color: #fff;
    border-radius: 4px;
    padding: .35rem .85rem;
    text-transform: lowercase;
}

.solution-card .btn:hover {
    background: #fff;
    color: #000;
}

/* Responsive */
@media (max-width: 1200px) {
    .solution {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 992px) {
    .solutions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .solution {
        grid-template-columns: 1fr;
    }

    .solution-media {
        height: 230px;
    }

    .sf-solutions {
        padding: 48px 0 64px;
    }
}

/* ---------- Title + lead ---------- */
.sf-sectors .sf-brand { height: 40px; }
.sf-sectors .sf-title{
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.sf-sectors .sf-underline{
  width: 70px; height: 3px; background:#111; border-radius: 3px;
}

/* ================== Tiles Grid (Fixed) ================== */
/* Tile wrapper */
.sector-tile{
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;             /* keep 16:9 like the mock */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0,0,0,.12);
    isolation: isolate;
    background: #000;                  /* avoids white edges while image loads */
    transition: box-shadow .25s ease, transform .12s ease;
  }
  
  /* BACKGROUND IMAGE — only the main photo, NOT the mark */
  .sector-tile > img:not(.sector-mark){
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform-origin: center;
    transition: transform .6s ease, filter .3s ease;
  }
  
  /* Dark overlay */
  .sector-overlay{
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.48));
    z-index: 1;
    transition: opacity .25s ease;
  }
  
  /* BRAND MARK (logo) — small, responsive, never stretched */
  .sector-mark{
    position: absolute;
    z-index: 2;
    top: 16px;
    left: 16px;
    width: clamp(28px, 6vw, 52px);     /* responsive width */
    height: auto;                      /* keep aspect */
    object-fit: contain;
    pointer-events: none;              /* clicks pass through */
    filter: drop-shadow(0 4px 16px rgba(0,0,0,.35));
  }
  
  /* Caption centered */
  .sector-caption{
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    padding: 0 16px;
    text-align: center;
    color: #fff;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-shadow: 0 8px 24px rgba(0,0,0,.45);
  }
  
  /* Hover / Focus effects (only the photo scales) */
  .sector-tile:hover > img:not(.sector-mark),
  .sector-tile:focus-visible > img:not(.sector-mark){
    transform: scale(1.05);
  }
  .sector-tile:hover .sector-overlay,
  .sector-tile:focus-visible .sector-overlay{
    opacity: .28;
  }
  .sector-tile:hover,
  .sector-tile:focus-visible{
    box-shadow: 0 16px 36px rgba(0,0,0,.18);
    outline: none;
  }
  
  /* Active tap feedback */
  .sector-tile:active { transform: translateY(1px); }
  
  /* Accessibility: users who prefer reduced motion */
  @media (prefers-reduced-motion: reduce){
    .sector-tile > img:not(.sector-mark){ transition: none; }
    .sector-tile:hover > img:not(.sector-mark){ transform: none; }
  }
  
  /* ---------- Responsive tweaks ---------- */
  @media (max-width: 575.98px){
    .sector-mark{ left: 12px; top: 12px; width: 36px; }
    .sector-caption{ font-size: .9rem; letter-spacing: .08em; }
  }
  

  /* contact line */
.sf-contact .sf-contact-item{
    color:#6c757d; text-decoration:none;
  }
  .sf-contact .sf-contact-item:hover{ color:#0d6efd; }
  
  /* developer credit pill */
  .sf-credit{
    display:inline-flex; align-items:center; gap:.35rem;
    margin-top:.25rem;
    padding:.35rem .7rem;
    border-radius:999px;
    background:#111; color:#fff; font-size:.85rem;
    box-shadow:0 6px 18px rgba(0,0,0,.15);
  }
  .sf-credit-link{
    color:#fff; font-weight:600; text-decoration:none; margin-left:.25rem;
    border-bottom:1px dashed rgba(255,255,255,.45);
  }
  .sf-credit-link:hover{ color:#0d6efd; border-bottom-color:transparent; }
  
  /* (اختیاری) کمی کوچک‌تر شدن در موبایل */
  @media (max-width:576px){
    .sf-credit{ font-size:.8rem; padding:.3rem .6rem; }
  }
/* ===== Footer ===== */
.sf-footer-top{
    background: #f3f3f3; /* روشن مثل عکس */
  }
  .sf-footer-logo{
    height: 42px; /* طبق اسکرین‌شات باریک */
  }
  
  .sf-social{ gap: .35rem; }
  .sf-social-link{
    display: inline-grid; place-items: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: #fff; color: #222;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 4px 14px rgba(0,0,0,.06);
    transition: transform .15s ease, color .15s ease, background .15s ease;
  }
  .sf-social-link:hover{
    transform: translateY(-1px);
    background: #0d6efd; color: #fff;
  }
  
  .sf-footer-bottom{
    background: #3c3c3c; color: #e9e9e9;
  }
  
  /* WhatsApp FAB */
  .sf-whatsapp{
    position: fixed; right: 18px; bottom: 18px; z-index: 1055;
    width: 54px; height: 54px; border-radius: 50%;
    display: grid; place-items: center;
    background: #25D366; color: #fff;
    box-shadow: 0 10px 24px rgba(0,0,0,.22);
    text-decoration: none; font-size: 24px;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  }
  .sf-whatsapp:hover{
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0,0,0,.28);
    background: #22c35e;
  }
  
  /* Small screens */
  @media (max-width: 576px){
    .sf-footer-logo{ height: 36px; }
    .sf-social-link{ width: 34px; height: 34px; }
  }
    

  /* Hide honeypot field */
.hp-input{
    position: absolute !important;
    left: -10000px !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    pointer-events: none !important;
  }
  