
/* CSS Variables for themes */
:root {
    --color-primary: #3a6b3a;       /* softer dark green */
    --color-primary-light: #5a8f5a; /* lighter soft green */
    --color-bg: #121212;            /* keep dark background */
    --color-text: #c0c0c0;          /* silver-ish grey text */
    --color-card-bg: #222722;       /* very dark greenish background for cards */
    --color-border: #5a8f5a;        /* soft green border */
    --color-accent: #5a8f5a;        /* soft green accent */
    --color-footer-bg: #1a1a1a;     /* dark grey footer */
    --color-footer-text: #999999;   /* lighter silver footer text */
    --color-button-bg: #3a6b3a;     /* soft green buttons */
    --color-button-hover: #5a8f5a;  /* lighter green hover */
    --color-link: #5a8f5a;          /* soft green links */
    --color-link-hover: #8bc78b;    /* even lighter green on hover */
}
.light-theme {
    --color-primary: #004080; /* Blue */
    --color-primary-light: #0066cc;
    --color-bg: #f9f9f9;
    --color-text: #333;
    --color-card-bg: #fff;
    --color-border: #004080;
    --color-accent: #0066cc;
    --color-footer-bg: #222;
    --color-footer-text: #ccc;
    --color-button-bg: #004080;
    --color-button-hover: #0066cc;
    --color-link: #004080;
    --color-link-hover: #0066cc;
}
.dark-theme {
    --color-primary: #3a6b3a;       /* softer dark green */
    --color-primary-light: #5a8f5a; /* lighter soft green */
    --color-bg: #121212;            /* keep dark background */
    --color-text: #c0c0c0;          /* silver-ish grey text */
    --color-card-bg: #222722;       /* very dark greenish background for cards */
    --color-border: #5a8f5a;        /* soft green border */
    --color-accent: #5a8f5a;        /* soft green accent */
    --color-footer-bg: #1a1a1a;     /* dark grey footer */
    --color-footer-text: #999999;   /* lighter silver footer text */
    --color-button-bg: #3a6b3a;     /* soft green buttons */
    --color-button-hover: #5a8f5a;  /* lighter green hover */
    --color-link: #5a8f5a;          /* soft green links */
    --color-link-hover: #8bc78b;    /* even lighter green on hover */
}

/* Reset and base */
html {
    height: 100%;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    background-image: url('assets/background-image-opacity-v3.png');
    background-repeat: repeat;
    background-size: contain; /* or contain, depending on your needs */
    background-color: transparent; 
    background-blend-mode:multiply ; /* or try multiply, screen, overlay, difference */
    background-position: left center;
    background-size: 18%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    max-width: 100%;
}


/* A lighter, standard blue for hyperlinks */
a {
  color: #1a73e8;
}

/* Sticky header with menu and enterprise name */
header {
    position: sticky;
    top: 0;
    width: 100%; /* Make header full width */
    background-color: var(--color-primary);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1.5rem;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    flex-wrap: wrap;
}
/* Enterprise name top-left */
.enterprise-name {
    font-weight: 700;
    font-size: 1.5rem;
    user-select: none;
    white-space: nowrap;
}
nav {
    display: flex;
    gap: 3.6rem;
    flex-wrap: wrap;
    align-items:center;
}
nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}
nav a:hover,
nav a:focus {
    color: var(--color-primary-light);
    outline: none;
}

nav.archive-navigation a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

/* Theme toggle button */
.theme-toggle {
    background-color: var(--color-button-bg);
    color: white;
    border: none;
    padding: 0.8rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: background-color 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0; /* Prevent shrinking */
}
.theme-toggle:hover,
.theme-toggle:focus {
    background-color: var(--color-button-hover);
    outline: none;
}

/* Logo below header */
.logo-container {
    text-align: center;
    margin: 2rem 0 1rem;
}
.logo-container img.logo {
    height: 150px;
    width: auto;
    object-fit: contain;
    display: inline-block;
}

main {
    flex-grow: 1;
    max-width: 960px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box; /* Add this */
    transition: color 0.3s ease;

}

/* Section titles */
section > h2 {
    border-bottom: 3px solid var(--color-primary);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
    font-weight: 700;
    transition: color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
section > h2 a.archive-link {
    font-size: 0.8rem;
    font-weight: normal;
    color: var(--color-link);
    text-decoration: none;
    border: 1px solid var(--color-link);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}
section > h2 a.archive-link:hover,
section > h2 a.archive-link:focus {
    background-color: var(--color-link);
    color: white;
    outline: none;
}

/* Service category container */
.service-category {
    margin-bottom: 3rem;
}
.service-category h3 {
    margin-bottom: 1rem;
    color: var(--color-primary-light);
    border-left: 5px solid var(--color-primary-light);
    padding-left: 0.5rem;
    font-weight: 600;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

/* Cards grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.5rem;
}

/* Individual card */
.service-card {
    background-color: var(--color-card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}
.service-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}
.service-card h4 {
    margin: 0.5rem 0 1rem;
    font-weight: 700;
    color: var(--color-primary);
    transition: color 0.3s ease;
}
.service-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-text);
    transition: color 0.3s ease;
}

/* News section */
#news ul {
    list-style-type: none;
    padding-left: 0;
}
#news ul li {
    background: var(--color-card-bg);
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 6px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
#news ul li h4 {
    margin: 0 0 0.5rem;
    color: var(--color-primary);
    transition: color 0.3s ease;
}
#news ul li p {
    margin: 0;
    color: var(--color-text);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}
#news ul li time {
    display: block;
    font-size: 0.85rem;
    color: var(--color-muted, #666666);
    margin-bottom: 0.5rem;
    font-style: italic;
}
#news h3 {
    margin-bottom: 1rem;
    color: var(--color-primary-light);
    border-left: 5px solid var(--color-primary-light);
    padding-left: 0.5rem;
    font-weight: 600;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}



/* Archive button below news */
.archive-container {
    text-align: right;
    margin-top: 1rem; /* Increased margin to prevent overlap */
    margin-bottom: 3rem;
}
.archive-container a.archive-link {
    font-size: 0.9rem;
    font-weight: normal;
    color: var(--color-link);
    text-decoration: none;
    border: 1px solid var(--color-link);
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.archive-container a.archive-link:hover,
.archive-container a.archive-link:focus {
    background-color: var(--color-link);
    color: white;
    outline: none;
}

/* Bluesky Embed */
.bsky-embed {
    background-color: var(--color-card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: left;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
    font-size: 0.9rem;
    padding-left: 0;
    max-width: 81%;
}

/* Social + subscription container */
.social-subscription {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0 1rem;
}
.social-buttons {
    display: flex;
    gap: 0.75rem;
}
.social-buttons button {
    background-color: var(--color-button-bg);
    border: none;
    color: white;
    padding: 0.6rem 1.2rem;
    font-size: 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}
.social-buttons button:hover {
    background-color: var(--color-button-hover);
}

/* Subscription form */
.subscription {
    max-width: 320px;
    min-width: 280px;
    text-align: center;
}
.subscription form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
}
.subscription label {
    display: none; /* Hidden label for accessibility */
}
.subscription input[type="email"] {
    flex-grow: 1;
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.subscription input[type="email"]:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 5px var(--color-accent);
}
.subscription button {
    background-color: var(--color-button-bg);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}
.subscription button:hover {
    background-color: var(--color-button-hover);
}

/* Footer */
footer {
    width: 100%;
    left: 0;
    background-color: var(--color-footer-bg);
    color: var(--color-footer-text);
    text-align: center;
    padding: 1rem 1.5rem 1rem;
    font-size: 0.9rem;
    margin-top: auto;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Responsive tweaks */
@media (max-width: 600px) {
    nav {
    gap: 1rem;
    justify-content: center;
    width: 100%;
    order: 2;
    margin-top: 0.5rem;
    }
    .enterprise-name {
    flex-basis: 100%;
    text-align: center;
    order: 1;
    margin-bottom: 0.5rem;
    }
    .theme-toggle {
    margin-left: 0;
    margin-top: 0.5rem;
    order: 3;
    width: 12%;
    }
    .social-subscription {
    flex-direction: column;
    gap: 1rem;
    }
    .subscription {
    max-width: 100%;
    min-width: auto;
    width: 100%;
    }
    .subscription form {
    flex-direction: column;
    gap: 0.5rem;
    }
    .subscription button {
    width: 100%;
    }
    .social-buttons button {
    width: 100%;
    justify-content: center;
    }
    .archive-container {
    text-align: center;
    margin-bottom: 2rem;
    }
}

/*circular icon-only buttons with hover effects*/
.social-buttons button.icon-btn {
    all: unset; /* reset all inherited styles */
    cursor: pointer;
    color: var(--color-button-bg);
    font-size: 1.8rem;
    width: 3.2rem;
    height: 3.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.3s ease, background-color 0.3s ease;
    user-select: none;
    margin: 0 0.3rem;
    padding: 0;
    box-sizing: border-box;
}

.social-buttons button.icon-btn:hover,
.social-buttons button.icon-btn:focus {
    color: white;
    background-color: var(--color-button-bg);
    outline: none;
}

/* Cards grid for Products Section */
.products-grid {
  display: grid;
  grid-template-columns: 4fr 1fr; /* Paragraph 4 times wider than button */
  gap: 0.5rem;
  align-items: center; /* vertical alignment */
}

/* YouTube iframe */
iframe {
    display: block;      /* makes iframe a block element */
    margin: 0 auto;      /* centers it horizontally */
    border: none;        /* optional: removes default border */
    width: 81%;              /* iframe fills the container width */
    min-width: 33%;
    max-width: 81%;
    min-height: 180;             /* iframe fills the container height */
    height: 315;             /* iframe fills the container height */
    max-height: 315;
}

/*circular icon-only buttons with hover effects*/
.contact-buttons button.icon-btn {
    all: unset; /* reset all inherited styles */
    cursor: pointer;
    color: var(--color-button-bg);
    font-size: 1.5rem;
    width: 1.6rem;
    height: 2.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.3s ease, background-color 0.3s ease;
    user-select: none;
    margin: 0 0.3rem;
    padding: 0;
    box-sizing: border-box;
}

.contact-buttons button.icon-btn:hover,
.contact-buttons button.icon-btn:focus {
    color: white;
    background-color: var(--color-button-bg);
    outline: none;
}
