/* Aurafix — a calm, continuous one-page experience. */
:root {
  color-scheme: light;
  --ink: #302e2b;
  --ink-muted: #625c52;
  --header: #333230;
  --cream: #f0e8dc;
  --gold: #c6a06a;
  --hairline: rgba(48, 46, 43, 0.16);
  --whatsapp: #27b95c;
  --content-width: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Tajawal", Tahoma, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body, button, a {
  -webkit-tap-highlight-color: transparent;
}

button, a {
  font: inherit;
}

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

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

button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid #a96d2c;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  inset-block-start: 0.5rem;
  inset-inline-start: 0.5rem;
  padding: 0.65rem 1rem;
  background: white;
  color: var(--ink);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* The wordmark and service links share one quiet, full-width bar. */
.site-header {
  position: relative;
  z-index: 20;
  color: #f7f2e9;
  background: var(--header);
}

.header-inner {
  position: relative;
  width: min(calc(100% - 3.5rem), 1480px);
  min-height: 66px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.1vw, 2rem);
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.brand-name {
  color: #e0ba7e;
  font-size: clamp(1.55rem, 1.9vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.brand-descriptor {
  flex: 0 0 auto;
  color: #e9e2d7;
  font-size: 0.92rem;
  font-weight: 400;
  white-space: nowrap;
}

.service-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.35rem clamp(1rem, 2.2vw, 2rem);
  margin-inline-start: auto;
}

.service-nav a {
  padding-block: 0.65rem;
  color: #f5efe7;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  transition: color 160ms ease;
}

.service-nav a:hover {
  color: #e0ba7e;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

/* Text and photography remain separate, even on small screens. */
.hero-inner {
  width: min(calc(100% - 3.5rem), var(--content-width));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.03fr);
  align-items: center;
  column-gap: clamp(3rem, 6vw, 6rem);
}

.hero-content {
  padding-block: clamp(3rem, 5vw, 5rem);
}

.hero-content h1 {
  margin: 0;
  color: #292825;
  font-size: clamp(3.65rem, 5.65vw, 5.75rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.04em;
}

.hero-copy {
  max-width: 34rem;
  margin: 1.4rem 0 0;
  color: #4f4b44;
  font-size: clamp(1.06rem, 1.42vw, 1.24rem);
  font-weight: 400;
  line-height: 1.9;
}

.hero-location {
  margin: 0.8rem 0 0;
  color: #625e57;
  font-size: 0.95rem;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.85rem;
}

.button {
  display: inline-flex;
  min-width: 12.5rem;
  min-height: 3.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button-primary {
  background: #c6a06a;
  color: #292825;
}

.button-primary:hover {
  background: #d4b27d;
}

.button-secondary {
  border-color: #8a7b69;
  background: transparent;
  color: var(--ink);
}

.button-secondary:hover {
  border-color: #665037;
  background: rgba(198, 160, 106, 0.1);
}

.button svg {
  width: 1.2em;
  height: 1.2em;
}

.hero-media {
  align-self: end;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 1.32;
  border-radius: 48% 48% 0 0 / 50% 50% 0 0;
  background: #ded1be;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* The services sit directly on the same surface, without card containers. */
.services {
  width: min(calc(100% - 3.5rem), var(--content-width));
  margin-inline: auto;
  padding-block: clamp(2.6rem, 4.3vw, 4.1rem) clamp(3rem, 4.7vw, 4.5rem);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.4rem, 3.4vw, 3.5rem);
}

.service-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-icon {
  width: clamp(3.65rem, 4.9vw, 4.6rem);
  height: clamp(3.65rem, 4.9vw, 4.6rem);
  margin-bottom: 1rem;
  fill: none;
  stroke: #49443d;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 160ms ease;
}

.service-item h2, .service-item h3 {
  margin: 0;
  color: #292825;
  font-size: clamp(1.19rem, 1.55vw, 1.5rem);
  font-weight: 700;
  line-height: 1.35;
}

.service-item p {
  max-width: 17rem;
  margin: 0.45rem 0 0;
  color: #5a554d;
  font-size: 0.94rem;
  line-height: 1.7;
}

.service-item:hover .service-icon {
  stroke: #a57d45;
}

.service-item:hover h2, .service-item:hover h3 {
  text-decoration: underline;
  text-decoration-color: #ba996a;
  text-underline-offset: 0.3em;
}

/* A light footer keeps the page short and the contact route obvious. */
.site-footer {
  border-top: 1px solid var(--hairline);
}

.footer-inner {
  width: min(calc(100% - 3.5rem), var(--content-width));
  min-height: 74px;
  margin-inline: auto;
  padding-block: 1.1rem;
  padding-inline-start: 5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1.8rem;
  color: #514c45;
  font-size: 0.86rem;
  line-height: 1.6;
}

.footer-inner p {
  margin: 0;
}

.footer-wordmark {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
}

.footer-contact:hover,
.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.about-service {
  margin-inline-start: auto;
}

.about-service summary {
  cursor: pointer;
  list-style-position: inside;
}

.about-service[open] {
  flex-basis: 100%;
}

.about-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 2rem;
  padding-block: 1rem;
}

.about-content h2, .about-content h3 {
  margin: 0 0 0.35rem;
  color: var(--ink);
  font-size: 1rem;
}

.about-content p {
  margin: 0;
}

/* The persistent WhatsApp shortcut is recognisable but not intrusive. */
.whatsapp-float {
  position: fixed;
  z-index: 30;
  inset-block-end: max(1.25rem, env(safe-area-inset-bottom));
  inset-inline-start: max(1.25rem, env(safe-area-inset-right));
  width: 3.65rem;
  height: 3.65rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  isolation: isolate;
  transition: transform 180ms ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
}

.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 50%;
  background: var(--whatsapp);
  box-shadow: 0 3px 12px rgba(20, 58, 33, 0.2);
}

.whatsapp-float .whatsapp-icon {
  position: relative;
  z-index: 2;
  width: 1.9rem;
  height: 1.9rem;
}

.whatsapp-float .whatsapp-message {
  position: absolute;
  right: calc(100% + 0.7rem);
  bottom: 0.55rem;
  padding: 0.65rem 0.9rem;
  border-radius: 1rem 1rem 0.25rem 1rem;
  background: #fffdf9;
  color: #373733;
  box-shadow: 0 3px 14px rgba(40, 34, 26, 0.14);
  font-size: 0.9rem;
  font-weight: 700;
  width: max-content;
  max-width: min(14rem, calc(100vw - 7rem));
  white-space: normal;
  line-height: 1.45;
  text-align: right;
  animation: message-hello 450ms 2s ease-out both;
}

@keyframes message-hello {
  from { opacity: 0; transform: translateX(0.5rem); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 1100px) {
  .header-inner {
    width: min(calc(100% - 2.5rem), 1480px);
  }

  .menu-toggle {
    display: flex;
    margin-inline-start: auto;
  }

  .service-nav {
    position: absolute;
    inset-block-start: 100%;
    inset-inline: -1.25rem;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.15rem 1.5rem;
    margin: 0;
    padding: 0.7rem 1.35rem 1.15rem;
    background: var(--header);
    box-shadow: 0 8px 12px rgba(48, 46, 43, 0.12);
  }

  .service-nav.is-open {
    display: grid;
  }

  .service-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-block: 0.55rem;
    white-space: normal;
  }

  .hero-inner {
    column-gap: 3rem;
  }
}

@media (max-width: 760px) {
  .header-inner {
    width: calc(100% - 2.5rem);
    min-height: 60px;
    gap: 0.85rem;
  }

  .brand-name {
    font-size: 1.55rem;
  }

  .brand-descriptor {
    font-size: 0.8rem;
  }

  .hero-inner {
    width: calc(100% - 2.5rem);
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .hero-content {
    padding-block: 3rem 2.4rem;
  }

  .hero-content h1 {
    font-size: clamp(2.65rem, 10vw, 4.3rem);
    line-height: 1.3;
  }

  .hero-copy {
    margin-top: 0.9rem;
    font-size: 1rem;
    line-height: 1.8;
  }

  .hero-actions {
    gap: 0.65rem;
    margin-top: 1.35rem;
  }

  .button {
    min-width: 0;
    min-height: 3.25rem;
    padding-inline: 1rem;
    font-size: 0.94rem;
  }

  .hero-actions .button {
    flex: 1 1 10rem;
  }

  .hero-media {
    aspect-ratio: 1.3;
  }

  .services {
    width: calc(100% - 2.5rem);
    padding-block: 2.65rem 3rem;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.4rem 1.2rem;
  }

  .service-icon {
    width: 3.8rem;
    height: 3.8rem;
    margin-bottom: 0.65rem;
  }

  .service-item h2, .service-item h3 {
    font-size: 1.18rem;
  }

  .service-item p {
    font-size: 0.86rem;
    line-height: 1.65;
  }

  .footer-inner {
    width: calc(100% - 2.5rem);
    padding-block: 1.2rem 1.8rem;
    padding-inline-start: 4.5rem;
    gap: 0.55rem 1.2rem;
  }

  .about-service {
    margin-inline-start: 0;
  }

  .about-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .whatsapp-float {
    inset-block-end: max(1rem, env(safe-area-inset-bottom));
    inset-inline-start: max(1rem, env(safe-area-inset-right));
    width: 3.4rem;
    height: 3.4rem;
  }
}

@media (max-width: 360px) {
  .brand-descriptor {
    font-size: 0.73rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
