/* =========================================================
   1. ROOT VARIABLES
   ========================================================= */
:root {
  --bg: #f5f5f4;
  --bg-alt: #e7e5e4;
  --accent: #6b7280;
  --accent-soft: rgba(107, 114, 128, 0.12);
  --text: #3f3f46;
  --muted: #6b7280;
  --border: #d6d3d1;
  --card: #fafaf9;
  --highlight: #a8a29e;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius-lg: 18px;
  --radius-md: 10px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.08);
}

/* =========================================================
   2. BASE & RESET
   ========================================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* =========================================================
   3. PAGE LAYOUT
   ========================================================= */
.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

header {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 40px;
}

main {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 26px;
}

@media (max-width: 900px) {
  main {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   4. HERO SECTION
   ========================================================= */
.hero {
  flex: 2;
  padding: 24px 24px 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fafaf9, #e7e5e4);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 2.4rem;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  color: var(--text);
}

.hero-subtitle {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 18px;
}

.hero-tagline {
  font-size: 1.05rem;
  color: #52525b;
  margin-bottom: 18px;
}

.hero-tagline span {
  color: var(--accent);
  font-weight: 600;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
}

.hero-quote {
  font-size: 0.95rem;
  color: var(--muted);
  border-left: 2px solid var(--accent);
  padding-left: 12px;
  margin-top: 8px;
}

.hero-quote em {
  color: var(--text);
}

/* =========================================================
   5. CONTACT CARD
   ========================================================= */
.contact-card {
  flex: 1;
  padding: 18px 18px 20px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--border);
}

.contact-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  text-align: centre;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 10px;
}

.contact-item {
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text);
}

.contact-label {
  color: var(--muted);
  margin-right: 4px;
}

/* =========================================================
   6. QUICK LINKS CARD
   ========================================================= */
.quick-links-card {
  flex: 1;
  padding: 18px 18px 20px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.stacked-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.stacked-buttons .btn {
  width: 100%;
  justify-content: center;
}

/* =========================================================
   7. BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fafaf9;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--card);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: #f0f0ef;
  transform: translateY(-1px);
}

/* =========================================================
   8. SECTION CARDS & HEADINGS
   ========================================================= */
.section-title {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 10px;
}

.section-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 18px 18px 20px;
}

.section-card + .section-card {
  margin-top: 12px;
}

.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.section-heading-row h2 {
  font-size: 1.05rem;
  color: var(--text);
}

.section-heading-row span {
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
}

/* =========================================================
   9. COMPANY LINE
   ========================================================= */
.company-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.company-logo {
  height: 24px;
  width: auto;
  opacity: 0.75;
  filter: grayscale(100%);
}

/* =========================================================
   10. PILL TAGS
   ========================================================= */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 4px;
}

.pill {
  font-size: 0.8rem;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--card);
}

.pill.highlight {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* =========================================================
   11. BODY TEXT
   ========================================================= */
.body-text {
  font-size: 0.9rem;
  color: #52525b;
}

.body-text p + p {
  margin-top: 8px;
}

/* =========================================================
   12. LISTS
   ========================================================= */
.list {
  list-style: none;
  margin-top: 8px;
  font-size: 0.9rem;
  color: #52525b;
}

.list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
}

.list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-size: 0.9rem;
}

/* =========================================================
   13. SKILLS GRID
   ========================================================= */
.skills-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.skills-group-title {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skills-tag {
  font-size: 0.8rem;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  color: #52525b;
}

.skills-tag.core {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* =========================================================
   14. PROJECT IMAGE GALLERY
   ========================================================= */
.project-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 18px 0 22px;
}

.project-images img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

.project-images img:hover {
  transform: scale(1.02);
  transition: transform 0.15s ease;
}

.section-card .btn-primary {
  margin-top: 16px;
}

/* =========================================================
   15. BRAND STRIP
   ========================================================= */
.brand-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  padding: 32px 0;
  margin-top: 40px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.brand-strip img {
  height: 32px;
  width: auto;
  opacity: 0.7;
  filter: grayscale(100%);
  transition: opacity 0.2s ease;
}

.brand-strip img:hover {
  opacity: 1;
}

/* =========================================================
   16. TOOLS - FOUR BUTTON ROW FORMATTING
   ========================================================= */

.button-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

@media (max-width: 700px) {
    .button-row {
        grid-template-columns: repeat(2, 1fr); /* 2 per row on mobile */
    }
}

@media (max-width: 420px) {
    .button-row {
        grid-template-columns: 1fr; /* stack on very small screens */
    }
}

/* =========================================================
   17. FOOTER
   ========================================================= */
footer {
  margin-top: 32px;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}
