/* ============================================
   EGX BOND — Local CSS
   Headings: Bookmania | Body: Whyte
   ============================================ */

/* ── Bookmania ── */
@font-face { font-family: 'Bookmania'; src: url('../fonts/Bookmania-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Bookmania'; src: url('../fonts/Bookmania-Regular Italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Bookmania'; src: url('../fonts/Bookmania-Semibold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Bookmania'; src: url('../fonts/Bookmania-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }

/* ── Whyte ── */
@font-face { font-family: 'Whyte'; src: url('../fonts/Whyte-Light.ttf') format('truetype'); font-weight: 300; font-style: normal; font-display: swap; ascent-override: 85%; descent-override: 20%; line-gap-override: 0%; }
@font-face { font-family: 'Whyte'; src: url('../fonts/Whyte-LightItalic.ttf') format('truetype'); font-weight: 300; font-style: italic; font-display: swap; ascent-override: 85%; descent-override: 20%; line-gap-override: 0%; }
@font-face { font-family: 'Whyte'; src: url('../fonts/Whyte-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; ascent-override: 85%; descent-override: 20%; line-gap-override: 0%; }
@font-face { font-family: 'Whyte'; src: url('../fonts/Whyte-Italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; ascent-override: 85%; descent-override: 20%; line-gap-override: 0%; }
@font-face { font-family: 'Whyte'; src: url('../fonts/Whyte-Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; ascent-override: 85%; descent-override: 20%; line-gap-override: 0%; }
@font-face { font-family: 'Whyte'; src: url('../fonts/Whyte-MediumItalic.ttf') format('truetype'); font-weight: 500; font-style: italic; font-display: swap; ascent-override: 85%; descent-override: 20%; line-gap-override: 0%; }
@font-face { font-family: 'Whyte'; src: url('../fonts/Whyte-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; ascent-override: 85%; descent-override: 20%; line-gap-override: 0%; }
@font-face { font-family: 'Whyte'; src: url('../fonts/Whyte-BoldItalic.ttf') format('truetype'); font-weight: 700; font-style: italic; font-display: swap; ascent-override: 85%; descent-override: 20%; line-gap-override: 0%; }

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

:root {
  --color-bg:            #ffffff;
  --color-accent-primary:#000000;
  --color-secondary-bg:  #F2F2EE;
  --color-text:          #000000;
  --color-text-secondary:#6B7280;
  --color-border:        #E0E0DA;
  --color-button:        #0B1E3D;
  --color-button-text:   #ffffff;
  --color-link:          #0B1E3D;
  --color-tag-bg:        rgba(255,255,255,0.12);
  --color-tag-border:    rgba(255,255,255,0.25);

  --font:         'Whyte', sans-serif;
  --font-heading: 'Bookmania', Georgia, serif;

  --space-xxsmall: 4px;
  --space-xsmall:  8px;
  --space-small:   16px;
  --space-medium:  24px;
  --space-large:   40px;
  --space-xlarge:  64px;
  --space-xxlarge: 96px;

  --radius:        4px;
  --container:     1200px;
  --container-sm:  780px;
  --section-pad:   80px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }

/* ── Webflow utilities ── */
.w-inline-block { display: inline-block; }
.w-list-unstyled { list-style: none; padding: 0; }
.w-nav-menu { display: flex; }
.w-nav-button { display: none; }
.w-richtext p { margin-bottom: 1em; }
.w-richtext p:last-child { margin-bottom: 0; }
.w-form { width: 100%; }
.w-form-done { display: none; padding: var(--space-medium); background: #d4edda; border-radius: var(--radius); color: #155724; }
.w-form-fail { display: none; }
.w-button { cursor: pointer; border: none; }
.w-input { appearance: none; }
.hidden { display: none !important; }

/* ── Container ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-large);
}
.container.is-small {
  max-width: var(--container-sm);
}

/* ── Section ── */
.section {
  padding: var(--section-pad) 0;
}
.section.is-accent-primary {
  background: var(--color-accent-primary);
  color: #ffffff;
}
.section.is-secondary {
  background: var(--color-secondary-bg);
}
.section.padding-top_none {
  padding-top: 0;
}

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.nav_container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-large);
  height: 64px;
}
.nav_left {
  display: flex;
  align-items: center;
  gap: var(--space-large);
}
.nav_right {
  display: flex;
  align-items: center;
}
.nav_logo {
  display: flex;
  align-items: center;
  gap: var(--space-xsmall);
  text-decoration: none;
  color: var(--color-text);
}
.nav_logo img {
  height: 36px;
  width: auto;
}
.nav_logo-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.nav_logo-icon img {
  width: 100%;
  height: 100%;
}
.nav_menu {
  display: flex;
  align-items: center;
}
.nav_menu-list {
  display: flex;
  align-items: center;
  gap: var(--space-xsmall);
}
.nav_menu-list-item { display: block; }
.nav_link {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius);
  transition: background 0.15s;
  text-decoration: none;
}
.nav_link:hover { background: var(--color-secondary-bg); }

/* ── Grids ── */
.w-layout-grid { display: grid; }

.grid_2-col { grid-template-columns: 1fr 1fr; }
.grid_3-col { grid-template-columns: 1fr 1fr 1fr; }
.grid_4-col { grid-template-columns: repeat(4, 1fr); }

.gap-xxsmall { gap: var(--space-xxsmall); }
.gap-xsmall  { gap: var(--space-xsmall); }
.gap-small   { gap: var(--space-small); }
.gap-medium  { gap: var(--space-medium); }
.gap-large   { gap: var(--space-large); }
.gap-xlarge  { gap: var(--space-xlarge); }
.gap-xxlarge { gap: var(--space-xxlarge); }

.grid_4-col.is-y-center { align-items: center; }

/* ── Header / Content blocks ── */
.header { display: flex; flex-direction: column; gap: var(--space-small); }
.header.is-align-center { align-items: center; text-align: center; }
.header.margin-bottom_none { margin-bottom: 0; }

/* ── Typography ── */
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}
.is-accent-primary .eyebrow { color: rgba(255,255,255,0.55); }

h1, .heading_h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.05em;
}
h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.05em;
}
.heading_h3, h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.05em;
}
.heading_h4, h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.subheading {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
  max-width: 640px;
}
.is-accent-primary .subheading { color: rgba(255,255,255,0.75); max-width: none; }

.paragraph_large  { font-size: 1.1rem; line-height: 1.65; }
.paragraph_small  { font-size: 0.875rem; line-height: 1.5; }
.paragraph_xxlarge {
  font-size: 1.25rem;
  line-height: 1.7;
  font-weight: 400;
}
.text-color_secondary { color: var(--color-text-secondary); }
.is-accent-primary .text-color_secondary { color: rgba(255,255,255,0.6); }

.bold-text { font-weight: 700; }

/* ── Margins / Padding utilities ── */
.margin-bottom_none   { margin-bottom: 0 !important; }
.margin-bottom_xsmall { margin-bottom: var(--space-xsmall); }
.margin-bottom_small  { margin-bottom: var(--space-small); }
.margin-top_none      { margin-top: 0 !important; }
.margin-top_large     { margin-top: var(--space-large); }
.margin-top_medium    { margin-top: var(--space-medium); }
.margin-top_small     { margin-top: var(--space-small); }
.margin-top_xsmall    { margin-top: var(--space-xsmall); }
.padding-top_none     { padding-top: 0 !important; }
.padding-top_xsmall   { padding-top: var(--space-xsmall); }

/* ── Button ── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: var(--color-button);
  color: var(--color-button-text);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.button:hover { opacity: 0.85; }
.button_label { font-size: 14px; font-weight: 600; }

.button-group { display: flex; gap: var(--space-xsmall); }
.button-group.margin-top_none { margin-top: 0; }
.button-group.is-vertical-stretch .button {
  width: 100%;
  justify-content: center;
}

/* ── Tags ── */
.tag_group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xsmall);
  margin-top: var(--space-small);
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--color-tag-border);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  background: var(--color-tag-bg);
}

/* ── Images ── */
.image-ratio_auto { width: 100%; }
.image_cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* ── Rich text ── */
.rich-text { line-height: 1.7; }
.rich-text p { margin-bottom: 0.75em; }
.rich-text p:last-child { margin-bottom: 0; }

/* ── Links ── */
.text-link {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: inherit;
  transition: opacity 0.15s;
}
.text-link:hover { opacity: 0.7; }
.text-link.is-secondary {
  color: var(--color-text-secondary);
}
.is-accent-primary .text-link.is-secondary {
  color: rgba(255,255,255,0.7);
}
.is-accent-primary .text-link {
  color: #ffffff;
}

/* ── Flex utilities ── */
.flex_horizontal { display: flex; }
.flex_vertical   { flex-direction: column; }
.is-space-between { justify-content: space-between; }
.is-x-left       { align-items: flex-start; }

/* ── Logo strip ── */
.logo {
  display: flex;
  align-items: center;
}
.logo a { display: flex; align-items: center; }
.image-5 {
  max-height: 36px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: opacity 0.2s, filter 0.2s;
}
.image-5:hover { filter: none; opacity: 1; }
.image-4 { max-height: 32px; width: auto; }

/* ── Card ── */
.card_body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-xlarge) var(--space-large);
  background: var(--color-bg);
}
.section.is-secondary .card_body { background: var(--color-secondary-bg); }
.section.is-testimonial { background: #EBE9DA; }
.section.is-testimonial .card_body { background: #EBE9DA; }

/* ── Forms ── */
.input {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-small);
}
.input_label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-text);
  letter-spacing: 0.01em;
}
.input_field {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.15s;
}
input.input_field {
  height: 50px;
}
.input_field:focus { border-color: var(--color-accent-primary); }
.input_field::placeholder { color: var(--color-text-secondary); }
.input_text-area { resize: vertical; min-height: 120px; }

.form_error-message_content {
  display: flex;
  align-items: center;
  gap: var(--space-xsmall);
  padding: var(--space-small);
  background: #fee2e2;
  border-radius: var(--radius);
  color: #991b1b;
  font-size: 14px;
}
.display_inline-block { display: inline-block; }

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--color-border);
}
.is-secondary .divider { background: rgba(0,0,0,0.1); }

/* ── Footer ── */
.footer { padding: var(--space-large) 0; }
.footer.is-secondary { background: #000000; color: #ffffff; }
.footer_link {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  padding: 3px 0;
  transition: color 0.15s;
  text-decoration: none;
}
.footer_link:hover { color: #ffffff; }
.footer li { margin-bottom: 2px; }
.footer_bottom {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer_bottom .text-link { font-size: 13px; }

/* ── Icon ── */
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Intro section layout ── */
#Intro .grid_2-col {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
#Intro .image-ratio_auto {
  aspect-ratio: 468/514;
  overflow: hidden;
  border-radius: 8px;
}
#Intro .header {
  padding-left: var(--space-large);
}

/* ── About / FAQ ── */
#Info .grid_2-col { align-items: start; }
#Info h3 { margin-bottom: var(--space-xsmall); }

/* ── Testimonial section ── */
.section.is-secondary .grid_3-col {
  grid-template-columns: 1fr 2fr;
}
.section.is-secondary .image-ratio_auto {
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 8px;
}

/* ── Mobile menu ── */
.nav_mobile-menu-button {
  display: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-text);
}

/* ── Responsive ── */
@media (max-width: 991px) {
  :root { --section-pad: 60px; }

  .grid_4-col {
    grid-template-columns: repeat(3, 1fr);
  }

  /* tablet-1-col */
  .tablet-1-col { grid-template-columns: 1fr !important; }
  .tablet-1-col #Intro .header { padding-left: 0; }

  .nav_menu { display: none; }
  .nav_mobile-menu-button { display: flex; }
  .nav_right { margin-left: auto; }

  .section.is-secondary .grid_3-col {
    grid-template-columns: 1fr;
  }
  .section.is-secondary .image-ratio_auto {
    aspect-ratio: 16/9;
  }
}

@media (max-width: 767px) {
  :root { --section-pad: 48px; }

  .container { padding: 0 var(--space-medium); }
  .nav_container { padding: 0 var(--space-medium); }

  .grid_2-col  { grid-template-columns: 1fr; }
  .grid_3-col  { grid-template-columns: 1fr; }
  .grid_4-col  { grid-template-columns: repeat(2, 1fr); }

  .mobile-l-1-col { grid-template-columns: 1fr; }

  #Intro .header { padding-left: 0; }

  .card_body { padding: var(--space-large) var(--space-medium); }
}

@media (max-width: 479px) {
  .grid_4-col { grid-template-columns: repeat(2, 1fr); }
}

/* ── Mobile nav open state ── */
.nav_menu.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-small) var(--space-medium);
  gap: 4px;
}
.nav_menu.is-open .nav_link {
  padding: 10px 12px;
  width: 100%;
}
