/* ============================================
   Clearstone Solutions — Global Styles
   ============================================ */

:root {
    --color-primary: #1e3a5f;
    --color-primary-light: #2a5080;
    --color-accent: #3b6fa0;
    --color-text: #2d2d2d;
    --color-text-light: #5a5a5a;
    --color-text-muted: #7a7a7a;
    --color-bg: #ffffff;
    --color-bg-alt: #f6f7f9;
    --color-bg-dark: #1a1a2e;
    --color-border: #e0e3e8;
    --color-border-light: #eceef2;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1120px;
    --header-height: 72px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4 {
    color: var(--color-primary);
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
h4 { font-size: 1rem; }

p { margin-bottom: 1rem; }

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

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

.site-header {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
}

.site-logo img {
    height: 44px;
    width: auto;
    display: block;
}

.site-logo:hover {
    text-decoration: none;
    opacity: 0.85;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.site-nav a {
    color: var(--color-text-light);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s;
}

.site-nav a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

.site-nav .nav-cta {
    background: var(--color-primary);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.site-nav .nav-cta:hover {
    background: var(--color-primary-light);
    color: white;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-text);
}

/* ============================================
   Hero
   ============================================ */

.hero {
    padding: 4.5rem 0 4rem;
    border-bottom: 1px solid var(--color-border-light);
}

.hero-inner {
    max-width: 720px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-primary);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s;
}

.hero-cta:hover {
    background: var(--color-primary-light);
    color: white;
    text-decoration: none;
}

/* ============================================
   Sections
   ============================================ */

.section {
    padding: 4rem 0;
}

.section-alt {
    background: var(--color-bg-alt);
}

.section-divider {
    border-bottom: 1px solid var(--color-border-light);
}

.section-header {
    margin-bottom: 2.5rem;
}

.section-header h2 {
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--color-text-light);
    max-width: 640px;
}

.section-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

/* ============================================
   Grid Layouts
   ============================================ */

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

/* ============================================
   Cards
   ============================================ */

.card {
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 1.5rem;
    background: white;
}

.card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.92rem;
    color: var(--color-text-light);
    margin-bottom: 0;
}

.card-icon {
    width: 20px;
    height: 20px;
    stroke: var(--color-accent);
    margin-bottom: 0.75rem;
    stroke-width: 1.5;
    fill: none;
}

/* ============================================
   Capability List
   ============================================ */

.cap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    overflow: hidden;
}

.cap-item {
    padding: 1.25rem 1.5rem;
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.cap-item:nth-child(3n) {
    border-right: none;
}

.cap-item:nth-last-child(-n+3) {
    border-bottom: none;
}

.cap-item svg {
    width: 16px;
    height: 16px;
    stroke: var(--color-accent);
    flex-shrink: 0;
    stroke-width: 1.5;
    fill: none;
}

/* ============================================
   Differentiators
   ============================================ */

.diff-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.diff-item h3 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.diff-item p {
    font-size: 0.92rem;
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* ============================================
   Service Blocks
   ============================================ */

.service-block {
    padding: 3rem 0;
    border-bottom: 1px solid var(--color-border-light);
}

.service-block:last-child {
    border-bottom: none;
}

.service-block h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-block h4 {
    font-size: 0.95rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
}

.service-block ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.service-block li {
    font-size: 0.92rem;
    color: var(--color-text-light);
    margin-bottom: 0.35rem;
}

.service-scope {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border-light);
    border-radius: 4px;
    padding: 1rem 1.25rem;
    margin-top: 1rem;
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

.service-scope strong {
    color: var(--color-text);
}

/* ============================================
   Industry Sections
   ============================================ */

.industry-section {
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--color-border-light);
}

.industry-section:last-of-type {
    border-bottom: none;
}

.industry-section h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.industry-section .scenario {
    background: var(--color-bg-alt);
    border-left: 3px solid var(--color-border);
    padding: 1rem 1.25rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.industry-section .scenario strong {
    color: var(--color-text);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
    margin-bottom: 0.25rem;
}

/* ============================================
   Trust / Experience
   ============================================ */

.trust-strip {
    padding: 3rem 0;
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
}

.trust-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.trust-tag {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--color-text-light);
    background: white;
    border: 1px solid var(--color-border);
    padding: 0.4rem 0.9rem;
    border-radius: 3px;
}

/* ============================================
   Contact Form
   ============================================ */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 0.92rem;
    color: var(--color-text-light);
}

.contact-detail {
    margin-top: 2rem;
}

.contact-detail dt {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}

.contact-detail dd {
    font-size: 0.95rem;
    color: var(--color-text);
    margin-bottom: 1.25rem;
}

.contact-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text);
    background: white;
    margin-bottom: 1.25rem;
    transition: border-color 0.15s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--color-accent);
}

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

.btn-submit {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 0.7rem 1.75rem;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-submit:hover {
    background: var(--color-primary-light);
}

/* ============================================
   CTA Banner
   ============================================ */

.cta-banner {
    padding: 3.5rem 0;
    background: var(--color-primary);
    color: white;
}

.cta-banner h2 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.cta-banner p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.5rem;
    max-width: 520px;
}

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

.cta-banner .hero-cta:hover {
    background: #f0f0f0;
    color: var(--color-primary);
}

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

.site-footer {
    background: var(--color-bg-dark);
    color: #9ca3af;
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-col h4 {
    color: #d1d5db;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.footer-col p {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.footer-col ul {
    list-style: none;
}

.footer-col a {
    color: #9ca3af;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.4rem;
    text-decoration: none;
}

.footer-col a:hover {
    color: white;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid #2d2d42;
    padding-top: 1.5rem;
    font-size: 0.8rem;
    text-align: center;
}

/* ============================================
   About Page
   ============================================ */

.about-intro {
    max-width: 720px;
}

.about-intro p {
    font-size: 1.02rem;
    color: var(--color-text-light);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.philosophy-item h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.philosophy-item p {
    font-size: 0.92rem;
    color: var(--color-text-light);
    margin-bottom: 0;
}

.boundaries {
    max-width: 640px;
}

.boundaries ul {
    list-style: none;
    padding: 0;
}

.boundaries li {
    font-size: 0.92rem;
    color: var(--color-text-light);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border-light);
    padding-left: 1.25rem;
    position: relative;
}

.boundaries li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--color-text-muted);
}

/* ============================================
   Page Headers
   ============================================ */

.page-header {
    padding: 3rem 0 2.5rem;
    border-bottom: 1px solid var(--color-border-light);
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--color-text-light);
    max-width: 600px;
    font-size: 1.02rem;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .cap-grid { grid-template-columns: repeat(2, 1fr); }
    .cap-item:nth-child(2n) { border-right: none; }
    .cap-item:nth-child(3n) { border-right: 1px solid var(--color-border); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 640px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.4rem; }
    .hero { padding: 3rem 0; }
    .hero h1 { font-size: 1.85rem; }
    .section { padding: 2.5rem 0; }
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .diff-grid { grid-template-columns: 1fr; }
    .cap-grid { grid-template-columns: 1fr; }
    .cap-item { border-right: none !important; }
    .philosophy-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-bg); border-bottom: 1px solid var(--color-border); flex-direction: column; gap: 0.5rem; padding: 1rem 24px; list-style: none; }
    .site-nav.nav-open { display: flex; }
    .mobile-toggle { display: block; }
}
