/* ============================================================
   Singleclick Studio - Design System
   Warmer editorial palette, deliberately distinct from
   singleclick.ae's cybersecurity aesthetic.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600&display=swap');

:root {
  --cream: #F5F1EA;
  --cream-light: #FDFCF8;
  --coral: #D65D3E;
  --coral-dark: #B84A2E;
  --charcoal: #1A1A1A;
  --taupe: #8B7E6E;
  --taupe-light: #B5A996;
  --hairline: rgba(26, 26, 26, 0.08);
  --hairline-strong: rgba(26, 26, 26, 0.15);

  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container-max: 1200px;
  --content-max: 720px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* -------- TYPOGRAPHY -------- */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--charcoal);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 500;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--charcoal);
  font-weight: 400;
}

a {
  color: var(--coral);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--coral-dark);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 1rem;
  display: block;
}

.lead {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--taupe);
  font-weight: 400;
}

.muted {
  color: var(--taupe);
}

/* -------- LAYOUT -------- */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

section.large {
  padding: 7rem 0;
}

section.small {
  padding: 3rem 0;
}

.section-divider {
  border-top: 1px solid var(--hairline);
}

/* -------- HEADER / NAV -------- */

header {
  position: sticky;
  top: 0;
  background: rgba(245, 241, 234, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

.brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  text-decoration: none;
}

.brand em {
  color: var(--coral);
  font-style: normal;
}

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

.nav-links a {
  color: var(--charcoal);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--coral);
}

/* Nav CTA — high specificity to beat generic nav-links a rules */
.nav-links a.nav-cta,
a.nav-cta {
  background: var(--charcoal);
  color: var(--cream-light);
  padding: 0.625rem 1.25rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
  display: inline-block;
  line-height: 1.2;
}

.nav-links a.nav-cta:hover,
a.nav-cta:hover {
  background: var(--coral);
  color: var(--cream-light);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--charcoal);
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--hairline);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }
}

/* -------- HERO -------- */

.hero {
  padding: 6rem 0 5rem;
}

.hero h1 {
  max-width: 900px;
  margin-bottom: 1.5rem;
}

.hero .lead {
  max-width: 620px;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.trust-strip {
  border-left: 2px solid var(--coral);
  padding: 0.25rem 0 0.25rem 1.25rem;
  max-width: 640px;
  font-size: 0.9375rem;
  color: var(--taupe);
  line-height: 1.6;
}

.trust-strip a {
  color: var(--charcoal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* -------- BUTTONS -------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--coral);
  color: var(--cream-light);
}

.btn-primary:hover {
  background: var(--coral-dark);
  color: var(--cream-light);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--hairline-strong);
}

.btn-secondary:hover {
  background: var(--charcoal);
  color: var(--cream-light);
  border-color: var(--charcoal);
}

.btn-arrow::after {
  content: '→';
  transition: transform 0.2s ease;
}

.btn:hover .btn-arrow::after {
  transform: translateX(3px);
}

/* -------- CARDS -------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.card-grid.two-col {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.card {
  background: var(--cream-light);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(26, 26, 26, 0.06);
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--taupe);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.card-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--coral);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* -------- FEATURE COLUMNS -------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--coral);
  color: var(--cream-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.feature h3 {
  margin-bottom: 0.75rem;
}

.feature p {
  color: var(--taupe);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* -------- TIMELINE / STEPS -------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.step {
  border-top: 2px solid var(--coral);
  padding-top: 1.5rem;
}

.step-num {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--coral);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  display: block;
}

.step h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.step p {
  color: var(--taupe);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* -------- SERVICE DETAIL BLOCKS -------- */

.service-block {
  background: var(--cream-light);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 3rem;
  margin-bottom: 2rem;
}

.service-block h2 {
  margin-bottom: 0.75rem;
}

.service-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--hairline);
}

.service-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--coral);
}

.service-oneliner {
  font-size: 1.125rem;
  color: var(--taupe);
  line-height: 1.5;
  margin-bottom: 2rem;
}

.service-block h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 1rem;
}

.service-block ul {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.service-block li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  color: var(--charcoal);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.service-block li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--coral);
  font-weight: bold;
  font-size: 1.25rem;
  line-height: 1;
  top: 0.6rem;
}

.service-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
}

.service-meta div {
  font-size: 0.875rem;
}

.service-meta strong {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 0.375rem;
}

/* -------- PORTFOLIO CARDS -------- */

.portfolio-card {
  background: var(--cream-light);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
}

.portfolio-card .status {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  border: 1px solid var(--coral);
  padding: 0.25rem 0.625rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.portfolio-card h3 {
  margin-bottom: 0.75rem;
}

.portfolio-card .meta {
  font-size: 0.875rem;
  color: var(--taupe);
  margin-bottom: 0;
}

/* -------- CTA BAND -------- */

.cta-band {
  background: var(--charcoal);
  color: var(--cream);
  padding: 5rem 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--cream);
  margin-bottom: 1rem;
}

.cta-band p {
  color: var(--taupe-light);
  max-width: 560px;
  margin: 0 auto 2rem;
  font-size: 1.0625rem;
}

.cta-band .btn-primary {
  background: var(--coral);
}

.cta-band .btn-primary:hover {
  background: var(--coral-dark);
}

/* -------- CONTACT FORM -------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--charcoal);
  background: var(--cream-light);
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--coral);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
  font-family: var(--font-body);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.contact-sidebar {
  background: var(--cream-light);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 2rem;
  height: fit-content;
}

.contact-sidebar h3 {
  font-size: 0.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--taupe);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.contact-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--hairline);
}

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

.contact-item strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 0.375rem;
}

.contact-item a {
  color: var(--charcoal);
  font-weight: 500;
  font-size: 0.9375rem;
}

/* -------- FOOTER -------- */

footer {
  background: var(--charcoal);
  color: var(--taupe-light);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.5rem;
  display: block;
}

.footer-brand em {
  color: var(--coral);
  font-style: normal;
}

.footer-tagline {
  color: var(--taupe-light);
  font-size: 0.9375rem;
  max-width: 320px;
}

footer h4 {
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

footer ul {
  list-style: none;
}

footer li {
  margin-bottom: 0.625rem;
}

footer a {
  color: var(--taupe-light);
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--coral);
}

.footer-bar {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--taupe);
}

/* -------- UTILITIES -------- */

.text-center {
  text-align: center;
}

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
