/*
Theme Name: Thaby Alsharq
Description: Bilingual trading company website with editable Arabic and English homepage content.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: thaby-alsharq
*/

:root{color-scheme:light;--pine:#142c23;--deep:#10261d;--ink:#172c23;--muted:#465a50;--gold:#e2b76a;--cream:#f8f7f2}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--cream);color:var(--ink);font:1rem/1.7 system-ui,Arial,sans-serif;text-align:start}
html[lang="ar"] body{font-family:Arial,sans-serif}
a{color:inherit;text-underline-offset:.28em}
button,textarea,select{font:inherit}
button{cursor:pointer}
:focus-visible{outline:3px solid #a6752b;outline-offset:4px}
.wrap{width:min(1160px,calc(100% - 3rem));margin-inline:auto}
.header{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:5rem}
.brand{display:flex;align-items:center;gap:.65rem;text-decoration:none;line-height:1.2}
.brand strong,.brand small{display:block}
.brand small{margin-top:.3rem;color:var(--muted);font-size:.78rem}
.mark{display:block;width:3.5rem;height:3.5rem;object-fit:contain;border-radius:50%;flex:none}
nav{display:flex;gap:clamp(1rem,4vw,2.75rem)}
nav a{text-decoration:none;font-weight:650}
nav a:hover{text-decoration:underline}
.language{background:transparent;border:1px solid #9daaa0;border-radius:2rem;padding:.35rem .9rem;color:var(--ink);white-space:nowrap}
.hero{background-color:var(--deep);color:#fff;position:relative;isolation:isolate;min-height:580px;display:grid;align-items:center;overflow:hidden}
.hero::before{position:absolute;inset:0;content:"";z-index:-1;background:linear-gradient(90deg,#10261d 0%,#10261df0 29%,#10261d70 64%,#10261d10 100%),var(--thaby-hero, url(assets/hero.webp)) right center/cover no-repeat}
[dir=rtl] .hero::before{transform:scaleX(-1)}
.hero-inner{padding-block:5rem}
.eyebrow{color:#746022;font-weight:750;letter-spacing:.09em;margin:0 0 .8rem;font-size:.875rem}
[dir=rtl] .eyebrow{letter-spacing:normal}
.hero .eyebrow{color:var(--gold)}
h1,h2,h3,p{margin-block-start:0}
h1{font-size:clamp(2.55rem,5.9vw,5.05rem);line-height:1.12;max-width:11ch;margin-block-end:1.35rem}
[dir=rtl] h1{max-width:9em}
h2{font-size:clamp(1.8rem,4vw,3.35rem);line-height:1.25;margin-block-end:1.25rem}
.intro{max-width:34rem;color:#f2f5ed;font-size:1.15rem;margin-bottom:2rem}
.button{display:inline-block;background:var(--gold);border:1px solid var(--gold);border-radius:.35rem;color:#17251b;padding:.75rem 1.35rem;text-decoration:none;font-weight:750}
.button:hover{background:#f0cc8c}
.products,.contact{padding-block:clamp(3.5rem,8vw,6.7rem)}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-top:2rem}
article{display:flex;flex-direction:column;align-items:start;border:1px solid #d6dfd5;background:#fff;border-radius:.5rem;padding:1.6rem}
article h3{margin:.85rem 0 .45rem;font-size:1.25rem}
article p,.contact p{color:var(--muted)}
article a{margin-top:auto;font-weight:700}
.icon{display:grid;place-items:center;background:#ecf2e9;border-radius:50%;width:2.75rem;height:2.75rem;color:var(--pine);font-size:1.45rem}
.about{background:#e8eee4;padding-block:4.5rem}
.split{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1rem,6vw,5rem);align-items:start}
.about .split{align-items:center}
.about p:last-child{font-size:1.125rem;margin-bottom:0}
form{display:grid;gap:.6rem;padding:1.5rem;background:#fff;border:1px solid #d6dfd5;border-radius:.5rem}
label{font-weight:700}
textarea,select{width:100%;padding:.65rem .8rem;border:1px solid #aebcb1;border-radius:.3rem;background:#fff;color:var(--ink)}
textarea{resize:vertical}
form button{justify-self:start;margin-top:.4rem}
footer{background:var(--pine);color:#edf2ec}
.footer{display:flex;justify-content:space-between;gap:.75rem;flex-wrap:wrap;padding-block:1.4rem}
@media(max-width:720px){.wrap{width:calc(100% - 2rem)}.hero{min-height:500px}.hero::before{background-image:linear-gradient(90deg,#10261df5,#10261d9c),var(--thaby-hero, url(assets/hero.webp))}.grid,.split{grid-template-columns:1fr}.header{flex-wrap:wrap;padding-block:.8rem;row-gap:.55rem}nav{order:3;flex-basis:100%;justify-content:center}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.email-note{font-size:.875rem;margin:0;color:var(--muted)}
