/* ==========================================================================
   RoYStruc — temporary site
   A concise, professional consultancy holding page.
   Flat colour, hairline rules, strong type. No effects, no ornamentation.
   ========================================================================== */

:root{
  --black: #000000;
  --paper: #faf9f6;
  --paper-2: #f1f0ea;
  --white: #ffffff;
  --yellow: #ffc107;
  --yellow-deep: #d69e00;
  --gold-text: #8a6500; /* AA-compliant gold for small text on light backgrounds */
  --line: #dedcd2;
  --line-strong: #1a1a18;
  --text: #17170f;
  --text-mute: #55544a;

  --wrap: 1140px;
  --radius: 2px;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.4,0,.2,1);
}

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

html{ scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *,*::before,*::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body{
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }

h1,h2,h3{
  font-family: var(--font);
  font-weight: 800;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

p{ margin: 0; }
ul,ol{ margin: 0; padding: 0; list-style: none; }
address{ font-style: normal; }

.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--yellow);
  color: var(--black);
  padding: 10px 16px;
  z-index: 200;
  font-weight: 700;
}
.skip-link:focus{ left: 16px; top: 16px; }

:focus-visible{
  outline: 3px solid var(--black);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--yellow);
}

/* ---------- buttons ---------- */

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid var(--black);
  border-radius: var(--radius);
  transition: background-color .15s var(--ease), color .15s var(--ease);
  white-space: nowrap;
}

.btn-primary{
  background: var(--yellow);
  color: var(--black);
}
.btn-primary:hover{ background: var(--yellow-deep); }

.btn-outline{
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-outline:hover{ background: var(--black); color: var(--white); }

.btn-nav{
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner{
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand{ flex-shrink: 0; }
.brand-mark{ height: 40px; width: auto; }

.site-nav{ margin-left: auto; }
.site-nav ul{ display: flex; gap: 32px; }
.site-nav a{
  font-weight: 700;
  font-size: 0.92rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .15s var(--ease);
}
.site-nav a:hover{ border-color: var(--yellow-deep); }

.menu-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 2px solid var(--black);
  border-radius: var(--radius);
  padding: 0;
  margin-left: 8px;
  cursor: pointer;
}
.menu-toggle span{
  display: block;
  height: 2px;
  width: 18px;
  margin: 0 auto;
  background: var(--black);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.mobile-nav{ display: none; border-top: 1px solid var(--line); background: var(--paper); }
.mobile-nav.open{ display: block; }
.mobile-nav ul{ padding: 8px 24px 20px; display: flex; flex-direction: column; }
.mobile-nav a{
  display: block;
  padding: 14px 0;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}
.mobile-nav .mobile-cta{
  margin-top: 14px;
  border: 2px solid var(--black);
  background: var(--yellow);
  text-align: center;
  padding: 12px 0;
  border-bottom: 2px solid var(--black);
}

/* ==========================================================================
   HERO — spacious, logo-led, centred
   ========================================================================== */

.hero{
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  text-align: center;
}

.hero-inner{
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 88px;
}

.hero-mark{
  height: 78px;
  width: auto;
  margin-bottom: 40px;
}

.eyebrow{
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: var(--text-mute);
  margin-bottom: 20px;
}

.hero h1{
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  max-width: 16ch;
  margin: 0 auto 24px;
}

.hero-lede{
  max-width: 52ch;
  margin: 0 auto 40px;
  font-size: 1.08rem;
  color: var(--text-mute);
}

.hero-actions{
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   SECTION HEAD (shared)
   ========================================================================== */

.section-head{
  max-width: 640px;
  margin-bottom: 44px;
}

.section-head h2{
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}

.section-lede{
  color: var(--text-mute);
  font-size: 1.03rem;
  max-width: 52ch;
}

/* ==========================================================================
   SERVICES
   ========================================================================== */

.services{
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}

.service-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card{
  background: var(--paper);
  padding: 32px 28px;
}

.service-card h3{
  font-size: 1.08rem;
  margin-bottom: 10px;
}

.service-card p{
  color: var(--text-mute);
  font-size: 0.96rem;
}

/* ==========================================================================
   ABOUT
   ========================================================================== */

.about{
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}

.about-grid{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}

.about-copy h2{
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 16px;
  max-width: 12ch;
}

.about-copy p{
  color: var(--text-mute);
  font-size: 1.03rem;
  max-width: 46ch;
}

.principles{ display: flex; flex-direction: column; }

.principles li{
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.principles li:last-child{ border-bottom: 1px solid var(--line); }

.principles h3{ font-size: 1.02rem; margin-bottom: 6px; }
.principles p{ color: var(--text-mute); font-size: 0.95rem; }

/* ==========================================================================
   CONTACT
   ========================================================================== */

.contact{ padding: 80px 0 60px; }

.contact-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 44px;
}

.contact-card{
  background: var(--paper);
  padding: 28px;
  transition: background-color .15s var(--ease);
}
.contact-card:hover{ background: var(--white); }

.contact-label{
  display: inline-block;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 12px;
}

.contact-card h3{ font-size: 1.1rem; margin-bottom: 8px; }
.contact-card p{ color: var(--text-mute); font-size: 1rem; }

.contact-primary{ border-left: 3px solid var(--yellow); }

.office{ border-top: 1px solid var(--line); padding-top: 30px; }
.office h3{ font-size: 1.02rem; margin-bottom: 10px; }
.office address{ color: var(--text-mute); font-size: 1rem; margin-bottom: 14px; }
.map-link{
  font-weight: 700;
  font-size: 0.92rem;
  border-bottom: 2px solid var(--yellow-deep);
  padding-bottom: 2px;
}

/* ==========================================================================
   FINAL CTA
   ========================================================================== */

.final-cta{ background: var(--black); }

.final-cta-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 44px 24px;
}

.final-cta h2{
  color: var(--white);
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  max-width: 20ch;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer{ background: var(--paper-2); padding-top: 44px; }

.footer-inner{
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.footer-mark{ height: 28px; width: auto; margin-bottom: 12px; }

.footer-brand p{ color: var(--text-mute); font-size: 0.92rem; }
.footer-address{ margin-top: 4px; }

.footer-links{ display: flex; gap: 26px; align-items: flex-start; }
.footer-links a{
  font-weight: 700;
  font-size: 0.92rem;
  border-bottom: 2px solid transparent;
}
.footer-links a:hover{ border-color: var(--yellow-deep); }

.footer-bottom{
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 24px 26px;
  font-size: 0.82rem;
  color: var(--text-mute);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 900px){
  .hero-inner{ padding-top: 56px; padding-bottom: 56px; }
  .hero-mark{ height: 58px; margin-bottom: 30px; }

  .about-grid{ grid-template-columns: 1fr; gap: 36px; }
  .service-grid{ grid-template-columns: 1fr 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 720px){
  .site-nav, .btn-nav{ display: none; }
  .menu-toggle{ display: flex; }
  .brand-mark{ height: 32px; }

  .service-grid{ grid-template-columns: 1fr; }
  .final-cta-inner{ justify-content: flex-start; }
  .footer-inner, .footer-bottom{ flex-direction: column; }
}

@media (max-width: 480px){
  .wrap{ padding: 0 18px; }
  .hero-mark{ height: 46px; }
  .hero-actions{ flex-direction: column; align-items: stretch; width: 100%; }
  .hero-actions .btn{ width: 100%; }
}
