/*
Theme Name: Ribaad Technology
Theme URI: https://ribaadtech.so/
Author: Ribaad Technology
Author URI: https://ribaadtech.so/
Description: A modern one-page corporate theme for technology companies. English and Somali, light and dark mode, a floating WhatsApp button, portfolio filters, a domain search and a pricing toggle. Built on Bootstrap 5.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ribaad
Tags: one-page, business, portfolio, dark-mode, translation-ready, custom-menu, custom-logo
*/

/* The main stylesheet lives in assets/css/style.css so WordPress can load
   it with a version number. This file carries the theme header plus the
   classes WordPress itself needs. */

/* ---------- WordPress core classes ---------- */

.alignleft   { float: left;  margin: .4rem 1.4rem 1rem 0; }
.alignright  { float: right; margin: .4rem 0 1rem 1.4rem; }
.aligncenter { display: block; margin: 1.2rem auto; }
.alignwide, .alignfull { max-width: 100%; }

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

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  position: static !important;
  width: auto;
  height: auto;
  clip: auto;
}

/* ---------- Blog, single post and page templates ---------- */

.page-hero {
  background: var(--grad-deep);
  background-size: 200% 200%;
  animation: gradientShift 18s ease infinite;
  padding: calc(var(--nav-h) + 3.5rem) 0 3.5rem;
  color: rgba(255, 255, 255, .8);
  text-align: center;
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  margin-bottom: .6rem;
}
.page-hero p { margin: 0 auto; color: rgba(255, 255, 255, .75); }

.post-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s ease;
}
.post-card:hover { transform: translateY(-8px); box-shadow: var(--sh-md), var(--sh-ring); }
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card .post-body { padding: 1.6rem; display: flex; flex-direction: column; flex: 1; }
.post-card h2 { font-size: 1.22rem; margin-bottom: .5rem; }
.post-card h2 a { color: var(--ink); }
.post-card h2 a:hover { color: var(--royal-600); }
.post-card p { font-size: .96rem; flex: 1; }

.post-meta {
  color: var(--muted);
  font-size: .88rem;
  margin-bottom: .55rem;
  font-family: 'Outfit', sans-serif;
}

.entry-content { font-size: 1.04rem; }
.entry-content > * { margin-bottom: 1.2rem; }
.entry-content h2 { font-size: 1.6rem; margin: 2.2rem 0 .8rem; }
.entry-content h3 { font-size: 1.3rem; margin: 1.8rem 0 .7rem; }
.entry-content img { border-radius: var(--r-md); }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; }
.entry-content blockquote {
  border-left: 3px solid var(--cyan-400);
  padding: .3rem 0 .3rem 1.3rem;
  margin-left: 0;
  color: var(--ink);
  font-style: italic;
}
.entry-content pre {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 1.1rem;
  overflow-x: auto;
}
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td {
  border: 1px solid var(--line);
  padding: .6rem .8rem;
  text-align: left;
}

.pagination { justify-content: center; gap: .4rem; margin-top: 3rem; }
.pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 .7rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--body);
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  transition: all .3s var(--ease);
}
.pagination .page-numbers:hover { color: var(--royal-600); border-color: var(--tint-line); }
.pagination .page-numbers.current {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--sh-brand);
}

.comment-respond, .comment-list { margin-top: 2.8rem; }
.comment-list { list-style: none; padding: 0; }
.comment-list li { border-top: 1px solid var(--line); padding: 1.3rem 0; }
.comment-form label { font-family: 'Outfit', sans-serif; font-weight: 500; color: var(--ink); }
.comment-form input, .comment-form textarea {
  width: 100%;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--ink);
  padding: .8rem 1.05rem;
  margin-bottom: 1rem;
}
.comment-form .submit {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  border: 0;
  border-radius: 999px;
  padding: .8rem 1.9rem;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: var(--sh-brand);
  cursor: pointer;
}

.widget { margin-bottom: 2.2rem; }
.widget-title { font-size: 1.1rem; margin-bottom: .9rem; }
.widget ul { list-style: none; padding: 0; }
.widget li { padding: .4rem 0; border-bottom: 1px solid var(--line-soft); }

/* The admin bar must not sit on top of the fixed navbar. */
.admin-bar .navbar { top: 32px; }
@media (max-width: 782px) { .admin-bar .navbar { top: 46px; } }
