/*
Theme Name: Ebdaa Kamel — Glass Refresh
Theme URI: https://ebdaakamel.com/
Author: Ebdaa Kamel
Description: Bilingual Arabic and English contracting website with WordPress articles, email contact, translucent surfaces, and responsive project sliders.
Version: 1.3.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: ebdaa-kamel
*/

html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  background: #fbfaf6;
  color: #172740;
  font-family: "IBM Plex Sans Arabic", Arial, sans-serif;
}

.site-main--app {
  margin: 0;
  padding: 0;
}

.wp-content {
  width: min(100% - 40px, 960px);
  min-height: 65vh;
  margin: 60px auto;
  line-height: 1.9;
}

.wp-content article {
  padding: 24px 0;
  border-bottom: 1px solid #dedbd2;
}

.wp-content h1 {
  color: #172740;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.4;
}

.wp-content img {
  max-width: 100%;
  height: auto;
}

.ebdaa-blog-page {
  min-height: 70vh;
  padding-bottom: 86px;
  background: #fbfaf6;
  color: #172740;
  font-family: "IBM Plex Sans Arabic", Arial, sans-serif;
}

.ebdaa-blog-container {
  width: min(100% - 48px, 1180px);
  margin-inline: auto;
}

.ebdaa-blog-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 10vw, 126px) 0 clamp(64px, 8vw, 96px);
  color: #fff;
  background:
    radial-gradient(circle at 14% 80%, rgba(208, 177, 94, .19), transparent 27%),
    linear-gradient(118deg, #172740, #243952 62%, #1b2a41);
}

.ebdaa-blog-hero::after {
  position: absolute;
  inset: 0 57% 0 auto;
  width: 1px;
  background: linear-gradient(transparent, rgba(208, 177, 94, .5), transparent);
  content: "";
}

.ebdaa-blog-hero .ebdaa-blog-container {
  position: relative;
  z-index: 1;
}

.ebdaa-blog-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #b18d42;
  font-size: 12px;
  font-weight: 700;
}

.ebdaa-blog-hero .ebdaa-blog-eyebrow {
  color: #e2c977;
}

.ebdaa-blog-eyebrow span {
  width: 24px;
  height: 1px;
  background: currentColor;
}

.ebdaa-blog-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(38px, 6.4vw, 72px);
  font-weight: 700;
  line-height: 1.35;
}

.ebdaa-blog-hero h1 em {
  color: #e0c16b;
  font-style: normal;
}

.ebdaa-blog-hero p:last-child {
  max-width: 630px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
  line-height: 2;
}

.ebdaa-articles-section {
  padding-top: 64px;
}

.ebdaa-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.ebdaa-article-card {
  overflow: hidden;
  border: 1px solid #e3ded2;
  background: #fffefa;
  box-shadow: 0 10px 28px rgba(23, 39, 64, .055);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.ebdaa-article-card:hover {
  transform: translateY(-5px);
  border-color: rgba(177, 141, 66, .52);
  box-shadow: 0 20px 38px rgba(23, 39, 64, .12);
}

.ebdaa-article-image {
  position: relative;
  display: grid;
  height: 238px;
  overflow: hidden;
  place-items: center;
  background: linear-gradient(140deg, #34475e, #172740);
  color: #e2c977;
  text-decoration: none;
}

.ebdaa-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.ebdaa-article-card:hover .ebdaa-article-image img {
  transform: scale(1.04);
}

.ebdaa-article-image-placeholder {
  border: 1px solid rgba(224, 193, 107, .55);
  padding: 16px 24px;
  font-size: 15px;
  letter-spacing: .02em;
}

.ebdaa-article-card-copy {
  padding: 22px 23px 25px;
}

.ebdaa-article-card time,
.ebdaa-article-meta time {
  color: #7e7c75;
  font-size: 11px;
}

.ebdaa-article-card h2 {
  margin: 11px 0 9px;
  color: #172740;
  font-size: 19px;
  line-height: 1.65;
}

.ebdaa-article-card h2 a {
  color: inherit;
  text-decoration: none;
}

.ebdaa-article-card p {
  min-height: 58px;
  margin: 0;
  color: #686b70;
  font-size: 13px;
  line-height: 1.9;
}

.ebdaa-article-read {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: #9a7428;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.ebdaa-article-read span {
  transition: transform .2s ease;
}

.ebdaa-article-read:hover span {
  transform: translateX(-4px);
}

.ebdaa-articles-empty {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 78px) 24px;
  border: 1px solid #e3ded2;
  background: #fffefa;
  text-align: center;
}

.ebdaa-articles-empty h2 {
  margin: 0 0 12px;
  color: #172740;
  font-size: clamp(24px, 4vw, 36px);
}

.ebdaa-articles-empty p {
  margin: 0 auto;
  color: #686b70;
  line-height: 1.9;
}

.ebdaa-blog-button,
.ebdaa-admin-edit {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  padding: 0 22px;
  border: 1px solid #172740;
  background: #172740;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

.ebdaa-blog-button:hover,
.ebdaa-admin-edit:hover {
  background: #e0c16b;
  border-color: #e0c16b;
  color: #172740;
}

.ebdaa-article-pagination {
  margin-top: 40px;
}

.ebdaa-article-pagination ul {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ebdaa-article-pagination a,
.ebdaa-article-pagination span {
  display: grid;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #ded9ce;
  color: #172740;
  place-items: center;
  text-decoration: none;
}

.ebdaa-article-pagination .current {
  border-color: #172740;
  background: #172740;
  color: #fff;
}

.ebdaa-single-page {
  padding-top: 38px;
}

.ebdaa-back-to-articles {
  display: inline-block;
  margin-bottom: 30px;
  color: #99752b;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.ebdaa-single-article {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 64px);
  border: 1px solid #e3ded2;
  background: #fffefa;
  box-shadow: 0 18px 46px rgba(23, 39, 64, .07);
}

.ebdaa-single-header {
  margin-bottom: 30px;
}

.ebdaa-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  color: #9a7428;
  font-size: 12px;
}

.ebdaa-article-meta a {
  color: inherit;
}

.ebdaa-single-header h1 {
  margin: 16px 0;
  color: #172740;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.45;
}

.ebdaa-single-excerpt {
  max-width: 760px;
  margin: 0;
  color: #62676d;
  font-size: 16px;
  line-height: 2;
}

.ebdaa-single-featured-image {
  margin: 0 0 36px;
}

.ebdaa-single-featured-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 580px;
  object-fit: cover;
}

.ebdaa-single-content {
  color: #394454;
  font-size: 16px;
  line-height: 2.05;
}

.ebdaa-single-content > * {
  max-width: 100%;
}

.ebdaa-single-content h2,
.ebdaa-single-content h3 {
  margin-top: 1.8em;
  color: #172740;
  line-height: 1.5;
}

.ebdaa-single-content img,
.ebdaa-single-content video,
.ebdaa-single-content iframe {
  max-width: 100%;
}

.ebdaa-single-content img {
  height: auto;
}

.ebdaa-single-content a {
  color: #99752b;
}

.ebdaa-single-content blockquote {
  margin-inline: 0;
  padding: 12px 20px;
  border-inline-start: 3px solid #d0b15e;
  background: #f4f0e5;
}

.ebdaa-single-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid #e3ded2;
}

.ebdaa-single-footer .ebdaa-blog-button,
.ebdaa-single-footer .ebdaa-admin-edit {
  margin-top: 0;
}

.ebdaa-single-footer .ebdaa-admin-edit {
  background: transparent;
  color: #172740;
}

@media (max-width: 900px) {
  .ebdaa-articles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .ebdaa-blog-container { width: calc(100% - 36px); }
  .ebdaa-articles-section { padding-top: 34px; }
  .ebdaa-articles-grid { grid-template-columns: 1fr; gap: 16px; }
  .ebdaa-article-image { height: 215px; }
  .ebdaa-article-card-copy { padding: 19px; }
  .ebdaa-article-card p { min-height: 0; }
  .ebdaa-single-page { padding-top: 24px; }
  .ebdaa-single-article { padding: 23px 18px; }
  .ebdaa-single-content { font-size: 14px; }
  .ebdaa-single-footer { align-items: stretch; flex-direction: column; }
}
