/* =====================================================
   Rentip - Insurance Agency Website
   Professional CSS Stylesheet
   ===================================================== */

/* CSS Variables */
:root {
    --primary-color: #da261c;
    --primary-dark: #b81f17;
    --primary-light: #ff3d33;
    --text-color: #1a1a1a;
    --text-light: #666666;
    --text-muted: #999999;
    --bg-light: #f8f9fa;
    --bg-dark: #1a2332;
    --white: #ffffff;
    --border-color: #e5e5e5;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s ease;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

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

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border-color: var(--text-color);
}

.btn-secondary:hover {
    background-color: var(--text-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* =====================================================
   Header
   ===================================================== */
.header {
    position: sticky;
    top: 0;
    background-color: var(--white);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

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

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--primary-color);
}

.header-contact {
    display: flex;
    align-items: center;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    background-color: var(--bg-light);
}

.phone-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.phone-link svg {
    color: var(--primary-color);
}

.phone-link:hover svg {
    color: var(--white);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* =====================================================
   Hero Section
   ===================================================== */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
}

.hero-content .highlight {
    color: var(--primary-color);
}

.hero-text {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

/* =====================================================
   Services Preview Section
   ===================================================== */
.services-preview {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

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

.services-grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

/* Image-based service cards */
.service-card-image {
    position: relative;
    height: 350px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 0;
    border: none;
}

.service-card-image .service-card-link {
    display: flex;
    align-items: flex-end;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.service-card-image .service-card-overlay {
    width: 100%;
    padding: 2rem 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

.service-card-image h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.service-card-image h3 span {
    display: block;
    font-weight: 400;
    font-size: 0.9rem;
    opacity: 0.9;
}

.service-card-image:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fff5f4 0%, #ffe8e6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon svg {
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.service-link {
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.service-link:hover {
    gap: 0.5rem;
}

/* =====================================================
   Why Us Section
   ===================================================== */
.why-us {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.why-us .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-us h2 {
    margin-bottom: 2.5rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.feature-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    min-width: 100px;
}

.feature-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.feature-text p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
}

.why-us-image img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

/* =====================================================
   Partners Section
   ===================================================== */
.partners {
    padding: 4rem 0;
    text-align: center;
}

.partners h2 {
    margin-bottom: 1rem;
}

.partners-text {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.partners-note {
    background-color: var(--bg-light);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-md);
    max-width: 600px;
    margin: 0 auto;
}

.partners-note p {
    margin: 0;
    color: var(--text-light);
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 2rem;
}

.partner-logo {
    height: 40px;
    width: auto;
    filter: grayscale(0);
    transition: var(--transition);
}

.partner-logo:hover {
    transform: scale(1.1);
}

/* Owner/Signature styles */
.owner-title {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.signature {
    margin-top: 1.5rem;
    max-width: 200px;
}

/* CTA Info styles */
.cta-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.cta-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.cta-info-item strong {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.cta-info-item a {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
}

.cta-info-item span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.cta-address {
    color: rgba(255, 255, 255, 0.8);
    margin-top: 1rem;
}

/* =====================================================
   CTA Section
   ===================================================== */
.cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #2a3a50 100%);
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

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

.cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.cta-contact {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-phone,
.cta-email {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.cta-phone:hover,
.cta-email:hover {
    background-color: var(--white);
    color: var(--text-color);
    border-color: var(--white);
}

.cta-phone:hover svg,
.cta-email:hover svg {
    color: var(--primary-color);
}

/* =====================================================
   Footer
   ===================================================== */
.footer {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem;
}

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

.footer-logo {
    height: 40px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer h4 {
    color: var(--white);
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer ul a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer ul a:hover {
    color: var(--white);
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-contact svg {
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.footer-contact span,
.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
}

/* =====================================================
   Responsive Design
   ===================================================== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }

    .service-card-image {
        height: 280px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
    }

    .nav {
        order: 3;
        width: 100%;
        display: none;
    }

    .nav.active {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }

    .nav-menu a {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .mobile-menu-btn {
        display: flex;
    }

    .header-contact {
        display: none;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-text {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .why-us .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .why-us-image {
        order: -1;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card-image {
        height: 250px;
    }

    .feature {
        flex-direction: column;
        text-align: center;
    }

    .cta-info {
        flex-direction: column;
        gap: 1rem;
    }

    .feature-number {
        min-width: auto;
    }

    .cta-contact {
        flex-direction: column;
        align-items: center;
    }

    .cta-phone,
    .cta-email {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-contact ul li {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* =====================================================
   Subpage Styles
   ===================================================== */
.page-header {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #2a3a50 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    margin: 0;
}

.page-content {
    padding: 4rem 0;
}

.page-content h2 {
    margin-top: 2rem;
}

.page-content p {
    color: var(--text-light);
}

/* Services Page */
.service-detail {
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.service-detail-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.service-detail-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #fff5f4 0%, #ffe8e6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-detail-icon svg {
    width: 60px;
    height: 60px;
    color: var(--primary-color);
}

.service-list {
    margin-top: 1rem;
}

.service-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1rem;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

/* About Page */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-values {
    background-color: var(--bg-light);
    padding: 4rem 0;
    margin: 4rem 0;
}

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

.value-card {
    text-align: center;
    padding: 2rem;
}

.value-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.contact-info-card h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.contact-info-card svg {
    color: var(--primary-color);
}

.contact-info-card p {
    margin: 0;
    color: var(--text-light);
}

.contact-info-card a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.25rem;
}

.contact-map {
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .service-detail-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .service-detail-icon {
        margin: 0 auto;
    }

    .service-list li {
        text-align: left;
    }

    .about-intro {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}
