/*
Theme Name: ArchivePros
Description: Custom theme for ArchivePros, converted from the Lovable design. Includes a working enquiry form, social links and a spot for extra sections.
Author: ArchivePros
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: archivepros
*/

:root {
  --background: #f9fdfd;
  --foreground: #0c1d40;
  --card: #ffffff;
  --primary: #0c1d40;
  --primary-foreground: #f9fdfd;
  --accent: #90dfd4;
  --muted: #e7f5f5;
  --muted-foreground: #4f5f74;
  --border: #d3e5e9;
  --ring: #46b3a6;
  --radius: 0.75rem;
}

*, *::before, *::after { box-sizing: border-box; border-color: var(--border); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Manrope", system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }

.ap-wrap { max-width: 72rem; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }
.ap-page { min-height: 100vh; }

/* Buttons */
.ap-btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9999px; padding: 0.75rem 1.5rem;
  font: inherit; font-size: 0.875rem; font-weight: 600; line-height: 1.25rem;
  cursor: pointer; transition: all .15s ease; border: 1px solid transparent;
}
.ap-btn--primary { background: var(--primary); color: var(--primary-foreground); }
.ap-btn--primary:hover { opacity: .9; }
.ap-btn--outline { border-color: var(--primary); background: transparent; color: var(--foreground); }
.ap-btn--outline:hover { background: var(--muted); }

/* Header */
.ap-header {
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--background) 85%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.admin-bar .ap-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ap-header { top: 46px; } }
.ap-header__inner { display: flex; align-items: center; justify-content: space-between; padding-top: .75rem; padding-bottom: .75rem; gap: 1rem; }
.ap-brand { display: flex; align-items: center; gap: .5rem; }
.ap-brand img { height: 2.75rem; width: auto; max-width: 4rem; object-fit: contain; }
.ap-brand__name { font-size: 1.125rem; line-height: 1.75rem; font-weight: 800; letter-spacing: -0.025em; }
.ap-brand__name span { color: color-mix(in srgb, var(--foreground) 60%, transparent); }
.ap-nav { display: none; gap: 2rem; font-size: .875rem; font-weight: 500; color: var(--muted-foreground); }
.ap-nav a:hover { color: var(--foreground); }
@media (min-width: 768px) { .ap-nav { display: flex; } }
@media (max-width: 480px) { .ap-header .ap-btn { padding: .6rem 1rem; font-size: .8rem; } .ap-brand__name { font-size: 1rem; } }

/* Hero */
.ap-hero { position: relative; overflow: hidden; }
.ap-hero__blob {
  position: absolute; right: -8rem; top: -8rem; height: 28rem; width: 28rem;
  border-radius: 9999px; background: color-mix(in srgb, var(--accent) 40%, transparent); filter: blur(64px);
}
.ap-hero__grid { position: relative; display: grid; gap: 3rem; align-items: center; padding-top: 6rem; padding-bottom: 6rem; }
@media (min-width: 768px) { .ap-hero__grid { grid-template-columns: 1.3fr 1fr; } }
.ap-eyebrow { margin-bottom: 1rem; font-size: .875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-foreground); }
.ap-hero h1 { font-size: 3rem; font-weight: 800; line-height: 1.05; letter-spacing: -0.025em; }
@media (min-width: 768px) { .ap-hero h1 { font-size: 3.75rem; } }
.ap-hero h1 span { background: var(--accent); padding: 0 .5rem; }
.ap-lead { margin-top: 1.5rem; max-width: 36rem; font-size: 1.125rem; line-height: 1.75rem; color: var(--muted-foreground); }
.ap-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.ap-hero__img { margin: 0 auto; width: 100%; max-width: 24rem; height: auto; border-radius: 1.5rem; background: var(--card); padding: 2rem; box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); }

/* Benefits band + contact band */
.ap-band { background: var(--primary); color: var(--primary-foreground); }
.ap-benefits { display: grid; gap: 2.5rem; padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 768px) { .ap-benefits { grid-template-columns: repeat(3, 1fr); } }
.ap-bar { margin-bottom: 1rem; height: .25rem; width: 2.5rem; background: var(--accent); }
.ap-benefits h3 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 700; }
.ap-benefits p { margin-top: .5rem; color: color-mix(in srgb, var(--primary-foreground) 75%, transparent); }

/* Sections */
.ap-section { padding-top: 6rem; padding-bottom: 6rem; }
.ap-h2 { font-size: 2.25rem; line-height: 2.5rem; font-weight: 800; letter-spacing: -0.025em; }
.ap-intro { margin-top: 1rem; max-width: 42rem; color: var(--muted-foreground); }
.ap-cards { margin-top: 3rem; display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .ap-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ap-cards { grid-template-columns: repeat(3, 1fr); } }
.ap-card { border-radius: 1.25rem; border: 1px solid var(--border); background: var(--card); padding: 1.5rem; transition: transform .2s ease, box-shadow .2s ease; }
.ap-card:hover { transform: translateY(-0.25rem); box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); }
.ap-card h3 { font-weight: 700; }
.ap-card p { margin-top: .5rem; font-size: .875rem; color: var(--muted-foreground); }

/* Process */
.ap-process { background: var(--muted); }
.ap-steps { margin-top: 3rem; display: grid; gap: 2rem; }
@media (min-width: 768px) { .ap-steps { grid-template-columns: repeat(3, 1fr); } }
.ap-step__num { font-size: 3rem; line-height: 1; font-weight: 800; color: color-mix(in srgb, var(--foreground) 20%, transparent); }
.ap-step h3 { margin-top: .5rem; font-weight: 700; }
.ap-step p { margin-top: .25rem; font-size: .875rem; color: var(--muted-foreground); }

/* Security */
.ap-security { display: grid; gap: 3rem; }
@media (min-width: 768px) { .ap-security { grid-template-columns: repeat(2, 1fr); } }
.ap-security__intro { margin-top: 1rem; color: var(--muted-foreground); }
.ap-security__grid { display: grid; gap: 1rem; align-content: start; }
@media (min-width: 640px) { .ap-security__grid { grid-template-columns: repeat(2, 1fr); } }
.ap-tile { border-radius: 1.25rem; background: color-mix(in srgb, var(--accent) 30%, transparent); padding: 1.25rem; }
.ap-tile h3 { font-weight: 700; }
.ap-tile p { margin-top: .25rem; font-size: .875rem; color: var(--muted-foreground); }

/* Extra sections added in the WordPress page editor */
.ap-extra { padding-top: 4rem; padding-bottom: 4rem; }
.ap-extra > * + * { margin-top: 1.25rem; }
.ap-extra h2 { font-size: 2.25rem; line-height: 2.5rem; font-weight: 800; letter-spacing: -0.025em; }
.ap-extra a { text-decoration: underline; }

/* Contact */
.ap-contact { display: grid; gap: 3rem; padding-top: 6rem; padding-bottom: 6rem; }
@media (min-width: 768px) { .ap-contact { grid-template-columns: repeat(2, 1fr); } }
.ap-contact__text { margin-top: 1rem; color: color-mix(in srgb, var(--primary-foreground) 75%, transparent); }
.ap-note { margin-top: 1.5rem; border-radius: 1rem; border: 1px solid color-mix(in srgb, var(--primary-foreground) 20%, transparent); padding: 1rem; font-size: .875rem; color: color-mix(in srgb, var(--primary-foreground) 70%, transparent); }
.ap-formcard { border-radius: 1.25rem; background: var(--card); color: var(--foreground); padding: 1.5rem; }
.ap-form { display: grid; gap: .75rem; align-content: start; }
.ap-form input, .ap-form select, .ap-form textarea {
  width: 100%; border-radius: var(--radius); border: 1px solid var(--border); background: var(--background);
  padding: .75rem 1rem; font: inherit; font-size: .875rem; color: var(--foreground);
}
.ap-form input:focus, .ap-form select:focus, .ap-form textarea:focus { outline: none; box-shadow: 0 0 0 2px var(--ring); }
.ap-form textarea { resize: vertical; }
.ap-form__small { font-size: .75rem; color: var(--muted-foreground); }
.ap-hp { position: absolute !important; left: -9999px !important; height: 0; width: 0; overflow: hidden; }
.ap-msg { border-radius: .75rem; padding: .75rem 1rem; font-size: .875rem; }
.ap-msg--error { background: #fde8e8; color: #8a1c1c; }
.ap-thanks h3 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 700; }
.ap-thanks p { margin-top: .5rem; color: var(--muted-foreground); }

/* Footer */
.ap-footer { padding-top: 2rem; padding-bottom: 2rem; font-size: .875rem; color: var(--muted-foreground); }
.ap-footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.ap-social { display: flex; flex-wrap: wrap; gap: 1.25rem; font-weight: 600; }
.ap-social a:hover { color: var(--foreground); text-decoration: underline; }

/* Generic pages / blog */
.ap-content { padding-top: 4rem; padding-bottom: 4rem; max-width: 48rem; }
.ap-content h1 { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.025em; margin-bottom: 1.5rem; }
.ap-content > * + * { margin-top: 1.25rem; }
.ap-content a { text-decoration: underline; }
.ap-content img { border-radius: .75rem; }

/* About section */
.ap-about { display: grid; gap: 3rem; }
@media (min-width: 768px) { .ap-about { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.ap-about .ap-eyebrow { margin-bottom: .75rem; }
.ap-about .ap-intro { max-width: 36rem; }
.ap-about__vm { display: grid; gap: 1rem; }
.ap-about__sub { margin-top: 5rem; }
.ap-cards--two { margin-top: 2rem; }
@media (min-width: 1024px) { .ap-cards--two { grid-template-columns: repeat(2, 1fr); } }
.ap-actions--spaced { margin-top: 3rem; }

/* Contact details */
.ap-contactinfo { margin-top: 1.5rem; display: grid; gap: .5rem; font-size: .95rem; }
.ap-contactinfo span { display: inline-block; min-width: 5.5rem; font-weight: 700; }
.ap-contactinfo a { text-decoration: underline; text-underline-offset: 3px; }
.ap-contactinfo a:hover { color: var(--accent); }
.ap-footer a:hover { color: var(--foreground); text-decoration: underline; }
