/*
Theme Name: Nomo Events
Theme URI: https://nomo-events.com
Author: Nomo Events
Author URI: https://nomo-events.com
Description: Luxury Moroccan event design studio WordPress theme
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nomo-events
*/

@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400;0,6..96,500;0,6..96,600;1,6..96,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --background: #F4F2EE;
  --foreground: #111111;
  --muted-foreground: #6E6A63;
  --accent: #C9A86A;
  --accent-hover: #B89A5D;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
}

.font-display {
  font-family: 'Bodoni Moda', serif;
}

.font-body {
  font-family: 'Inter', sans-serif;
}

/* Grain overlay */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 6vw;
  transition: all 0.5s ease;
}

.site-header.scrolled {
  background: rgba(244, 242, 238, 0.9);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-family: 'Bodoni Moda', serif;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--foreground);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.site-logo .logo-image {
  max-height: 40px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.main-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(17, 17, 17, 0.8);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}

.main-nav a:hover {
  color: var(--foreground);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.main-nav a.inquire {
  color: var(--accent);
}

.main-nav a.inquire:hover {
  color: var(--accent-hover);
}

/* Mobile menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--background);
    padding: 6rem 2rem 2rem;
    transition: right 0.3s ease;
    z-index: 99;
  }
  
  .mobile-nav.active {
    right: 0;
  }
  
  .mobile-nav a {
    display: block;
    font-family: 'Bodoni Moda', serif;
    font-size: 1.5rem;
    color: var(--foreground);
    text-decoration: none;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.1);
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 6vw;
  overflow: hidden;
}

.hero-content {
  width: 50%;
  padding-top: 10vh;
}

.hero-meta {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.hero-title {
  font-family: 'Bodoni Moda', serif;
  font-size: clamp(2rem, 4.5vw, 5.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.hero-divider {
  width: 20vw;
  max-width: 200px;
  height: 1px;
  background: rgba(17, 17, 17, 0.2);
  margin: 2rem 0;
}

.hero-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  max-width: 500px;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent);
  color: var(--background);
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--accent);
  color: var(--background);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: none;
  transition: all 0.3s;
  cursor: pointer;
}

.btn-dark:hover {
  background: var(--accent-hover);
}

.link-underline {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  text-decoration: none;
  position: relative;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.link-underline:hover::after {
  transform: scaleX(1);
}

.hero-image {
  position: absolute;
  right: 6vw;
  top: 14vh;
  width: 40vw;
  height: 72vh;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}

.hero-hairline {
  position: absolute;
  left: 50vw;
  top: 14vh;
  width: 1px;
  height: 72vh;
  background: rgba(17, 17, 17, 0.2);
}

/* Content Sections */
.content-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 6vw;
  overflow: hidden;
}

.section-image-left .section-image {
  position: absolute;
  left: 6vw;
  top: 14vh;
  width: 40vw;
  height: 72vh;
}

.section-image-right .section-image {
  position: absolute;
  right: 6vw;
  top: 14vh;
  width: 40vw;
  height: 72vh;
}

.section-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}

.section-content-left {
  width: 40vw;
  margin-left: 54vw;
  padding-top: 10vh;
}

.section-content-right {
  width: 42vw;
  padding-top: 10vh;
}

.section-title {
  font-family: 'Bodoni Moda', serif;
  font-size: clamp(2rem, 5.5vw, 6rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.section-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  max-width: 500px;
  margin-bottom: 2rem;
}

/* Contact Section */
.contact-section {
  background: var(--foreground);
  padding: 12vh 6vw;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-title {
  font-family: 'Bodoni Moda', serif;
  font-size: clamp(2rem, 4.5vw, 5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--background);
  margin-bottom: 1.5rem;
}

.contact-description {
  font-size: 1.125rem;
  color: rgba(244, 242, 238, 0.7);
  margin-bottom: 3rem;
  max-width: 400px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item a,
.contact-item span {
  color: var(--background);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-item a:hover {
  color: var(--accent);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(244, 242, 238, 0.7);
}

.form-group input,
.form-group textarea {
  padding: 0.875rem 1rem;
  background: rgba(244, 242, 238, 0.05);
  border: 1px solid rgba(244, 242, 238, 0.2);
  color: var(--background);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(244, 242, 238, 0.4);
}

.form-group textarea {
  resize: none;
  min-height: 150px;
}

/* Footer */
.site-footer {
  background: var(--foreground);
  padding: 3rem 6vw;
  border-top: 1px solid rgba(244, 242, 238, 0.1);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-copyright {
  font-size: 0.875rem;
  color: rgba(244, 242, 238, 0.5);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(244, 242, 238, 0.5);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--background);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  /* ── Sections stacking ── */
  .hero-section,
  .content-section {
    flex-direction: column;
    padding: 8rem 1.5rem 4rem;
    min-height: auto;
  }

  .hero-content,
  .section-content-left,
  .section-content-right {
    width: 100%;
    margin-left: 0;
    padding-top: 0;
    order: 2;
  }

  /* ── Images: fix specificity over .section-image-left/right .section-image ── */
  .hero-image,
  .section-image,
  .section-image-left .section-image,
  .section-image-right .section-image {
    position: relative;
    right: auto;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    margin-bottom: 2rem;
    order: 1;
  }

  .hero-hairline,
  .section-hairline {
    display: none;
  }

  /* ── Typography ── */
  .hero-title,
  .section-title {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .hero-description,
  .section-description {
    font-size: 0.95rem;
    max-width: 100%;
  }

  .hero-meta,
  .section-meta {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
  }

  /* ── Hero CTA buttons ── */
  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
  }

  .btn-primary,
  .btn-dark {
    width: 100%;
    justify-content: center;
  }

  /* ── Header ── */
  .header-inner {
    padding: 1rem 1.2rem;
  }

  .site-logo .logo-image {
    height: 44px;
    width: auto;
  }

  /* ── Contact section ── */
  .contact-section {
    padding: 6rem 1.5rem 4rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-title {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  /* ── Form ── */
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form select,
  input[type="text"],
  input[type="email"],
  textarea,
  select {
    font-size: 16px;
  }

  /* ── Footer ── */
  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    padding: 2rem 1.5rem;
  }

  .footer-nav {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }
}

/* Admin bar fix */
body.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}
