/* ===================================================
   GARTNER WEB DEVELOPMENT — REVAMPED STYLESHEET
   Aesthetic: Editorial/Technical — Clean Grid, Ink-Press
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=IBM+Plex+Mono:wght@400;500&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --ink:        #0d0d0d;
  --paper:      #f7f4ef;
  --paper-warm: #ede9e1;
  --red:        #c0392b;
  --red-light:  #e74c3c;
  --muted:      #6b6860;
  --rule:       #ccc9c1;
  --white:      #ffffff;
  --header-h:   72px;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--red); }

/* ——— HEADER ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 3px solid var(--red);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-logo {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo-tagline {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--red-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: #b0ada6;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.45rem 0.9rem;
  border-radius: 2px;
  transition: color 0.2s, background 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.site-nav a.active {
  color: var(--red-light);
}

/* ——— PAGE HERO ——— */
.page-hero {
  background: var(--ink);
  padding: 3.5rem 2rem 3rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 79px,
    rgba(255,255,255,0.03) 79px,
    rgba(255,255,255,0.03) 80px
  );
}

.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.page-hero h1 em {
  font-style: italic;
  color: #d9c99a;
}

.page-hero p {
  font-size: 1rem;
  color: #8c8880;
  margin-top: 0.75rem;
  max-width: 560px;
}

/* ——— MAIN CONTENT WRAPPER ——— */
.page-main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 3.5rem 2rem 4rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 4rem;
  align-items: start;
}

.content-body h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
  margin-top: 2.5rem;
}

.content-body h2:first-child { margin-top: 0; }

.content-body p {
  margin-bottom: 1.2rem;
  color: #2a2a28;
}

.content-body ul,
.content-body ol {
  margin: 0.75rem 0 1.25rem 1.5rem;
}

.content-body li { margin-bottom: 0.4rem; }

/* ——— RULE SEPARATOR ——— */
.rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}

/* ——— SERVICE CARDS ——— */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.service-card {
  border: 1px solid var(--rule);
  padding: 1.75rem;
  position: relative;
  background: var(--white);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 var(--ink);
}

.service-card-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--red);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

.service-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.service-card ul li {
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--paper-warm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-card ul li::before {
  content: '→';
  font-size: 0.75rem;
  color: var(--red);
  flex-shrink: 0;
}

/* ——— SIDEBAR ——— */
.sidebar-block {
  border: 1px solid var(--rule);
  padding: 1.5rem;
  background: var(--white);
  margin-bottom: 1.5rem;
}

.sidebar-block h4 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--red);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}

.sidebar-block p,
.sidebar-block address {
  font-size: 0.9rem;
  color: #3a3a38;
  font-style: normal;
  line-height: 1.65;
}

.sidebar-cta {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.65rem 1.5rem;
  background: var(--ink);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s;
  font-family: var(--font-body);
}

.sidebar-cta:hover {
  background: var(--red);
  color: var(--white);
}

/* ——— PORTFOLIO ITEMS ——— */
.portfolio-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}

.portfolio-item:last-child { border-bottom: none; }

.portfolio-img-wrap {
  border: 2px solid var(--rule);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-warm);
}

.portfolio-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.portfolio-img-wrap:hover img { transform: scale(1.04); }

.portfolio-item h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.portfolio-item h3 a { color: var(--ink); }
.portfolio-item h3 a:hover { color: var(--red); }

/* ——— RESOURCES GRID ——— */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.resource-card {
  border: 1px solid var(--rule);
  padding: 1.5rem;
  background: var(--white);
  transition: border-color 0.2s;
}

.resource-card:hover { border-color: var(--ink); }

.resource-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.resource-card h3 a { color: var(--ink); }
.resource-card h3 a:hover { color: var(--red); }

.resource-card p {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ——— CONTACT SECTION ——— */
.contact-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 2rem 0;
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}

.contact-detail:last-child { border-bottom: none; }

.contact-detail .label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--red);
  min-width: 80px;
  padding-top: 0.15rem;
}

.contact-detail .value {
  font-size: 0.95rem;
  color: var(--ink);
}

/* ——— INLINE LINK ——— */
.text-link {
  color: var(--red);
  text-decoration: underline;
  text-decoration-color: rgba(192,57,43,0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.text-link:hover {
  text-decoration-color: var(--red);
  color: var(--red);
}

/* ——— FOOTER ——— */
.site-footer {
  background: var(--ink);
  padding: 2.5rem 2rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: #5a5a55;
  font-family: var(--font-mono);
}

.footer-copy a { color: #5a5a55; }
.footer-copy a:hover { color: var(--red-light); }

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  font-size: 0.8rem;
  color: #5a5a55;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--red-light); }

/* ——— HOME PAGE SPECIFIC ——— */
.home-hero {
  background: var(--ink);
  padding: 5rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(255,255,255,0.025) 79px, rgba(255,255,255,0.025) 80px),
    repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(255,255,255,0.015) 79px, rgba(255,255,255,0.015) 80px);
}

.home-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.home-hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.home-hero-text h1 em {
  font-style: italic;
  color: #d9c99a;
}

.home-hero-text p {
  margin-top: 1.25rem;
  color: #7a7a74;
  font-size: 1.05rem;
  max-width: 480px;
  line-height: 1.75;
}

.home-hero-ctas {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--red);
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--red-light);
  color: var(--white);
}

.btn-secondary {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: transparent;
  color: #9a9a95;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid #3a3a38;
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: #7a7a74;
  color: var(--white);
}

.home-hero-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-stat {
  border-left: 3px solid var(--red);
  padding: 0.75rem 1.25rem;
  background: rgba(255,255,255,0.03);
}

.hero-stat .num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero-stat .desc {
  font-size: 0.8rem;
  color: #6a6a64;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.2rem;
}

.home-services {
  background: var(--paper-warm);
  padding: 4rem 2rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.home-services-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 2.5rem;
}

/* ——— CATALOG PAGE ——— */
.catalog-banner {
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
}

.catalog-banner h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.catalog-banner p { color: var(--muted); font-size: 0.9rem; margin: 0 0 1.25rem; }

/* ——— PRIVACY ——— */
.policy-section {
  margin-bottom: 2.5rem;
}

.policy-section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.policy-section ol {
  margin-left: 1.5rem;
}

/* ——— BADGE ROW ——— */
.badge-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.badge-row .badge-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* ——— UTILITY ——— */
.mono { font-family: var(--font-mono); }
.text-muted { color: var(--muted); }
.text-red { color: var(--red); }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* ——— RESPONSIVE ——— */
@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; }
  .home-hero-inner { grid-template-columns: 1fr; }
  .contact-block { grid-template-columns: 1fr; }
  .portfolio-item { grid-template-columns: 1fr; }
  .portfolio-img-wrap { aspect-ratio: 16/9; max-width: 400px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { flex-wrap: wrap; gap: 1rem; }
  .site-nav { display: none; } /* simplified for static */
}

/* ——— ANIMATION ——— */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-up {
  animation: fadeUp 0.55s ease both;
}

.animate-up:nth-child(2) { animation-delay: 0.1s; }
.animate-up:nth-child(3) { animation-delay: 0.2s; }
.animate-up:nth-child(4) { animation-delay: 0.3s; }
