/*
Theme Name: One-Touch Coupler Website
Author: Satya
Author URI: https://nightlightstudio.com.sg
Description: One-Touch Coupler website for Synergy Global Solutions
Version: 1.0
License: GNU General Public License
License URI: https://www.gnu.org/licenses/gpl.html
Tags: OTC


Template: blankslate
*/

/* ============================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ============================================ */

:root {
    /* Color Palette */
    --primary-dark: #192237;
    --primary-dark-alt: #2A3B52;
    --accent-blue: #4A90E2;
    --accent-blue-hover: #357ABD;
    --text-dark: #333;
    --text-light: #666;
    --text-white: #ffffff;
    --background-light: #f8f9fa;
    --background-white: #ffffff;
    --error-color: #e74c3c;
    
    /* Typography */
    --font-family-primary: 'Arial', sans-serif;
    --font-size-base: 1rem;
    --font-size-small: 0.9rem;
    --font-size-large: 1.1rem;
    --font-size-xl: 1.2rem;
    --font-size-2xl: 1.8rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.5rem;
    --line-height-base: 1.6;
    --line-height-tight: 1.2;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Spacing */
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 15px;
    --spacing-lg: 20px;
    --spacing-xl: 30px;
    --spacing-2xl: 40px;
    --spacing-3xl: 60px;
    --spacing-4xl: 80px;
    
    /* Layout */
    --container-max-width: 1200px;
    --border-radius-sm: 10px;
    --border-radius-md: 15px;
    --border-radius-lg: 25px;
    --header-height: 70px;
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-xl: 0 10px 30px rgba(0,0,0,0.3);
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.6s ease;
    
    /* Z-index */
    --z-header: 1000;
    --z-mobile-menu: 1001;
    --z-overlay: 2;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

body {
    font-family: var(--font-family-primary);
    line-height: var(--line-height-base);
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

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

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 14px;
}

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

.btn-primary:hover {
    background: var(--accent-blue-hover);
    transform: translateY(-2px);
}

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

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

.btn-outline {
    background: transparent;
    color: var(--accent-blue);
    border: 2px solid var(--accent-blue);
    padding: 8px 16px;
    font-size: 12px;
    margin: 0 var(--spacing-xs);
}

.btn-outline:hover {
    background: var(--accent-blue);
    color: var(--text-white);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
    background: var(--primary-dark);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    box-shadow: var(--shadow-sm);
}

.navbar {
    padding: var(--spacing-md) 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.navbar-menu .nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-xl);
}

.navbar-menu .nav-menu a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: color var(--transition-fast);
}

.navbar-menu .nav-menu a:hover {
    color: var(--accent-blue);
}

.mobile-menu-toggle {
    display: none;
}

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: var(--spacing-sm);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-white);
    transition: all var(--transition-fast);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(25, 34, 55, 0.95);
    z-index: var(--z-mobile-menu);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    text-align: center;
    position: relative;
}

.mobile-menu-close {
    position: absolute;
    top: -50px;
    right: var(--spacing-lg);
    background: none;
    border: none;
    color: var(--text-white);
    font-size: var(--spacing-xl);
    cursor: pointer;
}

.mobile-nav-menu {
    list-style: none;
    gap: var(--spacing-lg);
    display: flex;
    flex-direction: column;
}

.mobile-nav-menu a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 18px;
    font-weight: var(--font-weight-medium);
    padding: var(--spacing-sm) 0;
}

body.menu-open {
    overflow: hidden;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    margin-top: var(--header-height);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    background: var(--primary-dark);
    color: var(--text-white);
    padding: var(--spacing-4xl) 0;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.hero-title {
    font-size: var(--font-size-6xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    margin-bottom: var(--spacing-lg);
}

.hero-description {
    font-size: var(--font-size-large);
    line-height: var(--line-height-base);
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-lg);
}

.hero-image {
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(var(--shadow-xl));
}

/* ============================================
   ENHANCE SECTION
   ============================================ */

.enhance-section {
    padding: var(--spacing-4xl) 0;
    background: var(--background-light);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-header h2 {
    font-size: var(--font-size-4xl);
    color: var(--accent-blue);
    margin-bottom: var(--spacing-md);
}

.section-header p {
    font-size: var(--font-size-xl);
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.benefits-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3xl);
}

.benefit-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.benefit-item.reverse {
    direction: rtl;
}

.benefit-item.reverse .benefit-content {
    direction: ltr;
}

.benefit-content h3 {
    font-size: var(--font-size-2xl);
    color: var(--primary-dark);
    margin-bottom: var(--spacing-md);
}

.benefit-content p {
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-light);
}

.benefit-image {
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.benefit-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* ============================================
   TECHNICAL SECTION
   ============================================ */

.technical-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-dark-alt) 100%);
    color: var(--text-white);
    padding: var(--spacing-4xl) 0;
    position: relative;
    overflow: hidden;
}

.technical-section::before,
.technical-section::after {
    content: '';
    position: absolute;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></svg>');
    background-size: 200px 200px;
    width: 400px;
    height: 400px;
    opacity: 0.1;
}

.technical-section::before {
    top: -200px;
    left: -200px;
}

.technical-section::after {
    bottom: -200px;
    right: -200px;
}

.technical-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    position: relative;
    z-index: var(--z-overlay);
}

.technical-text h2 {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--spacing-lg);
    line-height: var(--line-height-tight);
}

.technical-text p {
    font-size: var(--font-size-large);
    line-height: var(--line-height-base);
    opacity: 0.9;
}

.certifications-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.certification-item {
    background: rgba(255,255,255,0.1);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.cert-icon {
    font-size: var(--font-size-xl);
}

.cert-text {
    font-size: var(--font-size-small);
}

.cert-buttons {
    margin-top: var(--spacing-xl);
    display: flex;
    gap: var(--spacing-sm);
}

/* ============================================
   DISTRIBUTORS SECTION
   ============================================ */

.distributors-section {
    padding: var(--spacing-4xl) 0;
    background: var(--background-white);
}

.distributors-section h2 {
    text-align: center;
    font-size: var(--font-size-4xl);
    color: var(--primary-dark);
    margin-bottom: 50px;
}

.distributors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-2xl);
    align-items: start;
}

.distributor-item {
    background: var(--background-light);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-md);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast);
}

.distributor-item:hover {
    transform: translateY(-5px);
}

.distributor-logo {
    max-height: 80px;
    width: auto;
    margin-bottom: var(--spacing-lg);
    filter: grayscale(0.5);
    transition: filter var(--transition-fast);
}

.distributor-item:hover .distributor-logo {
    filter: grayscale(0);
}

.distributor-details {
    text-align: left;
}

.distributor-country,
.distributor-contact,
.distributor-website {
    font-size: var(--font-size-small);
    color: var(--text-light);
    margin-bottom: var(--spacing-xs);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background: var(--primary-dark);
    color: var(--text-white);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--spacing-2xl);
    align-items: start;
    margin-bottom: var(--spacing-xl);
}

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

.footer-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

.footer-section h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
    color: var(--accent-blue);
}

.footer-section p {
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-size-small);
    line-height: 1.5;
}

.footer-section a {
    color: var(--accent-blue);
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright p {
    font-size: 0.85rem;
    opacity: 0.8;
}

.footer-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.footer-menu a {
    color: var(--text-white);
    text-decoration: none;
    font-size: var(--font-size-small);
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.footer-menu a:hover {
    opacity: 1;
}

/* ============================================
   RESPONSIVE DESIGN - TABLET
   ============================================ */

@media (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .hero-title {
        font-size: var(--font-size-5xl);
    }
    
    .hero-section .container {
        gap: var(--spacing-2xl);
    }
    
    .technical-content {
        gap: var(--spacing-2xl);
    }
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE
   ============================================ */

@media (max-width: 768px) {
    /* Navigation */
    .navbar-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Hero Section */
    .hero-section {
        padding: var(--spacing-3xl) 0;
        min-height: auto;
    }
    
    .hero-section .container {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
        text-align: center;
    }
    
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Benefits Section */
    .enhance-section {
        padding: var(--spacing-3xl) 0;
    }
    
    .benefit-item,
    .benefit-item.reverse {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
        direction: ltr;
    }
    
    .benefit-item.reverse .benefit-content {
        order: 2;
    }
    
    .benefit-item.reverse .benefit-image {
        order: 1;
    }
    
    /* Technical Section */
    .technical-section {
        padding: var(--spacing-3xl) 0;
    }
    
    .technical-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
        text-align: center;
    }
    
    .technical-text h2 {
        font-size: var(--font-size-3xl);
    }
    
    .cert-buttons {
        justify-content: center;
    }
    
    /* Distributors */
    .distributors-section {
        padding: var(--spacing-3xl) 0;
    }
    
    .distributors-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .footer-menu {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .section-header h2 {
        font-size: var(--font-size-3xl);
    }
    
    .benefit-content h3 {
        font-size: 1.5rem;
    }
    
    .technical-text h2 {
        font-size: var(--font-size-2xl);
    }
    
    .distributors-section h2 {
        font-size: var(--font-size-3xl);
    }
    
    .btn {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 13px;
    }
    
    .hero-buttons {
        gap: var(--spacing-md);
    }
}

/* ============================================
   ANIMATIONS & TRANSITIONS
   ============================================ */

/* Scroll animations */
.benefit-item,
.certification-item,
.distributor-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-medium);
}

.benefit-item.animate-in,
.certification-item.animate-in,
.distributor-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Image loading animation */
img {
    opacity: 0;
    transition: opacity var(--transition-fast);
}

img.loaded {
    opacity: 1;
}

/* Header scroll animation */
.site-header {
    transition: transform var(--transition-fast);
}

/* Hamburger animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Form error states */
input.error,
textarea.error {
    border-color: var(--error-color);
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.3);
}

/* Hover effects for interactive elements */
.certification-item:hover {
    background: rgba(255,255,255,0.15);
    transform: translateX(5px);
}

.distributor-item:hover .distributor-details {
    color: var(--primary-dark);
}