/* ========================================
   GRYPHONMASTER LLC – Shared Stylesheet
   ======================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@700&display=swap');

/* --- CSS Variables --- */
:root {
  --brand-dark:       #1C1008;
  --brand-mid:        #3D2A10;
  --brand-accent:     #E8820C;
  --brand-accent-dark:#B8640A;
  --brand-accent-light:#F5A93A;
  --white:            #FFFFFF;
  --off-white:        #FAF8F5;
  --bg-section:       #F3F0EB;
  --text-body:        #2C2414;
  --text-muted:       #6B5A40;
  --border-light:     #E0D5C5;
  --shadow-sm:        0 2px 8px rgba(28,16,8,0.08);
  --shadow-md:        0 6px 24px rgba(28,16,8,0.12);
  --shadow-lg:        0 16px 48px rgba(28,16,8,0.18);
  --nav-height:       72px;
  --radius:           8px;
  --radius-lg:        16px;
  --transition:       0.25s ease;
  --max-width:        1200px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--brand-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand-accent-dark); }

/* --- Typography Scale --- */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--brand-dark);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p  { color: var(--text-body); }

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin-bottom: 0.75rem;
}

/* --- Layout Utilities --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section--alt {
  background: var(--bg-section);
}

.section--dark {
  background: var(--brand-dark);
  color: var(--white);
}
.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: var(--white);
}
.section--dark p {
  color: rgba(255,255,255,0.82);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--brand-accent);
  color: var(--white);
  border-color: var(--brand-accent);
}
.btn-primary:hover {
  background: var(--brand-accent-dark);
  border-color: var(--brand-accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,130,12,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--brand-accent);
  border-color: var(--brand-accent);
}
.btn-outline:hover {
  background: var(--brand-accent);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  color: var(--white);
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--brand-dark);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav__logo img {
  height: 42px;
  width: 42px;
  object-fit: contain;
}

.nav__logo-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.02em;
}
.nav__logo-text span {
  color: var(--brand-accent);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-accent);
  transition: width var(--transition);
}
.nav__links a:hover,
.nav__links a.active {
  color: var(--white);
}
.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

.nav__cta {
  padding: 0.5rem 1.25rem !important;
  background: var(--brand-accent) !important;
  color: var(--white) !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
}
.nav__cta::after { display: none !important; }
.nav__cta:hover {
  background: var(--brand-accent-dark) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
@media (max-width: 768px) {
  .nav__hamburger { display: flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--brand-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1.5rem 2rem;
    gap: 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--shadow-lg);
  }
  .nav__links.open { display: flex; }
  .nav__links a { font-size: 1rem; }
  .nav__cta { align-self: flex-start; }
}

/* --- Footer --- */
.footer {
  background: var(--brand-dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__brand .nav__logo { margin-bottom: 1rem; }
.footer__brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  max-width: 280px;
  line-height: 1.7;
}

.footer__col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin-bottom: 1rem;
}

.footer__col ul { list-style: none; }
.footer__col ul li { margin-bottom: 0.6rem; }
.footer__col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer__col ul li a:hover { color: var(--white); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 640px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { justify-content: center; text-align: center; }
}

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card__icon {
  width: 52px;
  height: 52px;
  background: rgba(232,130,12,0.12);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.card h3 { margin-bottom: 0.6rem; font-size: 1.1rem; }
.card p  { font-size: 0.92rem; color: var(--text-muted); line-height: 1.65; }

/* --- Dividers / Accents --- */
.accent-line {
  display: block;
  width: 48px;
  height: 4px;
  background: var(--brand-accent);
  border-radius: 2px;
  margin: 1rem auto 0;
}

.accent-line--left { margin-left: 0; }

/* --- Page Hero --- */
.page-hero {
  background: var(--brand-dark);
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% -20%, rgba(232,130,12,0.2) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero h1 { color: var(--white); position: relative; }
.page-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.15rem;
  margin-top: 1rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

/* --- Utilities --- */
.text-center { text-align: center; }
.text-accent  { color: var(--brand-accent); }
.mt-1  { margin-top: 0.5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mt-4  { margin-top: 2rem; }
.mb-4  { margin-bottom: 2rem; }
.gap-1 { gap: 0.5rem; }
.flex  { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
