
:root{
  --ink: #1E1A16;
  --ink-soft: #2B2520;
  --plaster: #F1ECE2;
  --plaster-dim: #E7E0D2;
  --brass: #B08D57;
  --brass-light: #CBA76C;
  --rust: #8A4A2B;

  --font-head: 'Cairo', 'Tahoma', sans-serif;
  --font-body: 'Tajawal', 'Tahoma', sans-serif;

  --wrap: 1120px;
  --radius: 3px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--plaster);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img{ max-width:100%; display:block; }

a{ color: inherit; text-decoration: none; }

:focus-visible{
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

h1,h2,h3{
  font-family: var(--font-head);
  margin: 0;
  color: var(--ink);
}

.section-title{
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}
.section-title::after{
  content:"";
  position:absolute;
  right:0; bottom:-12px;
  width: 46px; height: 3px;
  background: var(--brass);
}
.section-title.light{ color: var(--plaster); }
.section-title.light::after{ background: var(--brass-light); }

/* subtle grain overlay across whole page */
.noise-overlay{
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 500;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ===================== HEADER ===================== */
.site-header{
  position: sticky; top:0; z-index: 100;
  background: rgba(241,236,226,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(30,26,22,0.08);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  height: 76px;
}
.brand{ display:flex; align-items:center; gap:10px; }
.brand-mark{ color: var(--brass); display:flex; }
.brand-name{ font-family: var(--font-head); font-weight:800; font-size:1.25rem; }

.main-nav{ display:flex; gap: 30px; }
.main-nav a{
  font-weight: 500; font-size: 0.96rem;
  position: relative; padding: 4px 0;
}
.main-nav a::after{
  content:""; position:absolute; right:0; bottom:0;
  width:0; height:2px; background: var(--brass);
  transition: width .3s ease;
}
.main-nav a:hover::after{ width:100%; }

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

.header-call{
  display:flex; align-items:center; gap:8px;
  background: var(--ink); color: var(--plaster);
  padding: 10px 18px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.92rem;
  transition: background .25s ease;
}
.header-call:hover{ background: var(--rust); }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px; height: 34px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span{
  display: block;
  width: 22px; height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.is-active span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2){ opacity: 0; }
.nav-toggle.is-active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px){
  .main-nav{
    display: none;
    position: absolute;
    top: 100%; right: 0; left: 0;
    flex-direction: column;
    background: var(--plaster);
    border-bottom: 1px solid rgba(30,26,22,0.1);
    padding: 6px 28px 14px;
  }
  .main-nav.nav-open{ display: flex; }
  .main-nav a{ padding: 12px 0; border-bottom: 1px solid rgba(30,26,22,0.07); }
  .nav-toggle{ display: flex; }
}

/* ===================== HERO ===================== */
.hero{
  position: relative;
  overflow: hidden;
  padding: 120px 0 110px;
  background:
    radial-gradient(ellipse 60% 50% at 20% 15%, rgba(176,141,87,0.14), transparent),
    var(--ink);
  color: var(--plaster);
}

.hero-inner{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
}

.hero-visual{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.swatch-card{
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1 / 1.05;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 7px;
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(241,236,226,0.14);
  border-radius: 10px;
  box-shadow: 0 40px 70px -30px rgba(0,0,0,0.6);
  transform: rotate(-3deg);
}
.swatch-card span{
  border-radius: 3px;
  transform: scale(0);
  transform-origin: center;
}
.swatch-tag{
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(241,236,226,0.55);
  transform: rotate(-3deg);
}

@media (max-width: 900px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-visual{ order: -1; }
  .swatch-card{ max-width: 220px; }
}

.hero-eyebrow{
  color: var(--brass-light);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 18px;
}

.hero-title{
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.28;
}
.hero-title em{
  font-style: normal;
  color: var(--brass-light);
}
.wipe-line{
  display:block;
  clip-path: inset(0 100% 0 0);
}
.wipe-line + .wipe-line{ margin-top: 2px; }

.hero-sub{
  margin: 26px 0 40px;
  max-width: 46ch;
  font-size: 1.08rem;
  color: rgba(241,236,226,0.82);
  opacity: 0;
}

.hero-actions{ display:flex; gap:16px; flex-wrap: wrap; opacity: 0; }

.btn{
  display:inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary{
  background: var(--brass);
  color: var(--ink);
}
.btn-primary:hover{ background: var(--brass-light); transform: translateY(-2px); }

.btn-ghost{
  border: 1.5px solid rgba(241,236,226,0.4);
  color: inherit;
}
.btn-ghost:hover{ border-color: var(--brass-light); color: var(--brass-light); transform: translateY(-2px); }

.location .btn-ghost{
  border-color: rgba(30,26,22,0.3);
  color: var(--ink);
}
.location .btn-ghost:hover{ border-color: var(--rust); color: var(--rust); }

/* reduced motion: show everything immediately */
@media (prefers-reduced-motion: reduce){
  .wipe-line{ clip-path: none; }
  .hero-sub, .hero-actions{ opacity: 1; }
  .swatch-field span{ transform: scale(1); }
  html{ scroll-behavior: auto; }
}

/* ===================== SERVICES ===================== */
.services{ padding: 100px 0; }

.service-list{
  list-style:none; margin:0; padding:0;
  border-top: 1px solid rgba(30,26,22,0.14);
}
.service-item{
  position: relative;
  display:flex; align-items:center; gap: 26px;
  padding: 30px 0;
  border-bottom: 1px solid rgba(30,26,22,0.14);
}
.service-line{
  position:absolute; top:0; right:0;
  height: 1px; width: 0;
  background: var(--brass);
}
.service-item.in-view .service-line{
  width: 100%;
  transition: width 1s cubic-bezier(.2,.7,.2,1);
}

.service-icon{ color: var(--brass); flex-shrink:0; margin-top:4px; }

.service-icon-badge{
  flex-shrink: 0;
  width: 60px; height: 60px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(176,141,87,0.10);
  border: 1px solid rgba(176,141,87,0.28);
  color: var(--brass);
}

.service-copy h3{
  font-size: 1.3rem; font-weight:700; margin-bottom: 8px;
}
.service-copy p{
  margin:0; max-width: 56ch; color: var(--ink-soft);
}

/* ===================== FINISHES / SWATCHES ===================== */
.finishes{ padding: 90px 0 110px; background: var(--plaster-dim); }

.finishes-head{ max-width: 60ch; margin-bottom: 44px; }
.finishes-head p{ color: var(--ink-soft); margin-top: 0; }

.swatch-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.swatch{
  margin:0;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  position: relative;
  overflow:hidden;
  isolation: isolate;
}
.swatch figcaption{
  position:absolute; right:0; bottom:0; left:0;
  padding: 14px 16px;
  font-size: 0.86rem; font-weight:600;
  color: var(--plaster);
  background: linear-gradient(to top, rgba(20,16,12,0.75), transparent);
}

.swatch--plaster{
  background:
    repeating-linear-gradient(105deg, rgba(255,255,255,0.22) 0 1.5px, transparent 1.5px 7px),
    repeating-linear-gradient(15deg, rgba(30,26,22,0.06) 0 1.5px, transparent 1.5px 10px),
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.35), transparent 55%),
    linear-gradient(155deg, #DCD3C2, #B9AC91);
}
.swatch--brush{
  background:
    repeating-linear-gradient(8deg, rgba(30,20,10,0.16) 0 2px, transparent 2px 6px, rgba(255,255,255,0.10) 6px 8px, transparent 8px 15px),
    linear-gradient(150deg, var(--brass-light) 0%, var(--brass) 45%, var(--rust) 100%);
}
.swatch--molding{
  background:
    repeating-linear-gradient(90deg, rgba(30,26,22,0.16) 0 2px, rgba(255,255,255,0.25) 2px 4px, transparent 4px 20px),
    linear-gradient(155deg, #EFE9DC, #C9BC9F);
}
.swatch--stone{
  background:
    radial-gradient(circle at 25% 20%, rgba(255,255,255,0.16), transparent 40%),
    radial-gradient(ellipse 70% 40% at 70% 75%, rgba(176,141,87,0.25), transparent 60%),
    repeating-linear-gradient(35deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 18px),
    linear-gradient(160deg, #55483D, #221D18);
}

@media (max-width: 760px){
  .swatch-grid{ grid-template-columns: repeat(2, 1fr); }
}

/* ===================== PROCESS ===================== */
.process{ padding: 90px 0; background: var(--ink); color: var(--plaster); }

.process-list{
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.process-step{
  border-top: 2px solid var(--brass);
  padding-top: 18px;
}
.process-num{
  display: block;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brass-light);
  margin-bottom: 10px;
}
.process-step h3{
  color: var(--plaster);
  font-size: 1.12rem;
  margin-bottom: 8px;
}
.process-step p{
  margin: 0;
  color: rgba(241,236,226,0.72);
  font-size: 0.94rem;
}

@media (max-width: 820px){
  .process-list{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px){
  .process-list{ grid-template-columns: 1fr; }
}

/* ===================== GALLERY ===================== */
.gallery{ padding: 100px 0 90px; }

.gallery-head{ max-width: 62ch; margin-bottom: 40px; }
.gallery-head p{ color: var(--ink-soft); margin-top: 0; }
.gallery-head code{
  background: rgba(30,26,22,0.08);
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 0.92em;
  direction: ltr;
  display: inline-block;
}

.gallery-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 160px;
  gap: 14px;
}
.gallery-item{
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--plaster-dim);
  border: 1px solid rgba(30,26,22,0.08);
  grid-column: span 1;
  grid-row: span 1;
}
.gallery-item.tall{ grid-row: span 2; }
.gallery-item.wide{ grid-column: span 2; }

.gallery-item img{
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.gallery-item:hover img{ transform: scale(1.06); }

.gallery-placeholder{ display: none; }
.gallery-item--empty .gallery-placeholder{
  display: flex;
  align-items: center; justify-content: center;
  position: absolute; inset: 6px;
  border: 1.5px dashed rgba(30,26,22,0.25);
  border-radius: 6px;
  color: var(--ink-soft);
  text-align: center;
  padding: 8px;
}
.gallery-item--empty .gallery-placeholder em{
  font-style: normal;
  font-size: 0.76rem;
  opacity: 0.7;
  direction: ltr;
}

@media (max-width: 760px){
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .gallery-item.tall{ grid-row: span 1; }
}

/* ===================== LOCATION ===================== */
.location{ padding: 100px 0; }
.location-grid{
  display:grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.location-address{ color: var(--ink-soft); margin: 0 0 28px; font-size: 1.05rem; }
.location-map iframe{
  width:100%; height: 340px;
  border:0; border-radius: var(--radius);
  filter: grayscale(0.15) contrast(1.02);
}

@media (max-width: 820px){
  .location-grid{ grid-template-columns: 1fr; }
}

/* ===================== CONTACT ===================== */
.contact{
  padding: 100px 0 90px;
  background: var(--ink);
  color: var(--plaster);
}
.contact-sub{ color: rgba(241,236,226,0.75); margin: -18px 0 40px; max-width: 50ch; }

.contact-grid{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.contact-card{
  display:flex; flex-direction:column; align-items:center; gap:10px;
  padding: 26px 14px;
  border: 1px solid rgba(241,236,226,0.16);
  border-radius: var(--radius);
  text-align:center;
  font-size: 0.9rem; font-weight:600;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.contact-card svg{ color: var(--brass-light); }
.contact-card:hover{
  border-color: var(--brass-light);
  background: rgba(176,141,87,0.08);
  transform: translateY(-3px);
}

@media (max-width: 760px){
  .contact-grid{ grid-template-columns: repeat(2, 1fr); }
  .contact-grid a:last-child{ grid-column: 1 / -1; }
}

/* ===================== FOOTER ===================== */
.site-footer{
  background: var(--ink-soft);
  color: rgba(241,236,226,0.7);
  padding-top: 64px;
}

.footer-grid{
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(241,236,226,0.1);
}

.footer-brand .brand{ color: var(--plaster); }
.footer-brand .brand-mark{ color: var(--brass-light); }
.footer-brand p{
  margin: 14px 0 0;
  max-width: 32ch;
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(241,236,226,0.6);
}

.footer-col{ display: flex; flex-direction: column; }
.footer-col h4{
  font-family: var(--font-head);
  color: var(--plaster);
  font-size: 0.96rem;
  font-weight: 700;
  margin: 0 0 16px;
}
.footer-col a{
  font-size: 0.9rem;
  color: rgba(241,236,226,0.7);
  padding: 6px 0;
  transition: color .2s ease;
}
.footer-col a:hover{ color: var(--brass-light); }

.footer-address{
  margin: 10px 0 0;
  font-size: 0.84rem;
  line-height: 1.7;
  color: rgba(241,236,226,0.5);
}

.footer-bottom{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 22px 0;
  font-size: 0.82rem;
  color: rgba(241,236,226,0.5);
}

@media (max-width: 820px){
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .footer-brand{ grid-column: 1 / -1; }
}
@media (max-width: 520px){
  .footer-grid{ grid-template-columns: 1fr; gap: 30px; }
  .footer-brand{ grid-column: auto; }
}

/* ===================== MOBILE CONTENT CENTERING ===================== */
@media (max-width: 760px){
  .header-call{ display: none; }

  .hero-copy{ text-align: center; }
  .hero-actions{ justify-content: center; }

  .section-title{ display: block; text-align: center; }
  .section-title::after{ left: 50%; right: auto; transform: translateX(-50%); }

  .service-item{ flex-direction: column; align-items: center; text-align: center; gap: 14px; }
  .service-copy p{ margin-left: auto; margin-right: auto; }

  .process-step{ text-align: center; }

  .finishes-head, .gallery-head{ text-align: center; margin-left: auto; margin-right: auto; }

  .location-copy{ text-align: center; }

  .contact-sub{ margin-left: auto; margin-right: auto; text-align: center; }

  .footer-brand .brand{ justify-content: center; }
  .footer-brand, .footer-col{ text-align: center; align-items: center; }
  .footer-bottom{ flex-direction: column; justify-content: center; text-align: center; }
}

/* ================= GALLERY ================= */

.gallery {
    padding: 90px 0;
    background: #f8f5ef;
}

.gallery-head {
    text-align: center;
    margin-bottom: 45px;
}

.gallery-head .section-title {
    margin-bottom: 15px;
}

.gallery-head p {
    font-size: 17px;
    color: #666;
    margin: 0 auto;
}

/* الصور */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.gallery-card {
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: 12px;
    background: #eee;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Hover */

.gallery-card:hover img {
    transform: scale(1.06);
}


/* ================= TABLET ================= */

@media (max-width: 992px) {

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .gallery-card {
        height: 260px;
    }
}


/* ================= MOBILE ================= */

@media (max-width: 600px) {

    .gallery {
        padding: 60px 15px;
    }

    .gallery-head {
        margin-bottom: 30px;
    }

    .gallery-head p {
        font-size: 15px;
        line-height: 1.8;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .gallery-card {
        height: 250px;
        border-radius: 10px;
    }
}
/* ================= ABOUT ================= */

.about {
    padding: 100px 0;
    background: #f7f3eb;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

/* الصورة */

.about-image {
    position: relative;
    width: 100%;
    height: 560px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

/* المربع الذهبي */

.about-badge {
    position: absolute;
    right: -30px;
    bottom: 35px;
    width: 150px;
    height: 150px;

    background: #bd9655;
    color: #fff;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    border: 8px solid #f7f3eb;
}

.about-badge strong {
    font-size: 38px;
    font-weight: 700;
    line-height: 1;
}

.about-badge span {
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}


/* المحتوى */

.about-content {
    direction: rtl;
}

.about-subtitle {
    display: inline-block;
    color: #b58b4c;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    padding-right: 45px;
}

.about-subtitle::before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 32px;
    height: 2px;
    background: #b58b4c;
}

.about-content h2 {
    font-size: 44px;
    line-height: 1.4;
    color: #211d19;
    margin: 0 0 25px;
    font-weight: 700;
}

.about-content h2 span {
    display: block;
    color: #b58b4c;
}

.about-content > p {
    color: #666;
    font-size: 16px;
    line-height: 2;
    margin-bottom: 15px;
}


/* المميزات */

.about-features {
    margin-top: 30px;
    display: grid;
    gap: 18px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 15px;
}

.about-feature > span {
    width: 38px;
    height: 38px;
    flex-shrink: 0;

    background: #bd9655;
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    font-size: 18px;
}

.about-feature h4 {
    margin: 0 0 3px;
    color: #211d19;
    font-size: 17px;
}

.about-feature p {
    margin: 0;
    color: #777;
    font-size: 14px;
}


/* الزر */

.about-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;

    margin-top: 35px;
    padding: 15px 30px;

    background: #211d19;
    color: #fff;

    text-decoration: none;
    font-size: 16px;

    transition: 0.3s;
}

.about-btn span {
    font-size: 20px;
}

.about-btn:hover {
    background: #bd9655;
    color: #fff;
}


/* ================= TABLET ================= */

@media (max-width: 992px) {

    .about {
        padding: 80px 25px;
    }

    .about-container {
        gap: 50px;
    }

    .about-image {
        height: 480px;
    }

    .about-content h2 {
        font-size: 36px;
    }

    .about-badge {
        right: -15px;
        bottom: 20px;
    }
}


/* ================= MOBILE ================= */

@media (max-width: 700px) {

    .about {
        padding: 65px 18px;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .about-image {
        height: 400px;
    }

    .about-badge {
        right: 15px;
        bottom: -25px;
        width: 125px;
        height: 125px;
    }

    .about-badge strong {
        font-size: 30px;
    }

    .about-badge span {
        font-size: 12px;
    }

    .about-content h2 {
        font-size: 32px;
    }

    .about-content > p {
        font-size: 15px;
        line-height: 1.9;
    }

    .about-feature h4 {
        font-size: 16px;
    }
}