/*
  RAGIOR LLC E‑commerce Website Styles

  This stylesheet defines the look and feel of the RAGIOR LLC online store.
  Colours are derived from the company logo: a vivid orange for calls to action
  and accents, a deep navy for headings and elements, and neutral greys for
  backgrounds. All layouts are responsive using CSS Grid and Flexbox. The
  structure is mobile‑first: components stack vertically on small screens and
  expand into columns on larger viewports. Global variables allow for easy
  theming and consistent spacing.
*/

:root {
  --primary: #ff4d2d;       /* orange accent from the logo */
  --secondary: #0b2a3c;     /* deep navy from the logo outline */
  --bg: #ffffff;            /* base background */
  --muted-bg: #f5f7fa;      /* light grey sections */
  --text: #111827;          /* default text */
  --muted-text: #6b7280;    /* secondary text */
  --radius: 0.5rem;         /* border radius for cards */
  --transition: 0.2s ease;  /* base transition speed */
}

/* Reset and base styles */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: var(--secondary);
  text-decoration: none;
}
a:hover {
  opacity: 0.8;
}

/* Utility classes */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
}
.btn-primary {
  background-color: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  filter: brightness(0.95);
}
.btn-secondary {
  background-color: var(--secondary);
  color: #fff;
}
.btn-secondary:hover {
  filter: brightness(1.1);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--bg);
  border-bottom: 1px solid #e5e7eb;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--secondary);
}
.brand img {
  height: 40px;
  width: auto;
  border-radius: 0.25rem;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav a {
  padding: 0.5rem 0.75rem;
  border-radius: 0.4rem;
  font-weight: 600;
}
.nav a:hover,
.nav a.active {
  background-color: var(--muted-bg);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.hamburger span {
  width: 22px;
  height: 2px;
  background-color: var(--secondary);
  transition: transform var(--transition), opacity var(--transition);
}
.cart-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  cursor: pointer;
  background-color: var(--bg);
}
.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 5px;
  border-radius: 1rem;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding: 3rem 0;
}
.hero h1 {
  font-size: 2rem;
  margin: 0 0 0.5rem;
  color: var(--secondary);
}
.hero p {
  margin: 0 0 1rem;
  color: var(--muted-text);
}
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-image img {
  max-width: 260px;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.05));
}

/* Features */
.features {
  padding: 3rem 0;
}
.features-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.feature-card {
  background-color: var(--bg);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}
.feature-card .icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background-color: var(--muted-bg);
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 1.5rem;
}
.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--secondary);
}
.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted-text);
}

/* Products section */
.products {
  padding: 3rem 0;
}
.product-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.product-card {
  background-color: var(--bg);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}
.product-media {
  background-color: var(--muted-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  /* Colour used inside product SVGs via currentColor */
  color: var(--primary);
}
.product-media svg {
  width: 100%;
  height: 100%;
}
.product-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--secondary);
}
.product-body p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--muted-text);
  flex-grow: 1;
}
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.price {
  font-weight: 700;
  color: var(--secondary);
}

/* About & Contact sections */
.about-section, .contact-section {
  padding: 3rem 0;
}
.about-content, .contact-content {
  max-width: 800px;
  margin: 0 auto;
}
.timeline {
  border-left: 3px solid var(--primary);
  margin: 2rem 0;
  padding-left: 1rem;
}
.timeline-item {
  margin-bottom: 1rem;
}
.timeline-item time {
  font-weight: 700;
  color: var(--secondary);
}
.timeline-item p {
  margin: 0.25rem 0 0;
  color: var(--muted-text);
}

/* Newsletter form */
.newsletter {
  padding: 3rem 0;
  background-color: var(--muted-bg);
  text-align: center;
}
.newsletter form {
  max-width: 500px;
  margin: 1rem auto 0;
  display: flex;
  gap: 0.5rem;
}
.newsletter input[type="email"] {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: var(--radius);
  font-size: 1rem;
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: var(--radius);
  font-size: 1rem;
}
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

/* Cart page */
.cart-section {
  padding: 3rem 0;
}
.cart-table {
  width: 100%;
  border-collapse: collapse;
}
.cart-table th, .cart-table td {
  text-align: left;
  padding: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
}
.cart-table th {
  background-color: var(--muted-bg);
  color: var(--secondary);
  font-weight: 600;
}
.cart-controls {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}
.cart-controls input {
  width: 60px;
  padding: 0.25rem;
  border: 1px solid #d1d5db;
  border-radius: var(--radius);
  font-size: 1rem;
  text-align: center;
}
.cart-total {
  margin-top: 1.5rem;
  font-size: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Footer */
footer {
  background-color: var(--muted-bg);
  padding: 2rem 0;
  border-top: 1px solid #e5e7eb;
  font-size: 0.9rem;
  color: var(--muted-text);
}
.footer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 1rem;
}
.footer-grid h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--secondary);
  font-size: 1rem;
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-grid li {
  margin: 0.25rem 0;
}
.footer-grid a {
  color: var(--secondary);
}
.footer-bottom {
  border-top: 1px solid #e5e7eb;
  padding-top: 1rem;
  text-align: center;
  color: var(--muted-text);
}

/* Responsive adjustments */
@media (min-width: 600px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .header-inner {
    padding: 0 2rem;
  }
  .newsletter form {
    flex-direction: row;
  }
}
@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background-color: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  }
  .nav.open {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
  .cart-icon {
    margin-left: auto;
  }
}