@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Roboto:wght@300;400;500&display=swap');

:root {
  --green: #c0ce42;
  --steel: #95a1b0;
  --dark: #4e5768;
  --black: #1a1a1a;
  --white: #fff;
  --light-bg: #f5f6f8;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--dark);
  font-size: 16px;
  line-height: 1.6;
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ─── Header / Nav ─── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid #eee;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img { height: 40px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links li { position: relative; }

.nav-links a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  display: block;
}

.nav-links a:hover { background: var(--light-bg); }

/* dropdown */
.nav-links .dropdown { position: relative; }
.nav-links .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--white);
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  padding: 8px 0;
  list-style: none;
}
.nav-links .dropdown:hover .dropdown-menu { display: block; }
.nav-links .dropdown-menu a {
  font-size: 12px;
  padding: 8px 16px;
  border-radius: 0;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

.nav-links .dropdown-menu .sub-dropdown { position: relative; }
.nav-links .dropdown-menu .sub-dropdown .sub-menu {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  min-width: 180px;
  background: var(--white);
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  padding: 8px 0;
  list-style: none;
}
.nav-links .dropdown-menu .sub-dropdown:hover .sub-menu { display: block; }

.btn-checkout {
  background: var(--black);
  color: var(--white) !important;
  border-radius: 4px;
  font-size: 12px !important;
  padding: 8px 18px !important;
}
.btn-checkout:hover { background: #333 !important; }

/* hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ─── Buttons ─── */
.btn {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, transform 0.1s;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary { background: var(--dark); color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--dark);
}
.btn-green { background: var(--green); color: var(--black); }
.btn-white { background: var(--white); color: var(--black); }

/* ─── Hero ─── */
/* Matches razorsbydorco.co.uk: image at natural size, right-aligned and
   vertically centred, green fills the rest. NOT cover — cover rescales the
   razor and shifts it up. */
.hero {
  background: var(--green) url('../images/homepage-banner.jpg') no-repeat 100% 50%;
  min-height: 518px;
  display: flex;
  align-items: center;
}
.hero-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  color: var(--black);
  line-height: 1.1;
  margin-bottom: 16px;
  max-width: 600px;
}
.hero p {
  font-size: 18px;
  font-weight: 400;
  color: var(--black);
  max-width: 480px;
  margin-bottom: 32px;
}

/* ─── Section ─── */
.section {
  padding: 72px 24px;
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 12px;
}
.section h2 {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--black);
  line-height: 1.15;
  margin-bottom: 16px;
}
.section p {
  font-size: 16px;
  line-height: 1.75;
  max-width: 640px;
  margin-bottom: 20px;
}

.bg-light { background: var(--light-bg); }
.bg-steel { background: var(--steel); }
.bg-dark { background: var(--dark); color: var(--white); }
.bg-dark h2, .bg-dark h3, .bg-dark p { color: var(--white); }

/* ─── Two-col split ─── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

/* ─── Duo panels (Products / Our Story) ─── */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.duo-panel {
  position: relative;
  min-height: 440px;
  padding: 72px 48px 56px;
  overflow: hidden;
}
.duo-panel:nth-child(1) { background: #efefef; }
.duo-panel:nth-child(2) { background: #e1e2e4; }
.duo-panel h2 {
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 800;
  color: var(--black);
  line-height: 1.1;
  margin-bottom: 20px;
  max-width: 8em;
}
.duo-panel p {
  font-size: 16px;
  line-height: 1.7;
  max-width: 400px;
  margin-bottom: 28px;
}
.duo-img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 48%;
  max-width: 288px;
  pointer-events: none;
}

/* ─── Product cards ─── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 40px;
}
.product-card {
  background: var(--white);
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.product-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  transform: translateY(-4px);
}
.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.product-card-body { padding: 20px; }
.product-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--black);
}
.product-card p {
  font-size: 13px;
  color: var(--dark);
  margin-bottom: 4px;
  line-height: 1.5;
}
.product-card ul {
  font-size: 13px;
  color: var(--steel);
  list-style: none;
  margin: 8px 0 16px;
}
.product-card ul li::before { content: "✓ "; color: var(--green); font-weight: 700; }

.product-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  margin: 12px 0 8px;
}

/* ─── Category cards (Products overview) ─── */
.category-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}
.category-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
}
.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-card-content {
  position: relative;
  z-index: 2;
  padding: 32px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  width: 100%;
}
.category-card h2 { color: var(--white); font-size: 28px; margin-bottom: 8px; }
.category-card p { color: rgba(255,255,255,0.85); font-size: 14px; margin-bottom: 16px; max-width: 100%; }

/* ─── Press logos ─── */
.press-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
}
.press-logos img { height: 36px; width: auto; object-fit: contain; filter: grayscale(100%); opacity: 0.6; transition: opacity 0.2s; }
.press-logos img:hover { opacity: 1; filter: none; }

/* ─── Technology features ─── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 40px;
}
.tech-item {
  padding: 24px;
  background: var(--white);
  border-radius: 8px;
  border-left: 4px solid var(--green);
}
.tech-item h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; color: var(--black); }
.tech-item p { font-size: 13px; line-height: 1.65; color: var(--dark); }

/* ─── About brand name ─── */
.dorco-name-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.dorco-name-item {
  text-align: center;
  padding: 32px 24px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.dorco-name-letter {
  font-size: 56px;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  margin-bottom: 12px;
}
.dorco-name-item h3 { font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--black); }
.dorco-name-item p { font-size: 12px; color: var(--dark); line-height: 1.5; }

/* ─── Email signup ─── */
.signup-bar {
  background: var(--dark);
  padding: 56px 24px;
  text-align: center;
}
.signup-bar h2 { color: var(--white); font-size: 22px; margin-bottom: 24px; font-weight: 600; }
.signup-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}
.signup-form input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
}
.signup-form input:focus { outline: 2px solid var(--green); }

/* ─── Footer ─── */
footer {
  background: var(--black);
  color: rgba(255,255,255,0.7);
  padding: 56px 24px 32px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .footer-logo { height: 36px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 13px; line-height: 1.7; max-width: 280px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--white);
  transition: background 0.2s;
}
.footer-social a:hover { background: var(--green); color: var(--black); }
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 13px; color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer-col a:hover { color: var(--green); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ─── Page hero (inner pages) ─── */
.page-hero {
  background: var(--dark);
  padding: 64px 24px;
  color: var(--white);
}
.page-hero-inner { max-width: 1200px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(28px, 4vw, 48px); font-weight: 800; margin-bottom: 12px; }
.page-hero p { font-size: 17px; opacity: 0.8; max-width: 560px; }

/* ─── FAQ ─── */
.faq-item { border-bottom: 1px solid #e8e8e8; }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  padding: 20px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-question::after { content: '+'; font-size: 20px; color: var(--green); flex-shrink: 0; }
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer { display: none; padding: 0 0 20px; font-size: 14px; line-height: 1.75; color: var(--dark); }
.faq-item.open .faq-answer { display: block; }

/* ─── Contact form ─── */
.contact-form { max-width: 640px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dark);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: var(--dark);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--green); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ─── Legal pages ─── */
.legal-content { max-width: 800px; }
.legal-content h2 { font-size: 22px; font-weight: 700; margin: 36px 0 12px; }
.legal-content h3 { font-size: 16px; font-weight: 700; margin: 24px 0 8px; }
.legal-content p { font-size: 15px; line-height: 1.8; margin-bottom: 14px; }
.legal-content ul { margin: 12px 0 16px 24px; }
.legal-content ul li { font-size: 15px; line-height: 1.8; margin-bottom: 8px; }

/* ─── Utility ─── */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.gap-8 { gap: 8px; }

/* ─── Responsive ─── */
/* duo image must shrink below desktop or it covers the button */
@media (max-width: 1100px) {
  .duo-panel { padding: 64px 32px 48px; }
  .duo-img { width: 40%; max-width: 210px; }
}
@media (max-width: 860px) {
  .duo-panel { padding: 56px 20px 40px; }
  .duo-img { width: 32%; max-width: 150px; }
}

@media (max-width: 900px) {
  .category-cards { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .dorco-name-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse { direction: ltr; }
  .duo { grid-template-columns: 1fr; }
  /* image is bottom-anchored, so reserve a band for it or it covers the button */
  .duo-panel { min-height: 0; padding: 56px 24px 230px; }
  .duo-img { width: 60%; max-width: 200px; }
}

/* The razor panel is a fixed 478px at the right, so the seam walks left as the
   viewport narrows. Cap the hero text so it never runs onto it. */
@media (min-width: 769px) {
  .hero h1 { max-width: min(600px, calc(100vw - 566px)); }
  .hero p  { max-width: min(480px, calc(100vw - 566px)); }
}
/* UK site swings the banner to show green, not the razor, at 768 and below */
@media (max-width: 768px) {
  .hero { background-position: 0% 50%; min-height: 420px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; align-items: flex-start; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid #eee; padding: 16px 24px; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-links .dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 16px; }
  .nav-toggle { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .signup-form { flex-direction: column; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .products-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
}
