/* ============================================
   Cosy IT — Brand Stylesheet
   "Tech that lets you rest easy."
   ============================================ */

:root {
  /* Rosy Pinks — Primary brand hue */
  --cosy-pink: #A64D6E;
  --cosy-pink-hover: #8F3F5D;
  --cosy-pink-accent: #D4628A;
  --cosy-pink-light: #F2D1DC;
  --cosy-pink-lighter: #FFF5F8;
  --cosy-pink-glow: rgba(166, 77, 110, 0.18);

  /* Deep Chocolate Browns — Typography & structure */
  --cosy-brown: #3B1C1A;
  --cosy-brown-light: #5C3A38;

  /* Neutrals */
  --cosy-cream: #FDF8F5;
  --cosy-white: #FFFFFF;

  /* Radii (min 12px per brand spec) */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Motion — soft, ease-in-out per brand spec */
  --ease: 300ms ease-in-out;
  --ease-fast: 200ms ease-in-out;

  /* Elevation */
  --shadow-soft: 0 4px 20px rgba(59, 28, 26, 0.08);
  --shadow-medium: 0 8px 30px rgba(59, 28, 26, 0.12);
  --shadow-pink: 0 4px 20px rgba(166, 77, 110, 0.22);
}

/* --- Reset --- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--cosy-brown);
  background-color: var(--cosy-pink-lighter);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--cosy-pink);
  text-decoration: none;
  transition: color var(--ease);
}

a:hover {
  color: var(--cosy-pink-hover);
}

:focus-visible {
  outline: 3px solid var(--cosy-pink);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* --- Typography --- */

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--cosy-brown);
}

h1 { font-size: 2rem; font-weight: 800; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.125rem; }

p {
  color: var(--cosy-brown-light);
  max-width: 60ch;
}

/* --- Navigation --- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--cosy-pink-light);
  padding: 0.625rem 1.25rem;
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.nav-wordmark {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--cosy-brown);
  letter-spacing: -0.01em;
}

/* --- Buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--ease);
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--cosy-pink);
  color: var(--cosy-white);
  box-shadow: var(--shadow-pink);
}

.btn-primary:hover {
  background: var(--cosy-pink-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(166, 77, 110, 0.32);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

/* --- Hero --- */

.hero {
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  background: linear-gradient(180deg, var(--cosy-pink-lighter) 0%, var(--cosy-white) 100%);
  overflow: hidden;
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.hero-image-wrapper {
  margin: 0 auto 2rem;
  max-width: 480px;
}

.hero-image {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-medium);
}

.hero-content {
  max-width: 560px;
  margin: 0 auto;
}

.hero h1 {
  margin-bottom: 0.75rem;
}

.hero-strapline {
  font-size: 1.0625rem;
  color: var(--cosy-brown-light);
  margin-bottom: 1.5rem;
  line-height: 1.75;
}

.hero-cta {
  margin-top: 0.5rem;
}

/* --- Value Proposition --- */

.value {
  padding: 3rem 1.5rem;
  background: var(--cosy-white);
}

.value-inner {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.value h2 {
  margin-bottom: 0.5rem;
}

.value-subtitle {
  color: var(--cosy-brown-light);
  margin: 0 auto 2.5rem;
}

.value-cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.value-card {
  background: var(--cosy-pink-lighter);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform var(--ease), box-shadow var(--ease);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.value-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: var(--cosy-pink-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--cosy-pink-accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value-card h3 {
  margin-bottom: 0.5rem;
}

.value-card p {
  margin: 0 auto;
  font-size: 0.9375rem;
}

/* --- Contact --- */

.contact {
  padding: 3rem 1.5rem;
  background: var(--cosy-cream);
}

.contact-inner {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
}

.contact h2 {
  margin-bottom: 0.5rem;
}

.contact-subtitle {
  color: var(--cosy-brown-light);
  margin: 0 auto 2rem;
}

.contact-image {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-full);
  object-fit: cover;
  margin: 0 auto 1.75rem;
  box-shadow: var(--shadow-soft);
}

.contact-form {
  text-align: left;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 0.375rem;
  color: var(--cosy-brown);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--cosy-brown);
  background: var(--cosy-white);
  border: 2px solid var(--cosy-pink-light);
  border-radius: var(--radius-md);
  transition: border-color var(--ease), box-shadow var(--ease);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #C4A3AB;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--cosy-pink);
  box-shadow: 0 0 0 4px var(--cosy-pink-glow);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  text-align: center;
  margin-top: 1.5rem;
}

.form-submit .btn {
  width: 100%;
  padding: 0.875rem;
}

.form-feedback {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9375rem;
  margin-top: 1.25rem;
  display: none;
  text-align: center;
}

.form-success {
  background: #EDF7ED;
  color: #2E6D31;
  border: 1px solid #B7DFB8;
}

.form-error {
  background: #FFF4E5;
  color: #A8610C;
  border: 1px solid #FFCB80;
}

.form-feedback.visible {
  display: block;
  animation: fadeInUp 0.4s ease-out;
}

/* --- Footer --- */

.site-footer {
  background: var(--cosy-brown);
  color: var(--cosy-pink-light);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.footer-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--cosy-white);
  margin-bottom: 0.75rem;
}

.footer-details p {
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--cosy-pink-light);
  max-width: none;
}

.footer-legal {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(242, 209, 220, 0.2);
}

.footer-legal p {
  font-size: 0.8125rem;
  color: rgba(242, 209, 220, 0.65);
  max-width: none;
}

/* --- Animations --- */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.7s ease-out both;
}

.fade-in-delay-1 {
  animation: fadeInUp 0.7s ease-out 0.15s both;
}

.fade-in-delay-2 {
  animation: fadeInUp 0.7s ease-out 0.3s both;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */

@media (min-width: 640px) {
  .value-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .form-submit .btn {
    width: auto;
    min-width: 220px;
  }
}

@media (min-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.75rem; }

  .hero {
    padding: 4rem 2rem 3.5rem;
  }

  .hero-inner {
    display: flex;
    align-items: center;
    gap: 3rem;
    text-align: left;
  }

  .hero-image-wrapper {
    flex: 0 0 46%;
    max-width: 500px;
    margin: 0;
    order: 2;
  }

  .hero-content {
    flex: 1;
    margin: 0;
  }

  .hero-strapline {
    font-size: 1.125rem;
  }

  .value { padding: 4rem 2rem; }
  .contact { padding: 4rem 2rem; }
}

@media (min-width: 1024px) {
  h1 { font-size: 3rem; }

  .hero {
    padding: 5rem 2rem 4.5rem;
  }

  .hero-image-wrapper {
    flex: 0 0 48%;
    max-width: 540px;
  }

  .value { padding: 5rem 2rem; }
  .contact { padding: 5rem 2rem; }
}

/* --- Accessibility Utility --- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
