/* 
   SOLVD Instrument Solutions Website Styles
   Author: v0
   Date: April 2025
*/

/* ===== Base Styles ===== */
:root {
    --primary-color: #2AAEA0; /* Teal */
    --secondary-color: #F7941D; /* Orange */
    --dark-color: #1E2A3B; /* Dark blue/black */
    --light-color: #F5F7FA; /* Light gray */
    --text-color: #333333;
    --border-color: #E1E4E8;
    --success-color: #28a745;
    --error-color: #dc3545;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #FFFFFF;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== Buttons ===== */
.btn-primary, .btn-secondary, .btn-nav {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: #e58000;
    color: white;
}

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

.btn-secondary:hover {
    background-color: #239187;
    color: white;
}

.btn-nav {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
}

.btn-nav:hover {
    background-color: #e58000;
    color: white;
}

/* ===== Header ===== */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.logo img {
    height: 50px;
    width: auto;
}

nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu li {
    margin-left: 1.5rem;
}

.nav-menu a {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--primary-color);
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--dark-color);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.mobile-menu-toggle span:nth-child(1) {
    top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-toggle span:nth-child(3) {
    bottom: 0;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 11px;
}

/* ===== Hero Section ===== */
.hero {
    background-color: var(--light-color);
    padding: 4rem 0;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-content {
    flex: 1;
}

.hero-image {
    flex: 1;
    text-align: right;
}

.hero h1 {
    margin-bottom: 1.5rem;
    font-size: 2.8rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* ===== Services Section ===== */
.services {
    padding: 4rem 0;
    text-align: center;
}

.services h2 {
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.service-icon {
    margin-bottom: 1.5rem;
}

.service-icon img {
    width: 64px;
    height: 64px;
    margin: 0 auto;
}

/* ===== About Preview Section ===== */
.about-preview {
    background-color: var(--light-color);
    padding: 4rem 0;
}

.about-preview .container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-content {
    flex: 1;
}

.partners {
    flex: 1;
}

.partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

/* ===== Instruments Banner ===== */
.instruments-banner {
    padding: 4rem 0;
    background-color: white;
}

.instruments-banner .container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.banner-content {
    flex: 1;
}

.banner-image {
    flex: 1;
}

/* ===== CTA Section ===== */
.cta {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta h2, .cta p {
    color: white;
}

.cta h2 {
    margin-bottom: 1rem;
}

.cta p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

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

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

/* ===== Footer ===== */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 1rem;
}

.footer-links h3, .footer-contact h3 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #CCC;
}

.footer-links a:hover {
    color: white;
}

.footer-contact address {
    font-style: normal;
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer-contact a {
    color: #CCC;
}

.footer-contact a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Page Header ===== */
.page-header {
    background-color: var(--light-color);
    padding: 3rem 0;
    text-align: center;
}

/* ===== About Page ===== */
.about-section {
    padding: 4rem 0;
}

.about-grid {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-image {
    flex: 1;
}

.about-text {
    flex: 1;
}

.about-text ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.values-section {
    padding: 4rem 0;
    background-color: var(--light-color);
}

.values-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.value-icon {
    margin-bottom: 1.5rem;
}

.value-icon img {
    width: 64px;
    height: 64px;
    margin: 0 auto;
}

.approach-section {
    padding: 4rem 0;
}

.approach-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* ===== Services Page ===== */
.services-overview {
    padding: 4rem 0;
}

.intro-text {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.service-detail {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
}

.service-detail.reverse {
    flex-direction: row-reverse;
}

.service-image {
    flex: 1;
}

.service-info {
    flex: 1;
}

.service-info ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-contracts {
    padding: 4rem 0;
    background-color: var(--light-color);
}

.service-contracts h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.contracts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contract-card {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
}

/* ===== Instruments Page ===== */
.instrument-search {
    padding: 4rem 0;
    background-color: var(--light-color);
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.search-box {
    display: flex;
    margin-top: 2rem;
}

.search-box input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.search-box button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: 600;
}

.search-box button:hover {
    background-color: #239187;
}

.search-results-message {
    margin-top: 1rem;
    padding: 1rem;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.instrument-categories {
    padding: 4rem 0;
}

.category-section {
    margin-bottom: 3rem;
}

.category-section h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.instrument-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.instrument-card {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.instrument-card h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.instrument-card ul {
    list-style: disc;
    margin-left: 1.5rem;
}

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

.instrument-card li.highlight {
    background-color: rgba(247, 148, 29, 0.2);
    padding: 0.25rem;
    border-radius: 4px;
}

.instrument-card.found {
    border: 2px solid var(--secondary-color);
}

.category-section:not(.has-results) {
    display: block;
}

.calibration-tools {
    padding: 4rem 0;
    background-color: var(--light-color);
}

.calibration-tools h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.tool-card {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tool-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.tool-card ul {
    list-style: disc;
    margin-left: 1.5rem;
}

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

/* ===== Contact Page ===== */
.contact-section {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.contact-form {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-family);
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-success-message {
    background-color: var(--success-color);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.form-success-message h3 {
    color: white;
    margin-bottom: 1rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.info-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.map-section {
    padding: 4rem 0;
    background-color: var(--light-color);
}

.map-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* ===== Responsive Styles ===== */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-container,
    .about-preview .container,
    .instruments-banner .container,
    .about-grid,
    .service-detail,
    .service-detail.reverse {
        flex-direction: column;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .nav-menu li {
        width: 100%;
        margin: 0;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem 1.5rem;
    }
    
    .nav-menu a.btn-nav {
        margin: 1rem 1.5rem;
        display: inline-block;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .services-grid,
    .values-grid,
    .contracts-grid,
    .instrument-grid,
    .tools-grid {
        grid-template-columns: 1fr;
    }
}