/* Omar Al Khatib: light, modern theme */

:root {
  color-scheme: light;

  --paper: #fbfaf8;
  --surface: #ffffff;
  --ink: #1d2233;
  --body: #4d5366;
  --muted: #6b7083;
  --line: #e9e6e1;

  --accent: #d81558;
  --accent-hover: #bf0f4c;
  --rose: #fdeef3;
  --rose-line: #f9d6e2;
  --sky: #eef1fb;
  --sky-line: #dbe1f5;
  --sky-ink: #34457f;

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --text: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;

  --section-gap: clamp(112px, 14vw, 208px);

  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(29, 34, 51, .04), 0 12px 32px -12px rgba(29, 34, 51, .1);
  --shadow-lift: 0 2px 4px rgba(29, 34, 51, .05), 0 24px 48px -16px rgba(29, 34, 51, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font: 400 1.0625rem/1.65 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, iframe { display: block; max-width: 100%; }
img { height: auto; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
address { font-style: normal; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

section[id] { scroll-margin-top: 80px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.1;
}

h2 { font-size: clamp(2.25rem, 1.6rem + 2.8vw, 3.75rem); letter-spacing: -.03em; }
h3 { font-size: 1.5rem; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 500;
  font-size: 1rem;
  white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn i { font-size: .875em; transition: transform .2s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:hover .fa-arrow-right { transform: translateX(3px); }

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -8px rgba(216, 21, 88, .55); }
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Header */

.site-header {
  position: sticky;
  top: 12px;
  z-index: 50;
  width: min(1200px, 100% - 24px);
  margin: 12px auto 0;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 8px 12px 8px 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  transition: box-shadow .25s;
}

.is-scrolled .nav,
.menu-open .nav {
  box-shadow: var(--shadow);
}

.brand {
  color: var(--ink);
  font: 700 1.375rem/1 var(--display);
  letter-spacing: -.02em;
}
.brand-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 3px;
  border-radius: 50%;
  background: var(--accent);
}

.nav-links { display: flex; gap: 2px; }
.nav-links a {
  display: block;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--body);
  font-size: .9688rem;
  font-weight: 500;
  transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: var(--ink); background: rgba(29, 34, 51, .05); }
.nav-links a[aria-current="true"] { color: var(--accent); background: var(--rose); }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
}
.nav-toggle span {
  position: absolute;
  left: 13px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 23px; }
.nav-toggle[aria-expanded="true"] span { top: 20px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

/* Hero */

.hero { position: relative; margin-top: -72px; padding-top: calc(72px + clamp(32px, 5vw, 72px)); }

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: min(900px, 90vw);
  height: 760px;
  z-index: -1;
  background:
    radial-gradient(closest-side at 62% 42%, rgba(233, 30, 99, .13), transparent),
    radial-gradient(closest-side at 88% 16%, rgba(122, 141, 224, .16), transparent);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hello {
  margin-bottom: 16px;
  color: var(--accent);
  font-weight: 500;
  font-size: 1.125rem;
}

.hero-name {
  display: block;
  color: var(--ink);
  font: 700 clamp(3.5rem, 1.5rem + 8.6vw, 7.5rem)/.94 var(--display);
  letter-spacing: -.045em;
}

.hero-title {
  margin-top: 28px;
  max-width: 22em;
  color: var(--body);
  font: 400 clamp(1.25rem, 1.1rem + .7vw, 1.625rem)/1.35 var(--text);
  letter-spacing: -.01em;
}
.hero-title .amp { color: var(--accent); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-photo { position: relative; max-width: 460px; justify-self: end; width: 100%; }
.hero-photo img {
  width: 100%;
  border-radius: 32px;
  box-shadow: var(--shadow-lift);
}

.photo-badge {
  position: absolute;
  left: 50%;
  bottom: -18px;
  display: flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.3;
  transform: translateX(-50%);
}
.live-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #17a65a;
  box-shadow: 0 0 0 4px rgba(23, 166, 90, .15);
}

.hero-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: clamp(56px, 7vw, 88px);
  padding: 20px 0;
  border-block: 1px solid var(--line);
}

.hero-contacts { display: flex; flex-wrap: wrap; gap: 10px 32px; font-size: .9688rem; }
.hero-contacts li { display: flex; align-items: center; gap: 10px; }
.hero-contacts i { width: 16px; color: var(--accent); font-size: .875rem; text-align: center; }
.hero-contacts a { color: var(--ink); transition: color .2s; }
.hero-contacts a:hover { color: var(--accent); }

.socials { display: flex; gap: 4px; margin-inline: -10px; }
.socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--body);
  transition: color .2s, background-color .2s;
}
.socials a:hover { color: var(--accent); background: var(--rose); }

/* Sections */

/* Each section only spaces itself from the one above, so every gap is --section-gap */
.section { padding-block-start: var(--section-gap); }
#contact { padding-block-end: 72px; }
.section > .wrap > h2 { margin-bottom: clamp(32px, 4vw, 56px); }

.band {
  background: linear-gradient(180deg, var(--paper) 0%, var(--rose) 35%, var(--paper) 100%);
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.about-art {
  padding: clamp(16px, 2.5vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.about-copy h2 { margin-bottom: 24px; }
.lede { color: var(--body); font-size: clamp(1.125rem, 1.05rem + .3vw, 1.25rem); line-height: 1.6; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 32px; }
.tags li {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: .9063rem;
  font-weight: 500;
}

/* Expertise */

.expertise-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.card {
  padding: clamp(28px, 3.5vw, 44px);
  border: 1px solid;
  border-radius: var(--radius);
}
.card h3 { margin: 28px 0 12px; font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); }
.card-rose { background: var(--rose); border-color: var(--rose-line); }
.card-sky { background: var(--sky); border-color: var(--sky-line); }

.icon-tile {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--accent);
  font-size: 1.25rem;
  box-shadow: var(--shadow);
}
.card-sky .icon-tile { color: var(--sky-ink); }

/* Services */

.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.services-grid > h2 { margin: 0; }

.service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 48px;
  align-items: center;
  padding-block: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--line);
}
.service:first-child { padding-top: 0; border-top: 0; }
.service:last-child { padding-bottom: 0; }
.service h3 { margin-bottom: 12px; font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); }
.service p { max-width: 58ch; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-weight: 500;
  white-space: nowrap;
}
.link-arrow i { font-size: .875em; transition: transform .2s var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }

/* Portfolio */

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.filters button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--body);
  font-size: .9375rem;
  font-weight: 500;
  transition: color .2s, background-color .2s;
}
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--rose); color: var(--accent); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 3.5vw, 48px) clamp(20px, 2.5vw, 32px);
}
.work { display: block; }
.work[hidden] { display: none; }

.work-img {
  display: block;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  transition: box-shadow .3s, transform .3s var(--ease);
}
.work-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s var(--ease); }
.work:hover .work-img { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.work:hover .work-img img { transform: scale(1.025); }

.work-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font: 600 1.25rem/1.25 var(--display);
  letter-spacing: -.015em;
}
.work-title i {
  color: var(--accent);
  font-size: .8125rem;
  opacity: 0;
  transform: translateX(-6px) rotate(-45deg);
  transition: opacity .2s, transform .25s var(--ease);
}
.work:hover .work-title i,
.work:focus-visible .work-title i { opacity: 1; transform: rotate(-45deg); }

.work-sub { display: block; margin-top: 4px; color: var(--muted); font-size: .9688rem; line-height: 1.45; }

/* Pricing */

.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.price {
  padding: clamp(28px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.price > i { color: var(--accent); font-size: 1.375rem; }
.price h3 { margin-top: 16px; font-size: 1.375rem; }
.price-amount {
  margin-top: clamp(32px, 4vw, 56px);
  color: var(--ink);
  font: 600 clamp(3rem, 2.4rem + 2.2vw, 4.25rem)/1 var(--display);
  letter-spacing: -.04em;
}
.price-amount small {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font: 400 .9688rem/1.4 var(--text);
  letter-spacing: 0;
}

/* Contact */

.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.contact-card .icon-tile { background: var(--rose); box-shadow: none; }
.contact-card h3 { margin: 24px 0 6px; font-size: 1.375rem; }
.contact-card p { margin-bottom: 24px; color: var(--body); overflow-wrap: anywhere; }
.contact-card .btn { margin-top: auto; }

.section > .wrap > .location-title { margin-top: var(--section-gap); }

.map {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.map iframe { width: 100%; height: clamp(320px, 40vw, 460px); border: 0; }

/* Footer */

.site-footer {
  padding-block: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9375rem;
  text-align: center;
}

/* Scroll reveal: only hides content once JS has confirmed it can show it again */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease) var(--d, 0s), transform .7s var(--ease) var(--d, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }

/* The hero is the first thing people see, so it animates on load with no JS */
.js .hero .reveal {
  opacity: 1;
  transform: none;
  transition: none;
  animation: rise .6s var(--ease) var(--d, 0s) backwards;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
}

/* Projects fade in as the filter brings them back */
.js .is-filtered .work { transition: none; animation: rise .35s var(--ease); }

/* Responsive */

@media (max-width: 1000px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-grid { grid-template-columns: 1fr; }
  .services-grid > h2 { position: static; margin-bottom: 8px; }
  .service:first-child { padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line); }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .nav-menu {
    position: absolute;
    inset: calc(100% + 8px) 0 auto;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow-lift);
  }
  .menu-open .nav-menu { display: block; }
  .nav-links { flex-direction: column; gap: 2px; }
  .nav-links a { padding: 12px 16px; border-radius: 14px; font-size: 1.0625rem; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { justify-self: start; max-width: min(420px, 100%); }

  .about-grid { grid-template-columns: 1fr; }
  .about-art { order: 2; }

  .expertise-grid,
  .price-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .hero-contacts { flex-direction: column; }
}

@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .site-header { width: calc(100% - 16px); }
  .work-grid { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; }
  .filters { padding: 0; border: 0; background: none; gap: 8px; }
  .filters button { border: 1px solid var(--line); background: var(--surface); }
  .filters button[aria-pressed="true"] { border-color: var(--rose-line); }
  .work-title i { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
