/* =========================================================
   ALWAAD COMPANY FOR INFORMATION TECHNOLOGY
   Design identity: maroon + steel-gray + copper.
   Techical/corporate. Sharp cards, index-numbered features,
   image-overlay category cards, dark maroon mission band.
   Fonts: Space Grotesk (display) + Inter (body).
   ========================================================= */

:root {
  --primary-color: #7A363C;   /* maroon (logo) */
  --primary-light: #96474E;
  --primary-dark:  #5C262C;
  --secondary-color: #5B5D61; /* steel gray (logo) */
  --secondary-light: #7E8085;
  --accent-color: #C0703F;    /* warm copper CTA highlight */
  --accent-dark:  #A3572B;
  --text-dark: #241F1F;
  --text-muted: #6E6864;
  --light-bg: #F6F2F0;        /* warm off-white */
  --line: #E7DEDA;
  --white: #FFFFFF;
  --font-head: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100%; }
body { font-family: var(--font-body); color: var(--text-dark); line-height: 1.75; background: var(--white); }
a { text-decoration: none; transition: all .25s ease; }
img { max-width: 100%; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-head); font-weight: 700; color: var(--primary-color); letter-spacing: -.5px; }

.section-padding { padding: 96px 0; }
@media (max-width: 767px){ .section-padding { padding: 60px 0; } }

.section-tag {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--accent-dark); font-family: var(--font-head);
  font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  font-size: .78rem; margin-bottom: 14px;
}
.section-tag::before { content:''; width: 28px; height: 2px; background: var(--accent-color); display:inline-block; }
.text-center .section-tag { justify-content: center; }

.section-title { font-size: 2.35rem; margin-bottom: 1rem; line-height: 1.15; }
@media (max-width: 767px){ .section-title { font-size: 1.7rem; } }
.bg-light-soft { background-color: var(--light-bg); }

/* ---------- Buttons ---------- */
.btn-brand {
  background: var(--primary-color); color: var(--white); border: none;
  font-family: var(--font-head); font-weight: 600; padding: 13px 32px;
  border-radius: 4px; letter-spacing: .3px;
}
.btn-brand:hover { background: var(--accent-color); color: var(--white); transform: translateY(-2px); }
.btn-brand-outline {
  background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.85);
  font-family: var(--font-head); font-weight: 600; padding: 11px 30px; border-radius: 4px;
}
.btn-brand-outline:hover { background: var(--white); color: var(--primary-color); }
.btn-brand-secondary {
  background: var(--accent-color); color: var(--white); border: none;
  font-family: var(--font-head); font-weight: 600; padding: 13px 32px; border-radius: 4px;
}
.btn-brand-secondary:hover { background: var(--accent-dark); color: var(--white); transform: translateY(-2px); }

/* ---------- Top bar ---------- */
.top-bar { background: var(--primary-dark); color: #EBDBD8; font-size: .84rem; padding: 9px 0; }
.top-bar a { color: #EBDBD8; }
.top-bar a:hover { color: var(--accent-color); }
.top-bar i { margin-right: 7px; color: var(--accent-color); }

/* ---------- Navbar ---------- */
.main-navbar { background: var(--white); padding: 14px 0; box-shadow: 0 1px 0 var(--line); transition: all .3s ease; }
.main-navbar.scrolled { padding: 9px 0; box-shadow: 0 6px 22px rgba(92,38,44,.10); }
.main-navbar .navbar-brand img { height: 52px; }
.main-navbar .nav-link {
  font-family: var(--font-head); color: var(--text-dark); font-weight: 600;
  margin: 0 14px; padding: 8px 0 !important; position: relative; font-size: .96rem;
}
.main-navbar .nav-link.active, .main-navbar .nav-link:hover { color: var(--primary-color); }
.main-navbar .nav-link.active::after {
  content:''; position:absolute; left:0; bottom:-2px; width:100%; height:3px; background: var(--accent-color);
}
.main-navbar .btn-brand { font-size: .8rem; padding: 9px 18px; }

/* ---------- Hero slider ---------- */
.hero-slider { position: relative; }
.hero-slide { height: 90vh; min-height: 560px; background-size: cover; background-position: center; position: relative; display: flex; align-items: center; }
.hero-slide::before { content:''; position:absolute; inset:0;
  background: linear-gradient(105deg, rgba(48,20,24,.94) 0%, rgba(92,38,44,.78) 45%, rgba(92,38,44,.30) 100%); }
.hero-slide .container { position: relative; z-index: 2; }
.hero-slide .hero-tag {
  display:inline-block; color: var(--white); background: var(--accent-color);
  font-family: var(--font-head); font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  font-size: .78rem; padding: 6px 16px; border-radius: 3px; margin-bottom: 22px;
}
.hero-slide h1 { color: var(--white); font-size: 3.5rem; line-height: 1.08; max-width: 780px; }
.hero-slide p { color: #F0E4E1; font-size: 1.16rem; max-width: 590px; margin: 22px 0 34px; }
@media (max-width: 767px){ .hero-slide { height: 82vh; min-height: 480px; } .hero-slide h1 { font-size: 2.15rem; } .hero-slide p { font-size: 1rem; } }
.hero-slider .carousel-indicators { bottom: 26px; }
.hero-slider .carousel-indicators button { background: transparent; border: 2px solid var(--white); width: 12px; height: 12px; border-radius: 50%; opacity: .8; }
.hero-slider .carousel-indicators button.active { background: var(--accent-color); border-color: var(--accent-color); }
.hero-slider .carousel-control-prev, .hero-slider .carousel-control-next { width: 5%; opacity: .65; }

/* ---------- Page hero (sub pages) ---------- */
.page-hero { height: 300px; background-size: cover; background-position: center; position: relative; display: flex; align-items: center; }
.page-hero::before { content:''; position:absolute; inset:0;
  background: linear-gradient(105deg, rgba(48,20,24,.93) 0%, rgba(92,38,44,.80) 100%); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); font-size: 2.7rem; margin-bottom: 10px; }
.page-hero .breadcrumb-custom { color: #F0E4E1; font-family: var(--font-head); font-weight: 500; font-size: .92rem; letter-spacing: .5px; }
.page-hero .breadcrumb-custom a { color: var(--accent-color); }
.page-hero .breadcrumb-custom a:hover { color: var(--white); }

/* ---------- About sections ---------- */
.about-img-wrap { position: relative; }
.about-img-wrap img { border-radius: 6px; width: 100%; object-fit: cover; box-shadow: -18px 18px 0 rgba(122,54,60,.12); }
.about-img-wrap .badge-float {
  position: absolute; bottom: -26px; right: -20px; background: var(--primary-color); color: var(--white);
  padding: 20px 26px; border-radius: 6px; box-shadow: 0 14px 30px rgba(92,38,44,.32); text-align: center; font-size: .82rem; font-weight: 500;
}
@media (max-width: 991px){ .about-img-wrap .badge-float { right: 14px; } }
.about-img-wrap .badge-float .num { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--accent-color); display: block; line-height: 1; margin-bottom: 4px; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding-left: 34px; position: relative; margin-bottom: 14px; color: var(--text-dark); font-weight: 500; }
.check-list li::before {
  content:'\2713'; position: absolute; left: 0; top: 2px; width: 22px; height: 22px;
  background: var(--primary-color); color: var(--white); font-size: .72rem; font-weight: 700;
  border-radius: 4px; display: flex; align-items: center; justify-content: center;
}

/* ---------- Why Choose Us — index-numbered feature cards ---------- */
.feature-grid { counter-reset: feat; }
.feature-card {
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--primary-color);
  border-radius: 4px; padding: 34px 30px 30px; height: 100%; position: relative; transition: all .3s ease; overflow: hidden;
}
.feature-card::after {
  counter-increment: feat; content: '0' counter(feat);
  position: absolute; top: 14px; right: 20px; font-family: var(--font-head); font-weight: 700;
  font-size: 2.6rem; color: var(--light-bg); z-index: 0; line-height: 1;
}
.feature-card:hover { border-left-color: var(--accent-color); box-shadow: 0 18px 40px rgba(92,38,44,.12); transform: translateY(-5px); }
.feature-card .icon-wrap {
  width: 56px; height: 56px; border-radius: 4px; background: rgba(122,54,60,.08); color: var(--primary-color);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 20px; position: relative; z-index: 1; transition: all .3s ease;
}
.feature-card:hover .icon-wrap { background: var(--accent-color); color: var(--white); }
.feature-card h5 { font-size: 1.12rem; margin-bottom: 10px; position: relative; z-index: 1; }
.feature-card p { color: var(--text-muted); font-size: .93rem; margin-bottom: 0; position: relative; z-index: 1; }

/* ---------- CTA ---------- */
.cta-section { background-color: var(--primary-color); background-size: cover; background-position: center; color: var(--white); position: relative; overflow: hidden; }
.cta-section::before { content:''; position:absolute; inset:0; background: linear-gradient(105deg, rgba(48,20,24,.95) 0%, rgba(122,54,60,.86) 100%); z-index: 0; }
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { color: var(--white); margin-bottom: 12px; font-size: 2.2rem; }
.cta-section p { color: #F0E4E1; margin-bottom: 0; font-size: 1.08rem; }

/* ---------- Category overview cards (products.html) — image + name overlay ---------- */
.category-card-link { display: block; color: inherit; }
.product-card { position: relative; border-radius: 6px; overflow: hidden; height: 300px; box-shadow: 0 8px 26px rgba(92,38,44,.10); }
.product-card .product-img { position: absolute; inset: 0; height: 100%; }
.product-card .product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card::after { content:''; position:absolute; inset:0; background: linear-gradient(to top, rgba(48,20,24,.9) 8%, rgba(92,38,44,.25) 55%, rgba(92,38,44,0) 100%); transition: opacity .3s ease; }
.category-card-link:hover .product-card .product-img img { transform: scale(1.08); }
.product-card .product-body { position: absolute; left: 0; bottom: 0; z-index: 2; padding: 26px 24px; width: 100%; }
.product-card .product-body h5 { color: var(--white); margin: 0; font-size: 1.25rem; display: flex; align-items: center; gap: 10px; }
.product-card .product-body h5::before { content:''; width: 26px; height: 3px; background: var(--accent-color); transition: width .3s ease; }
.category-card-link:hover .product-card .product-body h5::before { width: 42px; }

/* ---------- Item cards (category pages) — image + name ---------- */
.item-card { background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; height: 100%; transition: all .3s ease; }
.item-card:hover { box-shadow: 0 16px 36px rgba(92,38,44,.12); transform: translateY(-4px); }
.item-card .item-img { height: 210px; overflow: hidden; }
.item-card .item-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.item-card:hover .item-img img { transform: scale(1.07); }
.item-card .item-body { padding: 20px 22px; border-top: 3px solid transparent; transition: border-color .3s ease; }
.item-card:hover .item-body { border-top-color: var(--accent-color); }
.item-card .item-body h5 { font-size: 1.04rem; margin: 0; color: var(--text-dark); }

/* ---------- Mission / Vision (dark maroon band) ---------- */
.mv-band { background: var(--primary-dark); }
.mv-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 6px; padding: 40px 34px; height: 100%; }
.mv-card i { font-size: 2rem; color: var(--accent-color); margin-bottom: 18px; display: block; }
.mv-card h4 { color: var(--white); margin-bottom: 14px; }
.mv-card p { color: #E9D9D6; margin-bottom: 0; }

/* ---------- Core values ---------- */
.value-pill { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--accent-color); border-radius: 4px; padding: 30px 22px; text-align: center; height: 100%; transition: all .3s ease; }
.value-pill:hover { box-shadow: 0 14px 30px rgba(92,38,44,.10); transform: translateY(-4px); }
.value-pill i { font-size: 1.6rem; color: var(--primary-color); width: 60px; height: 60px; border-radius: 50%; background: rgba(122,54,60,.08); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.value-pill h6 { font-family: var(--font-head); font-weight: 700; margin-bottom: 8px; font-size: 1.05rem; }
.value-pill p { font-size: .9rem; color: var(--text-muted); margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-info-card { background: var(--primary-color); color: var(--white); border-radius: 6px; padding: 42px 34px; height: 100%; }
.contact-info-card h4 { color: var(--white); margin-bottom: 26px; }
.contact-info-item { display: flex; align-items: flex-start; flex-wrap: wrap; margin-bottom: 26px; }
.contact-info-item:last-child { margin-bottom: 0; }
.contact-info-item .ci-icon { width: 48px; height: 48px; background: var(--accent-color); color: var(--white); border-radius: 4px; display: flex; align-items: center; justify-content: center; margin-right: 16px; flex-shrink: 0; font-size: 1.1rem; }
.contact-info-item .ci-text small { display: block; color: var(--accent-color); text-transform: uppercase; letter-spacing: 1px; font-size: .72rem; margin-bottom: 3px; font-family: var(--font-head); }
.contact-info-item .ci-text a, .contact-info-item .ci-text span { color: var(--white); font-weight: 500; }
.contact-info-item .ci-text a:hover { color: var(--accent-color); }
.contact-form-wrap { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 42px; box-shadow: 0 8px 30px rgba(92,38,44,.06); }
.contact-form-wrap .form-label { font-family: var(--font-head); font-size: .9rem; }
.contact-form-wrap .form-control { border: 1px solid var(--line); padding: 12px 16px; border-radius: 4px; margin-bottom: 6px; }
.contact-form-wrap .form-control:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(122,54,60,.12); }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-dark); color: #E5D2CF; }
.site-footer .footer-top { padding: 74px 0 44px; }
.site-footer h5 { color: var(--white); font-size: 1.05rem; margin-bottom: 22px; position: relative; padding-bottom: 12px; }
.site-footer h5::after { content:''; position:absolute; left:0; bottom:0; width:36px; height:3px; background: var(--accent-color); }
.site-footer .footer-brand-text { color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.site-footer .footer-brand-text img { height: 42px; border-radius: 4px; }
.site-footer p { font-size: .92rem; color: #E5D2CF; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 12px; }
.site-footer ul li a { color: #E5D2CF; font-size: .94rem; }
.site-footer ul li a:hover { color: var(--accent-color); padding-left: 4px; }
.site-footer .footer-top ul li i { color: var(--accent-color); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: .85rem; color: #D8C2BE; }
.footer-bottom a { color: var(--accent-color); }

/* ---------- Back to top ---------- */
.back-to-top { position: fixed; bottom: 26px; right: 26px; width: 46px; height: 46px; background: var(--primary-color); color: var(--white); border-radius: 4px; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(92,38,44,.3); opacity: 0; visibility: hidden; transition: all .3s ease; z-index: 999; font-size: 1.1rem; }
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--accent-color); }

/* ---------- Mobile navbar ---------- */
@media (max-width: 991.98px){
  .top-bar { display: none; }
  .main-navbar .navbar-brand img { height: 42px; }
  .main-navbar .navbar-collapse { flex-basis: 100%; width: 100%; }
  .main-navbar .navbar-collapse.show, .main-navbar .navbar-collapse.collapsing { padding: 10px 0 14px; border-top: 1px solid var(--line); margin-top: 8px; }
  .main-navbar .navbar-nav { flex-direction: column; align-items: flex-start !important; }
  .main-navbar .navbar-nav .nav-link { margin: 0; padding: 10px 0 !important; }
  .main-navbar .navbar-nav .nav-item { width: 100%; }
  .nav-products-row { display: flex; align-items: center; justify-content: space-between; width: 100%; }
  .mobile-cat-toggle { background: none; border: none; padding: 6px 8px; color: var(--primary-color); font-size: .85rem; cursor: pointer; transition: transform .25s ease; line-height: 1; }
  .mobile-cat-toggle.open { transform: rotate(180deg); }
  .main-navbar .navbar-nav .dropdown-menu { position: static !important; box-shadow: none !important; border: none !important; background: transparent !important; padding: 0 0 4px 16px !important; margin-top: 0 !important; animation: none !important; display: none; }
  .main-navbar .navbar-nav .dropdown-menu.show { display: block; }
}

/* ---------- Products dropdown (desktop) ---------- */
.main-navbar .dropdown-menu { border: none; border-radius: 4px; box-shadow: 0 14px 32px rgba(92,38,44,.16); padding: 10px; margin-top: 8px; min-width: 250px; }
.main-navbar .dropdown-item { color: var(--text-dark); font-weight: 500; padding: 10px 16px; border-radius: 3px; font-size: .92rem; }
.main-navbar .dropdown-item:hover, .main-navbar .dropdown-item:focus { background: var(--light-bg); color: var(--primary-color); }
@media (min-width: 992px){
  .main-navbar .dropdown-menu { display: none; animation: fadeInUp .2s ease both; }
  .main-navbar .dropdown-menu.show { display: block; }
}

@keyframes fadeInUp { from { opacity: 0; transform: translateY(12px);} to { opacity: 1; transform: translateY(0);} }
