/* CEI — Casings Emporium International
   Final Modern Design | Strong Blues + Soft Blue Hue + Red Accents
   Real logo + factory/product photography */

:root {
  --blue-deep: #0B3C6E;
  --blue-strong: #1565C0;
  --blue-mid: #1E88E5;
  --blue-soft: #E3F2FD;
  --blue-soft-2: #BBDEFB;
  --blue-hue: #F5FAFF;
  --red: #C62828;
  --red-hover: #B71C1C;
  --white: #FFFFFF;
  --text: #0D1B2A;
  --text-muted: #546E7A;
  --border: #E3F2FD;
  --shadow: 0 4px 24px rgba(11, 60, 110, 0.08);
  --shadow-lg: 0 12px 40px rgba(11, 60, 110, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--blue-hue);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--blue-deep);
}

h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.65rem, 3.5vw, 2.3rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p { color: var(--text-muted); max-width: 62ch; }
a { color: inherit; text-decoration: none; transition: all 0.2s ease; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }
.section-alt { background: var(--white); }

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}
.header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--blue-deep);
}

.logo img {
  height: 48px;
  width: auto;
  border-radius: 6px;
}

.nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}
.nav a {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
}
.nav a:hover, .nav a.active { color: var(--blue-strong); }

.nav-cta {
  background: var(--red);
  color: white !important;
  padding: 0.55rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--red-hover); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--blue-deep);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Floating logo */
.floating-logo {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 900;
  width: 62px;
  height: 62px;
  background: #000;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid rgba(21, 101, 192, 0.3);
  transition: transform 0.25s ease;
}
.floating-logo:hover { transform: scale(1.07); }
.floating-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  padding-top: 76px;
  overflow: hidden;
  background: #0B3C6E;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
  background-size: cover;
  background-position: center;
}
.hero-slide.active { opacity: 1; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, 
    rgba(11, 60, 110, 0.92) 0%, 
    rgba(11, 60, 110, 0.72) 45%, 
    rgba(11, 60, 110, 0.35) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  color: white;
}

.hero-logo-wrap {
  margin-bottom: 1.6rem;
}
.hero-logo-wrap img {
  height: 110px;
  width: auto;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

.hero-tag {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #90CAF9;
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero h1 {
  color: white;
  margin-bottom: 1.1rem;
}
.hero h1 span {
  display: block;
  font-weight: 400;
  font-size: 0.5em;
  color: #BBDEFB;
  margin-top: 0.4rem;
  letter-spacing: 0.03em;
}

.hero-sub {
  font-size: 1.1rem;
  color: #E3F2FD;
  margin-bottom: 2.1rem;
  max-width: 48ch;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-indicators {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 9px;
}
.hero-indicators button {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: all 0.3s ease;
}
.hero-indicators button.active {
  background: white;
  transform: scale(1.25);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.7rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--red);
  color: white;
}
.btn-primary:hover {
  background: var(--red-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(198, 40, 40, 0.35);
}
.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.55);
}
.btn-secondary:hover {
  border-color: white;
  background: rgba(255,255,255,0.12);
}
.btn-outline {
  background: transparent;
  color: var(--blue-strong);
  border: 2px solid var(--blue-mid);
}
.btn-outline:hover {
  background: var(--blue-strong);
  color: white;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
  margin-top: 2.6rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.9rem 1.6rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
}

/* Split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.split-visual {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}
.split-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Statement */
.statement {
  text-align: center;
  padding: 4.2rem 0;
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-strong) 100%);
  color: white;
}
.statement h2 { color: white; margin-bottom: 0.7rem; }
.statement p { color: #BBDEFB; margin: 0 auto 1.6rem; }

/* Page hero */
.page-hero {
  padding: 9.5rem 0 3.8rem;
  background: linear-gradient(160deg, var(--blue-deep) 0%, #0D47A1 100%);
  color: white;
  position: relative;
}
.page-hero .hero-logo-wrap img {
  height: 88px;
  margin-bottom: 1.3rem;
  border-radius: 8px;
}
.page-hero h1 { color: white; margin-bottom: 0.85rem; }
.page-hero p { color: #BBDEFB; font-size: 1.08rem; }

.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.15);
  color: #E3F2FD;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.95rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
}

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.9rem;
  margin-top: 2.4rem;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.product-image {
  height: 240px;
  overflow: hidden;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-image img {
  transform: scale(1.05);
}
.product-body {
  padding: 1.7rem;
}
.product-body h3 { margin-bottom: 0.65rem; }
.product-body p {
  margin-bottom: 1.35rem;
  font-size: 0.95rem;
}

/* Form */
.form-wrapper {
  max-width: 540px;
  margin-top: 1.8rem;
  background: var(--white);
  padding: 2.2rem;
  border-radius: 14px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  font-weight: 550;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--blue-hue);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.15);
}
.form-group textarea {
  min-height: 130px;
  resize: vertical;
}
.form-note {
  margin-top: 1.2rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.direct-email {
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
}
.direct-email a {
  color: var(--red);
  font-weight: 700;
  font-size: 1.1rem;
}
.direct-email a:hover { color: var(--red-hover); }

/* Footer */
.footer {
  background: #0A192F;
  color: #BBDEFB;
  padding: 3.4rem 0 1.6rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  gap: 2.8rem;
  margin-bottom: 2.6rem;
}
.footer .logo { color: white; margin-bottom: 0.85rem; }
.footer .logo img { height: 52px; border-radius: 6px; }
.footer-brand p { color: #90CAF9; font-size: 0.92rem; }
.footer h4 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64B5F6;
  margin-bottom: 0.95rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: #90CAF9; font-size: 0.92rem; }
.footer-links a:hover { color: white; }
.footer-bottom {
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #64B5F6;
}

.text-center { text-align: center; }
.mt-2 { margin-top: 1.7rem; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 2.3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .nav-toggle { display: block; }
  .floating-logo { width: 54px; height: 54px; bottom: 18px; right: 18px; }
  .hero-logo-wrap img { height: 88px; }
}
@media (max-width: 600px) {
  .section { padding: 3.4rem 0; }
  .hero { min-height: auto; padding: 7rem 0 4.2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-bottom { flex-direction: column; gap: 0.55rem; text-align: center; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
}
