/* New Horizon Precision - Main Stylesheet */

/* CSS Custom Properties (Variables) */
:root {
    --color-dark-green: #1E3D2F;
    --color-green: #2D5A3D;
    --color-golden-yellow: #E4A936;
    --color-off-white: #F6F2EA;
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-gray: #666666;
    --color-light-gray: #F8F9FA;
    --color-border: #DDDDDD;
    
    --font-primary: 'Clarendon', 'Georgia', serif;
    --font-secondary: 'Arial', sans-serif;
    
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 5px 20px rgba(0,0,0,0.08);
    --shadow-heavy: 0 10px 30px rgba(0,0,0,0.15);
    
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--color-black);
    background-color: var(--color-off-white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--color-dark-green);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

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

/* Header and Navigation */
header {
    background: var(--color-dark-green);
    padding: 0.1rem 0; /* Much thinner - almost minimal */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-medium);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: var(--color-white);
    text-decoration: none;
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: bold;
}

/* Logo image sizing for header */
.logo img {
    height: 82px; /* Reduced by 20% from 102px - this literally crops more pixels */
    width: auto;
    display: block;
    object-fit: cover; /* Crop the image */
    object-position: center; /* Center the crop vertically */
}

@media (max-width: 768px) {
    .logo img { 
        height: 100px; /* Larger for tablets */
        margin-top: -15px;
    }
}

@media (max-width: 480px) {
    .logo img { 
        height: 80px; /* Larger for mobile */
        margin-top: -10px;
    }
}

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

.nav-links a {
    color: var(--color-white);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--color-golden-yellow);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(30, 61, 47, 0.65), rgba(30, 61, 47, 0.65)), 
                url('/assets/img/Drone Takeoff - Hero Image.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--color-white);
    text-align: center;
    padding: 80px 2rem 80px; /* Adjusted top padding for very thin header */
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--color-white);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-golden-yellow);
}

.location {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Ensure hero body text uses brand white while keeping tagline gold */
.hero p:not(.tagline) {
    color: var(--color-white);
}

/* Buttons */
.cta-button, .learn-more-btn {
    display: inline-block;
    background: var(--color-golden-yellow);
    color: var(--color-dark-green);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: bold;
    transition: var(--transition);
    border: 2px solid var(--color-golden-yellow);
}

.cta-button:hover, .learn-more-btn:hover {
    background: transparent;
    color: var(--color-golden-yellow);
    transform: translateY(-2px);
}

/* Container and Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title h2 {
    color: var(--color-dark-green);
    margin-bottom: 0.75rem;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--color-gray);
    margin-bottom: 0;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

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

.service-card-content {
    padding: 1.5rem;
}

.service-card h3 {
    color: var(--color-dark-green);
    margin-bottom: 1rem;
}

.service-card p {
    margin-bottom: 1.5rem;
    color: var(--color-gray);
}

/* View All Services Button */
.view-all-services {
    text-align: center;
    margin-top: 3rem;
}

.view-all-button {
    display: inline-block;
    background: var(--color-dark-green);
    color: var(--color-white);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: bold;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.view-all-button:hover {
    background: var(--color-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Certification Cards */
.cert-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile default */
    gap: 2rem;
    margin-top: 3rem;
}

/* Responsive columns for certification grid */
@media (min-width: 600px) {
    .cert-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
    .cert-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
    .cert-grid { grid-template-columns: repeat(4, 1fr); }
}

.cert-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--color-border);
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.cert-image {
    background: var(--color-light-gray);
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.cert-image img {
    max-width: 144px; /* Increased ~20% */
    max-height: 144px;
    height: auto;
    object-fit: contain;
}

.cert-content {
    padding: 1.5rem;
}

.cert-content h3 {
    color: var(--color-dark-green);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.cert-content p {
    color: var(--color-gray);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Service Detail Sections */
.service-detail {
    padding: 80px 0;
}

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

.service-text h2, .service-text h3 {
    color: var(--color-dark-green);
    margin-bottom: 1rem;
}

.service-text ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-text li {
    margin-bottom: 0.5rem;
    color: var(--color-gray);
}

.service-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

/* CTA Section */
.cta-section {
    background: var(--color-dark-green);
    color: var(--color-white);
    text-align: center;
    padding: 80px 0;
}

.cta-content h2 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--color-off-white);
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

/* About Page */
.about {
    padding: 80px 0;
}

/* About Hero Section - Logo above text */
.about-hero {
    flex-direction: column;
    gap: 2rem;
}

.about-hero .hero-logo {
    margin-bottom: 1rem;
}

.about-hero .hero-logo img {
    max-width: 300px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.about-hero .hero-content {
    max-width: 800px;
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h3 {
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
}

.about-text p {
    font-size: 1.05rem;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

/* Team Section */
.team {
    padding: 80px 0;
    background: var(--color-white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.team-member {
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    padding: 1.5rem;
    border-top: 4px solid var(--color-golden-yellow);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-heavy);
}

.member-info h3 {
    margin-bottom: 0.5rem;
}

.member-info p {
    color: var(--color-gray);
}

/* Values Section */
.values {
    padding: 80px 0;
    background: var(--color-light-gray);
}

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

.value-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* Responsive - About specific */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Footer */
footer {
    background: var(--color-dark-green);
    color: var(--color-white);
    padding: 60px 0 30px;
}

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

.footer-section h3 {
    color: var(--color-golden-yellow);
    margin-bottom: 1rem;
}

.footer-section a {
    color: var(--color-white);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--color-golden-yellow);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-green);
    color: var(--color-off-white);
}

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-dark-green);
    font-weight: 600;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-golden-yellow);
    box-shadow: 0 0 0 3px rgba(228, 169, 54, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Add mobile menu logic */
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .service-detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 100px 1rem 60px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
