/* ===========================================================
   Murleo — Web Design Studio
   Bold flat aesthetic inspired by Dang & Blast:
   dark photo hero · bright yellow · colourful grid · white contact.
   =========================================================== */

:root {
  --yellow: #f7b91c;
  --yellow-dark: #e0a30a;
  --ink: #2b2b2b;
  --ink-soft: #4a4a4a;
  --dark: #242424;
  --white: #ffffff;
  --paper: #ffffff;
  --muted: #8b8b8b;
  --line: rgba(0, 0, 0, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

body {
  font-family: 'Esteban', Georgia, serif;
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .display { font-family: 'Montserrat', sans-serif; }
a { color: inherit; text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1.05rem 2.6rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease), border-color 0.3s;
}
.btn-ghost { color: var(--yellow); border-color: var(--yellow); background: transparent; }
.btn-ghost:hover { background: var(--yellow); color: var(--dark); }
.btn-yellow { background: var(--yellow); color: var(--dark); border-color: var(--yellow); }
.btn-yellow:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); }
.btn:active { transform: translateY(1px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 1.4rem clamp(20px, 5vw, 60px);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s;
}
.site-header.scrolled {
  background: var(--dark);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}
.logo {
  font-family: 'Grand Hotel', cursive;
  font-size: 2.2rem;
  color: var(--white);
  text-align: center;
  line-height: 1;
  white-space: nowrap;
}
.nav { display: flex; gap: 2.2rem; }
.nav-left { justify-content: flex-start; }
.nav-right { justify-content: flex-end; }
.nav a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  position: relative;
  transition: color 0.25s;
}
.nav a::after {
  content: '';
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--yellow);
  transition: width 0.3s var(--ease);
}
.nav a:hover { color: var(--white); }
.nav a:hover::after { width: 100%; }

.menu-toggle {
  display: none;
  grid-column: 3;
  justify-self: end;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.menu-toggle span { width: 26px; height: 2px; background: var(--white); transition: transform 0.35s var(--ease), opacity 0.3s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--dark);
  display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 1.8rem;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800; font-size: 1.8rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--white);
}
.mobile-menu a:hover { color: var(--yellow); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px clamp(20px, 5vw, 60px) 80px;
  color: var(--white);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 30%, rgba(60,60,60,0.55), rgba(20,20,20,0.9) 70%),
    linear-gradient(160deg, #33312d 0%, #1c1b19 55%, #111 100%);
}
.hero-noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.12;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 820px; }
.hero-tagline {
  font-family: 'Esteban', serif;
  font-style: italic;
  color: var(--yellow);
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  margin-bottom: 1.2rem;
}
.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 1.02;
  font-size: clamp(2.4rem, 7vw, 5.6rem);
  margin-bottom: 2.4rem;
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.scroll-cue {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.7);
  font-size: 1.4rem;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,8px);} }

/* Floating phone mockup */
.hero-phone {
  position: absolute;
  right: 8%; top: 50%;
  transform: translateY(-50%) rotate(14deg);
  z-index: 1;
  opacity: 0.85;
  display: none;
}
.phone-frame {
  width: 190px; height: 380px;
  border-radius: 30px;
  background: linear-gradient(160deg, #3a3a3a, #101010);
  border: 6px solid #050505;
  box-shadow: 0 30px 60px rgba(0,0,0,0.55);
  display: flex; align-items: center; justify-content: center;
}
.phone-frame span {
  font-family: 'Grand Hotel', cursive;
  font-size: 2rem;
  color: var(--yellow);
  opacity: 0.9;
}

/* ---------- Hello / yellow ---------- */
.hello {
  background: var(--yellow);
  color: var(--dark);
  text-align: center;
  padding: clamp(70px, 10vw, 130px) clamp(20px, 5vw, 60px);
}
.hello-head {
  font-weight: 900;
  color: var(--white);
  font-size: clamp(3.4rem, 10vw, 7rem);
  line-height: 1;
  margin-bottom: 1.8rem;
  letter-spacing: -0.01em;
}
.hello-lead {
  font-family: 'Esteban', serif;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.55;
  max-width: 720px;
  margin: 0 auto clamp(40px, 6vw, 70px);
  color: #4a3c10;
}
.hello-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 860px;
  margin: 0 auto;
}
.hello-services span {
  font-family: 'Esteban', serif;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--dark);
  padding: 1rem 0.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.18);
  transition: color 0.25s, background 0.25s;
}
.hello-services span:hover { color: var(--white); }

/* ---------- Work grid (full-bleed) ---------- */
.work {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.tile {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, var(--c1), var(--c2));
  overflow: hidden;
}
.tile::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.tile-emoji {
  font-size: clamp(3rem, 7vw, 5rem);
  filter: drop-shadow(0 10px 26px rgba(0,0,0,0.35));
  transition: transform 0.5s var(--ease), opacity 0.4s;
  z-index: 1;
}
.tile-info {
  position: absolute;
  z-index: 2;
  text-align: center;
  color: var(--white);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  padding: 0 1rem;
}
.tile-info strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  margin-bottom: 0.35rem;
}
.tile-info small {
  font-family: 'Esteban', serif;
  font-size: 0.92rem;
  opacity: 0.85;
}
.tile:hover::after { opacity: 1; }
.tile:hover .tile-emoji { transform: scale(0.8) translateY(-14px); opacity: 0.25; }
.tile:hover .tile-info { opacity: 1; transform: translateY(0); }

/* ---------- About ---------- */
.about {
  text-align: center;
  padding: clamp(70px, 10vw, 130px) clamp(20px, 5vw, 60px);
}
.section-head {
  font-weight: 900;
  color: var(--ink);
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1;
  margin-bottom: 1.6rem;
}
.about-copy {
  font-family: 'Esteban', serif;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  line-height: 1.6;
  max-width: 760px;
  margin: 0 auto;
  color: var(--ink-soft);
}

/* ---------- Contact ---------- */
.contact {
  text-align: center;
  padding: clamp(60px, 8vw, 110px) clamp(20px, 5vw, 60px) clamp(80px, 10vw, 140px);
  background: #fafafa;
  border-top: 1px solid var(--line);
}
.contact-head {
  font-weight: 900;
  color: var(--ink);
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1;
  margin-bottom: 1.4rem;
}
.contact-lead {
  font-family: 'Esteban', serif;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  max-width: 640px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  color: var(--ink-soft);
}
.contact-form {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-form input,
.contact-form textarea {
  font-family: 'Esteban', serif;
  font-size: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s;
  width: 100%;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(247,185,28,0.25);
}
.contact-form .hp { display: none; }
.contact-form .btn { align-self: center; margin-top: 8px; }
.form-status {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 6px;
  min-height: 1.2em;
}
.form-status.ok { color: #1f9d63; }
.form-status.err { color: #c0392b; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: clamp(48px, 6vw, 70px) 20px 2.4rem;
}
.socials { display: flex; justify-content: center; gap: 1rem; margin-bottom: 1.8rem; }
.social {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  transition: transform 0.3s var(--ease), background 0.3s;
}
.social:hover { transform: translateY(-4px); background: var(--white); }
.footer-made {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}
.footer-copy { font-family: 'Montserrat', sans-serif; font-size: 0.75rem; letter-spacing: 0.1em; margin-top: 0.5rem; }
.footer-logo {
  font-family: 'Grand Hotel', cursive;
  font-size: 2.4rem;
  color: var(--white);
  display: inline-block;
  margin-bottom: 1.2rem;
}

/* ---------- Header: always-solid variant (pages with a light top) ---------- */
.site-header.solid {
  background: var(--dark);
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}

/* ---------- Page header (internal pages) ---------- */
.pagehead {
  position: relative;
  overflow: hidden;
  color: var(--white);
  text-align: center;
  padding: clamp(150px, 20vh, 240px) clamp(20px, 5vw, 60px) clamp(60px, 9vw, 110px);
  background:
    radial-gradient(circle at 50% 30%, rgba(60,60,60,0.55), rgba(20,20,20,0.92) 70%),
    linear-gradient(160deg, #33312d 0%, #1c1b19 55%, #111 100%);
}
.pagehead-inner { position: relative; z-index: 2; }
.pagehead-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1;
  font-size: clamp(2.6rem, 8vw, 6rem);
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

/* ---------- Services section ---------- */
.services-sec {
  background: var(--dark);
  color: var(--white);
  padding: clamp(70px, 10vw, 130px) clamp(20px, 5vw, 60px);
}
.services-sec .section-head { color: var(--white); text-align: left; }
.services-intro {
  font-family: 'Esteban', serif;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: rgba(255,255,255,0.7);
  max-width: 640px;
  margin-bottom: clamp(30px, 5vw, 50px);
}
.services-list { border-top: 1px solid rgba(255,255,255,0.15); }
.service-row {
  display: grid;
  grid-template-columns: 70px 1fr 1.3fr;
  gap: 20px;
  align-items: baseline;
  padding: clamp(24px, 4vw, 40px) 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  transition: padding-left 0.4s var(--ease);
}
.service-row:hover { padding-left: 16px; }
.service-no {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--yellow);
  font-size: 0.95rem;
}
.service-row h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
}
.service-row:hover h3 { color: var(--yellow); }
.service-row p {
  font-family: 'Esteban', serif;
  color: rgba(255,255,255,0.7);
  font-size: 1.02rem;
  max-width: 46ch;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--yellow);
  color: var(--dark);
  text-align: center;
  padding: clamp(60px, 9vw, 120px) clamp(20px, 5vw, 60px);
}
.cta-inner { max-width: 720px; margin: 0 auto; }
.cta-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  color: var(--white);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1;
  margin-bottom: 1.2rem;
}
.cta-band p {
  font-family: 'Esteban', serif;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  color: #4a3c10;
  max-width: 46ch;
  margin: 0 auto 2rem;
}
.cta-band .btn-yellow {
  background: var(--dark);
  color: var(--yellow);
  border-color: var(--dark);
}
.cta-band .btn-yellow:hover { background: var(--white); color: var(--dark); border-color: var(--white); }

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (min-width: 1100px) {
  .hero-phone { display: block; }
}
@media (max-width: 820px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .site-header { grid-template-columns: 1fr auto 1fr; }
  .logo { grid-column: 2; }
  .work { grid-template-columns: repeat(2, 1fr); }
  .hello-services { grid-template-columns: repeat(2, 1fr); max-width: 460px; }
  .service-row { grid-template-columns: 46px 1fr; }
  .service-row p { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .work { grid-template-columns: 1fr; }
  .hello-services { grid-template-columns: 1fr; max-width: 300px; }
  .tile { aspect-ratio: 16 / 10; }
  /* On touch, always show the tile label since there's no hover */
  .tile-info { opacity: 1; transform: none; }
  .tile::after { opacity: 0.35; }
  .tile-emoji { opacity: 0.4; transform: scale(0.85) translateY(-16px); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}
