/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: rgb(142, 0, 0);
    --primary-dark: rgb(128, 0, 0);
    --secondary-color: #64748b;
    --accent-color: #7a0000;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --background-light: #f8fafc;
    --background-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --header-height: 90px; /* default header height (px). JS will overwrite this if needed. */
}
.dark-mode{
    --text-dark: #f8fafc;
    --text-light: #cbd5e1;
    --background-light: #1e293b;
    --background-white: #0f172a;
    --border-color: #334155;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-white);
    padding-top: var(--header-height);
    transition: background-color 0.3s, color 0.3s;
}
/* privacy polic and terms of service page adding margin to h2 tags */
body.privacy h2,
body.terms h2 {
  margin-top: 50px;
  margin-bottom: 0px;
}
a {
   color: var(--text-dark); 
}
/* Toggle button styling */
#theme-toggle {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text-dark);
    transition: transform 0.2s ease;
}

#theme-toggle:hover {
    transform: scale(1.1);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--text-dark);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.btn--primary {
    background: var(--primary-color);
    color: white;
}

.btn--primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn--secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn--full {
    width: 100%;
}

/* Header & Navigation */
.header {
    background-color: var(--background-white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: var(--header-height); /* make header a consistent height */
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%; /* fill the header height */
    padding: 0; /* vertical spacing handled by header height */
}

.nav__logo h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.trust-badge {
    display: inline-block;
    position: relative;
    background: linear-gradient(180deg, var(--accent-color), #6d0000);
    color: white;
    padding: 6px 12px;
    border-radius: 999px; /* pill */
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    transition: transform 240ms cubic-bezier(.2,.9,.3,1), box-shadow 240ms ease, background 240ms ease;
    transform-origin: center;
    will-change: transform, box-shadow;
}

.trust-badge::after {
    /* subtle glow on hover */
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 12px;
    background: radial-gradient(circle at center, rgba(255,255,255,0.06), rgba(255,255,255,0) 40%);
    opacity: 0;
    transition: opacity 240ms ease, transform 240ms ease;
    pointer-events: none;
}

.trust-badge:hover,
.trust-badge:focus {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 8px 20px rgba(109,0,0,0.18);
}

.trust-badge:hover::after,
.trust-badge:focus::after {
    opacity: 1;
    transform: scale(1.02);
}

.nav__menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav__link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav__link:hover,
.nav__link.active {
    color: var(--primary-color);
}

.nav__link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav__toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    /* keep a small, consistent gap between the fixed header and hero content; header height is handled by body padding */
    padding: 40px 0 80px;
    background: linear-gradient(135deg, rgb(128, 0, 0) 0%, #000000 100%);
    color: white;
    overflow: hidden;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: 0; /* removed invalid value and extra offset */
}

.hero__title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.hero__description {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%231d4ed8" points="0,1000 1000,0 1000,1000"/></svg>');
    opacity: 0.1;
}


/* Page Header */
.page-header {
    padding: min(160px, 10vh) 0 60px;
    background-color: var(--background-light);
    text-align: center;
}
.page-header h1 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

/* Mission Section */
.mission {
    padding: 4rem 0;
}

.mission__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.mission__content h2 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.placeholder-image {
    background: var(--border-color);
    height: 300px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-weight: 500;
}


/* Contact Section */
.contact {
    padding: 4rem 0;
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact__info h2 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contact-methods {
    margin: 2rem 0;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.method-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-method h3 {
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.contact-method p {
    margin: 0;
    font-weight: 500;
}

.contact-method small {
    color: var(--text-light);
}

.trust-assurance {
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
}

.trust-assurance h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.trust-assurance ul {
    list-style: none;
}

.trust-assurance li {
    padding: 0.5rem 0;
    color: var(--text-dark);
}

/* -------- */

/* Footer */
.footer{
    background-color: #0f172a;
    color: #64748b;
    padding: 3rem 0 1rem;
}
.footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer__section h3,
.footer__section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer__section p {
    color: rgba(255, 255, 255, 0.8);
}

.footer__section ul {
    list-style: none;
}

.footer__section ul li {
    margin-bottom: 0.5rem;
}

.footer__section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer__section ul li a:hover {
    color: white;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}
.footer__bottom a {
    color: var(--text-light);
}
#form_success{
  display:none;
  color:green;
  margin-bottom:10px;
}
#form_error{
  display:none;
  color:red;
  margin-bottom:10px;
}
.logo{
    width: 150px;
    height: auto;
    display: block;
}


/* General image rule */
img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* preserves aspect ratio, no stretching */
  image-rendering: auto; /* keeps full quality (no pixel blur) */
}

/* Product Card Images */
.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3; /* keeps consistent shape */
  border-radius: var(--border-radius);
  object-fit: cover; /* fills the box without distortion */
  transition: transform 0.3s ease;
}

.product-card:hover img {
  transform: scale(1.03); /* subtle zoom effect on hover */
}

/* Product Placeholder (for missing images) */
.product-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  border-radius: var(--border-radius);
  background-color: var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  color: var(--text-light);
}

/* Product Grid Fix – same height cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: start;
}

/* Optional – make image load crisply even on retina screens */
@supports (image-rendering: -webkit-optimize-contrast) {
  img {
    image-rendering: -webkit-optimize-contrast;
  }
}
.footer__socials {
    margin-top: 30px;
    margin-bottom: 10px;
    color: white;
}

.footer__socials h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.social-icons {
    display: flex;
    gap: 18px;
    align-items: center;
}

.social-icon img {
    width: 30px;
    height: 30px;
    filter: invert(100%);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.social-icon:hover img {
    transform: scale(1.25);
    filter: invert(60%) sepia(80%) saturate(1500%) hue-rotate(180deg);
}
