/*
Theme Name: Dubai Tax Resident
Theme URI: https://dubaitaxresident.com
Author: OpenAI
Description: Lightweight WordPress theme for DubaiTaxResident landing site.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: dubai-tax-resident
*/

:root {
  --bg: #f8f7f2;
  --surface: #ffffff;
  --surface-alt: #f2efe6;
  --text: #1c1c1c;
  --muted: #66614f;
  --line: #e2dccf;
  --accent: #ae8b4f;
  --accent-dark: #8f713f;
  --dark: #101112;
  --max: 1180px;
  --radius: 22px;
  --shadow: 0 16px 40px rgba(18, 18, 18, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; }
.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 247, 242, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 220, 207, 0.8);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 84px;
}
.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--dark), #303338);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
}
.brand-text small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
}
.site-nav a:hover,
.site-nav .current-menu-item > a { color: var(--text); }
.header-cta,
.button,
.wp-block-button__link,
input[type="submit"],
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--dark);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.button--light {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}
.hero {
  padding: 70px 0 34px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 34px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.8);
  padding: 9px 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero h1,
.page-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}
.hero p,
.page-hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 60ch;
}
.button-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.quick-links a {
  padding: 12px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
}
.hero-card {
  background: linear-gradient(180deg, #fff 0%, #f3eee2 100%);
  border: 1px solid #e9dfc8;
  border-radius: 30px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.hero-visual {
  min-height: 560px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(180deg, rgba(16,17,18,.18), rgba(16,17,18,.62)),
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.28), transparent 30%),
    linear-gradient(135deg, #8e7d58, #d6c59c 45%, #7d6a45 100%);
}
.hero-visual::before {
  content: "Dubai Tax Residency";
  position: absolute;
  left: 24px;
  top: 24px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 700;
}
.skyline {
  position: absolute;
  inset: auto 0 0;
  height: 55%;
  background:
    linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0)),
    linear-gradient(90deg,
      transparent 0 6%, #1a1c20 6% 10%, transparent 10% 12%, #20242a 12% 17%, transparent 17% 19%,
      #15181d 19% 24%, transparent 24% 26%, #262c33 26% 31%, transparent 31% 34%, #171a1d 34% 38%,
      transparent 38% 41%, #21262c 41% 46%, transparent 46% 48%, #181b1f 48% 54%, transparent 54% 57%,
      #232830 57% 61%, transparent 61% 65%, #191d22 65% 70%, transparent 70% 72%, #272c33 72% 80%,
      transparent 80% 84%, #171a1d 84% 89%, transparent 89% 100%);
}
.service-badges {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 10px;
}
.service-badges span {
  display: inline-flex;
  background: rgba(255,255,255,.92);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
}
.section {
  padding: 42px 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 22px;
}
.section h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.section-subtitle { color: var(--muted); max-width: 60ch; }
.grid-3,
.grid-4,
.guides-grid,
.blog-grid {
  display: grid;
  gap: 22px;
}
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.guides-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.blog-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 12px; font-size: 1.3rem; letter-spacing: -0.03em; }
.card ul { margin: 0 0 18px 18px; padding: 0; color: var(--muted); }
.card li { margin-bottom: 6px; }
.mini-link { font-weight: 800; color: var(--accent-dark); }
.icon-box {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  margin-bottom: 18px; font-size: 20px; background: var(--surface-alt);
}
.split-panel {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 28px;
  align-items: stretch;
}
.photo-panel {
  min-height: 100%;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(15,16,17,.08), rgba(15,16,17,.45)),
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.3), transparent 25%),
    linear-gradient(135deg, #d2c39e, #8f7a51);
  position: relative;
  overflow: hidden;
}
.photo-panel::after {
  content: "Trusted guidance for entrepreneurs and professionals";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
}
.stacked { display: grid; gap: 16px; }
.guide-card, .blog-card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px;
}
.guide-card h3, .blog-card h3 { margin: 0 0 10px; font-size: 1.2rem; letter-spacing: -0.03em; }
.guide-card p, .blog-card p { color: var(--muted); }
.tag {
  display: inline-flex; margin-bottom: 10px; padding: 7px 12px; border-radius: 999px;
  background: var(--surface-alt); font-size: 12px; font-weight: 700; color: var(--muted);
}
.cta-panel {
  background: linear-gradient(135deg, var(--dark), #2f343a);
  color: #fff;
  border-radius: 30px;
  padding: 42px;
  display: grid;
  gap: 18px;
}
.cta-panel p { color: rgba(255,255,255,.76); font-size: 1.05rem; }
.site-footer {
  margin-top: 38px;
  background: #111214;
  color: rgba(255,255,255,.84);
  padding: 58px 0 28px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.25fr .85fr .85fr .9fr; gap: 28px;
}
.site-footer h4 { margin-top: 0; color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,.78); }
.copyright {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 32px;
  padding-top: 22px;
  font-size: 14px;
  color: rgba(255,255,255,.56);
}
.content-area {
  padding: 60px 0;
}
.entry-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 34px;
  box-shadow: var(--shadow);
}
.entry-card h1, .entry-card h2, .entry-card h3 { letter-spacing: -0.03em; }
.page-hero { padding: 56px 0 18px; }
.mobile-toggle { display: none; }
@media (max-width: 1024px) {
  .hero-grid, .split-panel, .grid-3, .grid-4, .guides-grid, .blog-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
  .split-panel .stacked { grid-column: span 2; }
  .photo-panel { min-height: 320px; }
}
@media (max-width: 800px) {
  .site-nav ul {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 84px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 18px;
    flex-direction: column;
    box-shadow: var(--shadow);
  }
  .site-nav ul.is-open { display: flex; }
  .mobile-toggle {
    display: inline-flex;
    width: 48px; height: 48px;
    align-items: center; justify-content: center;
    border-radius: 14px; border: 1px solid var(--line); background: #fff;
  }
  .header-cta { display: none; }
  .hero-grid, .split-panel, .grid-3, .grid-4, .guides-grid, .blog-grid, .footer-grid { grid-template-columns: 1fr; }
  .section-head { align-items: start; flex-direction: column; }
  .hero { padding-top: 36px; }
  .hero-visual { min-height: 360px; }
  .entry-card { padding: 24px; }
}
