/* ============================================================
   PS Quality — style.css
   psquality.uk
   ============================================================ */

/* --- Custom Properties --- */
:root {
  --bg-primary:   #1e1b18;
  --bg-stone:     #2a2520;
  --bg-parchment: #f4ede2;
  --text-light:   #f0e8da;
  --text-dark:    #1e1b18;
  --copper:       #b8763a;
  --copper-light: #c9a064;
  --muted:        #8a7d6e;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', system-ui, -apple-system, sans-serif;

  --max-width:    1180px;
  --section-pad:  clamp(5rem, 9vw, 9rem);
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --transition:   0.28s var(--ease);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-light);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; }

/* --- Layout utilities --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}
.section { padding: var(--section-pad) 0; }
.text-center { text-align: center; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  font-weight: 700;
}
h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
}
h3 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  line-height: 1.4;
}
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* Eyebrow / label above headings */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--copper);
  margin-bottom: 1rem;
}
.eyebrow--dark { color: var(--copper); } /* same copper, shown on parchment bg */

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 0.9rem 2.1rem;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn--copper {
  background: var(--copper);
  border-color: var(--copper);
  color: #fff;
}
.btn--copper:hover {
  background: var(--copper-light);
  border-color: var(--copper-light);
}
.btn--ghost {
  background: transparent;
  border-color: rgba(240, 232, 218, 0.35);
  color: var(--text-light);
}
.btn--ghost:hover {
  border-color: var(--copper-light);
  color: var(--copper-light);
}
.btn--full {
  width: 100%;
  text-align: center;
}

/* ============================================================
   NAVIGATION
============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.4rem 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: rgba(30, 27, 24, 0.97);
  padding: 1rem 0;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
}
.nav__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}
.nav__logo-img {
  height: 64px;
  width: auto;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.nav__link {
  font-size: 0.73rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-light);
  opacity: 0.9;
  transition: color var(--transition), opacity var(--transition);
}
.nav__link:hover { color: var(--copper-light); opacity: 1; }
.nav__cta {
  padding: 0.55rem 1.4rem;
  font-size: 0.7rem;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.35rem;
  position: relative;
  z-index: 101;
}
.nav__hamburger span {
  display: block;
  width: 23px;
  height: 1.5px;
  background: var(--text-light);
  transition: transform var(--transition), opacity var(--transition);
}
.nav__hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    108deg,
    rgba(30, 27, 24, 0.93) 0%,
    rgba(30, 27, 24, 0.78) 52%,
    rgba(30, 27, 24, 0.22) 100%
  );
}
.hero__body {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 8rem 0 6rem;
}
.hero__content {
  max-width: 600px;
}
.hero__content > * {
  animation: fadeUp 0.85s var(--ease) both;
}
.hero__content > *:nth-child(1) { animation-delay: 0.05s; }
.hero__content > *:nth-child(2) { animation-delay: 0.18s; }
.hero__content > *:nth-child(3) { animation-delay: 0.32s; }
.hero__content > *:nth-child(4) { animation-delay: 0.46s; }
.hero__content > *:nth-child(5) { animation-delay: 0.60s; }

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

.hero__title {
  color: var(--text-light);
  margin: 0.5rem 0 1.5rem;
}
.hero__title em {
  font-style: italic;
  color: var(--copper-light);
}
.hero__sub {
  font-size: 1.05rem;
  color: rgba(240, 232, 218, 0.82);
  max-width: 480px;
  margin-bottom: 2.5rem;
}
.hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* Animated gold rule beneath CTAs */
.hero__divider {
  width: 72px;
  height: 2px;
  background: rgba(184, 118, 58, 0.35);
  position: relative;
  overflow: hidden;
}
.hero__divider::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--copper-light), transparent);
  animation: shimmer 2.8s 1s infinite;
}
@keyframes shimmer {
  0%   { left: -60%; }
  100% { left: 140%; }
}

/* ============================================================
   ABOUT
============================================================ */
.about {
  background: var(--bg-parchment);
  color: var(--text-dark);
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about__text h2 { color: var(--text-dark); }
.about__text p  { color: #3d352c; }

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 2.25rem;
}
.pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  border: 1px solid rgba(184, 118, 58, 0.55);
  padding: 0.45rem 1rem;
  border-radius: 2px;
}

.about__image {
  position: relative;
}
.about__image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  position: relative;
  z-index: 1;
  box-shadow: 18px 18px 0 var(--copper);
}

/* ============================================================
   SERVICES
============================================================ */
.services {
  background: var(--bg-stone);
}
.services .eyebrow { display: block; text-align: center; }
.services h2      { margin-top: 0.25rem; }
.services__intro {
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 4rem;
  font-size: 1rem;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.service-card {
  background: var(--bg-primary);
  padding: 2.5rem 2.25rem;
  border-left: 3px solid transparent;
  transition: border-color var(--transition), transform var(--transition);
}
.service-card:hover {
  border-left-color: var(--copper);
  transform: translateY(-5px);
}
.service-card__icon {
  width: 46px;
  height: 46px;
  color: var(--copper);
  margin-bottom: 1.6rem;
}
.service-card h3 {
  color: var(--text-light);
  margin-bottom: 0.8rem;
}
.service-card p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.72;
  margin: 0;
}

/* ============================================================
   WHY CHOOSE US
============================================================ */
.why-us {
  background: var(--bg-parchment);
  color: var(--text-dark);
}
.why-us .eyebrow     { display: block; text-align: center; }
.why-us h2           { color: var(--text-dark); }

.why-us__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-top: 3.5rem;
}
.why-card { text-align: center; }
.why-card__icon {
  width: 50px;
  height: 50px;
  color: var(--copper);
  margin: 0 auto 1.5rem;
}
.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
}
.why-card p {
  color: #3d352c;
  font-size: 0.95rem;
}

/* ============================================================
   CONTACT
============================================================ */
.contact {
  background: var(--bg-stone);
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.contact__info h2 { color: var(--text-light); }
.contact__info p  { color: rgba(240, 232, 218, 0.75); }
.contact__address {
  font-style: normal;
  font-size: 0.93rem;
  color: rgba(240, 232, 218, 0.65);
  line-height: 1.8;
  margin: 1rem 0 0.25rem;
}
.contact__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--copper-light);
  margin: 1.25rem 0 1.5rem;
  transition: color var(--transition);
}
.contact__phone:hover { color: var(--text-light); }
.contact__phone::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a064' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07A19.5 19.5 0 0 1 4.69 12a19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 3.6 1.27h3a2 2 0 0 1 2 1.72c.127.96.361 1.903.7 2.81a2 2 0 0 1-.45 2.11L7.91 8.91a16 16 0 0 0 6 6l.91-.91a2 2 0 0 1 2.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}
.contact__area {
  margin-top: 1.75rem;
  font-size: 0.9rem;
  border-left: 2px solid var(--copper);
  padding-left: 1rem;
  color: var(--muted) !important;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group label {
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.form-group label span { color: var(--copper); }
.form-group input,
.form-group textarea,
.select-wrap select {
  background: var(--bg-primary);
  border: 1px solid rgba(138, 125, 110, 0.28);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 0.93rem;
  font-weight: 300;
  padding: 0.85rem 1rem;
  border-radius: 2px;
  width: 100%;
  outline: none;
  transition: border-color var(--transition);
  appearance: none;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(138, 125, 110, 0.6);
}
.form-group input:focus,
.form-group textarea:focus,
.select-wrap select:focus {
  border-color: var(--copper);
}
.form-group textarea {
  resize: vertical;
  min-height: 130px;
}
.select-wrap {
  position: relative;
}
.select-wrap::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--muted);
  pointer-events: none;
}
.select-wrap select { cursor: pointer; padding-right: 2.5rem; }
.select-wrap select option { background: var(--bg-stone); }

.form-status {
  font-size: 0.85rem;
  text-align: center;
  min-height: 1.3em;
  margin-top: 0.25rem;
}
.form-legal {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0.5rem 0 0;
  opacity: 0.8;
}
.form-legal a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}
.form-legal a:hover { color: var(--copper-light); }

/* Contact CTA (Tally popup replacement for form) */
.contact__cta-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  padding: 3rem;
  border: 1px solid rgba(184, 118, 58, 0.25);
  background: rgba(30, 27, 24, 0.45);
}
.contact__cta-wrap p {
  font-size: 1.05rem;
  color: rgba(240, 232, 218, 0.78);
  line-height: 1.75;
  margin: 0;
}
.contact__cta-wrap .btn {
  align-self: stretch;
  text-align: center;
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid rgba(138, 125, 110, 0.18);
  padding: 2.75rem 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer__logo img {
  height: 52px;
  width: auto;
}
.footer__nav {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}
.footer__nav a {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  transition: color var(--transition);
}
.footer__nav a:hover { color: var(--copper-light); }
.footer__copy {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
}

/* ============================================================
   RESPONSIVE — TABLET  (≤ 960px)
============================================================ */
@media (max-width: 960px) {
  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about__image {
    order: -1;
  }
  .about__image img {
    height: 340px;
    box-shadow: 10px 10px 0 var(--copper);
  }
  .why-us__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE  (≤ 768px)
============================================================ */
@media (max-width: 768px) {
  /* Nav */
  .nav__hamburger { display: flex; }
  .nav__links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(30, 27, 24, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 99;
    backdrop-filter: blur(4px);
  }
  .nav__links.open { display: flex; }
  .nav__link { font-size: 0.95rem; opacity: 1; }
  .nav__cta  { font-size: 0.85rem; padding: 0.8rem 2rem; }

  /* Hero */
  .hero__body { padding-top: 7rem; padding-bottom: 5rem; }
  .hero__ctas { flex-direction: column; align-items: flex-start; }
  .hero__ctas .btn { width: 100%; text-align: center; }

  /* Services */
  .services__grid { grid-template-columns: 1fr; }

  /* Why Us */
  .why-us__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  /* Form */
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer__nav { justify-content: center; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE  (≤ 420px)
============================================================ */
@media (max-width: 420px) {
  .about__image img { height: 260px; }
  .service-card { padding: 2rem 1.5rem; }
  .contact__area { font-size: 0.85rem; }
}
