/* =========================================================
   Starling Credit — Unified Stylesheet
   Replaces: common.css, home.css, contact.css, nav.css,
             services.css, about.css, back-to-top.css
   ========================================================= */

:root {
    /* Palette — refined blue/gold, used with restraint */
    --navy: #102A43;          /* deep trust anchor: header, footer, headings */
    --navy-soft: #1B3A5C;
    --blue: #4FB3D9;          /* primary accent (refined sky blue) */
    --blue-pale: #EAF7FB;     /* light tint for panels */
    --gold: #D8A93C;          /* single decorative accent — used sparingly */
    --gold-pale: #F6E9C9;
    --ink: #1F2D3A;           /* body text */
    --ink-soft: #4B5A68;
    --paper: #FCFDFE;         /* page background */
    --white: #ffffff;
    --shadow: 0 8px 24px rgba(16, 42, 67, 0.08);
    --shadow-hover: 0 14px 32px rgba(16, 42, 67, 0.14);
    --radius: 10px;
    --transition: all 0.25s ease;
    --font-display: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Top bar ---------- */
.top-bar {
    background: var(--navy);
    color: var(--white);
    padding: 0.6rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-link img { height: 42px; width: auto; }
.social-media-top { display: flex; gap: 14px; }
.social-media-top img { height: 20px; width: auto; opacity: 0.75; transition: var(--transition); }
.social-media-top img:hover { opacity: 1; transform: translateY(-1px); }

/* ---------- Navigation ---------- */
nav {
    background: var(--white);
    border-bottom: 1px solid #E5ECF1;
    position: sticky;
    top: 0;
    z-index: 100;
}
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}
nav a {
    display: block;
    text-decoration: none;
    color: var(--navy);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 1.1rem 1.4rem;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}
nav a:hover { color: var(--blue); }
nav a.active { color: var(--navy); border-bottom-color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
    color: var(--white);
    padding: 4.5rem 2rem;
    text-align: center;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
}
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 2.9rem);
    margin-bottom: 0.75rem;
}
.hero p {
    font-size: 1.15rem;
    color: var(--blue-pale);
    max-width: 600px;
    margin: 0 auto;
}

/* Page header (Services / About / Contact) */
.page-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
    color: var(--white);
    text-align: center;
    padding: 3.5rem 2rem 4.5rem;
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
}
.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 2.6rem);
    margin-bottom: 0.75rem;
}
.page-header p { max-width: 700px; margin: 0 auto; color: var(--blue-pale); font-size: 1.05rem; }

/* ---------- Layout ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem 3rem; }
main { max-width: 1200px; margin: -1.5rem auto 0; padding: 0 2rem 3rem; position: relative; }

section {
    background: var(--white);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
section h2 {
    font-family: var(--font-display);
    color: var(--navy);
    font-size: 1.9rem;
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}
section h2::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 56px; height: 3px;
    background: var(--gold);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    background: var(--blue);
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 700;
    text-decoration: none;
    padding: 0.85rem 1.8rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}
.btn:hover { background: var(--navy); transform: translateY(-2px); }
.btn:disabled { background: #ccc; cursor: not-allowed; }

/* ---------- Intro section ---------- */
.intro-section { text-align: center; }
.intro-section p { max-width: 720px; margin: 0 auto 1rem; color: var(--ink-soft); }

/* ---------- Services grid (home) ---------- */
.offerings-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.offering-item {
    background: var(--blue-pale);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}
.offering-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.offering-item i { color: var(--blue); }
.offering-item h3 { font-family: var(--font-display); color: var(--navy); margin: 0.75rem 0; }
.offering-description { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 1rem; }
.learn-more a { color: var(--navy); font-weight: 700; text-decoration: none; font-size: 0.9rem; }
.learn-more a:hover { color: var(--blue); }

/* ---------- Trust strip / selling points (home) ---------- */
.selling-points-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}
.selling-points-list li {
    background: var(--navy);
    color: var(--white);
    border-radius: 8px;
    padding: 1.1rem 1.2rem;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding-left: 2.6rem;
}
.selling-points-list li::before {
    content: "✓";
    position: absolute;
    left: 1rem;
    color: var(--gold);
    font-weight: 700;
}

/* ---------- Services accordion ---------- */
.service-item {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1.2rem;
    overflow: hidden;
}
.service-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.4rem 1.8rem;
    background: var(--blue-pale);
    cursor: pointer;
}
.service-title h2 {
    margin: 0; padding: 0; text-align: left;
    font-size: 1.3rem; color: var(--navy);
    display: flex; align-items: center; gap: 0.9rem;
}
.service-title h2::after { display: none; }
.service-icon { color: var(--blue); font-size: 1.3rem; }
.toggle-icon { font-size: 1.5rem; color: var(--navy); transition: transform 0.3s ease; }
.service-item.active .toggle-icon { transform: rotate(45deg); color: var(--gold); }
.service-content { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.service-item.active .service-content { max-height: 2000px; }
.service-details { padding: 1.8rem; border-top: 1px solid var(--blue-pale); }
.service-description { margin-bottom: 1.5rem; color: var(--ink-soft); }
.service-details h3 { font-family: var(--font-display); color: var(--navy); margin: 1.2rem 0 0.8rem; font-size: 1.1rem; }

.feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
}
.feature-item { background: var(--blue-pale); border-radius: 8px; padding: 1.3rem; transition: var(--transition); }
.feature-item:hover { background: var(--navy); color: var(--white); }
.feature-item h4 { font-family: var(--font-display); color: var(--navy); margin-bottom: 0.4rem; font-size: 1rem; }
.feature-item:hover h4 { color: var(--white); }
.feature-item p { font-size: 0.9rem; color: var(--ink-soft); }
.feature-item:hover p { color: var(--blue-pale); }

.process-steps { list-style: none; counter-reset: step; }
.process-step { display: flex; gap: 1.2rem; align-items: flex-start; margin-bottom: 1.2rem; }
.process-step::before {
    counter-increment: step; content: counter(step);
    min-width: 36px; height: 36px; flex-shrink: 0;
    background: var(--navy); color: var(--white);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-family: var(--font-display);
}
.step-content h4 { font-family: var(--font-display); color: var(--navy); font-size: 1rem; margin-bottom: 0.3rem; }
.step-content p { color: var(--ink-soft); font-size: 0.95rem; }

.requirements-list { background: var(--blue-pale); border-radius: 8px; padding: 1.6rem; margin: 1.2rem 0; }
.requirements-list h3 { margin-top: 0 !important; }
.requirements-list ul { list-style: none; }
.requirements-list li { position: relative; padding-left: 1.8rem; margin-bottom: 0.6rem; }
.requirements-list li::before { content: "✓"; color: var(--blue); position: absolute; left: 0; font-weight: 700; }

.service-cta { text-align: center; background: var(--navy); color: var(--white); }
.service-cta h3 { font-family: var(--font-display); margin-bottom: 0.7rem; font-size: 1.5rem; }
.service-cta p { color: var(--blue-pale); margin-bottom: 1.3rem; }
.service-cta .btn { background: var(--gold); color: var(--navy); }
.service-cta .btn:hover { background: var(--white); }

/* ---------- About page ---------- */
.story-section { text-align: center; }
.story-content { max-width: 760px; margin: 0 auto; }
.story-content p { color: var(--ink-soft); margin-bottom: 1.2rem; }

.mission-vision {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.mission-card, .vision-card {
    background: var(--blue-pale);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    border-top: 3px solid var(--gold);
}
.mission-card h3, .vision-card h3 { font-family: var(--font-display); color: var(--navy); margin-bottom: 0.8rem; }
.mission-card p, .vision-card p { color: var(--ink-soft); }

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.3rem;
}
.value-card { text-align: center; padding: 1.6rem; border-radius: var(--radius); background: var(--blue-pale); }
.value-icon { color: var(--blue); font-size: 2rem; margin-bottom: 0.6rem; }
.value-card h3 { font-family: var(--font-display); color: var(--navy); margin-bottom: 0.5rem; font-size: 1.1rem; }
.value-card p { color: var(--ink-soft); font-size: 0.92rem; }

.stats-section { background: var(--navy); color: var(--white); text-align: center; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.stat-number { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--gold); }
.stat-label { color: var(--blue-pale); font-size: 0.95rem; }

/* ---------- Contact page ---------- */
#contact-form { max-width: 760px; margin: 0 auto; }
#contact-form form { display: grid; gap: 1.3rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
#contact-form label { color: var(--navy); font-weight: 700; font-family: var(--font-display); font-size: 0.9rem; }
#contact-form input, #contact-form select, #contact-form textarea {
    padding: 0.75rem; border: 1px solid #D8E3EA; border-radius: 6px;
    font-family: var(--font-body); font-size: 1rem; transition: var(--transition);
}
#contact-form input:focus, #contact-form select:focus, #contact-form textarea:focus {
    border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(79,179,217,0.15);
}
.phone-input-group { display: flex; gap: 0.8rem; }
#contact-form select[name="country_code"] { width: 130px; flex-shrink: 0; }
#contact-form textarea { min-height: 140px; resize: vertical; }
#contact-form button { justify-self: center; min-width: 200px; }

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}
.contact-card { background: var(--blue-pale); border-radius: var(--radius); padding: 1.6rem; text-align: center; }
.contact-card i { font-size: 1.7rem; color: var(--blue); margin-bottom: 0.6rem; }
.contact-card h3 { font-family: var(--font-display); color: var(--navy); margin-bottom: 0.5rem; font-size: 1.1rem; }
.contact-card a { color: var(--navy); text-decoration: none; font-weight: 600; }
.contact-card a:hover { color: var(--blue); }

.map-container { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

.form-messages { padding: 1rem; margin-bottom: 1rem; border-radius: 6px; display: none; font-size: 0.95rem; }
.form-messages.success { background: #E3F6E8; color: #1E6B3A; }
.form-messages.error { background: #FBE7E7; color: #A12B2B; }
.form-messages ul { margin: 0.4rem 0 0 1.2rem; }
.form-loading { opacity: 0.5; pointer-events: none; }

/* ---------- Footer ---------- */
footer { background: var(--navy); color: var(--white); padding: 3rem 2rem 1.5rem; margin-top: 3rem; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-section h3 {
    font-family: var(--font-display);
    color: var(--gold);
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 1.1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-section p { color: #C9D6E0; font-size: 0.92rem; margin-bottom: 0.6rem; }
.footer-section img { max-width: 130px; margin-bottom: 0.8rem; }
.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 0.6rem; display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.92rem; }
.footer-section a { color: var(--white); text-decoration: none; transition: var(--transition); }
.footer-section a:hover { color: var(--gold); }
.footer-section i { color: var(--blue); margin-top: 0.2rem; }
.license-info p { font-size: 0.85rem; color: #9FB3C2; font-style: italic; }
.business-hours { margin-top: 1rem; }
.business-hours h4 { font-family: var(--font-display); font-size: 0.95rem; color: var(--white); margin-bottom: 0.4rem; }
.business-hours p { font-size: 0.85rem; color: #9FB3C2; margin-bottom: 0.2rem; }
.map-link { display: block; font-size: 0.85rem; color: var(--blue); margin-top: 0.2rem; }

.social-links { display: flex; gap: 0.6rem; margin-top: 0.5rem; }
.social-links a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,0.08); transition: var(--transition);
}
.social-links a:hover { background: var(--blue); transform: translateY(-2px); }

.footer-copyright {
    text-align: center;
    padding-top: 1.5rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.12);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.footer-copyright p { color: #9FB3C2; font-size: 0.85rem; margin-bottom: 0.3rem; }

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed; bottom: 20px; right: 20px;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--navy); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; opacity: 0; transition: var(--transition);
    box-shadow: var(--shadow); z-index: 1000;
}
.back-to-top.visible { opacity: 1; }
.back-to-top:hover { background: var(--blue); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .top-bar { flex-direction: column; gap: 0.8rem; text-align: center; }
    nav a { padding: 0.8rem 1rem; font-size: 0.82rem; }
    .container, main { padding: 0 1rem 2rem; }
    section { padding: 1.6rem; }
    section h2 { font-size: 1.5rem; }
    .hero, .page-header { padding: 3rem 1.2rem 3.5rem; }
    .phone-input-group { flex-direction: column; }
    #contact-form select[name="country_code"] { width: 100%; }
}
@media (max-width: 480px) {
    .btn { width: 100%; text-align: center; }
    #contact-form button { width: 100%; min-width: unset; }
}
