/*
Theme Name: المجموعة الإيطالية - Italian Group
Theme URI: https://wa.me/966546010330
Author: Italian Group
Description: قالب عربي (RTL) لشركة المجموعة الإيطالية لخدمات صيانة وتنظيف الأفران، التنظيف، العزل، الترميم والتشطيبات والدهانات. يحتوي على صفحة لكل خدمة وأزرار واتساب واتصال ثابتة.
Version: 1.0.0
Requires at least: 5.5
Requires PHP: 7.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: italian-group
Tags: rtl-language-support, one-column, custom-menu
*/

:root {
  --background: #faf6ee;
  --foreground: #152219;
  --card: #fdfbf7;
  --primary: #1f5b3a;
  --primary-deep: #0f2c1e;
  --primary-foreground: #faf6ee;
  --secondary: #efe7d6;
  --muted-foreground: #56685c;
  --accent: #cc5536;
  --accent-foreground: #fffaf3;
  --border: #e2d9c7;
  --whatsapp: #2fb45f;
  --whatsapp-foreground: #ffffff;
  --radius: 0.75rem;
  --font-sans: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-display: "El Messiri", "IBM Plex Sans Arabic", serif;
  --shadow-soft: 0 10px 30px -12px rgba(15, 44, 30, 0.25);
  --shadow-lift: 0 22px 45px -18px rgba(15, 44, 30, 0.4);
  --gradient-hero: linear-gradient(to left, rgba(15, 44, 30, 0.92) 0%, rgba(15, 44, 30, 0.7) 45%, rgba(15, 44, 30, 0.1) 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.6;
  direction: rtl;
}
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.25; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
.ig-icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }

.container { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }

.tricolor {
  height: 4px; width: 100%;
  background: linear-gradient(to left, var(--primary) 0 33.33%, var(--background) 33.33% 66.66%, var(--accent) 66.66% 100%);
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.admin-bar .site-header { top: 32px; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .75rem; padding-bottom: .75rem; }
.brand { display: flex; align-items: center; gap: .75rem; }
.brand-mark {
  width: 2.75rem; height: 2.75rem; border-radius: .75rem;
  background: var(--primary); color: var(--primary-foreground);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 700;
}
.brand-name { display: block; font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--primary-deep); line-height: 1.2; }
.brand-tag { display: block; font-size: .75rem; color: var(--muted-foreground); }
.header-nav { display: flex; align-items: center; gap: .5rem; }
.nav-link { padding: .5rem .75rem; border-radius: .5rem; font-size: .9rem; font-weight: 500; }
.nav-link:hover { background: var(--secondary); }
.nav-link.is-active { color: var(--primary); }
@media (max-width: 640px) { .nav-link { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.5rem; border-radius: .75rem; font-weight: 600;
  transition: transform .2s ease, background-color .2s ease;
  border: 0; cursor: pointer; font-family: inherit; font-size: 1rem;
}
.btn:hover { transform: scale(1.04); }
.btn-sm { padding: .5rem 1rem; font-size: .875rem; border-radius: .5rem; }
.btn-sm:hover { transform: none; background: var(--primary-deep); }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-whatsapp { background: var(--whatsapp); color: var(--whatsapp-foreground); box-shadow: var(--shadow-lift); }
.btn-light { background: var(--background); color: var(--primary-deep); }
.btn-accent { background: var(--accent); color: var(--accent-foreground); }
.btn-block { width: 100%; }
.btn-block:hover { transform: scale(1.02); }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; z-index: -1; background-image: var(--gradient-hero); }
.hero-inner { padding-top: 6rem; padding-bottom: 6rem; }
.hero-inner.is-small { padding-top: 5rem; padding-bottom: 5rem; }
.hero-content { max-width: 36rem; color: var(--primary-foreground); animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.badge {
  display: inline-block; padding: .25rem 1rem; border-radius: 999px;
  background: var(--accent); color: var(--accent-foreground); font-size: .875rem; font-weight: 600;
}
.hero h1 { margin-top: 1.25rem; font-size: 2.5rem; font-weight: 700; }
.hero-lead { margin-top: 1.25rem; font-size: 1.125rem; line-height: 2; opacity: .9; }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 640px) {
  .hero-inner { padding-top: 8rem; padding-bottom: 8rem; }
  .hero-inner.is-small { padding-top: 7rem; padding-bottom: 7rem; }
  .hero h1 { font-size: 3.75rem; }
  .hero h1.is-service { font-size: 3rem; }
}
.breadcrumb { display: flex; align-items: center; gap: .25rem; font-size: .875rem; color: rgba(250,246,238,.8); }
.breadcrumb a:hover { color: var(--primary-foreground); }
.breadcrumb .ig-icon { width: 1rem; height: 1rem; }

/* Perks */
.perks { position: relative; z-index: 10; margin-top: -2.5rem; }
.perks-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem;
  background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 1rem; box-shadow: var(--shadow-soft);
}
@media (min-width: 640px) { .perks-grid { grid-template-columns: repeat(4, 1fr); } }
.perk { display: flex; align-items: center; gap: .75rem; padding: .5rem; font-weight: 600; color: var(--primary-deep); }
.perk-icon { width: 2.5rem; height: 2.5rem; border-radius: .5rem; background: var(--secondary); color: var(--primary); display: flex; align-items: center; justify-content: center; }

/* Sections */
.section { margin-top: 5rem; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--border); padding-bottom: 1rem; margin-bottom: 2rem; }
.section-head h2, .section-title { font-size: 1.875rem; font-weight: 700; color: var(--primary-deep); }
.section-title { font-size: 1.5rem; margin-bottom: 2rem; }
.section-count { font-size: .875rem; color: var(--muted-foreground); }

.grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }

/* Card */
.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--border); border-radius: 1rem; box-shadow: var(--shadow-soft);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-tag { position: absolute; top: .75rem; right: .75rem; background: rgba(250,246,238,.92); color: var(--primary); font-size: .75rem; font-weight: 600; padding: .25rem .75rem; border-radius: 999px; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem; }
.card-body h3 { font-size: 1.25rem; font-weight: 700; color: var(--primary-deep); }
.card-body p { margin-top: .5rem; flex: 1; font-size: .875rem; line-height: 1.7; color: var(--muted-foreground); }
.card-more { margin-top: 1rem; display: inline-flex; align-items: center; gap: .25rem; font-size: .875rem; font-weight: 600; color: var(--accent); }
.card-more .ig-icon { width: 1rem; height: 1rem; transition: transform .2s; }
.card:hover .card-more .ig-icon { transform: translateX(-4px); }

/* Service page */
.service-layout { margin-top: 4rem; display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .service-layout { grid-template-columns: 3fr 2fr; } }
.service-main h2 { font-size: 1.5rem; font-weight: 700; color: var(--primary-deep); }
.service-desc { margin-top: 1rem; font-size: 1.125rem; line-height: 2.2; color: rgba(21,34,25,.85); }
.features { margin-top: 1.25rem; display: grid; gap: .75rem; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
.feature { display: flex; align-items: flex-start; gap: .75rem; padding: 1rem; background: var(--card); border: 1px solid var(--border); border-radius: .75rem; font-weight: 500; }
.feature .ig-icon { color: var(--primary); margin-top: .15rem; }
.mt-10 { margin-top: 2.5rem; }
.service-photo { margin-top: 2.5rem; width: 100%; border-radius: 1rem; box-shadow: var(--shadow-soft); }
.order-box {
  position: sticky; top: 7rem; overflow: hidden; border-radius: 1rem;
  background: var(--primary-deep); color: var(--primary-foreground); padding: 1.75rem; box-shadow: var(--shadow-lift);
}
.order-box .tricolor { height: 6px; margin: -1.75rem -1.75rem 1.5rem; width: auto; }
.order-box h3 { font-size: 1.5rem; font-weight: 700; }
.order-box p { margin-top: .75rem; font-size: .875rem; line-height: 1.9; opacity: .85; }
.order-actions { margin-top: 1.5rem; display: flex; flex-direction: column; gap: .75rem; }

/* Footer */
.site-footer { margin-top: 6rem; background: var(--primary-deep); color: var(--primary-foreground); }
.footer-grid { display: grid; gap: 2.5rem; padding-top: 3.5rem; padding-bottom: 3.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 2fr; } }
.site-footer h2 { font-size: 1.5rem; font-weight: 700; }
.site-footer h3 { font-size: 1.125rem; font-weight: 700; }
.footer-about { margin-top: .75rem; font-size: .875rem; line-height: 1.9; opacity: .8; }
.footer-contact { margin-top: 1.25rem; display: flex; flex-direction: column; gap: .5rem; font-size: .875rem; }
.footer-contact a:hover, .footer-links a:hover { color: var(--accent); opacity: 1; }
.footer-links { margin-top: 1rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem 1.5rem; font-size: .875rem; }
@media (min-width: 640px) { .footer-links { grid-template-columns: repeat(3, 1fr); } }
.footer-links a { opacity: .8; }
.footer-bottom { border-top: 1px solid rgba(250,246,238,.15); padding: 1.25rem 0; text-align: center; font-size: .75rem; opacity: .7; }

/* Floating contact buttons (right side) */
.contact-fab { position: fixed; right: 1rem; bottom: 1.5rem; z-index: 999; display: flex; flex-direction: column; gap: .75rem; }
@media (min-width: 640px) { .contact-fab { right: 1.5rem; } }
.fab {
  position: relative; width: 3.5rem; height: 3.5rem; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lift);
  transition: transform .2s ease;
}
.fab:hover { transform: scale(1.1); }
.fab .ig-icon { position: relative; width: 1.6rem; height: 1.6rem; }
.fab-whatsapp { background: var(--whatsapp); color: var(--whatsapp-foreground); }
.fab-whatsapp::before { content: ""; position: absolute; inset: 0; border-radius: 999px; background: var(--whatsapp); animation: fab-ring 1.8s ease-out infinite; }
.fab-call { background: var(--accent); color: var(--accent-foreground); }

/* 404 */
.notfound { max-width: 36rem; margin: 0 auto; padding: 8rem 1rem; text-align: center; }
.notfound h1 { font-size: 1.875rem; color: var(--primary-deep); }
.notfound a { display: inline-block; margin-top: 1.5rem; font-weight: 600; color: var(--accent); }

/* Generic WP content (pages/posts) */
.entry { max-width: 48rem; margin: 4rem auto 0; padding: 0 1rem; }
.entry h1 { font-size: 2rem; color: var(--primary-deep); margin-bottom: 1.5rem; }
.entry-content { line-height: 2; }
.entry-content p { margin-bottom: 1rem; }

@keyframes fab-ring { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
