/*
Theme Name: ITRI Luxe
Theme URI: https://example.com/itri-luxe
Author: Smart Advice
Author URI: https://example.com
Description: Thème WordPress minimaliste luxe (FR/AR, RTL), compatible WooCommerce. Conçu pour la marque ITRI.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: itri-luxe
Domain Path: /languages
Tags: custom-logo, translation-ready, rtl-language-support, woocommerce, blog
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* =========================
   ITRI LUXE — Base styles
   ========================= */


/* Arabic font */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700&display=swap');

:root{

  --black-cosmic:#0A0A0A;
  --gold-celestial:#C9A646;
  --grey-mineral:#7E7E7E;
  --white-light:#F4F1EA;
  --radius:18px;
  --shadow: 0 10px 28px rgba(0,0,0,.35);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--black-cosmic);
  color:var(--white-light);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height:1.8;
}
a{ color:inherit; text-decoration:none; }
a:hover{ color:var(--gold-celestial); }
img{ max-width:100%; height:auto; display:block; }

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

.site-header{
  position:sticky; top:0; z-index:50;
  background: rgba(10,10,10,.72);
  backdrop-filter: blur(12px);
  border-bottom:1px solid rgba(201,166,70,.16);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
  gap:18px;
}
.brand{
  display:flex; align-items:center; gap:12px; min-width: 160px;
}
.brand-mark{
  display:flex; align-items:center; justify-content:center;
  width:38px; height:38px;
  border:1px solid rgba(201,166,70,.55);
  border-radius:999px;
}
.brand-title{
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing:.18em;
  text-transform:uppercase;
  font-size:15px;
}
.brand-sub{
  color:var(--grey-mineral);
  font-size:12px;
  letter-spacing:.08em;
}

.nav{
  display:flex; align-items:center; gap:18px;
}
.nav a{ display:inline-block; 
  font-size:13px;
  letter-spacing:.14em;
  text-transform:uppercase;
  opacity:.92;
}
.nav a:focus-visible{ outline:2px solid var(--gold-celestial); outline-offset:3px; }

.header-actions{
  display:flex; align-items:center; gap:12px;
}

.lang-switcher{
  display:flex; gap:8px; align-items:center;
  border:1px solid rgba(201,166,70,.28);
  padding:8px 10px;
  border-radius:999px;
}
.lang-switcher a{
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  opacity:.85;
}
.lang-switcher .is-active{
  color:var(--gold-celestial);
  opacity:1;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 22px;
  border-radius:999px;
  border:1px solid rgba(201,166,70,.65);
  background:transparent;
  color:var(--white-light);
  letter-spacing:.18em;
  text-transform:uppercase;
  font-size:12px;
  transition: all .4s ease;
  cursor:pointer;
}
.btn:hover{
  background: rgba(201,166,70,.08);
}
.btn:focus-visible{
  outline:2px solid var(--gold-celestial);
  outline-offset:3px;
}

.hero{
  padding:86px 0 56px;
  position:relative;
  overflow:hidden;
}
.hero::before{
  content:"";
  position:absolute; inset:-40%;
  background:
    radial-gradient(circle at 20% 30%, rgba(201,166,70,.13), transparent 42%),
    radial-gradient(circle at 72% 62%, rgba(244,241,234,.06), transparent 45%),
    radial-gradient(circle at 45% 10%, rgba(201,166,70,.09), transparent 38%);
  filter: blur(0px);
  pointer-events:none;
}
.hero-grid{
  position:relative;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:34px;
  align-items:center;
}
.kicker{
  color:var(--grey-mineral);
  text-transform:uppercase;
  letter-spacing:.22em;
  font-size:12px;
}
.h1{
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing:.14em;
  text-transform:uppercase;
  font-size:44px;
  line-height:1.2;
  margin:12px 0 10px;
}
.lead{
  color:rgba(244,241,234,.88);
  max-width: 58ch;
  margin:0 0 22px;
}
.hero-card{
  border:1px solid rgba(201,166,70,.22);
  border-radius: var(--radius);
  background: rgba(255,255,255,.02);
  box-shadow: var(--shadow);
  padding:22px;
}
.hero-card .meta{
  color:var(--grey-mineral);
  font-size:13px;
  margin:0 0 10px;
}
.hero-card .value{
  font-size:18px;
  margin:0;
}
.hr{
  height:1px;
  background: rgba(201,166,70,.18);
  margin:18px 0;
}

.section{
  padding:56px 0;
}
.section-title{
  font-family: Georgia, "Times New Roman", serif;
  text-transform:uppercase;
  letter-spacing:.16em;
  font-size:22px;
  margin:0 0 12px;
}
.section-sub{
  color:rgba(244,241,234,.82);
  margin:0 0 26px;
  max-width: 70ch;
}

.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:18px;
}
.card{
  border:1px solid rgba(201,166,70,.18);
  border-radius: var(--radius);
  background: rgba(255,255,255,.02);
  padding:22px;
}
.card h3{
  margin:0 0 8px;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-size:14px;
}
.card p{ margin:0; color:rgba(244,241,234,.82); }

.products-wrap{
  border:1px solid rgba(201,166,70,.18);
  border-radius: var(--radius);
  background: rgba(255,255,255,.015);
  padding:18px;
}
.woocommerce ul.products li.product{
  background: rgba(255,255,255,.02);
  border:1px solid rgba(201,166,70,.18);
  border-radius: var(--radius);
  padding:14px !important;
}
.woocommerce ul.products li.product .price{
  color: var(--gold-celestial);
}
.woocommerce a.button{
  border:1px solid rgba(201,166,70,.65);
  background:transparent !important;
  color:var(--white-light) !important;
  border-radius:999px !important;
  letter-spacing:.14em;
  text-transform:uppercase;
  font-size:12px !important;
  padding:10px 16px !important;
  transition: all .35s ease;
}
.woocommerce a.button:hover{
  background: rgba(201,166,70,.08) !important;
}

.page-head{
  padding:44px 0 18px;
}
.page-head h1{
  margin:0;
  font-family: Georgia, "Times New Roman", serif;
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:34px;
}
.page-head p{
  margin:8px 0 0;
  color:rgba(244,241,234,.82);
  max-width: 80ch;
}

.form{
  display:grid;
  gap:12px;
  max-width:680px;
}
.input, .textarea{
  width:100%;
  background: rgba(255,255,255,.02);
  border:1px solid rgba(201,166,70,.22);
  color:var(--white-light);
  padding:12px 14px;
  border-radius: 14px;
  outline:none;
}
.textarea{ min-height: 160px; resize: vertical; }
.note{
  color:var(--grey-mineral);
  font-size:13px;
}

.site-footer{
  border-top:1px solid rgba(201,166,70,.16);
  padding:28px 0;
  color:rgba(244,241,234,.75);
  font-size:13px;
}
.footer-grid{
  display:flex;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}
.footer-grid a{ opacity:.9; }
.footer-grid a:hover{ opacity:1; }

@media (max-width: 980px){
  .hero-grid{ grid-template-columns:1fr; }
  .cards{ grid-template-columns:1fr; }
  .h1{ font-size:38px; }
  .nav{ display:none; }
}


/* =========================
   Mobile menu + animations
   ========================= */

.burger{
  width:42px; height:42px;
  border-radius:999px;
  border:1px solid rgba(201,166,70,.28);
  background:transparent;
  color:var(--white-light);
  display:none;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition: all .35s ease;
}
.burger:hover{ background: rgba(201,166,70,.08); }
.burger:focus-visible{ outline:2px solid var(--gold-celestial); outline-offset:3px; }
.burger-lines{
  width:18px; height:12px; position:relative;
}
.burger-lines span{
  position:absolute; left:0; right:0;
  height:1px; background: rgba(244,241,234,.92);
  transition: transform .35s ease, opacity .35s ease, top .35s ease;
}
.burger-lines span:nth-child(1){ top:0; }
.burger-lines span:nth-child(2){ top:5.5px; }
.burger-lines span:nth-child(3){ top:11px; }

body.menu-open .burger-lines span:nth-child(1){ top:5.5px; transform: rotate(45deg); }
body.menu-open .burger-lines span:nth-child(2){ opacity:0; }
body.menu-open .burger-lines span:nth-child(3){ top:5.5px; transform: rotate(-45deg); }

.mobile-nav-overlay{
  position:fixed; inset:0;
  background: rgba(10,10,10,.62);
  backdrop-filter: blur(10px);
  opacity:0; pointer-events:none;
  transition: opacity .35s ease;
  z-index: 80;
}
body.menu-open .mobile-nav-overlay{ opacity:1; pointer-events:auto; }

.mobile-nav{
  position:fixed;
  top:0; bottom:0;
  width:min(380px, 92vw);
  background: rgba(10,10,10,.92);
  border-left: 1px solid rgba(201,166,70,.18);
  right:-420px;
  transition: right .45s ease;
  z-index: 90;
  padding: 18px;
  display:flex;
  flex-direction:column;
  gap:14px;
}
body.rtl .mobile-nav{ left:-420px; right:auto; border-left:0; border-right:1px solid rgba(201,166,70,.18); }
body.menu-open .mobile-nav{ right:0; }
body.menu-open.rtl .mobile-nav{ left:0; }

.mobile-nav-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding-bottom:10px;
  border-bottom:1px solid rgba(201,166,70,.16);
}
.mobile-nav-title{
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing:.16em;
  text-transform:uppercase;
  font-size:14px;
}
.mobile-nav-close{
  width:42px; height:42px;
  border-radius:999px;
  border:1px solid rgba(201,166,70,.28);
  background:transparent;
  color:var(--white-light);
  cursor:pointer;
}
.mobile-nav-links{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding-top:12px;
}
.mobile-nav-links a{
  padding:12px 14px;
  border-radius: 14px;
  border:1px solid rgba(201,166,70,.14);
  background: rgba(255,255,255,.01);
  letter-spacing:.14em;
  text-transform:uppercase;
  font-size:12px;
}
.mobile-nav-links a:hover{
  background: rgba(201,166,70,.06);
  border-color: rgba(201,166,70,.28);
}

.reveal{
  opacity:0;
  transform: translateY(10px);
  transition: opacity .9s ease, transform .9s ease;
  will-change: opacity, transform;
}
.reveal.is-visible{
  opacity:1;
  transform: translateY(0);
}

@media (max-width: 980px){
  .burger{ display:inline-flex; }
  .header-actions .btn{ display:none; }
}

body.rtl{
  font-family: 'Tajawal', system-ui, -apple-system, sans-serif;
}

/* Product hover luxury */
.woocommerce ul.products li.product{
  transition: transform .45s ease, box-shadow .45s ease;
}
.woocommerce ul.products li.product:hover{
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0,0,0,.45);
}

/* =========================
   WooCommerce — single product (premium)
   ========================= */
.single-product .product{
  border:1px solid rgba(201,166,70,.18);
  border-radius: var(--radius);
  background: rgba(255,255,255,.015);
  padding:18px;
}
.single-product .woocommerce-product-gallery{
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid rgba(201,166,70,.14);
  background: rgba(255,255,255,.01);
}
.single-product .summary{
  padding: 6px 4px;
}
.single-product .product_title{
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.single-product .price{
  color: var(--gold-celestial) !important;
  font-size: 20px !important;
}
.woocommerce div.product form.cart .button{
  border:1px solid rgba(201,166,70,.65) !important;
  background:transparent !important;
  color:var(--white-light) !important;
  border-radius:999px !important;
  letter-spacing:.14em;
  text-transform:uppercase;
  padding:12px 18px !important;
  transition: all .35s ease;
}
.woocommerce div.product form.cart .button:hover{
  background: rgba(201,166,70,.08) !important;
}
