/*
Theme Name: Al Tayseer Wooden
Theme URI: https://altayseerwooden.com/
Author: Al Tayseer Wooden Industries
Description: Custom, lightweight, SEO-ready WordPress theme for Al Tayseer Wooden Industries. Built for UAE joinery, bespoke furniture, wardrobes, kitchens, projects and B2B enquiries.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: altayseer-wooden
*/

:root {
  --atw-ink: #1f2223;
  --atw-charcoal: #292d2e;
  --atw-stone: #e8e2d9;
  --atw-sand: #f5f1ea;
  --atw-cream: #fbf9f5;
  --atw-white: #ffffff;
  --atw-walnut: #765a43;
  --atw-walnut-dark: #554131;
  --atw-line: rgba(31,34,35,.13);
  --atw-muted: #656968;
  --atw-success: #2f6d4f;
  --atw-danger: #9a3939;
  --atw-shadow: 0 20px 70px rgba(31,34,35,.10);
  --atw-radius: 22px;
  --atw-radius-sm: 14px;
  --atw-max: 1240px;
  --atw-header: 82px;
  --atw-serif: Georgia, 'Times New Roman', serif;
  --atw-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--atw-cream);
  color: var(--atw-ink);
  font-family: var(--atw-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .16em; }
a:hover { color: var(--atw-walnut-dark); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--atw-stone); color: var(--atw-ink); }

.atw-container { width: min(calc(100% - 40px), var(--atw-max)); margin-inline: auto; }
.atw-narrow { width: min(calc(100% - 40px), 820px); margin-inline: auto; }
.atw-section { padding: clamp(72px, 9vw, 132px) 0; }
.atw-section--tight { padding: clamp(52px, 6vw, 86px) 0; }
.atw-section--dark { background: var(--atw-ink); color: var(--atw-white); }
.atw-section--stone { background: var(--atw-sand); }
.atw-eyebrow {
  display: inline-flex; gap: 9px; align-items: center;
  font-size: .77rem; line-height: 1; letter-spacing: .15em; text-transform: uppercase;
  font-weight: 700; color: var(--atw-walnut);
}
.atw-eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.atw-section--dark .atw-eyebrow { color: #d8c2ac; }
.atw-title {
  margin: 18px 0 20px;
  font-family: var(--atw-serif);
  font-size: clamp(2.2rem, 4.8vw, 5.2rem);
  line-height: .98;
  letter-spacing: -.035em;
  font-weight: 400;
}
.atw-title--medium { font-size: clamp(2rem, 3.3vw, 3.7rem); line-height: 1.04; }
.atw-copy { color: var(--atw-muted); font-size: clamp(1rem, 1.25vw, 1.15rem); max-width: 680px; }
.atw-section--dark .atw-copy { color: rgba(255,255,255,.72); }
.atw-lead { font-size: clamp(1.12rem, 1.65vw, 1.35rem); line-height: 1.55; color: var(--atw-muted); }
.atw-rule { border: 0; border-top: 1px solid var(--atw-line); margin: 0; }

.atw-button {
  display: inline-flex; min-height: 52px; align-items: center; justify-content: center;
  gap: 10px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--atw-ink);
  background: var(--atw-ink); color: white; text-decoration: none; font-weight: 700;
  font-size: .93rem; transition: transform .2s ease, background .2s ease, color .2s ease;
}
.atw-button:hover { background: var(--atw-walnut-dark); border-color: var(--atw-walnut-dark); color: white; transform: translateY(-1px); }
.atw-button--ghost { background: transparent; color: var(--atw-ink); }
.atw-button--ghost:hover { background: var(--atw-ink); color: white; border-color: var(--atw-ink); }
.atw-button--light { background: white; color: var(--atw-ink); border-color: white; }
.atw-button--light:hover { background: var(--atw-stone); color: var(--atw-ink); border-color: var(--atw-stone); }
.atw-button--text { min-height: auto; padding: 0; border: 0; background: transparent; color: inherit; border-radius: 0; }
.atw-button--text:hover { background: transparent; color: var(--atw-walnut); transform: none; }

/* Header */
.atw-site-header {
  position: sticky; top: 0; z-index: 50; min-height: var(--atw-header);
  border-bottom: 1px solid var(--atw-line); background: rgba(251,249,245,.93);
  backdrop-filter: blur(14px);
}
.atw-header-inner { min-height: var(--atw-header); display: flex; align-items: center; gap: 30px; }
.atw-brand { display: inline-flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.atw-brand__image { display: block; width: auto; height: clamp(42px, 4.2vw, 72px); max-width: min(56vw, 520px); object-fit: contain; }
.atw-brand--footer .atw-brand__image { filter: brightness(0) invert(1); opacity: .95; }
.atw-nav { margin-left: auto; }
.atw-nav ul { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; }
.atw-nav a { text-decoration: none; font-weight: 650; font-size: .88rem; }
.atw-header-actions { display: flex; gap: 10px; align-items: center; }
.atw-menu-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--atw-line); background: transparent; }
.atw-menu-toggle span, .atw-menu-toggle::before, .atw-menu-toggle::after { content: ''; display: block; width: 18px; height: 1px; background: var(--atw-ink); margin: 4px auto; transition: .2s; }

/* Hero */
.atw-hero { padding: clamp(32px, 5vw, 70px) 0 clamp(74px, 9vw, 124px); overflow: hidden; }
.atw-hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr); gap: clamp(34px, 5vw, 78px); align-items: center; }
.atw-hero h1 { max-width: 760px; }
.atw-hero__copy { padding: 34px 0; }
.atw-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.atw-hero__proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--atw-line); }
.atw-proof strong { display: block; font-family: var(--atw-serif); font-size: clamp(1.5rem, 2vw, 2.1rem); font-weight: 400; }
.atw-proof span { color: var(--atw-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.atw-hero__media { position: relative; min-height: 640px; }
.atw-hero__media .atw-placeholder { height: 100%; min-height: 640px; }
.atw-hero__badge { position: absolute; left: -28px; bottom: 34px; max-width: 210px; background: white; box-shadow: var(--atw-shadow); padding: 20px; border-radius: 16px; }
.atw-hero__badge strong { display: block; font-family: var(--atw-serif); font-size: 1.2rem; margin-bottom: 4px; }
.atw-hero__badge span { color: var(--atw-muted); font-size: .82rem; }

.atw-placeholder {
  position: relative; min-height: 320px; overflow: hidden; border-radius: var(--atw-radius);
  border: 1px solid var(--atw-line); background:
    linear-gradient(135deg, rgba(118,90,67,.10), rgba(31,34,35,.04)),
    repeating-linear-gradient(45deg, rgba(31,34,35,.025) 0, rgba(31,34,35,.025) 12px, transparent 12px, transparent 24px),
    var(--atw-stone);
  display: grid; place-items: center; text-align: center;
}
.atw-placeholder::after { content: ''; position: absolute; inset: 14px; border: 1px dashed rgba(31,34,35,.18); border-radius: calc(var(--atw-radius) - 8px); pointer-events: none; }
.atw-placeholder__label { position: relative; z-index: 1; width: min(76%, 320px); }
.atw-placeholder__label strong { font-family: var(--atw-serif); font-size: 1.35rem; font-weight: 400; display: block; }
.atw-placeholder__label span { display: block; margin-top: 7px; color: var(--atw-muted); font-size: .78rem; letter-spacing: .05em; }

/* Grids/cards */
.atw-section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 46px; }
.atw-section-head > div:first-child { max-width: 780px; }
.atw-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.atw-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.atw-card { background: white; border: 1px solid var(--atw-line); border-radius: var(--atw-radius); overflow: hidden; }
.atw-card__media { aspect-ratio: 4 / 3; }
.atw-card__body { padding: 24px; }
.atw-card__kicker { color: var(--atw-walnut); font-size: .73rem; text-transform: uppercase; letter-spacing: .11em; font-weight: 750; }
.atw-card h3 { font-family: var(--atw-serif); font-size: clamp(1.45rem, 2vw, 2rem); line-height: 1.1; font-weight: 400; margin: 10px 0 10px; }
.atw-card p { margin: 0; color: var(--atw-muted); }
.atw-card__link { display: inline-flex; margin-top: 20px; font-weight: 700; text-decoration: none; }
.atw-card:hover .atw-card__link { color: var(--atw-walnut); }

.atw-service-card { position: relative; min-height: 480px; overflow: hidden; border-radius: var(--atw-radius); background: var(--atw-charcoal); color: white; }
.atw-service-card .atw-placeholder { position: absolute; inset: 0; border: 0; border-radius: 0; opacity: .66; }
.atw-service-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,16,16,.9), rgba(15,16,16,.08) 62%); }
.atw-service-card__body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 28px; }
.atw-service-card__body span { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.65); }
.atw-service-card__body h3 { font-family: var(--atw-serif); font-size: 2rem; line-height: 1.05; font-weight: 400; margin: 8px 0 0; }
.atw-service-card__body a { color: white; text-decoration: none; }

/* Audience split */
.atw-audience { display: grid; grid-template-columns: 1fr 1fr; background: var(--atw-ink); border-radius: 30px; overflow: hidden; }
.atw-audience__panel { min-height: 520px; padding: clamp(34px, 5vw, 72px); display: flex; flex-direction: column; justify-content: end; color: white; position: relative; }
.atw-audience__panel + .atw-audience__panel { border-left: 1px solid rgba(255,255,255,.15); }
.atw-audience__panel h3 { font-family: var(--atw-serif); font-size: clamp(2rem, 3.6vw, 4.2rem); line-height: .98; font-weight: 400; margin: 14px 0 16px; }
.atw-audience__panel p { color: rgba(255,255,255,.7); max-width: 490px; }
.atw-audience__panel ul { padding-left: 18px; color: rgba(255,255,255,.83); }

/* Factory */
.atw-factory { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.atw-factory__media { display: grid; grid-template-columns: 1.18fr .82fr; gap: 14px; }
.atw-factory__media .atw-placeholder:first-child { min-height: 600px; }
.atw-factory__stack { display: grid; gap: 14px; }
.atw-factory__stack .atw-placeholder { min-height: 293px; }
.atw-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 28px 0 32px; padding: 0; list-style: none; }
.atw-checks li { padding-left: 22px; position: relative; }
.atw-checks li::before { content: '•'; position: absolute; left: 3px; color: var(--atw-walnut); }

/* Process */
.atw-process { counter-reset: atw-step; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--atw-line); border-left: 1px solid var(--atw-line); }
.atw-process__step { counter-increment: atw-step; min-height: 250px; padding: 28px; border-right: 1px solid var(--atw-line); border-bottom: 1px solid var(--atw-line); }
.atw-process__step::before { content: '0' counter(atw-step); color: var(--atw-walnut); font-size: .76rem; letter-spacing: .12em; font-weight: 800; }
.atw-process__step h3 { margin: 36px 0 10px; font-family: var(--atw-serif); font-size: 1.55rem; font-weight: 400; }
.atw-process__step p { margin: 0; color: var(--atw-muted); }

/* CTA */
.atw-cta { border-radius: 32px; background: var(--atw-walnut-dark); color: white; padding: clamp(40px, 7vw, 90px); display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; }
.atw-cta h2 { margin: 14px 0 0; max-width: 860px; }
.atw-cta p { color: rgba(255,255,255,.72); max-width: 640px; margin-bottom: 0; }
.atw-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Forms */
.atw-form { display: grid; gap: 18px; }
.atw-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.atw-field label { display: block; font-weight: 750; font-size: .84rem; margin-bottom: 7px; }
.atw-field input, .atw-field select, .atw-field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--atw-line);
  border-radius: 12px; background: white; color: var(--atw-ink); outline: 0;
}
.atw-field textarea { min-height: 140px; resize: vertical; }
.atw-field input:focus, .atw-field select:focus, .atw-field textarea:focus { border-color: var(--atw-walnut); box-shadow: 0 0 0 3px rgba(118,90,67,.08); }
.atw-field small { display: block; color: var(--atw-muted); margin-top: 6px; }
.atw-form-status { padding: 14px 16px; border-radius: 12px; margin-bottom: 20px; }
.atw-form-status--success { background: #e8f3ed; color: var(--atw-success); }
.atw-form-status--error { background: #f7e8e8; color: var(--atw-danger); }

/* Inner pages */
.atw-page-hero { padding: clamp(60px, 8vw, 120px) 0 clamp(48px, 6vw, 82px); border-bottom: 1px solid var(--atw-line); }
.atw-page-hero__grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 40px; align-items: end; }
.atw-page-hero h1 { margin-bottom: 0; }
.atw-breadcrumbs { font-size: .78rem; color: var(--atw-muted); margin-bottom: 18px; }
.atw-breadcrumbs a { text-decoration: none; }
.atw-content { font-size: 1.06rem; }
.atw-content > * { max-width: 780px; }
.atw-content > .alignwide { max-width: 1120px; }
.atw-content > .alignfull { max-width: none; }
.atw-content h2, .atw-content h3 { font-family: var(--atw-serif); font-weight: 400; line-height: 1.1; }
.atw-content h2 { font-size: clamp(2rem, 3vw, 3rem); margin-top: 2.2em; }
.atw-content h3 { font-size: 1.7rem; margin-top: 1.8em; }
.atw-content p, .atw-content li { color: #4f5352; }

.atw-project-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.atw-tag { border: 1px solid var(--atw-line); border-radius: 999px; padding: 7px 11px; font-size: .75rem; color: var(--atw-muted); }
.atw-project-gallery { display: grid; grid-template-columns: 1.35fr .65fr; gap: 14px; }
.atw-project-gallery__stack { display: grid; gap: 14px; }
.atw-project-gallery .atw-placeholder { min-height: 290px; }
.atw-project-gallery > .atw-placeholder { min-height: 594px; }

/* Footer */
.atw-site-footer { background: var(--atw-ink); color: white; padding: 72px 0 28px; }
.atw-footer-grid { display: grid; grid-template-columns: 1.35fr .75fr .75fr 1fr; gap: 46px; }
.atw-footer-brand p { color: rgba(255,255,255,.6); max-width: 410px; }
.atw-site-footer .atw-brand { margin-bottom: 18px; }
.atw-footer-title { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 16px; }
.atw-footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.atw-footer-links a { color: rgba(255,255,255,.85); text-decoration: none; }
.atw-footer-links a:hover { color: white; }
.atw-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 60px; padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; color: rgba(255,255,255,.45); font-size: .78rem; }

.atw-mobile-bar { display: none; }
.atw-empty { padding: 40px; border: 1px dashed var(--atw-line); border-radius: var(--atw-radius); color: var(--atw-muted); text-align: center; }

@media (max-width: 1040px) {
  :root { --atw-header: 72px; }
  .atw-nav { position: fixed; inset: var(--atw-header) 0 auto; background: var(--atw-cream); border-bottom: 1px solid var(--atw-line); padding: 20px; display: none; }
  .atw-nav.is-open { display: block; }
  .atw-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .atw-nav a { display: block; padding: 12px 0; font-size: 1rem; }
  .atw-menu-toggle { display: block; margin-left: auto; }
  .atw-header-actions .atw-button { display: none; }
  .atw-hero-grid, .atw-factory { grid-template-columns: 1fr; }
  .atw-hero__media { min-height: 520px; }
  .atw-hero__media .atw-placeholder { min-height: 520px; }
  .atw-hero__badge { left: 20px; }
  .atw-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .atw-process { grid-template-columns: repeat(2, 1fr); }
  .atw-footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .atw-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { padding-bottom: 64px; }
  .atw-container, .atw-narrow { width: min(calc(100% - 28px), var(--atw-max)); }
  .atw-header-inner { gap: 12px; }
  .atw-hero { padding-top: 22px; }
  .atw-hero-grid { gap: 22px; }
  .atw-hero__copy { padding: 14px 0 8px; }
  .atw-hero__proof { grid-template-columns: 1fr 1fr; }
  .atw-hero__proof .atw-proof:last-child { grid-column: 1 / -1; }
  .atw-hero__media, .atw-hero__media .atw-placeholder { min-height: 420px; }
  .atw-hero__badge { position: relative; left: auto; bottom: auto; margin: -54px 14px 0; max-width: none; }
  .atw-section-head { align-items: start; flex-direction: column; }
  .atw-grid-3, .atw-grid-2, .atw-audience, .atw-form-grid, .atw-page-hero__grid { grid-template-columns: 1fr; }
  .atw-audience__panel { min-height: 430px; }
  .atw-audience__panel + .atw-audience__panel { border-left: 0; border-top: 1px solid rgba(255,255,255,.15); }
  .atw-factory__media { grid-template-columns: 1fr; }
  .atw-factory__media .atw-placeholder:first-child, .atw-factory__stack .atw-placeholder { min-height: 320px; }
  .atw-checks { grid-template-columns: 1fr; }
  .atw-process { grid-template-columns: 1fr; }
  .atw-process__step { min-height: 210px; }
  .atw-cta { grid-template-columns: 1fr; align-items: start; }
  .atw-project-gallery { grid-template-columns: 1fr; }
  .atw-project-gallery > .atw-placeholder, .atw-project-gallery .atw-placeholder { min-height: 350px; }
  .atw-footer-grid { grid-template-columns: 1fr 1fr; }
  .atw-footer-brand { grid-column: 1 / -1; }
  .atw-footer-bottom { flex-direction: column; }
  .atw-mobile-bar { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; height: 64px; display: grid; grid-template-columns: repeat(3, 1fr); background: white; border-top: 1px solid var(--atw-line); }
  .atw-mobile-bar a { display: grid; place-items: center; text-decoration: none; font-size: .76rem; font-weight: 800; }
  .atw-mobile-bar a + a { border-left: 1px solid var(--atw-line); }
}
