/* NKRDS Corporate Site - Main Stylesheet
   شركة نخيل الطرق القابضة
   Modern, Premium, Corporate Design
*/

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #0a2540;
  --color-primary-light: #1a3a5c;
  --color-accent: #c9a961;
  --color-accent-dark: #b08c4a;
  --color-text: #1a1a1a;
  --color-text-light: #555;
  --color-bg: #ffffff;
  --color-bg-alt: #f8f9fb;
  --color-bg-dark: #0a2540;
  --color-border: #e5e7eb;
  --color-success: #10b981;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.1);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: all .3s ease;
  --max-width: 1280px;
  --font-ar: 'Cairo', 'Tajawal', 'Almarai', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ar);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

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

.section {
  padding: 5rem 0;
  position: relative;
}

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

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

.section-title p {
  color: var(--color-text-light);
  font-size: 1.1rem;
  max-width: 720px;
  margin: 1.5rem auto 0;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.4);
}

.btn-ghost:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.7);
  color: #fff;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.98);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-accent);
  font-weight: 800;
  font-size: 1.25rem;
  border-radius: 50%;
  letter-spacing: -0.02em;
}

.brand-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

.brand-text small {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-text-light);
  letter-spacing: 0.02em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding: 0.5rem 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--color-primary);
}

/* ===== HERO ===== */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, #0a2540 0%, #1a3a5c 50%, #0d2d4d 100%);
  color: #fff;
  overflow: hidden;
  padding: 7rem 0 4rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(201, 169, 97, 0.18), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(26, 58, 92, 0.4), transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(201, 169, 97, .35);
  background: rgba(201, 169, 97, .08);
  color: var(--color-accent);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}

.hero h1 {
  color: #fff;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.hero-tagline {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: rgba(255,255,255,.85);
  margin-bottom: 2.5rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== ABOUT / VISION / MISSION ===== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.info-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 0;
  background: var(--color-accent);
  transition: var(--transition);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.info-card:hover::before { height: 100%; }

.info-card .icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: var(--color-accent);
  font-size: 1.5rem;
  font-weight: 800;
  border-radius: 16px;
  margin-bottom: 1.25rem;
}

.info-card h3 { margin-bottom: 0.75rem; }
.info-card p { color: var(--color-text-light); margin: 0; }

/* ===== VALUES ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.value-item {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--color-bg);
  border-radius: var(--radius);
  transition: var(--transition);
}

.value-item:hover {
  background: var(--color-bg-alt);
  transform: translateY(-3px);
}

.value-item .v-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  font-size: 1.8rem;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
}

.value-item h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.value-item p { font-size: 0.9rem; color: var(--color-text-light); margin: 0; }

/* ===== SERVICES / SECTORS ===== */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.sector-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.sector-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.sector-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 3rem;
  font-weight: 800;
  position: relative;
  overflow: hidden;
}

.sector-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 60%, rgba(201, 169, 97, .15));
}

.sector-body {
  padding: 1.75rem;
}

.sector-body h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.sector-body p {
  color: var(--color-text-light);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.sector-link {
  color: var(--color-accent-dark);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.sector-link::after {
  content: '←';
  transition: var(--transition);
}

.sector-card:hover .sector-link::after { transform: translateX(-5px); }

/* ===== STATS ===== */
.stats-section {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #fff;
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  color: var(--color-accent);
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 0.25rem;
}

.stat-item p {
  color: rgba(255,255,255,.85);
  font-size: 0.95rem;
  margin: 0;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--color-bg-alt);
  text-align: center;
  padding: 4rem 0;
}

.cta-section h2 { margin-bottom: 1rem; }
.cta-section p {
  color: var(--color-text-light);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto 2rem;
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.contact-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.contact-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.contact-card .c-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-accent);
  font-size: 1.4rem;
  border-radius: 50%;
}

.contact-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.contact-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin: 0;
}

.contact-card a {
  color: var(--color-primary);
  font-weight: 600;
}

/* ===== FORM ===== */
.contact-form {
  max-width: 640px;
  margin: 2rem auto 0;
  background: var(--color-bg);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.form-row {
  margin-bottom: 1.25rem;
}

.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: var(--color-bg);
  color: var(--color-text);
  transition: var(--transition);
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(10, 37, 64, .1);
}

.form-row textarea {
  min-height: 140px;
  resize: vertical;
}

.form-submit {
  background: var(--color-primary);
  color: #fff;
  border: 0;
  padding: 0.95rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.form-submit:hover {
  background: var(--color-accent-dark);
  color: var(--color-primary);
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 820px;
  margin: 2rem auto 0;
}

.faq-item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.faq-q {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  user-select: none;
}

.faq-q::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--color-accent);
  transition: var(--transition);
}

.faq-item.active .faq-q::after { transform: rotate(45deg); }

.faq-a {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  color: var(--color-text-light);
}

.faq-item.active .faq-a {
  max-height: 320px;
  padding: 0 1.5rem 1.25rem;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #061a2e;
  color: rgba(255,255,255,.7);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 2px;
  background: var(--color-accent);
}

.footer-col p, .footer-col li {
  font-size: 0.92rem;
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.footer-col ul { list-style: none; }

.footer-col a {
  color: rgba(255,255,255,.7);
  font-size: 0.92rem;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,.5);
}

/* ===== PLACEHOLDER STYLES ===== */
.placeholder {
  background: linear-gradient(135deg, #f0f3f7, #e5ebf0);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: var(--color-text-light);
  font-size: 0.9rem;
  font-style: italic;
  text-align: center;
}

.placeholder-block {
  background: linear-gradient(135deg, #f0f3f7, #e5ebf0);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 0.95rem;
  font-style: italic;
}

/* ===== BREADCRUMBS ===== */
.breadcrumb {
  padding: 1rem 0;
  background: var(--color-bg-alt);
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-right: 0.5rem;
  color: var(--color-text-light);
}

.breadcrumb a { color: var(--color-text-light); }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb span { color: var(--color-primary); font-weight: 600; }

/* ===== PAGE LAYOUTS ===== */
.page-header {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #fff;
  padding: 9rem 0 4rem;
  text-align: center;
}

.page-header h1 {
  color: #fff;
  margin-bottom: 1rem;
}

.page-header p {
  color: rgba(255,255,255,.8);
  font-size: 1.1rem;
  max-width: 720px;
  margin: 0 auto;
}

.page-content {
  padding: 4rem 0;
}

.page-content .container {
  max-width: 920px;
}

.page-content h2 { margin: 2.5rem 0 1rem; }
.page-content h3 { margin: 2rem 0 .75rem; }
.page-content p { margin-bottom: 1rem; font-size: 1.05rem; }
.page-content ul, .page-content ol { margin: 0 2rem 1rem; }
.page-content li { margin-bottom: .5rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .nav-menu { gap: 1.25rem; }
}

@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }

  .nav-menu {
    position: fixed;
    top: 70px;
    right: 0;
    left: 0;
    background: var(--color-bg);
    flex-direction: column;
    gap: 0;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    transition: transform .35s ease;
    border-top: 1px solid var(--color-border);
  }

  .nav-menu.open { transform: translateY(0); }

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-menu li:last-child { border-bottom: 0; }

  .nav-menu a {
    display: block;
    padding: 0.85rem 0;
    width: 100%;
  }

  .menu-toggle { display: block; }

  .hero { min-height: 80vh; padding-top: 7rem; }

  .hero h1 { font-size: 2rem; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-grid, .sectors-grid, .values-grid, .stats-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .section { padding: 3rem 0; }
  .hero-cta { flex-direction: column; }
  .btn { width: 100%; }
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.hidden { display: none; }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn .6s ease-out; }
.fade-in-delay-1 { animation: fadeIn .6s ease-out .15s both; }
.fade-in-delay-2 { animation: fadeIn .6s ease-out .3s both; }

/* WordPress content wrapper overrides */
.entry-content, .entry-header, .entry-footer, .page-content, .post-content {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.wp-site-header, .wp-site-footer, .wp-block-template-part {
  margin: 0 !important;
}

/* Hide default WordPress page templates that might interfere */
.wp-site-blocks { padding: 0 !important; }
.is-layout-flow > * { margin-block-start: 0; }