/*
Theme Name: Al Fath Media
Theme URI: https://alfath.media/
Author: Al Fath Media
Author URI: https://alfath.media/
Description: A bold one-page WordPress theme for Al Fath Media — outdoor, radio and digital advertising. Brand palette built from the magenta + royal blue logo.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alfath
Tags: one-page, business, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, theme-options, threaded-comments, translation-ready
*/

/* =========================================================
   1. Design tokens
   ========================================================= */
:root {
  --brand-primary: #1d4ed8;        /* royal blue */
  --brand-primary-glow: #3b82f6;
  --brand-secondary: #d6249f;      /* magenta */
  --brand-secondary-glow: #ec4899;

  --color-bg: #ffffff;
  --color-surface: #f6f6f8;
  --color-surface-dark: #0a0a14;
  --color-surface-darker: #05050c;

  --color-fg: #0a0a14;
  --color-fg-muted: #5b5b6b;
  --color-on-dark: #ffffff;
  --color-on-dark-muted: rgba(255, 255, 255, 0.65);

  --color-border: #e5e5ea;

  --gradient-brand: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  --gradient-overlay: linear-gradient(180deg, rgba(5,5,12,0.25) 0%, rgba(5,5,12,0.85) 100%);

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1280px;
  --space-section: clamp(4rem, 9vw, 9rem);
}

/* =========================================================
   2. Reset & base
   ========================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-fg);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--brand-secondary); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(3rem, 10vw, 9rem); }
h2 { font-size: clamp(2.25rem, 5vw, 4.5rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }

p { margin: 0 0 1rem; }

.eyebrow {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .25em;
  font-weight: 700;
  color: var(--brand-secondary);
  margin-bottom: 1.25rem;
}

/* =========================================================
   3. Layout helpers
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: var(--space-section) 0; }
.section--dark { background: var(--color-surface-darker); color: var(--color-on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--color-on-dark); }
.section--surface { background: var(--color-surface); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .9rem 1.6rem;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .2em;
  background: var(--brand-primary);
  color: #fff;
  border: 0;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease;
}
.btn:hover { background: var(--brand-secondary); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; border: 1px solid currentColor; color: inherit; }

/* =========================================================
   4. Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.site-branding { display: flex; align-items: center; gap: .75rem; }
.site-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -.02em;
  margin: 0;
}
.site-title a { color: var(--color-fg); }
.site-title .accent { color: var(--brand-secondary); }

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
.main-navigation a {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--color-fg);
}
.main-navigation a:hover { color: var(--brand-secondary); }

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .main-navigation { display: none; }
  .main-navigation.is-open {
    display: block;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 1.5rem;
  }
  .main-navigation.is-open ul { flex-direction: column; gap: 1rem; }
  .menu-toggle { display: inline-flex; }
}

/* =========================================================
   5. Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--color-surface-darker);
  color: var(--color-on-dark);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .55;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: var(--gradient-overlay);
}
.hero__content { position: relative; z-index: 1; }
.hero__title { color: var(--color-on-dark); font-size: clamp(3.5rem, 14vw, 12rem); }
.hero__lede {
  max-width: 36rem;
  font-size: 1.15rem;
  color: var(--color-on-dark-muted);
  margin-top: 1.5rem;
}
.hero__cta { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* =========================================================
   6. Stats / Intro
   ========================================================= */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--color-border);
  margin-top: 4rem;
}
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats__item { background: #fff; padding: 2.5rem; }
.stats__value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3rem;
  color: var(--brand-primary);
  line-height: 1;
  margin-bottom: .75rem;
}
.stats__label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--color-fg-muted);
}

/* =========================================================
   7. Format / service grid
   ========================================================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 2rem;
  transition: transform .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--brand-secondary); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--color-fg-muted); margin: 0; }
.card__index {
  font-family: var(--font-display);
  font-size: .8rem;
  letter-spacing: .2em;
  color: var(--brand-secondary);
  margin-bottom: 1rem;
}

/* =========================================================
   8. Contact
   ========================================================= */
.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 640px;
  margin-top: 2rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem 1.1rem;
  font: inherit;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-fg);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--brand-primary);
  outline-offset: 1px;
}

/* =========================================================
   9. Footer
   ========================================================= */
.site-footer {
  background: var(--color-surface-darker);
  color: var(--color-on-dark-muted);
  padding: 4rem 0 2rem;
}
.site-footer a { color: var(--color-on-dark); }
.site-footer a:hover { color: var(--brand-secondary-glow); }
.site-footer__bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* =========================================================
   10. WordPress required classes
   ========================================================= */
.alignleft  { float: left;  margin: .5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .5rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1rem auto; }
.alignwide  { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull  { width: 100vw; margin-left: calc(50% - 50vw); }

.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); -webkit-clip-path: inset(50%); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; word-wrap: normal !important;
}

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .85rem; color: var(--color-fg-muted); text-align: center; padding-top: .5rem; }
.sticky { display: block; }
.gallery-caption {}
.bypostauthor {}
