/* ============================================
   NELTIA STUDIO — styles.css
   Obsidian · Copal Gold · Cormorant Garamond
   ============================================ */

   :root {
    --obsidian:    #1A1614;
    --obsidian-2:  #211D1B;
    --gold:        #C8892A;
    --gold-light:  #E0A84A;
    --amber:       #8B3A1A;
    --offwhite:    #F0EDE8;
    --muted:       #8A8278;
    --border:      rgba(200, 137, 42, 0.15);
    --font-head:   'Cormorant Garamond', serif;
    --font-body:   'Inter', sans-serif;
    --transition:  0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  /* ── RESET ── */
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  
  html { scroll-behavior: smooth; }
  
  body {
    background: var(--obsidian);
    color: var(--offwhite);
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }
  
  img { display: block; max-width: 100%; }
  a { color: inherit; text-decoration: none; }
  ul { list-style: none; }
  
  /* ── GRAIN OVERLAY ── */
  .grain {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.06'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    pointer-events: none;
    z-index: 3;
    opacity: 0.4;
  }
  
  /* ── CONTAINER ── */
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
  }
  
  /* ── NAV ── */
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 3rem;
    transition: background var(--transition), padding var(--transition);
  }
  
  .nav.scrolled {
    background: rgba(26, 22, 20, 0.92);
    backdrop-filter: blur(12px);
    padding: 1rem 3rem;
    border-bottom: 1px solid var(--border);
  }
  
  .nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--offwhite);
    transition: color 0.3s;
  }
  
  .nav-logo:hover { color: var(--gold); }
  
  .logo-mark {
    display: inline-block;
    width: 14px;
    height: 20px;
    background: var(--gold);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    transition: background 0.3s, transform 0.3s;
    flex-shrink: 0;
  }
  
  .nav-logo:hover .logo-mark {
    background: var(--gold-light);
    transform: rotate(45deg) scale(1.1);
  }
  
  .nav-links {
    display: flex;
    gap: 2.5rem;
  }
  
  .nav-links a {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.3s;
  }
  
  .nav-links a:hover { color: var(--gold); }
  
  .nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
  }
  
  .nav-toggle span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--offwhite);
    transition: transform 0.3s, opacity 0.3s;
  }
  
  /* ── MOBILE MENU ── */
  .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--obsidian);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform var(--transition);
  }
  
  .mobile-menu.open { transform: translateX(0); }
  
  .mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  .mobile-menu a {
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--offwhite);
    transition: color 0.3s;
  }
  
  .mobile-menu a:hover { color: var(--gold); }
  
  /* ── BUTTONS ── */
  .btn-primary {
    display: inline-block;
    padding: 0.85rem 2.5rem;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: background 0.3s, color 0.3s;
    cursor: pointer;
    background: transparent;
  }
  
  .btn-primary:hover {
    background: var(--gold);
    color: var(--obsidian);
  }
  
  .btn-full { width: 100%; text-align: center; }
  
  /* ── SECTION LABELS ── */
  .about-label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
  }
  
  .about-label span {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
  }
  
  .about-label span:first-child { color: var(--muted); }
  
  /* ── SECTION TITLES ── */
  .section-title {
    font-family: var(--font-head);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--offwhite);
    margin-bottom: 2.5rem;
  }
  
  .section-title em {
    font-style: italic;
    color: var(--gold);
  }
  
  /* ============================================
     HERO
     ============================================ */
  .hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
  }
  
  .hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('assets/images/hero-desktop.png');
    background-size: cover;
    background-position: center right;
    z-index: 1;
    transform: scale(1.05);
    animation: heroZoom 12s ease-out forwards;
  }
  
  @media (max-width: 768px) {
    .hero-bg {
      background-image: url('assets/images/hero-mobile.png');
      background-position: center center;
    }
  }
  
  @keyframes heroZoom {
    from { transform: scale(1.05); }
    to   { transform: scale(1); }
  }
  
  .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      105deg,
      rgba(26, 22, 20, 0.88) 0%,
      rgba(26, 22, 20, 0.65) 50%,
      rgba(26, 22, 20, 0.2) 100%
    );
    z-index: 2;
  }
  
  .hero-content {
    position: relative;
    z-index: 4;
    max-width: 700px;
    padding: 0 3rem;
    padding-top: 8rem;
  }
  
  .hero-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
  }
  
  .hero-headline {
    font-family: var(--font-head);
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 300;
    line-height: 1.0;
    color: var(--offwhite);
    margin-bottom: 1.5rem;
  }
  
  .hero-headline em {
    font-style: italic;
    color: var(--gold);
  }
  
  .hero-sub {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(240, 237, 232, 0.75);
    max-width: 520px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
  }
  
  .hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 3rem;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  .hero-scroll span {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
  }
  
  .scroll-line {
    width: 40px;
    height: 1px;
    background: var(--gold);
    transform-origin: left;
    animation: scrollPulse 2s ease-in-out infinite;
  }
  
  @keyframes scrollPulse {
    0%, 100% { transform: scaleX(1); opacity: 1; }
    50%       { transform: scaleX(0.5); opacity: 0.5; }
  }
  
  /* ============================================
     ABOUT
     ============================================ */
  .about {
    position: relative;
    padding: 10rem 0;
    overflow: hidden;
  }
  
  .about-bg {
    position: absolute;
    inset: 0;
    background-image: url('assets/images/about-bg.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
  }
  
  .about-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to right,
      rgba(26, 22, 20, 0.97) 0%,
      rgba(26, 22, 20, 0.88) 60%,
      rgba(26, 22, 20, 0.75) 100%
    );
    z-index: 2;
  }
  
  .about .container { position: relative; z-index: 4; }
  
  .about-inner {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 4rem;
    align-items: start;
    max-width: 820px;
  }
  
  .about-paragraphs p {
    font-size: 1.15rem;
    font-weight: 300;
    color: rgba(240, 237, 232, 0.85);
    margin-bottom: 1.25rem;
    line-height: 1.8;
    border-left: 1px solid transparent;
    padding-left: 0;
    transition: border-color 0.3s, padding-left 0.3s;
  }
  
  .about-paragraphs p:hover {
    border-left-color: var(--gold);
    padding-left: 1rem;
  }
  
  .about-closing {
    font-size: 1.25rem !important;
    color: var(--offwhite) !important;
    font-family: var(--font-head);
    font-weight: 400 !important;
  }
  
  .about-closing em { color: var(--gold); font-style: italic; }
  
  /* ============================================
     SERVICES
     ============================================ */
  .services {
    position: relative;
    padding: 10rem 0;
    overflow: hidden;
  }
  
  .services-bg {
    position: absolute;
    inset: 0;
    background-image: url('assets/images/services-bg.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
  }
  
  .services-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 22, 20, 0.92);
    z-index: 2;
  }
  
  .services .container { position: relative; z-index: 4; }
  
  .services-header {
    margin-bottom: 4rem;
  }
  
  .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
  }
  
  .service-card {
    background: var(--obsidian);
    padding: 2.5rem 2rem;
    transition: background var(--transition);
    position: relative;
    overflow: hidden;
  }
  
  .service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
  }
  
  .service-card:hover { background: var(--obsidian-2); }
  .service-card:hover::before { transform: scaleX(1); }
  
  .service-num {
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 300;
    color: rgba(200, 137, 42, 0.2);
    line-height: 1;
    margin-bottom: 1rem;
    transition: color 0.3s;
  }
  
  .service-card:hover .service-num { color: rgba(200, 137, 42, 0.5); }
  
  .service-card h3 {
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--offwhite);
    margin-bottom: 0.75rem;
    line-height: 1.3;
  }
  
  .service-card p {
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--muted);
    line-height: 1.8;
  }
  
  /* Last two cards span full row on a 3-col grid if 5 items */
  .services-grid .service-card:nth-child(4) { grid-column: span 1; }
  .services-grid .service-card:nth-child(5) { grid-column: span 2; }
  
  /* ============================================
     CONTACT
     ============================================ */
  .contact {
    position: relative;
    padding: 10rem 0;
    overflow: hidden;
  }
  
  .contact-bg {
    position: absolute;
    inset: 0;
    background-image: url('assets/images/contact-bg.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
  }
  
  .contact-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to left,
      rgba(26, 22, 20, 0.85) 0%,
      rgba(26, 22, 20, 0.97) 60%
    );
    z-index: 2;
  }
  
  .contact .container { position: relative; z-index: 4; }
  
  .contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
  }
  
  .contact-sub {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 2.5rem;
    line-height: 1.7;
  }
  
  .contact-detail {
    margin-bottom: 0.75rem;
  }
  
  .contact-detail span {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--gold);
    text-transform: uppercase;
  }
  
  /* ── FORM ── */
  .contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
  
  .form-group { display: flex; flex-direction: column; gap: 0.4rem; }
  
  .form-group label {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
  }
  
  .form-group input,
  .form-group textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--offwhite);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    padding: 0.85rem 1rem;
    outline: none;
    transition: border-color 0.3s;
    resize: none;
    width: 100%;
  }
  
  .form-group input::placeholder,
  .form-group textarea::placeholder { color: rgba(138, 130, 120, 0.5); }
  
  .form-group input:focus,
  .form-group textarea:focus { border-color: var(--gold); }
  
  .form-success {
    display: none;
    font-size: 0.8rem;
    color: var(--gold);
    letter-spacing: 0.1em;
    text-align: center;
    padding-top: 0.5rem;
  }
  
  /* ============================================
     FOOTER
     ============================================ */
  .footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
  }
  
  .footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .footer-logo {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--offwhite);
  }
  
  .footer-copy {
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.05em;
  }
  
  .footer-nahuatl {
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.08em;
  }
  
  .footer-nahuatl em { color: var(--gold); font-style: italic; }
  
  /* ============================================
     REVEAL ANIMATIONS
     ============================================ */
  .reveal,
  .reveal-up,
  .reveal-left {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .reveal        { transform: translateY(20px); }
  .reveal-up     { transform: translateY(30px); }
  .reveal-left   { transform: translateX(-20px); }
  
  .reveal.visible,
  .reveal-up.visible,
  .reveal-left.visible {
    opacity: 1;
    transform: translate(0);
  }
  
  .delay-1 { transition-delay: 0.1s; }
  .delay-2 { transition-delay: 0.2s; }
  .delay-3 { transition-delay: 0.3s; }
  .delay-4 { transition-delay: 0.4s; }
  .delay-5 { transition-delay: 0.5s; }
  
  /* ============================================
     RESPONSIVE
     ============================================ */
  @media (max-width: 1024px) {
    .services-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    .services-grid .service-card:nth-child(5) {
      grid-column: span 2;
    }
  }
  
  @media (max-width: 768px) {
    .nav { padding: 1.25rem 1.5rem; }
    .nav.scrolled { padding: 1rem 1.5rem; }
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
  
    .hero-content { padding: 0 1.5rem; padding-top: 7rem; }
    .hero-scroll { left: 1.5rem; }
  
    .about { padding: 6rem 0; }
    .about-inner {
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }
  
    .services { padding: 6rem 0; }
    .services-grid { grid-template-columns: 1fr; }
    .services-grid .service-card:nth-child(5) { grid-column: span 1; }
  
    .contact { padding: 6rem 0; }
    .contact-inner {
      grid-template-columns: 1fr;
      gap: 3rem;
    }
  
    .footer-inner { flex-direction: column; text-align: center; }
  
    .container { padding: 0 1.5rem; }
  }
  
  @media (max-width: 480px) {
    .hero-headline { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
  }