/* ============================================================
   HORIZON EXPORT — styles.css
   Shared stylesheet for all pages
   ============================================================ */

/* ---- Custom Properties ---- */
:root {
  --bg:       #F9F6F1;
  --text:     #1A1A1A;
  --accent:   #C8A97E;
  --muted:    #6B6B6B;
  --white:    #FFFFFF;
  --border:   #E8E2D9;
  --dark:     #1A1A1A;

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width:            1100px;
  --section-padding:      80px;
  --section-padding-mob:  48px;

  --transition: 0.2s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

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

ul {
  list-style: none;
}

button {
  font-family: var(--font-body);
}

/* ============================================================
   UTILITIES
   ============================================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding) 0;
}

/* ============================================================
   NAVBAR
   ============================================================ */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: var(--text);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  border-bottom-color: var(--accent);
}

/* Hamburger button */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--dark);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--bg);
  margin-bottom: 14px;
}

.footer-col-left p {
  font-size: 14px;
  color: rgba(249, 246, 241, 0.6);
  line-height: 2;
}

.footer-col-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.footer-col-right a {
  font-size: 14px;
  color: rgba(249, 246, 241, 0.6);
  transition: color var(--transition);
}

.footer-col-right a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(249, 246, 241, 0.1);
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(249, 246, 241, 0.35);
  letter-spacing: 0.3px;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 32px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), opacity var(--transition), transform var(--transition);
}

.btn:active {
  transform: translateY(1px);
}

.btn-dark {
  background: var(--text);
  color: var(--white);
}

.btn-dark:hover {
  background: #2e2e2e;
}

.btn-light {
  background: var(--white);
  color: var(--text);
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.9);
}

.btn-full {
  width: 100%;
  text-align: center;
  display: block;
}

/* ============================================================
   IMAGE PLACEHOLDERS
   ============================================================ */

.img-placeholder {
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.placeholder-label {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  padding: 16px;
  user-select: none;
}

/* ============================================================
   SPECS TABLE
   ============================================================ */

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0 36px;
}

.specs-table tr {
  border-bottom: 1px solid var(--border);
}

.specs-table tr:first-child {
  border-top: 1px solid var(--border);
}

.specs-table td {
  padding: 13px 0;
  font-size: 14px;
  vertical-align: middle;
  line-height: 1.5;
}

.specs-table td:first-child {
  color: var(--muted);
  width: 36%;
  font-weight: 400;
  padding-right: 16px;
}

.specs-table td:last-child {
  color: var(--text);
  font-weight: 500;
}

/* ============================================================
   PAGE HEADER (dark inner-page hero)
   ============================================================ */

.page-header {
  background: var(--dark);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}

.page-header-inner {
  max-width: 640px;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 14px;
}

.page-header p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.65;
}

/* ============================================================
   HOME — HERO
   ============================================================ */

.hero {
  position: relative;
  height: 100vh;
  min-height: 580px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  position: absolute;
  inset: 0;
  background: #2C2C2C;
  display: flex;
  align-items: center;
  justify-content: center;
}


.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 860px;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.hero-content p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* ============================================================
   HOME — THREE PILLARS
   ============================================================ */

.pillars {
  background: var(--white);
}

.pillars-heading {
  font-family: var(--font-heading);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 400;
  text-align: center;
  margin-bottom: 64px;
  color: var(--text);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
}

.pillar {
  padding-top: 20px;
}

.pillar-line {
  width: 36px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 20px;
}

.pillar h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.pillar p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.78;
}

/* ============================================================
   HOME — PRODUCT FEATURE
   ============================================================ */

.product-feature {
  background: var(--bg);
}

.product-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.product-feature-image {
  aspect-ratio: 4 / 5;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-feature-content .eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.product-feature-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 18px;
}

.product-feature-content .body-text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.78;
  margin-bottom: 4px;
}

/* ============================================================
   HOME — TRUST BAR
   ============================================================ */

.trust-bar {
  background: var(--accent);
  padding: 28px 24px;
  text-align: center;
}

.trust-bar p {
  font-size: 15px;
  color: var(--white);
  line-height: 1.65;
  max-width: 680px;
  margin: 0 auto;
  font-weight: 400;
}

/* ============================================================
   PRODUCTS PAGE
   ============================================================ */

.products-section {
  background: var(--bg);
}

.products-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 60px;
}

.gallery-item {
  aspect-ratio: 1 / 1;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: opacity var(--transition);
  position: relative;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background var(--transition);
}

.gallery-item:hover::after {
  background: rgba(0, 0, 0, 0.06);
}

.gallery-item .placeholder-label {
  position: relative;
  z-index: 1;
}

.gallery-caption {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: -10px;
  margin-bottom: 48px;
  letter-spacing: 0.3px;
}

.products-details h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.2;
}

.products-details .body-text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.78;
  max-width: 660px;
  margin-bottom: 4px;
}

.products-note {
  margin-top: 72px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.products-note p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
  line-height: 1.65;
}

.products-note a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.products-note a:hover {
  color: var(--accent);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1 / 1;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 30px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  transition: color var(--transition);
}

.lightbox-close:hover {
  color: var(--white);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */

.about-section {
  background: var(--bg);
}

.about-content {
  max-width: 720px;
  margin: 0 auto;
}

.about-content p {
  font-size: 17px;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 28px;
}

.about-content p:last-child {
  margin-bottom: 0;
}

.founder-block {
  max-width: 720px;
  margin: 0 auto;
  padding-top: 40px;
  margin-top: 56px;
  border-top: 1px solid var(--border);
}

.founder-block .founder-name {
  font-size: 17px;
  font-style: italic;
  color: var(--text);
  margin-bottom: 6px;
  display: block;
}

.founder-block .founder-location {
  font-size: 14px;
  color: var(--muted);
  display: block;
}

/* ============================================================
   SIALKOT PAGE
   ============================================================ */

.sialkot-section {
  background: var(--bg);
}

.sialkot-content {
  max-width: 720px;
  margin: 0 auto;
}

.sialkot-content p {
  font-size: 17px;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 28px;
}

.sialkot-content p:last-child {
  margin-bottom: 0;
}

.stats-bar {
  background: var(--accent);
  padding: 64px 24px;
}

.stats-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.25);
  align-self: stretch;
  display: block;
}

.stat-item .stat-value {
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.stat-item .stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  max-width: 180px;
  margin: 0 auto;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contact-section {
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* Form */
.form-heading {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 12px 16px;
  outline: none;
  transition: border-color var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6B6B' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.form-success {
  display: none;
  padding: 20px 24px;
  background: #f4f8f4;
  border: 1px solid #c3dac3;
  font-size: 15px;
  color: #2a5f2a;
  line-height: 1.65;
  margin-top: 4px;
}

/* Contact info column */
.contact-info-heading {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 32px;
  line-height: 1.25;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 36px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-item .ci-icon {
  font-size: 18px;
  line-height: 1.5;
  flex-shrink: 0;
  width: 24px;
}

.contact-item .ci-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}

.contact-item .ci-text a {
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color var(--transition), border-color var(--transition);
}

.contact-item .ci-text a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.contact-note {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

/* ============================================================
   RESPONSIVE — TABLET & MOBILE (≤ 768px)
   ============================================================ */

@media (max-width: 768px) {
  :root {
    --section-padding: var(--section-padding-mob);
  }

  /* Navbar mobile */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 8px 0 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 14px 24px;
    font-size: 15px;
    border-bottom: none;
    transition: color var(--transition), background var(--transition);
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: var(--accent);
    border-bottom: none;
    background: rgba(200, 169, 126, 0.07);
  }

  /* Hero */
  .hero-content h1 {
    font-size: 36px;
  }

  .hero-content p {
    font-size: 16px;
  }

  /* Pillars */
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pillars-heading {
    margin-bottom: 40px;
  }

  /* Product feature */
  .product-feature-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-feature-image {
    aspect-ratio: 4 / 3;
  }

  /* Products gallery */
  .products-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  /* Stats bar */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stat-divider {
    display: none;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-col-right {
    align-items: flex-start;
  }

  /* Page header */
  .page-header {
    height: 220px;
  }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ============================================================ */

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 30px;
  }

  .nav-brand {
    font-size: 14px;
    letter-spacing: 2px;
  }

  .products-gallery {
    grid-template-columns: 1fr;
  }

  .stat-item .stat-value {
    font-size: 40px;
  }

  .btn {
    font-size: 11px;
    padding: 13px 24px;
  }
}
