/*
Theme Name: Anas Business Theme
Theme URI: https://example.com/
Author: OpenAI for Anas
Author URI: https://example.com/
Description: A lightweight business WordPress theme with a modern homepage, service cards, and blog support.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: anas-business-theme
Tags: custom-logo, custom-menu, featured-images, one-column, two-columns, blog, custom-background, translation-ready
*/

:root {
  --bg: #0b1220;
  --bg-soft: #10192c;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #0ea5e9;
  --radius: 18px;
  --shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--surface-soft);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226,232,240,.9);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}
.branding {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.site-description {
  margin: 0;
  font-size: .92rem;
  color: var(--muted);
}
.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 22px;
  align-items: center;
}
.main-navigation a {
  color: var(--text);
  font-weight: 600;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: var(--primary);
}
.nav-toggle {
  display: none;
}
.button,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 700;
  border: 0;
  box-shadow: var(--shadow);
  transition: transform .18s ease, opacity .18s ease;
}
.button:hover,
button:hover,
input[type="submit"]:hover {
  color: #fff;
  transform: translateY(-1px);
}
.button.secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}
.hero {
  padding: 80px 0 56px;
  background:
    radial-gradient(circle at top left, rgba(37,99,235,.18), transparent 30%),
    radial-gradient(circle at right center, rgba(14,165,233,.16), transparent 25%),
    linear-gradient(180deg, #f8fbff 0%, #f8fafc 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 34px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 4vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.hero p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 60ch;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-card,
.card,
.post-card,
.widget,
.single-card {
  background: var(--surface);
  border: 1px solid rgba(226,232,240,.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-card {
  padding: 28px;
}
.hero-card h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}
.stat-grid {
  display: grid;
  gap: 14px;
}
.stat-box {
  padding: 18px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
}
.stat-box strong {
  display: block;
  font-size: 1.4rem;
}
.section {
  padding: 72px 0;
}
.section-header {
  max-width: 720px;
  margin-bottom: 28px;
}
.section-header h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 2vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.section-header p {
  margin: 0;
  color: var(--muted);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.card {
  padding: 28px;
}
.card h3 {
  margin: 0 0 12px;
  font-size: 1.22rem;
}
.card p {
  margin: 0 0 16px;
  color: var(--muted);
}
.card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.alt-bg {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.cta-band {
  padding: 34px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  background: linear-gradient(135deg, var(--bg), #13203a);
  color: #fff;
  border-radius: 26px;
}
.cta-band h2,
.cta-band p {
  margin: 0;
  color: #fff;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.post-card {
  overflow: hidden;
}
.post-card img {
  width: 100%;
  display: block;
}
.post-card-content {
  padding: 22px;
}
.post-card h3,
.entry-title {
  margin: 0 0 10px;
  line-height: 1.2;
}
.entry-meta,
.post-meta {
  font-size: .92rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.entry-summary,
.entry-content,
.archive-description {
  color: var(--muted);
}
.site-main {
  padding: 44px 0 72px;
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}
.single-card {
  padding: 30px;
}
.widget {
  padding: 24px;
  margin-bottom: 24px;
}
.widget h2,
.widget h3 {
  margin-top: 0;
  font-size: 1.15rem;
}
.entry-content > *:first-child,
.widget > *:first-child { margin-top: 0; }
.entry-content > *:last-child,
.widget > *:last-child { margin-bottom: 0; }
.site-footer {
  background: var(--bg);
  color: rgba(255,255,255,.84);
  padding: 26px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
  padding: 0;
}
.footer-nav a,
.site-footer a { color: rgba(255,255,255,.84); }
.footer-nav a:hover,
.site-footer a:hover { color: #fff; }
input[type="text"],
input[type="email"],
input[type="search"],
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  font: inherit;
}
.search-form {
  display: flex;
  gap: 10px;
}
.screen-reader-text {
  position: absolute;
  left: -9999px;
}
.pagination,
.posts-navigation,
.post-navigation,
.navigation {
  margin-top: 28px;
}
.alignwide,
.alignfull {
  max-width: 100%;
}

@media (max-width: 980px) {
  .hero-grid,
  .content-grid,
  .grid-3,
  .post-grid {
    grid-template-columns: 1fr;
  }
  .main-navigation {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .nav-toggle details {
    position: relative;
  }
  .nav-toggle summary {
    list-style: none;
    cursor: pointer;
    border: 1px solid var(--border);
    background: #fff;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 700;
  }
  .nav-toggle summary::-webkit-details-marker { display: none; }
  .nav-toggle-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 230px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 14px;
  }
  .nav-toggle-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
  }
  .cta-band,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
