/*!
Theme Name: themeReiwaCreative
Theme URI: http://underscores.me/
Author: Reiwa Creative
Author URI: http://underscores.me/
Description: This theme is made for agency.
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: reiwa-creative
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

themeReiwaCreative is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
  :root{
    --black:#000000;
    --white:#ffffff;
    --orange:#F76F46;
    --cream:#FFF5F1;
    --ink:#6B655F;
    --line-dark:#2A2A2A;
    --line-light:#E8E2DC;
    --serif:'Fraunces', serif;
    --sans:'Instrument Sans', sans-serif;
    --mono:'Space Mono', monospace;
  }
  *{margin:0;padding:0;box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  body{
    font-family:var(--sans);
    color:var(--black);
    background:var(--white);
    -webkit-font-smoothing:antialiased;
  }
  @media (prefers-reduced-motion: reduce){
    *{animation-duration:0.001ms !important; transition-duration:0.001ms !important;}
  }
  a{color:inherit; text-decoration:none;}
  img{max-width:100%; display:block;}
  button{font-family:inherit; cursor:pointer; border:none; background:none;}
  ::selection{background:var(--orange); color:var(--white);}
  :focus-visible{outline:2px solid var(--orange); outline-offset:3px;}

  .wrap{max-width:1280px; margin:0 auto; padding:0 40px;}
  @media (max-width:768px){ .wrap{padding:0 24px;} }

  .label{
    font-family:var(--mono);
    font-size:12px;
    letter-spacing:0.02em;
    color:var(--ink);
  }
  .label.on-dark{color:#B8B4AF;}

  h1,h2,h3,h4{font-family:var(--serif); font-weight:500; line-height:1.08; letter-spacing:-0.01em;}

  /* ---------- NAV ---------- */
  header{
    position:fixed; top:0; left:0; right:0; z-index:1000;
    background:rgba(255,255,255,0.88);
    backdrop-filter:blur(10px);
    border-bottom:1px solid var(--line-light);
    transition:background .3s ease, border-color .3s ease;
  }
  header.on-dark{
    background:rgba(0,0,0,0.72);
    border-bottom:1px solid var(--line-dark);
  }
  .nav-inner{
    display:flex; align-items:center; justify-content:space-between;
    height:78px;
  }
  .logo{
    font-family:var(--serif); font-size:20px; font-weight:600; letter-spacing:-0.01em;
    display:flex; align-items:baseline; gap:8px;
  }
  .logo em{font-style:italic; color:var(--orange); font-weight:400;}
  header.on-dark .logo{color:var(--white);}
  nav.primary{display:flex; gap:36px;}
  nav.primary a{
    font-family:var(--mono); font-size:13px; color:var(--black); position:relative; padding:4px 0;
  }
  header.on-dark nav.primary a{color:#D8D4CF;}
  nav.primary a.active{color:var(--black);}
  header.on-dark nav.primary a.active{color:var(--white);}
  nav.primary a.active::after{
    content:''; position:absolute; left:0; right:0; bottom:-2px; height:1px; background:var(--orange);
  }
  .nav-cta{
    font-family:var(--mono); font-size:13px; padding:10px 18px; border:1px solid var(--black);
    transition:background .25s ease, color .25s ease, border-color .25s ease;
  }
  .nav-cta:hover{background:var(--black); color:var(--white);}
  header.on-dark .nav-cta{border-color:var(--white); color:var(--white);}
  header.on-dark .nav-cta:hover{background:var(--orange); border-color:var(--orange); color:var(--black);}
  .burger{display:none; width:26px; height:20px; position:relative;}
  .burger span{position:absolute; left:0; right:0; height:1.5px; background:var(--black); transition:transform .3s ease, opacity .3s ease;}
  header.on-dark .burger span{background:var(--white);}
  .burger span:nth-child(1){top:0;}
  .burger span:nth-child(2){top:9px;}
  .burger span:nth-child(3){top:18px;}
  .burger.open span:nth-child(1){transform:translateY(9px) rotate(45deg);}
  .burger.open span:nth-child(2){opacity:0;}
  .burger.open span:nth-child(3){transform:translateY(-9px) rotate(-45deg);}

  @media (max-width:900px){
    nav.primary, .nav-cta{display:none;}
    .burger{display:block;}
    .mobile-menu{
      position:fixed; inset:78px 0 0 0; background:var(--black); z-index:999;
      display:flex; flex-direction:column; justify-content:space-between;
      padding:40px 24px; transform:translateX(100%); transition:transform .4s cubic-bezier(.65,0,.35,1);
    }
    .mobile-menu.open{transform:translateX(0);}
    .mobile-menu nav{display:flex; flex-direction:column; gap:28px;}
    .mobile-menu nav a{font-family:var(--serif); font-size:25px; color:var(--white); text-align:left;}
    .mobile-menu nav a.active{color:var(--orange);}
    .mobile-menu .nav-cta{display:inline-block; align-self:flex-start; border-color:var(--white); color:var(--white);}
  }

  /* ---------- PAGES ---------- */
  section{position:relative;}

  /* ---------- FOOTER ---------- */
  footer{background:var(--black); color:#8B8781; padding:56px 0 40px; border-top:1px solid var(--line-dark);}
  .footer-grid{display:flex; justify-content:space-between; gap:40px; flex-wrap:wrap; padding-bottom:36px;}
  .footer-col h4{font-family:var(--mono); font-size:12px; color:#B8B4AF; font-weight:400; margin-bottom:14px;}
  .footer-col a, .footer-col p{display:block; font-size:14px; color:#8B8781; margin-bottom:8px;}
  .footer-col a:hover{color:var(--white);}
  .footer-bottom{border-top:1px solid var(--line-dark); padding-top:24px; display:flex; justify-content:space-between; font-family:var(--mono); font-size:12px; flex-wrap:wrap; gap:12px;}



  /* ---------- LOGO IMAGE (added) ---------- */
  .logo-mark{height:38px; width:auto; display:block;}
  @media (max-width:400px){ .logo-mark{height:32px;} }

  /* ---------- Fix: mobile menu must stay hidden above the 900px breakpoint (pre-existing issue, now more visible with 2 extra nav items) ---------- */
  .mobile-menu{display:none;}
  @media (max-width:900px){ .mobile-menu{display:flex;} }

  /* ---------- Fix: outline button was invisible on the dark CTA section (black on black) — pre-existing on the homepage CTA, now also affects the 2 new pages' CTAs ---------- */
  .cta-final .btn.outline{color:var(--white); border-color:#4A4A4A;}
  .cta-final .btn.outline:hover{background:var(--white); color:var(--black);}

    .btn{
    display:inline-flex; align-items:center; gap:10px;
    font-family:var(--mono); font-size:13px; padding:15px 26px;
    background:var(--orange); color:var(--black);
    border:1px solid var(--orange);
    transition:background .25s ease, color .25s ease, transform .25s ease;
    white-space:nowrap;
  }
  .btn:hover{background:transparent; color:var(--white); transform:translateY(-2px);}
  .btn.dark{background:var(--black); color:var(--white); border-color:var(--black);}
  .btn.dark:hover{background:transparent; color:var(--black);}
  .btn.outline{background:transparent; color:var(--black); border-color:var(--black);}
  .btn.outline:hover{background:var(--black); color:var(--white);}
  .btn.outline.light{background:transparent; color:white; border-color:white;}
  .hero-sub .btn.outline{color:var(--white); border-color:#4A4A4A;}
  .hero-sub .btn.outline:hover{background:var(--white); color:var(--black);}