/* Best Copywriter — static site */

:root {
  --ink: #1a2332;
  --ink-soft: #3d4a5c;
  --paper: #f7f4ef;
  --paper-deep: #ebe6dc;
  --surface: #ffffff;
  --accent: #0d7c8f;
  --accent-dark: #0a5f6e;
  --accent-soft: #d4eef2;
  --line: rgba(26, 35, 50, 0.12);
  --hero-overlay: rgba(18, 28, 40, 0.62);
  --shadow: 0 12px 40px rgba(26, 35, 50, 0.08);
  --radius: 4px;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --max: 1120px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(1.65rem, 4vw, 2.75rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  color: var(--accent);
  text-align: center;
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

/* Only prose lists get vertical rhythm; component lists manage their own spacing */
ul:not([class]) > li + li,
ol:not([class]) > li + li {
  margin-top: 0.35em;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, var(--max));
}

.logo {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.logo span {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav ul {
  display: flex;
  gap: 0.25rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.site-nav ul > li + li {
  margin-top: 0;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  background: var(--accent);
  color: #fff !important;
  border-radius: var(--radius);
  text-decoration: none !important;
}

.nav-cta:hover {
  background: var(--accent-dark);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s;
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-light {
  background: #fff;
  color: var(--ink);
}

.btn-light:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

/* Hero */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 2rem) 0 4rem;
  color: #fff;
  background:
    linear-gradient(var(--hero-overlay), var(--hero-overlay)),
    url("../assets/images/banner.jpg") center / cover no-repeat;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(transparent, var(--paper));
  pointer-events: none;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 2rem;
  align-items: end;
}

@media (min-width: 800px) {
  .hero .container {
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
  }
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 600;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
  opacity: 0;
  animation: rise 0.8s var(--ease) 0.1s forwards;
}

.hero h1 {
  color: #fff;
  margin-bottom: 0;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.25s forwards;
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.5;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.4s forwards;
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.55s forwards;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */

.section {
  padding: 4.5rem 0;
  scroll-margin-top: var(--header-h);
}

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

.section-head {
  margin-bottom: 2.5rem;
}

.section-head p {
  text-align: center;
  color: var(--ink-soft);
  max-width: 40rem;
  margin: 0.5rem auto 0;
}

/* About */

.about-grid {
  display: grid;
  gap: 2rem;
  align-items: end;
}

@media (min-width: 860px) {
  .about-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }
}

/* Cutout portrait: no frame, stands directly on the section background */
.about-photo {
  position: sticky;
  top: calc(var(--header-h) + 2.5rem);
  align-self: start;
  justify-self: center;
  max-width: 380px;
}

.about-photo img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 859px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-photo {
    position: static;
    order: -1;
    max-width: 280px;
  }
}

.about-copy .lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.trait-groups {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.trait-group {
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
}

.trait-group strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.trait-group .result {
  margin: 0.75rem 0 0;
  font-weight: 600;
  color: var(--ink);
}

/* Portfolio */

.portfolio-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.work-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.section-alt .work-card {
  background: var(--paper);
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  color: inherit;
}

.work-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.work-card:hover img {
  transform: scale(1.04);
}

.work-card-body {
  padding: 1rem 1.1rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.work-card-body h3 {
  margin: 0;
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
}

.work-card-body p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.portfolio-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Advantages */

.advantages-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .advantages-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
  }
}

.advantages-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.advantages-list {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.advantage-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.section-alt .advantage-item {
  background: var(--paper);
}

.advantage-num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  padding-top: 0.15rem;
}

.advantage-item p {
  margin: 0;
}

/* Pricing tabs */

.tabs {
  display: grid;
  gap: 1.5rem;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.tab-btn {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 650;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.tab-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tab-btn[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.tab-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.tab-panel.is-active:not([hidden]) {
  animation: fadePanel 0.35s var(--ease);
}

@keyframes fadePanel {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.price-table th,
.price-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--line);
}

.price-table th {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.price-table tr:last-child td {
  border-bottom: none;
}

.price-name {
  font-weight: 700;
}

.price-value {
  font-weight: 700;
  white-space: nowrap;
  color: var(--ink);
}

.price-includes {
  margin: 0;
  padding-left: 1.1em;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.price-includes li + li {
  margin-top: 0.2em;
}

.why-price {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.why-price h3 {
  text-align: center;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.why-price ol {
  max-width: 48rem;
  margin: 0 auto;
  padding-left: 1.25em;
  color: var(--ink-soft);
}

.why-price li + li {
  margin-top: 0.75em;
}

@media (max-width: 700px) {
  .price-table,
  .price-table thead,
  .price-table tbody,
  .price-table th,
  .price-table td,
  .price-table tr {
    display: block;
  }

  .price-table thead {
    display: none;
  }

  .price-table tr {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
  }

  .price-table tr:last-child {
    border-bottom: none;
  }

  .price-table td {
    padding: 0.35rem 0;
    border: none;
  }

  .price-table td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.25rem;
  }
}

/* Reviews */

.reviews-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

.review-card:hover {
  color: inherit;
}

.review-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  object-position: left center;
}

.review-card h3 {
  margin: 0;
  font-size: 1rem;
}

.review-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.review-shot {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface);
}

.review-shot img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s var(--ease);
}

.review-shot:hover img {
  transform: scale(1.03);
}

/* Contacts */

.contacts-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .contacts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-block {
  padding: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.section:not(.section-alt) .contact-block {
  background: var(--surface);
}

.contact-block h3 {
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.contact-block a {
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}

.contact-block a:hover {
  color: var(--accent);
}

.contact-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.contact-block li + li {
  margin-top: 0.4em;
}

.payment-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

@media (min-width: 700px) {
  .payment-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

.payment-item img {
  margin: 0 auto 0.85rem;
  max-height: 72px;
  width: auto;
  object-fit: contain;
}

.payment-item h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Page hero (inner) */

.page-hero {
  padding: calc(var(--header-h) + 3rem) 0 2.5rem;
  background:
    linear-gradient(160deg, var(--accent-soft), var(--paper) 55%);
}

.page-hero h1 {
  text-align: center;
  color: var(--accent);
  margin: 0;
}

.page-hero p {
  text-align: center;
  color: var(--ink-soft);
  max-width: 36rem;
  margin: 0.75rem auto 0;
}

.cta-banner {
  margin-top: 3rem;
  padding: 2rem;
  text-align: center;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
}

.cta-banner p {
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
}

/* Footer */

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
}

.site-footer p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-align: center;
  max-width: 42rem;
  margin-inline: auto;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  list-style: none;
  padding: 0;
}

.footer-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

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

/* Mobile nav */

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.25s;
  }

  .site-nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .site-nav a {
    display: block;
    padding: 0.75rem 0.5rem;
  }

  .nav-cta {
    justify-content: center;
    margin-top: 0.35rem;
  }
}

/* Reveal on scroll */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (scripting: none) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .hero-brand,
  .hero h1,
  .hero-lead,
  .hero-actions {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
}
