/* ==========================================================================
   Meiyo Advisory — site styles
   Design tokens live in :root. Sections are ordered top-to-bottom as they
   appear in the page. Adding a new page? Reuse the tokens and the nav/footer
   rules; page-specific rules can go in their own block or a new stylesheet.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:#0E0E0C; --ink-mid:#3A3A36; --ink-low:#7A7A72;
  --rule:#D4D0C8; --paper:#FAFAF7; --gold:#B8924A;
  --gold-lt:#F0E8D8; --white:#FFFFFF;
}

html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
html,body { height:100%; background:var(--paper); color:var(--ink); font-family:'Inter',sans-serif; -webkit-font-smoothing:antialiased; }
img { max-width:100%; }
.page { min-height:100vh; display:grid; grid-template-rows:auto 1fr auto; }

/* NAV */
nav { padding:32px 60px; display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid var(--rule); background:var(--white); }
.nav-logo img { height:36px; width:auto; display:block; }
.nav-contact { font-size:12px; font-weight:500; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-low); text-decoration:none; transition:color .2s; }
.nav-contact:hover { color:var(--gold); }

/* HERO */
.hero { display:grid; grid-template-columns:1fr 1fr; align-items:stretch; }
.hero-left { padding:100px 60px; display:flex; flex-direction:column; justify-content:center; border-right:1px solid var(--rule); }
.eyebrow { font-size:10px; font-weight:500; letter-spacing:.2em; text-transform:uppercase; color:var(--gold); margin-bottom:28px; display:flex; align-items:center; gap:12px; }
.eyebrow::before { content:''; display:block; width:32px; height:1px; background:var(--gold); }
h1 { font-family:'Cormorant Garamond',serif; font-size:clamp(42px,5vw,64px); font-weight:300; line-height:1.08; letter-spacing:-.01em; color:var(--ink); margin-bottom:32px; }
h1 em { font-style:italic; color:var(--ink-mid); }
.hero-desc { font-size:15px; font-weight:300; line-height:1.8; color:var(--ink-mid); max-width:460px; margin-bottom:48px; }
.cta-group { display:flex; align-items:center; gap:24px; flex-wrap:wrap; }
.btn-primary { display:inline-flex; align-items:center; gap:10px; background:var(--ink); color:var(--white); font-size:12px; font-weight:500; letter-spacing:.1em; text-transform:uppercase; text-decoration:none; padding:16px 28px; transition:background .2s,transform .15s; }
.btn-primary:hover { background:#2A2A26; transform:translateY(-1px); }
.btn-secondary { font-size:12px; font-weight:500; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-low); text-decoration:none; border-bottom:1px solid var(--rule); padding-bottom:2px; transition:color .2s,border-color .2s; }
.btn-secondary:hover { color:var(--gold); border-color:var(--gold); }

/* HERO RIGHT */
.hero-right { background:var(--ink); display:flex; flex-direction:column; align-items:center; justify-content:center; padding:80px 60px; position:relative; overflow:hidden; }
.hero-right::before { content:''; position:absolute; inset:0; background-image:linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px); background-size:48px 48px; }
.hero-right img { width:160px; height:160px; object-fit:contain; position:relative; z-index:1; margin-bottom:36px; }
.hero-right-text { position:relative; z-index:1; text-align:center; }
.hero-right-text p { font-family:'Cormorant Garamond',serif; font-size:16px; font-style:italic; font-weight:300; color:rgba(255,255,255,.5); line-height:1.75; max-width:280px; margin:0 auto 24px; }
.gold-rule { width:40px; height:1px; background:var(--gold); margin:0 auto; }

/* SERVICES */
.services { border-top:1px solid var(--rule); border-bottom:1px solid var(--rule); display:grid; grid-template-columns:repeat(4,1fr); }
.service { padding:40px 36px; border-left:1px solid var(--rule); }
.service:first-child { border-left:none; }
.service-num { font-size:10px; font-weight:500; letter-spacing:.1em; color:var(--gold); margin-bottom:16px; font-family:'Courier New',monospace; }
.service-title { font-family:'Cormorant Garamond',serif; font-size:19px; font-weight:400; color:var(--ink); margin-bottom:10px; line-height:1.3; }
.service-desc { font-size:12.5px; font-weight:300; line-height:1.7; color:var(--ink-low); }

/* CONTACT */
.contact { display:grid; grid-template-columns:1fr 1fr; }
.contact-left { padding:80px 60px; background:var(--gold-lt); border-top:1px solid var(--rule); border-right:1px solid var(--rule); }
.contact-left h2 { font-family:'Cormorant Garamond',serif; font-size:42px; font-weight:300; line-height:1.12; color:var(--ink); margin-bottom:20px; }
.contact-left h2 em { font-style:italic; }
.contact-left p { font-size:14px; font-weight:300; line-height:1.8; color:var(--ink-mid); margin-bottom:32px; max-width:380px; }
.contact-email { display:inline-flex; align-items:center; gap:10px; font-size:13px; font-weight:500; color:var(--ink); text-decoration:none; letter-spacing:.03em; border-bottom:1px solid var(--ink); padding-bottom:2px; transition:color .2s,border-color .2s; }
.contact-email:hover { color:var(--gold); border-color:var(--gold); }
.contact-right { padding:80px 60px; border-top:1px solid var(--rule); display:flex; flex-direction:column; justify-content:center; gap:0; }
.detail-item { display:flex; flex-direction:column; gap:6px; padding:24px 0; border-bottom:1px solid var(--rule); }
.detail-item:first-child { padding-top:0; }
.detail-item:last-child { border-bottom:none; padding-bottom:0; }
.detail-label { font-size:10px; font-weight:500; letter-spacing:.14em; text-transform:uppercase; color:var(--gold); }
.detail-value { font-family:'Cormorant Garamond',serif; font-size:20px; font-weight:300; color:var(--ink); line-height:1.4; }

/* CONTACT FORM */
.contact-form { display:flex; flex-direction:column; gap:20px; max-width:420px; }
.hidden-field { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.field { display:flex; flex-direction:column; gap:8px; }
.field-label { font-size:10px; font-weight:500; letter-spacing:.14em; text-transform:uppercase; color:var(--gold); }
.field-input { font-family:'Inter',sans-serif; font-size:14px; font-weight:300; color:var(--ink); background:var(--white); border:1px solid var(--rule); border-radius:0; padding:12px 14px; width:100%; transition:border-color .2s; }
.field-input::placeholder { color:var(--ink-low); }
.field-input:focus { outline:none; border-color:var(--gold); }
textarea.field-input { resize:vertical; min-height:108px; line-height:1.6; }
.contact-form .btn-primary { align-self:flex-start; border:none; cursor:pointer; font-family:'Inter',sans-serif; }
.contact-form .btn-primary:disabled { opacity:.55; cursor:default; transform:none; }
.form-error { font-size:12.5px; font-weight:300; line-height:1.6; color:#9A3B2F; }
.form-success p { font-family:'Cormorant Garamond',serif; font-size:20px; font-style:italic; font-weight:300; color:var(--ink); line-height:1.5; }
.contact-fallback { margin-top:24px; font-size:13px; font-weight:300; color:var(--ink-low); line-height:1.7; }
.contact-fallback a { color:var(--ink); text-decoration:none; border-bottom:1px solid var(--rule); padding-bottom:1px; transition:color .2s,border-color .2s; }
.contact-fallback a:hover { color:var(--gold); border-color:var(--gold); }

/* FOOTER */
footer { padding:28px 60px; border-top:1px solid var(--rule); display:flex; justify-content:space-between; align-items:center; background:var(--white); }
.footer-logo img { height:24px; width:auto; display:block; }
.footer-right { font-size:11px; color:var(--ink-low); font-weight:300; }

/* TABLET / SMALL LAPTOP */
@media (max-width:768px) {
  nav { padding:24px 24px; }
  .hero { grid-template-columns:1fr; }
  .hero-left { padding:60px 24px; border-right:none; border-bottom:1px solid var(--rule); }
  .hero-right { padding:60px 24px; min-height:320px; }
  .services { grid-template-columns:1fr 1fr; }
  .service { padding:28px 20px; }
  .service:nth-child(odd) { border-left:none; }          /* clean 2x2: no stray left edges */
  .service:nth-child(n+3) { border-top:1px solid var(--rule); }  /* divider above the 2nd row */
  .contact { grid-template-columns:1fr; }
  .contact-left { padding:60px 24px; border-right:none; }
  .contact-right { padding:60px 24px; }
  .contact-form { max-width:none; }
  .field-input { font-size:16px; }   /* >=16px stops iOS auto-zooming the page on focus */
  footer { padding:24px; flex-direction:column; gap:12px; text-align:center; }
}

/* PHONES */
@media (max-width:480px) {
  nav { padding:20px 18px; }
  .nav-logo img { height:30px; }
  .hero-left { padding:46px 22px; }
  .hero-right { padding:46px 22px; min-height:280px; }
  .hero-right img { width:128px; height:128px; margin-bottom:28px; }
  h1 { font-size:36px; margin-bottom:26px; }
  .hero-desc { margin-bottom:34px; }
  .cta-group { flex-direction:column; align-items:stretch; gap:16px; }
  .btn-primary { width:100%; justify-content:center; }
  .btn-secondary { text-align:center; }
  .services { grid-template-columns:1fr; }
  .service { padding:26px 22px; border-left:none; border-top:1px solid var(--rule); }
  .service:first-child { border-top:none; }
  .contact-left, .contact-right { padding:46px 22px; }
  .contact-left h2 { font-size:34px; }
}
