/*
Theme Name: Caterglobe
Theme URI: https://caterglobe.com
Author: Caterglobe Dev Team
Author URI: https://caterglobe.com
Description: A minimal, Elementor-ready WordPress theme with clean semantic HTML and built-in SEO optimization. Designed as a foundation for custom Elementor widgets.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: caterglobe
Tags: custom-logo, elementor, full-width-template, translation-ready
*/

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
        Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Typography — Semantic heading hierarchy for SEO
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5em;
    color: #1a1a1a;
}

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

p {
    margin-bottom: 1em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

ul, ol {
    list-style: none;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.caterglobe-site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.caterglobe-content {
    flex: 1;
}

/* Full-width support for Elementor */
.elementor-page .caterglobe-content,
.elementor-page .site-main {
    padding: 0;
    margin: 0;
    max-width: 100%;
}

/* ==========================================================================
   Header
   ========================================================================== */

.caterglobe-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.caterglobe-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
}

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

.caterglobe-logo .site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

/* Navigation */
.caterglobe-nav ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.caterglobe-nav a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #555555;
    padding: 0.5rem 0;
    position: relative;
}

.caterglobe-nav a:hover,
.caterglobe-nav .current-menu-item > a {
    color: #1a1a1a;
}

/* Mobile menu toggle */
.caterglobe-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

.caterglobe-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #333;
    margin: 5px 0;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .caterglobe-menu-toggle {
        display: block;
    }

    .caterglobe-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 1rem 1.5rem;
    }

    .caterglobe-nav.is-active {
        display: block;
    }

    .caterglobe-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .caterglobe-nav a {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid #f0f0f0;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.caterglobe-footer {
    background-color: #1a1a1a;
    color: #cccccc;
    padding: 3rem 1.5rem 1.5rem;
}

.caterglobe-footer__inner {
    max-width: 1280px;
    margin: 0 auto;
}

.caterglobe-footer__bottom {
    border-top: 1px solid #333333;
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: #999999;
}

/* ==========================================================================
   WordPress Core Styles
   ========================================================================== */

.alignwide {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100%;
    max-width: 100%;
}

.aligncenter {
    text-align: center;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
