/*
Theme Name: Ibrahim Khalil
Theme URI: https://ibrahimkhalil.store
Author: Ibrahim Khalil
Author URI: https://ibrahimkhalil.store
Description: One-page business theme for Ibrahim Khalil, readymade garments wholesale & retail dealer, Dhaka, Bangladesh.
Version: 1.0
Requires at least: 5.9
Requires PHP: 7.4
Text Domain: ibrahim-khalil
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --background: #fafbfc;
  --foreground: #1c2130;
  --card: #ffffff;
  --muted: #f2f4f7;
  --muted-foreground: #6b7280;
  --border: #e2e5eb;
  --brand: #3454d1;
  --brand-dark: #2740a8;
  --brand-foreground: #ffffff;
  --charcoal: #14182a;
  --charcoal-foreground: #f7f8fb;
  --radius: 14px;
  --radius-sm: 10px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Montserrat", "Inter", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--foreground);
  background: var(--background);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0;
}

p { margin: 0; }

ul { list-style: none; margin: 0; padding: 0; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brand);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--brand);
  color: var(--brand-foreground);
}
.btn-primary:hover { background: var(--brand-dark); }

.btn-outline {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--charcoal-foreground);
  background: transparent;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); }

.btn-secondary {
  background: var(--muted);
  color: var(--foreground);
  width: 100%;
  margin-top: 22px;
}
.btn-secondary:hover { background: var(--border); }

.card-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(20, 24, 42, 0.08);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--charcoal);
  color: var(--charcoal-foreground);
}

.site-header .top-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.brand-block { min-width: 0; }
.brand-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-sub {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(247, 248, 251, 0.6);
}

.header-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 13px;
  flex-shrink: 0;
}
.header-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(247, 248, 251, 0.8);
}
.header-contacts a:hover { color: var(--brand); }
.header-contacts .email-text { display: none; }
@media (min-width: 640px) {
  .header-contacts .email-text { display: inline; }
}

.site-nav { border-top: 1px solid rgba(247, 248, 251, 0.1); }
.site-nav ul {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 12px;
}
.site-nav a {
  display: inline-block;
  white-space: nowrap;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(247, 248, 251, 0.75);
}
.site-nav a:hover { color: var(--brand); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-surface {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    135deg,
    rgba(20, 24, 42, 0.94),
    rgba(20, 24, 42, 0.72) 55%,
    rgba(52, 84, 209, 0.55)
  );
}
.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 96px 24px;
}
.hero-badge {
  display: inline-flex;
  margin-bottom: 16px;
  border: 1px solid rgba(247, 248, 251, 0.2);
  background: rgba(20, 24, 42, 0.4);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(247, 248, 251, 0.85);
  backdrop-filter: blur(4px);
}
.hero h1 {
  max-width: 720px;
  font-size: 44px;
  font-weight: 800;
  color: var(--charcoal-foreground);
}
.hero p.lead {
  max-width: 620px;
  margin-top: 24px;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(247, 248, 251, 0.8);
}
.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (min-width: 640px) {
  .hero h1 { font-size: 56px; }
}
@media (min-width: 768px) {
  .hero-inner { padding: 144px 24px; }
  .hero h1 { font-size: 64px; }
}

/* ==========================================================================
   About
   ========================================================================== */
.about {
  padding: 80px 0;
}
.about .grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
.about h2 {
  margin-top: 12px;
  font-size: 30px;
  font-weight: 700;
}
.about p {
  margin-top: 20px;
  color: var(--muted-foreground);
  line-height: 1.7;
}
.stat-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.stat-card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.stat-card dt {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}
.stat-card dd {
  margin: 0;
  font-size: 13px;
  color: var(--muted-foreground);
}
.about img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--border);
  object-fit: cover;
}

@media (min-width: 768px) {
  .about .grid { grid-template-columns: 1fr 1fr; }
  .about h2 { font-size: 34px; }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   Products
   ========================================================================== */
.products {
  background: var(--muted);
  padding: 80px 0;
}
.products .intro { max-width: 640px; }
.products h2 {
  margin-top: 12px;
  font-size: 30px;
  font-weight: 700;
}
.products .intro p {
  margin-top: 16px;
  color: var(--muted-foreground);
}
.product-grid {
  margin-top: 48px;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 18px;
  padding: 24px;
}
.product-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(52, 84, 209, 0.1);
  color: var(--brand);
  font-size: 22px;
}
.product-card h3 {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 700;
}
.product-card p {
  margin-top: 8px;
  flex: 1;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .products h2 { font-size: 34px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  padding: 80px 0;
}
.contact .grid {
  display: grid;
  gap: 48px;
}
.contact h2 {
  margin-top: 12px;
  font-size: 30px;
  font-weight: 700;
}
.contact > .wrap > .grid > div > p {
  margin-top: 16px;
  color: var(--muted-foreground);
}
.contact-form {
  margin-top: 32px;
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
.field { display: grid; gap: 8px; }
.field label {
  font-size: 13px;
  font-weight: 600;
}
.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 8px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--foreground);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(52, 84, 209, 0.15);
}
.field-full { grid-column: 1 / -1; }

.form-status {
  margin-top: 16px;
  font-size: 14px;
  border-radius: 8px;
  padding: 12px 14px;
  display: none;
}
.form-status.success {
  display: block;
  background: rgba(34, 160, 90, 0.1);
  color: #1a7a45;
  border: 1px solid rgba(34, 160, 90, 0.25);
}
.form-status.error {
  display: block;
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
  border: 1px solid rgba(220, 38, 38, 0.25);
}

.contact-card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 18px;
  padding: 28px;
  align-self: start;
}
.contact-card h3 {
  font-size: 18px;
  font-weight: 700;
}
.contact-list {
  margin-top: 24px;
  display: grid;
  gap: 20px;
}
.contact-list li {
  display: flex;
  gap: 12px;
  font-size: 14px;
}
.contact-list .ic {
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-list .label {
  font-weight: 600;
  margin: 0 0 2px;
}
.contact-list a,
.contact-list .val {
  color: var(--muted-foreground);
}
.contact-list a:hover { color: var(--brand); }

@media (min-width: 640px) {
  .contact-form { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .contact .grid { grid-template-columns: 1.2fr 1fr; }
  .contact h2 { font-size: 34px; }
}

/* ==========================================================================
   Footer / legal
   ========================================================================== */
.site-footer {
  background: var(--charcoal);
  color: var(--charcoal-foreground);
}
.site-footer .wrap { padding: 64px 24px; }
.site-footer h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}
.legal-grid {
  margin-top: 32px;
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
.legal-grid .label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(247, 248, 251, 0.55);
  margin: 0;
}
.legal-grid .val {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--charcoal-foreground);
}
.footer-bottom {
  border-top: 1px solid rgba(247, 248, 251, 0.15);
}
.footer-bottom p {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
  font-size: 12px;
  color: rgba(247, 248, 251, 0.65);
}

@media (min-width: 640px) {
  .legal-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .legal-grid { grid-template-columns: repeat(3, 1fr); }
}
