/*
Theme Name: Ochoa Construction Group
Theme URI: https://ochoaconstructiongroup.com
Author: Ochoa Construction Group
Description: Custom one-page theme for Ochoa Construction Group.
Version: 1.0
*/


  :root{
    --charcoal: #262220;
    --ink: #1a1714;
    --cream: #efe9dd;
    --cream-warm: #e6ded0;
    --terracotta: #b85c38;
    --terracotta-deep: #8f4529;
    --brass: #a78753;
    --stone: #5c554b;
    --line: rgba(26,23,20,0.14);
    --line-dark: rgba(239,233,221,0.16);

    --font-display: 'Fraunces', serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
  }

  *{ box-sizing: border-box; }
  html{ scroll-behavior: smooth; }
  body{
    margin:0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }
  img,svg{ display:block; max-width:100%; }
  a{ color: inherit; }

  ::selection{ background: var(--terracotta); color: var(--cream); }

  :focus-visible{
    outline: 2px solid var(--terracotta);
    outline-offset: 3px;
  }

  .wrap{
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px;
  }

  /* ---------- Blueprint annotation label ---------- */
  .tag{
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--terracotta-deep);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
  }
  .tag::before{
    content: '';
    width: 22px;
    height: 1px;
    background: var(--terracotta);
    display: inline-block;
  }

  /* ---------- Nav ---------- */
  header{
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(239,233,221,0.86);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
  }
  nav.wrap{
    display:flex;
    align-items:center;
    justify-content: space-between;
    height: 76px;
  }
  .brand{
    display:flex;
    align-items:center;
    gap: 12px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 19px;
    letter-spacing: 0.01em;
    text-decoration:none;
    color: var(--ink);
  }
  .brand .mark{ width: 34px; height: 34px; }

  nav ul{
    list-style:none;
    display:flex;
    gap: 34px;
    margin:0; padding:0;
    font-size: 14.5px;
    font-weight: 500;
  }
  nav ul a{
    text-decoration:none;
    color: var(--stone);
    position: relative;
    padding-bottom: 4px;
  }
  nav ul a:hover{ color: var(--ink); }
  nav ul a::after{
    content:'';
    position:absolute;
    left:0; right:100%; bottom:0;
    height: 1px;
    background: var(--terracotta);
    transition: right 0.25s ease;
  }
  nav ul a:hover::after{ right: 0; }

  .btn{
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.01em;
    padding: 12px 22px;
    border-radius: 3px;
    text-decoration:none;
    display:inline-block;
    border: 1px solid transparent;
    cursor:pointer;
    transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
  }
  .btn-primary{
    background: var(--terracotta-deep);
    color: var(--cream);
  }
  .btn-primary:hover{ background: #74341f; }
  .btn-ghost{
    background: transparent;
    border-color: var(--ink);
    color: var(--ink);
  }
  .btn-ghost:hover{ background: var(--ink); color: var(--cream); }
  .btn-ghost-dark{
    background: transparent;
    border-color: var(--line-dark);
    color: var(--cream);
  }
  .btn-ghost-dark:hover{ background: var(--cream); color: var(--charcoal); border-color: var(--cream); }

  .nav-cta{ display:flex; align-items:center; gap: 22px; }
  .lang-toggle{
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--stone);
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 6px 10px;
    transition: color 0.2s ease, border-color 0.2s ease;
  }
  .lang-toggle:hover{ color: var(--terracotta-deep); border-color: var(--terracotta-deep); }
  .nav-links-desktop{ display:flex; }

  /* ---------- Hero ---------- */
  .hero{
    position: relative;
    padding: 90px 0 60px;
    overflow: hidden;
  }
  .hero-grid{
    display:grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
    align-items:center;
  }
  .hero h1{
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(40px, 5.4vw, 68px);
    line-height: 1.04;
    letter-spacing: -0.01em;
    margin: 0 0 26px;
    color: var(--ink);
  }
  .hero h1 em{
    font-style: italic;
    font-weight: 400;
    color: var(--terracotta-deep);
  }
  .hero p.lede{
    font-size: 18px;
    color: var(--stone);
    max-width: 46ch;
    margin: 0 0 36px;
  }
  .hero-ctas{ display:flex; gap: 16px; flex-wrap:wrap; }

  .arch-stage{
    position: relative;
    aspect-ratio: 1 / 0.95;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero-logo{
    width: 82%;
    height: auto;
    aspect-ratio: 328 / 306;
    filter: drop-shadow(0 18px 30px rgba(38,34,32,0.18));
    overflow: visible;
  }

  /* ---------- Piece-by-piece build-in on load ---------- */
  .hero-logo .piece{
    transform-box: fill-box;
    transform-origin: center;
    opacity: 0;
    animation: heroPieceDrop 0.55s cubic-bezier(.2,.9,.25,1) forwards;
    animation-delay: calc(var(--i) * 70ms);
  }
  @keyframes heroPieceDrop{
    from{ opacity: 0; transform: translateY(-70px); }
    to{ opacity: 1; transform: translateY(0); }
  }
  /* Archway opening + base plinth stay hidden until the last stone lands */
  .hero-logo .bg-reveal{
    opacity: 0;
    animation: heroBgReveal 0.4s ease forwards;
    animation-delay: 1.05s;
  }
  @keyframes heroBgReveal{
    from{ opacity: 0; }
    to{ opacity: 1; }
  }
  @media (prefers-reduced-motion: reduce){
    .hero-logo .piece, .hero-logo .bg-reveal{ animation: none; opacity: 1; }
  }

  /* ---------- 404 page: arch appears already built, then explodes apart ---------- */
  .err-logo{
    overflow: visible;
  }
  .err-logo .piece{
    transform-box: fill-box;
    transform-origin: center;
    opacity: 1;
    animation: errExplode 1s cubic-bezier(.36,.15,.24,1) forwards;
    animation-delay: calc(var(--i) * 12ms);
  }
  @keyframes errExplode{
    0%   { opacity: 1; transform: translate(0,0) rotate(0deg) scale(1); }
    20%  { opacity: 1; transform: translate(0,0) rotate(0deg) scale(1); }
    100% { opacity: 0.95; transform: translate(var(--fx), var(--fy)) rotate(var(--fr)) scale(0.9); }
  }
  .err-logo .err-bg{
    animation: errBgFade 0.5s ease forwards;
    animation-delay: 0.15s;
  }
  @keyframes errBgFade{
    0%   { opacity: 1; }
    100% { opacity: 0; }
  }
  @media (prefers-reduced-motion: reduce){
    .err-logo .piece{ animation: none; opacity: 1; transform: none; }
    .err-logo .err-bg{ animation: none; opacity: 1; }
  }

  /* ---------- Trust strip ---------- */
  .trust{
    background: var(--charcoal);
    color: var(--cream);
    padding: 22px 0;
  }
  .trust .wrap{
    display:flex;
    justify-content:center;
    gap: 44px;
    flex-wrap:wrap;
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: 0.06em;
    color: rgba(239,233,221,0.75);
  }
  .trust strong{ color: var(--brass); font-weight: 500; }

  /* ---------- Section base ---------- */
  section{ padding: 110px 0; }
  .section-head{
    max-width: 640px;
    margin-bottom: 56px;
  }
  h2{
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(30px, 3.6vw, 44px);
    line-height: 1.12;
    margin: 0 0 18px;
  }
  h2 em{ font-style: italic; color: var(--terracotta-deep); font-weight: 400; }
  .section-head p{ color: var(--stone); font-size: 16.5px; margin:0; }

  /* ---------- About ---------- */
  .about{
    background: var(--cream-warm);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .about-grid{
    display:grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items:start;
  }
  .house-stage{
    display:flex;
    align-items:center;
    justify-content:center;
    padding: 20px 0;
  }
  .house-svg{ width: 100%; max-width: 340px; }
  .brick{ opacity: 0; }
  .brick.a{ fill: #b1592f; }
  .brick.b{ fill: #a04f2b; }
  .house-stage.in-view .brick{
    animation: brickFall 0.55s cubic-bezier(.34,1.1,.4,1) forwards;
    animation-delay: calc(var(--r) * 90ms);
  }
  @keyframes brickFall{
    from{ opacity: 0; transform: translateY(-70px); }
    to{ opacity: 1; transform: translateY(0); }
  }
  .lintel{ fill: #cfc3ab; opacity: 0; }
  .window{ fill: var(--cream-warm); stroke: #55483a; stroke-width: 1.5; opacity: 0; }
  .window-mullion{ stroke: #55483a; stroke-width: 1.5; opacity: 0; }
  .window-sill{ fill: #cfc3ab; opacity: 0; }
  .door-frame{ fill: #cfc3ab; opacity: 0; }
  .door{ fill: #5c3a28; opacity: 0; }
  .door-panel{ stroke: #47281c; stroke-width: 1.2; opacity: 0; }
  .door-knob{ fill: var(--brass); opacity: 0; }
  .roof{ fill: #3d3126; opacity: 0; }
  .fascia{ fill: #cfc3ab; opacity: 0; }
  .ridge-cap{ stroke: #cfc3ab; stroke-width: 2.5; stroke-linecap: round; opacity: 0; }
  .ground-line{ stroke: var(--stone); stroke-width: 1; stroke-dasharray: 3 5; opacity: 0.5; }
  .house-stage.in-view .lintel,
  .house-stage.in-view .window,
  .house-stage.in-view .window-mullion,
  .house-stage.in-view .window-sill,
  .house-stage.in-view .door-frame,
  .house-stage.in-view .door,
  .house-stage.in-view .door-panel,
  .house-stage.in-view .door-knob{
    animation: brickFall 0.5s ease forwards;
    animation-delay: 850ms;
  }
  .house-stage.in-view .roof,
  .house-stage.in-view .fascia,
  .house-stage.in-view .ridge-cap{
    animation: brickFall 0.5s ease forwards;
    animation-delay: 1050ms;
  }
  @media (prefers-reduced-motion: reduce){
    .brick, .lintel, .window, .window-mullion, .window-sill, .door-frame, .door, .door-panel, .door-knob, .roof, .fascia, .ridge-cap{ animation: none !important; opacity: 1; transform: none; }
  }
  .about-body p{ font-size: 16.5px; color: var(--ink); margin: 0 0 20px; }
  .about-body p:last-child{ margin-bottom:0; }
  .founders{
    display:flex;
    gap: 28px;
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
  }
  .founder{ flex:1; }
  .founder .role{
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--terracotta-deep);
    margin-bottom: 6px;
  }
  .founder .name{ font-family: var(--font-display); font-size: 20px; }

  /* ---------- Services ---------- */
  .services-grid{
    display:grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
  }
  .services-grid-3{ grid-template-columns: repeat(3, 1fr); }
  .service-card{
    background: var(--cream);
    padding: 38px 30px;
    transition: background 0.2s ease;
  }
  .service-card:hover{ background: var(--cream-warm); }
  .service-icon{ width: 34px; height: 34px; margin-bottom: 26px; }
  .service-card h3{
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 500;
    margin: 0 0 12px;
  }
  .service-card p{
    font-size: 14.5px;
    color: var(--stone);
    margin: 0;
  }

  /* ---------- Process ---------- */
  .process{
    background: var(--cream-warm);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .process-grid{
    display:grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 36px;
  }
  .process-num{
    font-family: var(--font-display);
    font-size: 26px;
    color: var(--terracotta-deep);
    margin-bottom: 10px;
  }
  .process-step h3{
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 8px;
  }
  .process-step p{
    font-size: 14px;
    color: var(--stone);
    margin: 0;
  }

  /* ---------- Recent work ---------- */
  .project-card{
    background: var(--cream-warm);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 28px;
  }
  .project-title{
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 500;
    margin: 0 0 22px;
  }
  .room-group{ margin-bottom: 28px; }
  .room-group:last-child{ margin-bottom: 0; }
  .room-heading{
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--terracotta-deep);
    margin-bottom: 12px;
  }
  .project-grid{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .project-photo{
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 4px;
    overflow: hidden;
    border: none;
    padding: 0;
    cursor: pointer;
    background: var(--charcoal);
    display: block;
    width: 100%;
  }
  .project-photo img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
  }
  .project-photo:hover img{ transform: scale(1.04); }
  .photo-label{
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(26,23,20,0.78);
    color: var(--cream);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 3px;
  }

  /* ---------- Lightbox ---------- */
  .lightbox{
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26,23,20,0.94);
    z-index: 200;
    align-items: center;
    justify-content: center;
  }
  .lightbox.is-open{ display: flex; }
  .lightbox-img{
    max-width: 88vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 4px;
  }
  .lightbox-caption{
    position: absolute;
    bottom: 32px;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--cream);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .lightbox-close, .lightbox-prev, .lightbox-next{
    position: absolute;
    background: none;
    border: none;
    color: var(--cream);
    cursor: pointer;
    padding: 10px;
  }
  .lightbox-close{
    top: 20px;
    right: 24px;
    font-size: 32px;
    line-height: 1;
  }
  .lightbox-prev, .lightbox-next{
    top: 50%;
    transform: translateY(-50%);
    font-size: 48px;
    line-height: 1;
  }
  .lightbox-prev{ left: 12px; }
  .lightbox-next{ right: 12px; }
  .lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover{ color: var(--terracotta); }

  /* ---------- Contact ---------- */
  .contact{
    background: var(--cream-warm);
    border-top: 1px solid var(--line);
  }
  .contact-grid{
    display:grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 64px;
  }
  .contact-info p{ color: var(--stone); font-size: 16px; margin-bottom: 28px; }
  .contact-detail{
    font-family: var(--font-mono);
    font-size: 14px;
    margin-bottom: 14px;
    display:flex;
    gap: 10px;
  }
  .contact-detail span:first-child{ color: var(--terracotta-deep); min-width: 74px; }

  /* ---------- FAQ ---------- */
  .faq-list{
    max-width: 760px;
    margin: 0 auto;
  }
  .faq-item{
    border-bottom: 1px solid var(--line);
    padding: 22px 0;
  }
  .faq-item summary{
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
  }
  .faq-item summary::-webkit-details-marker{ display: none; }
  .faq-item summary::after{
    content: '+';
    font-family: var(--font-body);
    font-size: 22px;
    font-weight: 400;
    color: var(--terracotta-deep);
    flex-shrink: 0;
    transition: transform 0.2s ease;
  }
  .faq-item[open] summary::after{
    transform: rotate(45deg);
  }
  .faq-item p{
    font-size: 14.5px;
    color: var(--stone);
    line-height: 1.6;
    margin: 14px 0 0;
    max-width: 60ch;
  }

  .review-cta{
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  .review-cta-text strong{
    display: block;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
  }
  .review-cta-text span{
    display: block;
    font-size: 13.5px;
    color: var(--stone);
  }

  form{
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 36px;
  }
  .form-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
  .form-row-3col{ grid-template-columns: 1fr 1fr 1fr; }
  .field{ display:flex; flex-direction:column; gap: 8px; }
  .field.full{ grid-column: 1/-1; }
  label{ font-size: 13px; font-weight: 500; color: var(--stone); }
  input, select, textarea{
    font-family: var(--font-body);
    font-size: 15px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: var(--cream);
    color: var(--ink);
  }
  textarea{ resize: vertical; min-height: 100px; }
  input:focus, select:focus, textarea:focus{ border-color: var(--terracotta); }
  .form-note{
    font-size: 12.5px;
    color: var(--stone);
    margin-top: 16px;
  }

  /* ---------- Footer ---------- */
  footer{
    background: var(--charcoal);
    color: rgba(239,233,221,0.6);
    padding: 40px 0;
    font-size: 13px;
  }
  footer .wrap{
    display:flex;
    justify-content: space-between;
    align-items:center;
    flex-wrap:wrap;
    gap: 16px;
  }
  footer .brand{ color: var(--cream); font-size: 16px; }
  footer .brand .voussoir{ fill: var(--cream); opacity:0.3; }
  footer .brand .KEYSTONE{ fill: var(--brass); opacity:1; }

  /* ---------- Mobile menu ---------- */
  .menu-btn{ display:none; background:none; border:none; cursor:pointer; padding: 8px; }
  .menu-btn svg{ width: 22px; height: 22px; }

  /* ---------- Skip link ---------- */
  .skip-link{
    position: absolute;
    top: -100px;
    left: 12px;
    background: var(--terracotta);
    color: var(--cream);
    padding: 10px 18px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    z-index: 100;
    transition: top 0.15s ease;
  }
  .skip-link:focus{
    top: 12px;
  }

  @media (max-width: 880px){
    .nav-links-desktop{
      display: flex;
      position: absolute;
      top: 76px;
      left: 0;
      right: 0;
      flex-direction: column;
      gap: 0;
      background: var(--cream);
      border-bottom: 1px solid var(--line);
      padding: 8px 0;
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.25s ease;
    }
    .nav-links-desktop.is-open{
      max-height: 400px;
    }
    .nav-links-desktop li{ width: 100%; }
    .nav-links-desktop a{
      display: block;
      padding: 14px 32px;
    }
    .nav-links-desktop a::after{ display:none; }
  }

  @media (max-width: 880px){
    .hero-grid{ grid-template-columns: 1fr; }
    .arch-stage{ max-width: 420px; margin: 0 auto; }
    .about-grid, .contact-grid{ grid-template-columns: 1fr; }
    .services-grid{ grid-template-columns: repeat(2, 1fr); }
    .process-grid{ grid-template-columns: repeat(2, 1fr); gap: 28px; }
    .project-grid{ grid-template-columns: repeat(2, 1fr); }
    .menu-btn{ display:block; }
    section{ padding: 76px 0; }
  }
  @media (max-width: 520px){
    .services-grid{ grid-template-columns: 1fr; }
    .process-grid{ grid-template-columns: 1fr; }
    .project-grid{ grid-template-columns: 1fr; }
    .form-row{ grid-template-columns: 1fr; }
    .wrap{ padding: 0 20px; }
  }