/*
Theme Name:  Argyll Digital
Theme URI:   https://argylldigital.co.uk
Author:      Gary Cairns
Description: Custom theme for Argyll Digital — freelance web developer and digital designer.
Version:     1.0.0
License:     Private
Text Domain: argyll-digital
*/

/* ─────────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────────── */
:root {
  --bg:       oklch(97.5% 0.008 80);
  --bg-card:  oklch(99% 0.004 80);
  --ink:      oklch(15% 0.012 85);
  --ink-mid:  oklch(42% 0.012 85);
  --ink-soft: oklch(62% 0.010 85);
  --green:    oklch(40% 0.14 150);
  --green-lt: oklch(94% 0.04 150);
  --amber:    oklch(58% 0.12 60);
  --rule:     oklch(88% 0.010 80);

  --f-serif: 'DM Serif Display', Georgia, serif;
  --f-sans:  'Inter', system-ui, sans-serif;

  --max: 1200px;
  --pad: clamp(1.5rem, 5vw, 4rem);
}

/* ─────────────────────────────────────────────
   RESET
───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ─────────────────────────────────────────────
   NAV
───────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem var(--pad);
  background: transparent;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in oklch, var(--bg) 95%, transparent);
  border-color: var(--rule);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--rule);
}
.nav-logo img { height: 32px; display: block; }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.875rem; font-weight: 500; color: var(--ink);
  text-decoration: none; letter-spacing: 0.01em; transition: color 0.2s;
}
.nav-links a:hover { color: var(--green); }

.nav-cta {
  display: inline-block; padding: 0.6rem 1.25rem;
  background: var(--ink); color: var(--bg); border-radius: 2px;
  font-size: 0.8125rem; font-weight: 500; text-decoration: none; letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: var(--green); color: white; }

/* ─────────────────────────────────────────────
   LAYOUT
───────────────────────────────────────────── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(5rem, 10vw, 9rem) var(--pad); max-width: var(--max); margin: 0 auto; }
.section-divider { border: none; border-top: 1px solid var(--rule); margin: 0 var(--pad); }

/* ─────────────────────────────────────────────
   EYEBROW LABEL
───────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--green); margin-bottom: 1.5rem;
}
.eyebrow::before { content: ''; display: block; width: 20px; height: 2px; background: var(--green); }

/* ─────────────────────────────────────────────
   TYPOGRAPHY
───────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--f-serif); font-weight: 400; line-height: 1.12; }
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); }

.display-italic { font-style: italic; color: var(--green); }

p { font-size: clamp(1rem, 1.5vw, 1.125rem); color: var(--ink-mid); line-height: 1.75; }
p + p { margin-top: 1rem; }

/* ─────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────── */
.btn {
  display: inline-block; padding: 0.9rem 2rem;
  font-family: var(--f-sans); font-size: 0.9rem; font-weight: 500; letter-spacing: 0.02em;
  text-decoration: none; border-radius: 2px; cursor: pointer; border: none;
  transition: all 0.2s;
}
.btn-dark  { background: var(--ink); color: var(--bg); }
.btn-dark:hover  { background: var(--green); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-green { background: var(--green); color: white; }
.btn-green:hover { background: oklch(34% 0.14 150); }

/* ─────────────────────────────────────────────
   HERO
───────────────────────────────────────────── */
.hero {
  min-height: 100svh; display: grid; place-items: center;
  padding: 8rem var(--pad) 5rem;
  position: relative; overflow: hidden;
}
.hero-band {
  position: absolute; top: 0; right: 0; width: 38%; height: 100%;
  background: var(--green-lt); z-index: 0;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr auto;
  gap: 4rem; align-items: end; max-width: var(--max); width: 100%;
}
.hero-text { max-width: 780px; }
.hero-headline { margin-bottom: 1.75rem; }
.hero-sub {
  font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink-mid);
  max-width: 520px; margin-bottom: 2.5rem; line-height: 1.65;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 4rem; }

.hero-stats { display: flex; gap: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--rule); }
.stat-num { font-family: var(--f-serif); font-size: 3rem; line-height: 1; color: var(--ink); }
.stat-label { font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.25rem; letter-spacing: 0.04em; text-transform: uppercase; }

.location-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: white; border: 1px solid var(--rule); border-radius: 30px;
  padding: 0.4rem 0.875rem; font-size: 0.8125rem; color: var(--ink-mid);
  box-shadow: 0 2px 8px -2px rgba(0,0,0,0.08); margin-bottom: 1.5rem;
}
.location-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

.hero-photo-wrap { width: 300px; flex-shrink: 0; align-self: end; }
.hero-photo-wrap img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: center top;
  border-radius: 4px 4px 0 0;
  filter: grayscale(20%);
}
.hero-photo-tag {
  background: var(--green); color: white; padding: 0.75rem 1rem;
  font-size: 0.8125rem; font-weight: 500;
}
.hero-location { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8125rem; opacity: 0.8; margin-top: 0.25rem; }

/* ─────────────────────────────────────────────
   SERVICES
───────────────────────────────────────────── */
.section-header-split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-bottom: 4rem; align-items: end; }
.section-header-split p { font-size: 1.1rem; padding-bottom: 0.5rem; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0; }
.service-item {
  padding: 2.5rem; border: 1px solid var(--rule);
  margin: -1px 0 0 -1px;
  transition: background 0.2s;
}
.service-item:hover { background: var(--bg-card); }
.service-num { font-size: 0.75rem; font-weight: 600; color: var(--green); letter-spacing: 0.08em; margin-bottom: 1rem; }
.service-item h3 { font-size: 1.4rem; margin-bottom: 0.75rem; }
.service-item p { font-size: 0.9375rem; }
.service-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.25rem; }
.tag {
  font-size: 0.75rem; font-weight: 500; padding: 0.25rem 0.625rem;
  background: var(--green-lt); color: var(--green); border-radius: 2px;
  letter-spacing: 0.02em;
}

/* ─────────────────────────────────────────────
   HOW I WORK
───────────────────────────────────────────── */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 4rem; background: var(--rule); }
.how-item { background: var(--bg); padding: 2.5rem 2rem; }
.how-item h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.how-item p { font-size: 0.9375rem; }

/* ─────────────────────────────────────────────
   WORK GRID
───────────────────────────────────────────── */
.work-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3rem; }
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; }
.work-card {
  position: relative; overflow: hidden; border-radius: 3px;
  background: var(--bg-card); border: 1px solid var(--rule);
  cursor: pointer; text-decoration: none; display: block; color: var(--ink);
  transition: box-shadow 0.3s, transform 0.3s;
}
.work-card:hover { box-shadow: 0 12px 40px -8px rgba(0,0,0,0.18); transform: translateY(-3px); }
.work-card.large  { grid-column: span 7; }
.work-card.medium { grid-column: span 5; }
.work-card-img { aspect-ratio: 16/9; overflow: hidden; }
.work-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; display: block; }
.work-card:hover .work-card-img img { transform: scale(1.04); }
.work-card-body { padding: 1.5rem; }
.work-card-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.work-card-title { font-family: var(--f-serif); font-size: 1.35rem; color: var(--ink); margin-bottom: 0.5rem; }
.work-card-desc { font-size: 0.875rem; color: var(--ink-mid); line-height: 1.6; }
.work-card-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.8125rem; font-weight: 500; color: var(--green);
  margin-top: 1rem; text-decoration: none;
}
.work-card-link::after { content: '→'; transition: transform 0.2s; }
.work-card:hover .work-card-link::after { transform: translateX(4px); }

/* ─────────────────────────────────────────────
   TESTIMONIALS
───────────────────────────────────────────── */
.testimonials-section { background: var(--ink); color: var(--bg); padding: clamp(5rem, 10vw, 9rem) var(--pad); }
.testimonials-section .eyebrow { color: var(--amber); }
.testimonials-section .eyebrow::before { background: var(--amber); }
.testimonials-section h2 { color: white; }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5px; margin-top: 3.5rem;
  background: oklch(28% 0.012 85);
}
.testimonial-card { background: var(--ink); padding: 2.5rem; }
.testimonial-quote {
  font-family: var(--f-serif); font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-style: italic; color: white; line-height: 1.55; margin-bottom: 2rem;
}
.testimonial-quote::before {
  content: '\201C'; font-size: 3rem; line-height: 0; vertical-align: -0.5em;
  color: var(--amber); margin-right: 0.1em;
}
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: oklch(28% 0.012 85); display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.875rem; color: var(--amber); flex-shrink: 0;
}
.testimonial-name { font-size: 0.9375rem; font-weight: 500; color: white; }
.testimonial-role { font-size: 0.8125rem; color: oklch(65% 0.010 85); margin-top: 0.15rem; }

/* ─────────────────────────────────────────────
   ABOUT
───────────────────────────────────────────── */
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 8vw, 7rem); align-items: start; }
.about-photo-col { position: relative; }
.about-photo { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center top; border-radius: 3px; filter: grayscale(15%); }
.about-badge {
  position: absolute; bottom: 2rem; left: -2rem;
  background: var(--green); color: white; padding: 1.25rem 1.5rem;
  max-width: 220px;
}
.about-badge-num { font-family: var(--f-serif); font-size: 2.5rem; line-height: 1; }
.about-badge-text { font-size: 0.8125rem; margin-top: 0.25rem; opacity: 0.9; }
.about-text { padding-top: 1rem; }
.skills-list { margin-top: 2.5rem; display: grid; gap: 1rem; }
.skill-row { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.skill-name { font-size: 0.9375rem; font-weight: 500; }
.skill-years { font-size: 0.8125rem; color: var(--ink-soft); }

/* ─────────────────────────────────────────────
   CONTACT
───────────────────────────────────────────── */
.contact-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(3rem, 8vw, 7rem); }
.contact-detail { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.contact-detail-icon { width: 20px; color: var(--green); flex-shrink: 0; margin-top: 3px; }
.contact-detail a { color: var(--ink); text-decoration: none; font-weight: 500; }
.contact-detail a:hover { color: var(--green); }
.contact-promise { margin-top: 2.5rem; padding: 1.5rem; background: var(--green-lt); border-left: 3px solid var(--green); }
.contact-promise p { color: var(--ink-mid); font-size: 0.9375rem; }

.contact-form { display: grid; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
label { display: block; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.4rem; color: var(--ink-mid); }
input, select, textarea {
  width: 100%; padding: 0.875rem 1rem;
  background: var(--bg-card); border: 1.5px solid var(--rule); border-radius: 2px;
  font-family: var(--f-sans); font-size: 0.9375rem; color: var(--ink);
  transition: border-color 0.2s; appearance: none;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); }
textarea { resize: vertical; min-height: 130px; }

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--rule); padding: 3rem var(--pad);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1.5rem; max-width: var(--max); margin: 0 auto;
}
.footer-logo img { height: 26px; opacity: 0.7; }
.footer-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-links a { font-size: 0.875rem; color: var(--ink-soft); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-copy { font-size: 0.8125rem; color: var(--ink-soft); }

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo-wrap { display: none; }
  .hero-band { display: none; }
  .about-inner { grid-template-columns: 1fr; }
  .about-badge { left: 1rem; }
  .contact-inner { grid-template-columns: 1fr; }
  .work-card.large, .work-card.medium { grid-column: span 12; }
  .how-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section-header-split { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 600px) {
  .nav-links, .nav-cta { display: none; }
  .hero-stats { flex-wrap: wrap; gap: 2rem; }
}
