/*
Theme Name: Hamro Notary Pro
Theme URI: https://hamronotary.com
Author: Hamro Notary
Author URI: https://hamronotary.com
Description: Professional WordPress theme for Hamro Notary - Nepal's trusted notary and translation service.
Version: 1.1
License: GNU General Public License v2 or later
Text Domain: hamro-notary-pro
*/

:root {
    --navy:   #17324D;
    --navy-dark: #0e1f30;
    --navy-light: #234a70;
    --gold:   #C9A227;
    --gold-dark: #a8851f;
    --text:   #1f2937;
    --muted:  #6b7280;
    --light:  #f7f8fa;
    --white:  #ffffff;
    --border: #e5e7eb;
    --shadow: 0 10px 30px rgba(0,0,0,.08);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; }

/* ── Layout ── */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section { padding: 80px 0; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }

.section-subtitle {
    color: var(--muted);
    font-size: 1.1rem;
    margin-top: 12px;
    max-width: 600px;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
}

.btn-gold {
    background: var(--gold);
    color: var(--white);
}
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(201,162,39,.35); }

.btn-navy {
    background: var(--navy);
    color: var(--white);
}
.btn-navy:hover { background: var(--navy-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(23,50,77,.35); }

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--navy); }

/* ── Grid ── */
.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ── Card ── */
.card {
    padding: 32px 28px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,.12); }

/* ── Section Header ── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .badge {
    display: inline-block;
    background: rgba(201,162,39,.1);
    color: var(--gold-dark);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 12px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    section { padding: 60px 0; }
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}
/* Update button text colors */
.btn-gold, .btn-outline { color: #ffffff !important; }
.btn-outline:hover { color: #ffffff !important; }

/* Fix CTA buttons layout */
.post-cta .btn { display: inline-flex; align-items: center; justify-content: center; margin-right: 10px; margin-bottom: 10px; width: auto; }

/* Fix vertical alignment for CTA buttons */
.post-cta .btn { display: inline-block !important; vertical-align: middle !important; margin: 5px 10px !important; }

/* Robust Span-Based Glow Button */
.btn-snake-glow {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px !important;
    background-color: transparent !important;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    overflow: hidden;
    z-index: 1;
    border: none;
    box-shadow: none !important;
}

.btn-snake-glow::before {
    content: "";
    position: absolute;
    top: -150%; left: -50%; width: 200%; height: 400%;
    background: conic-gradient(from 0deg, transparent 0%, rgba(10, 37, 64, 0) 10%, #0a2540 25%, #2a6fb3 28%, #66b3ff 30%, #2a6fb3 32%, #0a2540 35%, rgba(10, 37, 64, 0) 50%, transparent 100%);
    animation: aw_snake_rotate 1.5s linear infinite;
    z-index: 1;
    transform-origin: center center;
}

.btn-snake-glow span {
    position: relative;
    z-index: 2;
    background: #cca43b !important;
    color: #0a2540 !important;
    width: 100%;
    height: 100%;
    border-radius: 50px;
    padding: 10px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-snake-glow:hover span {
    background: #0a2540 !important;
    color: #ffffff !important;
}

.btn-snake-glow:hover::before {
    animation: none;
    background: #0a2540;
}

@keyframes aw_snake_rotate {
    100% { transform: rotate(360deg); }
}
