/* ==========================================================================
   City Print Service Sheffield - Main Stylesheet
   Modern, responsive styling matching the provided designs
   ========================================================================== */

/* --------------------------------------------------------------------------
   Google Fonts Import
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Montserrat:wght@400;500;600;700;800&display=swap');

/* --------------------------------------------------------------------------
   CSS Custom Properties (Variables)
   -------------------------------------------------------------------------- */
:root {
  --color-navy: #0f2a4a;
  --color-navy-dark: #021a36;
  --color-blue: #0084d6;
  --color-blue-hover: #006bb0;
  --color-cyan: #20b5f5;
  --color-magenta: #d81b60;
  --color-magenta-hover: #c2185b;
  --color-yellow: #ffb300;
  --color-text-dark: #0f2a4a;
  --color-text-muted: #556987;
  --color-text-light: #718096;
  --color-bg-light: #f8fafc;
  --color-card-bg: #ffffff;
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;

  --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-script: 'Caveat', cursive, sans-serif;

  --container-width: 1140px;
  --container-padding: 24px;
  --header-height: 84px;
  --transition: all 0.25s ease-in-out;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

/* --------------------------------------------------------------------------
   CSS Reset & Base Rules
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text-dark);
  background-color: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* --------------------------------------------------------------------------
   Layout Containers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 20px;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo {
  height: 54px;
  width: auto;
  object-fit: contain;
}

/* Desktop Navigation */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-navy);
  padding: 8px 0;
  position: relative;
  display: inline-block;
}

.main-nav a:hover {
  color: var(--color-blue);
}

.main-nav a.active {
  color: var(--color-blue);
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-blue);
  border-radius: 2px;
}

/* Header Contact Info */
.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-navy);
  font-size: 0.825rem;
  transition: var(--transition);
}

.contact-link.phone {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.contact-link.email {
  font-weight: 500;
  font-size: 0.775rem;
  color: var(--color-text-muted);
}

.contact-link:hover {
  color: var(--color-blue);
}

.contact-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: transparent;
  border-radius: var(--radius-sm);
  z-index: 102;
}

.mobile-nav-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--color-navy);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background: #ffffff;
  border-bottom: 2px solid var(--color-border);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 24px;
  z-index: 99;
}

.mobile-nav-drawer.open {
  display: block;
}

.mobile-nav-drawer ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.mobile-nav-drawer a {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-navy);
  display: block;
  padding: 6px 0;
}

.mobile-nav-drawer a.active {
  color: var(--color-blue);
}

.mobile-contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.mobile-contact-list .contact-link {
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Hero Section - Home Page
   -------------------------------------------------------------------------- */
.home-hero {
  padding: 40px 0 50px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
  position: relative;
  overflow: hidden;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}

.hero-content h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--color-navy);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.hero-content .highlight-blue {
  color: var(--color-blue);
  display: block;
}

.hero-lead {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.45;
  margin-bottom: 14px;
}

.hero-body {
  font-size: clamp(0.875rem, 1.2vw, 0.95rem);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 520px;
}

.hero-image-box {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 42, 74, 0.12);
  background-color: #f1f5f9;
}

.hero-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-image-box:hover img {
  transform: scale(1.02);
}

/* --------------------------------------------------------------------------
   Hero Section - What We Do Page
   -------------------------------------------------------------------------- */
.what-hero {
  padding: 40px 0 45px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
}

.what-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

.what-hero-content h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.what-hero-content p {
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  color: var(--color-text-muted);
  line-height: 1.55;
  max-width: 560px;
}

.what-hero-image-box {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(15, 42, 74, 0.1);
}

.what-hero-image-box img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Features Section - 4 Pillars (Home)
   -------------------------------------------------------------------------- */
.features-section {
  padding: 30px 0 50px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-item {
  text-align: center;
  padding: 10px 8px;
}

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon-wrapper {
  transform: translateY(-3px) scale(1.05);
}

.feature-icon-wrapper img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.feature-item h3 {
  font-size: 1.025rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 8px;
  line-height: 1.3;
}

.feature-item p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Team Section - Dottie & Pepe (Home)
   -------------------------------------------------------------------------- */
.team-section {
  padding: 20px 0 45px;
}

.team-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background-color: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.team-image-box {
  position: relative;
  background-color: #eef2f6;
  overflow: hidden;
}

.team-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.team-content-box {
  padding: 36px 36px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-splatter-corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 75px;
  height: 80px;
  pointer-events: none;
  object-fit: contain;
}

.team-eyebrow {
  font-family: var(--font-script);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1;
  margin-bottom: 4px;
}

.team-title {
  font-size: clamp(1.7rem, 2.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.team-title .name-dottie {
  color: var(--color-magenta);
}

.team-title .name-pepe {
  color: var(--color-blue);
}

.team-title .paw-mark {
  font-size: 1.3rem;
  color: var(--color-navy);
  display: inline-block;
  transform: rotate(15deg);
}

.team-content-box p {
  font-size: 0.885rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 12px;
}

.team-content-box p:last-of-type {
  margin-bottom: 20px;
}

.team-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.team-badge .badge-paw {
  font-size: 1.25rem;
  color: var(--color-magenta);
  line-height: 1;
}

.team-badge .badge-text {
  font-family: var(--font-script);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.2;
}

/* --------------------------------------------------------------------------
   Quality Section - Business Cards (Home)
   -------------------------------------------------------------------------- */
.quality-section {
  padding: 10px 0 50px;
}

.quality-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background-color: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.quality-image-box {
  background-color: #f1f5f9;
  height: 100%;
}

.quality-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quality-content-box {
  padding: 36px 40px;
}

.quality-content-box h2 {
  font-size: clamp(1.6rem, 2.3vw, 2.1rem);
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.2;
  margin-bottom: 14px;
}

.quality-content-box p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 18px;
}

.quality-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quality-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--color-navy);
}

.check-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-blue);
  flex-shrink: 0;
}

.check-icon svg {
  width: 100%;
  height: 100%;
}

/* --------------------------------------------------------------------------
   Products Grid Section (What We Do)
   -------------------------------------------------------------------------- */
.products-section {
  padding: 20px 0 55px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background-color: var(--color-card-bg);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-image-box {
  width: 100%;
  aspect-ratio: 125 / 120;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background-color: #f1f5f9;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  margin-bottom: 12px;
}

.product-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image-box img {
  transform: scale(1.05);
}

.product-card h3 {
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 6px;
  line-height: 1.3;
}

.product-card p {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Call To Action Banner (Both Pages)
   -------------------------------------------------------------------------- */
.cta-banner {
  background-color: var(--color-navy-dark);
  position: relative;
  overflow: hidden;
  padding: 38px 0;
  color: #ffffff;
}

.cta-splatter {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 140px;
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0.95;
}

.cta-splatter-left {
  left: 0;
  background-position: left center;
}

.cta-splatter-right {
  right: 0;
  background-position: right center;
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.cta-heading {
  font-size: clamp(1.4rem, 2.5vw, 1.95rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.cta-subheading {
  display: block;
  color: var(--color-cyan);
  font-size: clamp(1.4rem, 2.5vw, 1.95rem);
  font-weight: 700;
  margin-bottom: 18px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 600;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  transition: var(--transition);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

.cta-link:hover {
  color: var(--color-cyan);
  background-color: rgba(255, 255, 255, 0.08);
}

.cta-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

.cta-divider {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
  font-size: 1.4rem;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   Site Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: #ffffff;
  padding: 24px 0;
  border-top: 1px solid var(--color-border-light);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.footer-divider {
  color: #cbd5e1;
  font-weight: 300;
  font-size: 1.4rem;
  line-height: 1;
}

.footer-tagline {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.footer-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
}

.footer-nav a {
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-navy);
  padding: 4px 0;
  position: relative;
}

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

.footer-nav a.active {
  color: var(--color-blue);
}

.footer-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-blue);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */

/* Tablet & Below (< 992px) */
@media (max-width: 991px) {
  :root {
    --header-height: 76px;
  }

  .main-nav {
    display: none;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .home-hero-grid,
  .what-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .team-card,
  .quality-card {
    grid-template-columns: 1fr;
  }

  .team-image-box,
  .quality-image-box {
    max-height: 320px;
  }

  .team-content-box,
  .quality-content-box {
    padding: 28px 24px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .footer-brand {
    justify-content: center;
    gap: 12px;
  }
}

/* Mobile Devices (< 640px) */
@media (max-width: 639px) {
  :root {
    --container-padding: 18px;
    --header-height: 70px;
  }

  .site-logo {
    height: 42px;
  }

  .header-contact {
    display: none;
  }

  .home-hero {
    padding: 24px 0 35px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .cta-banner {
    padding: 30px 0;
  }

  .cta-actions {
    flex-direction: column;
    gap: 8px;
  }

  .cta-divider {
    display: none;
  }

  .cta-splatter {
    width: 80px;
    opacity: 0.6;
  }

  .footer-divider {
    display: none;
  }

  .footer-brand {
    flex-direction: column;
    gap: 6px;
  }

  .footer-nav ul {
    gap: 16px;
  }
}
